harnessed 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3183 -0
- package/README-en.md +24 -3
- package/README-zh.md +24 -3
- package/README.md +24 -3
- package/bin/harnessed-check-docs.mjs +1 -0
- package/bin/harnessed-inject-state.mjs +57 -9
- package/bin/harnessed-stop-hook.mjs +51 -9
- package/bin/harnessed-update-reminder-worker.mjs +2262 -0
- package/bin/harnessed-update-reminder.mjs +389 -0
- package/dist/cli.mjs +20408 -15727
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/cc-hooks/update-reminder.yaml +39 -0
- package/manifests/optional/codegraph.yaml +2 -0
- package/manifests/skill-packs/gsd.yaml +5 -3
- package/manifests/skill-packs/mattpocock-skills.yaml +3 -3
- package/manifests/skill-packs/planning-with-files.yaml +2 -2
- package/manifests/tools/playwright-cli.yaml +4 -0
- package/manifests/tools/superpowers.yaml +2 -2
- package/messages/en.json +1 -0
- package/messages/zh-Hans.json +3 -2
- package/package.json +4 -1
- package/workflows/auto/SKILL.md +1 -1
- package/workflows/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/defaults.yaml +12 -0
- package/workflows/discuss/phase/SKILL.md +1 -1
- package/workflows/discuss/phase/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/subtask/SKILL.md +1 -1
- package/workflows/discuss/subtask/SKILL.zh-Hans.md +1 -1
- package/workflows/harnessed-update/SKILL.md +106 -0
- package/workflows/harnessed-update/SKILL.zh-Hans.md +90 -0
- package/workflows/harnessed-update/workflow.yaml +19 -0
- package/workflows/plan/ai-integration/SKILL.md +39 -0
- package/workflows/plan/ai-integration/SKILL.zh-Hans.md +38 -0
- package/workflows/plan/ai-integration/workflow.yaml +12 -0
- package/workflows/plan/auto/workflow.yaml +22 -2
- package/workflows/plan/phase/SKILL.md +2 -2
- package/workflows/plan/phase/SKILL.zh-Hans.md +2 -2
- package/workflows/plan/secure/SKILL.md +39 -0
- package/workflows/plan/secure/SKILL.zh-Hans.md +38 -0
- package/workflows/plan/secure/workflow.yaml +12 -0
- package/workflows/plan/spec/SKILL.md +39 -0
- package/workflows/plan/spec/SKILL.zh-Hans.md +38 -0
- package/workflows/plan/spec/workflow.yaml +12 -0
- package/workflows/plan/ui/SKILL.md +39 -0
- package/workflows/plan/ui/SKILL.zh-Hans.md +38 -0
- package/workflows/plan/ui/workflow.yaml +12 -0
- package/workflows/role-prompts.yaml +62 -6
- package/workflows/role-prompts.zh-Hans.yaml +60 -6
- package/workflows/ship/auto/SKILL.md +2 -1
- package/workflows/ship/auto/SKILL.zh-Hans.md +2 -1
- package/workflows/ship/preflight/SKILL.md +14 -2
- package/workflows/ship/preflight/SKILL.zh-Hans.md +12 -2
- package/workflows/ship/preflight/workflow.yaml +9 -3
- package/workflows/task/clarify/SKILL.md +2 -2
- package/workflows/task/clarify/SKILL.zh-Hans.md +2 -2
- package/workflows/task/code/SKILL.md +1 -1
- package/workflows/task/code/SKILL.zh-Hans.md +1 -1
- package/workflows/task/deliver/SKILL.md +1 -1
- package/workflows/task/deliver/SKILL.zh-Hans.md +1 -1
- package/workflows/task/test/SKILL.md +1 -1
- package/workflows/task/test/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/auto/SKILL.md +1 -1
- package/workflows/verify/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/design/SKILL.md +1 -1
- package/workflows/verify/design/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/progress/SKILL.md +1 -1
- package/workflows/verify/progress/SKILL.zh-Hans.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/plan/auto/workflow.yaml — Phase v3.0-3.5 W1 T3.5.W1.2
|
|
2
2
|
#
|
|
3
|
-
# Stage ② Plan master orchestrator —
|
|
3
|
+
# Stage ② Plan master orchestrator — serial design-contract gates, then phase always.
|
|
4
4
|
# per bundled Plan-stage cadence + RESEARCH-workflows § Area 2。
|
|
5
5
|
# planning-with-files /plan 是 D-06 cross-cutting tool (NOT 独立 sub-workflow per user clarification 2)。
|
|
6
6
|
#
|
|
@@ -28,6 +28,10 @@ disciplines_applied: [karpathy, output-style, language, operational, priority, p
|
|
|
28
28
|
tools_available:
|
|
29
29
|
- planning-with-files
|
|
30
30
|
- plan-eng-review
|
|
31
|
+
- gsd-spec-phase
|
|
32
|
+
- gsd-ui-phase
|
|
33
|
+
- gsd-secure-phase
|
|
34
|
+
- gsd-ai-integration-phase
|
|
31
35
|
- gsd-plan-phase
|
|
32
36
|
|
|
33
37
|
delegates_to:
|
|
@@ -35,6 +39,22 @@ delegates_to:
|
|
|
35
39
|
gate: judgments.stage-routing.plan-architecture-delegate.fires
|
|
36
40
|
mode: serial
|
|
37
41
|
order: 1
|
|
38
|
-
- sub:
|
|
42
|
+
- sub: spec
|
|
43
|
+
gate: judgments.stage-phase-gate.gsd-spec-phase.fires
|
|
39
44
|
mode: serial
|
|
40
45
|
order: 2
|
|
46
|
+
- sub: ui
|
|
47
|
+
gate: judgments.stage-phase-gate.gsd-ui-phase.fires
|
|
48
|
+
mode: serial
|
|
49
|
+
order: 3
|
|
50
|
+
- sub: secure
|
|
51
|
+
gate: judgments.stage-phase-gate.gsd-secure-phase.fires
|
|
52
|
+
mode: serial
|
|
53
|
+
order: 4
|
|
54
|
+
- sub: ai-integration
|
|
55
|
+
gate: judgments.stage-phase-gate.gsd-ai-integration-phase.fires
|
|
56
|
+
mode: serial
|
|
57
|
+
order: 5
|
|
58
|
+
- sub: phase
|
|
59
|
+
mode: serial
|
|
60
|
+
order: 6
|
|
@@ -6,8 +6,8 @@ description: |
|
|
|
6
6
|
progress.md (bundled Plan-stage cadence: GSD + planning-with-files)。Stage ② 铁律:
|
|
7
7
|
dual capability (GSD orchestration + planning-with-files plugin)。schema_version:
|
|
8
8
|
harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available [gsd-plan-phase,
|
|
9
|
-
planning-with-files] + 2 phases (01-gsd-plan + 02-persist)。Triggered by
|
|
10
|
-
`harnessed plan-phase
|
|
9
|
+
planning-with-files] + 2 phases (01-gsd-plan + 02-persist)。Triggered by headless CLI
|
|
10
|
+
`harnessed run plan-phase` or slash command `/plan-phase` after `harnessed setup`.
|
|
11
11
|
trigger_phrases:
|
|
12
12
|
- "plan phase"
|
|
13
13
|
- "计划层 phase"
|
|
@@ -6,8 +6,8 @@ description: |
|
|
|
6
6
|
progress.md(打包的 Plan-stage 节奏:GSD + planning-with-files)。Stage ② 铁律:
|
|
7
7
|
dual capability (GSD orchestration + planning-with-files plugin)。schema_version:
|
|
8
8
|
harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available [gsd-plan-phase,
|
|
9
|
-
planning-with-files] + 2 phases (01-gsd-plan + 02-persist)。Triggered by
|
|
10
|
-
`harnessed plan-phase
|
|
9
|
+
planning-with-files] + 2 phases (01-gsd-plan + 02-persist)。Triggered by headless CLI
|
|
10
|
+
`harnessed run plan-phase` or slash command `/plan-phase` after `harnessed setup`.
|
|
11
11
|
trigger_phrases:
|
|
12
12
|
- "plan phase"
|
|
13
13
|
- "计划层 phase"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-secure
|
|
3
|
+
description: Run the conditional GSD secure-phase threat-model contract before plan-phase.
|
|
4
|
+
trigger_phrases: ["plan secure", "gsd secure phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-secure workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Run `harnessed prompt plan-secure --task "$ARGUMENTS" --json`, execute `/gsd-secure-phase`, then complete the registered checkpoint with verifiable output.
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
Fires only when `phase.has_auth_or_secrets == true`.
|
|
16
|
+
|
|
17
|
+
## How to invoke
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-secure`
|
|
20
|
+
|
|
21
|
+
> The banner above (when present) means this invocation is REGISTERED with the engine (an intent marker) — not yet compliant: the steps below (prompt → spawn → checkpoint complete) resolve it, and a per-turn `<workflow-intent>` reminder persists until they run.
|
|
22
|
+
|
|
23
|
+
The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
|
|
24
|
+
an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
|
|
25
|
+
evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
|
|
26
|
+
{{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
|
|
27
|
+
|
|
28
|
+
Do NOT pipe to `harnessed run plan-secure` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
|
|
29
|
+
|
|
30
|
+
1. Bash: `harnessed prompt plan-secure --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
|
|
31
|
+
2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
|
|
32
|
+
- on return, write the subagent's final output to a file and run `harnessed checkpoint complete plan-secure --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
|
|
33
|
+
- if it blocks, run `harnessed checkpoint fail plan-secure --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
|
|
34
|
+
- respawn ONLY while none of those three has fired. Any one of them means stop: re-scope the subtask, fix the blocker, or escalate to the user. Never respawn past a stop directive.
|
|
35
|
+
3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
|
|
36
|
+
4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete plan-secure --result-file <path> --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
|
+
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-secure --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
|
+
|
|
39
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-secure
|
|
3
|
+
description: 在 plan-phase 前按条件运行 GSD secure-phase threat-model 契约。
|
|
4
|
+
trigger_phrases: ["plan secure", "gsd secure phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-secure workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
运行 `harnessed prompt plan-secure --task "$ARGUMENTS" --json`,执行 `/gsd-secure-phase`,再用可验证输出完成已登记 checkpoint。
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
仅当 `phase.has_auth_or_secrets == true` 时触发。
|
|
16
|
+
|
|
17
|
+
## 如何调用
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-secure`
|
|
20
|
+
|
|
21
|
+
> 上方 banner(如出现)表示本次调用已在引擎**登记**(intent 标记)——尚未合规:按下方步骤(prompt → spawn → checkpoint complete)完成即解除;在此之前每 turn 会持续注入 `<workflow-intent>` 提醒。
|
|
22
|
+
|
|
23
|
+
下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
|
|
24
|
+
freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
|
|
25
|
+
{{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
|
|
26
|
+
|
|
27
|
+
**不要** pipe 到 `harnessed run plan-secure` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
|
|
28
|
+
|
|
29
|
+
1. Bash: `harnessed prompt plan-secure --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
30
|
+
2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
|
|
31
|
+
- subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete plan-secure --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
|
|
32
|
+
- 若被拦下,跑 `harnessed checkpoint fail plan-secure --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
|
|
33
|
+
- **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
|
|
34
|
+
3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
|
|
35
|
+
4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete plan-secure --result-file <path> --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
|
+
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-secure --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
|
+
|
|
38
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schema_version: harnessed.workflow.v3
|
|
2
|
+
workflow: plan-secure
|
|
3
|
+
description: GSD secure-phase threat-model contract before ordinary phase planning.
|
|
4
|
+
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
5
|
+
tools_available: [gsd-secure-phase]
|
|
6
|
+
phases:
|
|
7
|
+
- id: 01-secure-phase
|
|
8
|
+
name: gsd-secure-phase
|
|
9
|
+
upstream: gsd
|
|
10
|
+
capability: '{{ capabilities.gsd-secure-phase.cmd }}'
|
|
11
|
+
model: sonnet
|
|
12
|
+
gate: judgments.stage-phase-gate.gsd-secure-phase.fires
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-spec
|
|
3
|
+
description: Run the conditional GSD spec-phase design contract before plan-phase.
|
|
4
|
+
trigger_phrases: ["plan spec", "gsd spec phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-spec workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Run `harnessed prompt plan-spec --task "$ARGUMENTS" --json`, execute `/gsd-spec-phase`, then complete the registered checkpoint with verifiable output.
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
Fires only when `phase.requires_spec == true`.
|
|
16
|
+
|
|
17
|
+
## How to invoke
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-spec`
|
|
20
|
+
|
|
21
|
+
> The banner above (when present) means this invocation is REGISTERED with the engine (an intent marker) — not yet compliant: the steps below (prompt → spawn → checkpoint complete) resolve it, and a per-turn `<workflow-intent>` reminder persists until they run.
|
|
22
|
+
|
|
23
|
+
The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
|
|
24
|
+
an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
|
|
25
|
+
evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
|
|
26
|
+
{{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
|
|
27
|
+
|
|
28
|
+
Do NOT pipe to `harnessed run plan-spec` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
|
|
29
|
+
|
|
30
|
+
1. Bash: `harnessed prompt plan-spec --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
|
|
31
|
+
2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
|
|
32
|
+
- on return, write the subagent's final output to a file and run `harnessed checkpoint complete plan-spec --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
|
|
33
|
+
- if it blocks, run `harnessed checkpoint fail plan-spec --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
|
|
34
|
+
- respawn ONLY while none of those three has fired. Any one of them means stop: re-scope the subtask, fix the blocker, or escalate to the user. Never respawn past a stop directive.
|
|
35
|
+
3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
|
|
36
|
+
4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete plan-spec --result-file <path> --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
|
+
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-spec --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
|
+
|
|
39
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-spec
|
|
3
|
+
description: 在 plan-phase 前按条件运行 GSD spec-phase 设计契约。
|
|
4
|
+
trigger_phrases: ["plan spec", "gsd spec phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-spec workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
运行 `harnessed prompt plan-spec --task "$ARGUMENTS" --json`,执行 `/gsd-spec-phase`,再用可验证输出完成已登记 checkpoint。
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
仅当 `phase.requires_spec == true` 时触发。
|
|
16
|
+
|
|
17
|
+
## 如何调用
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-spec`
|
|
20
|
+
|
|
21
|
+
> 上方 banner(如出现)表示本次调用已在引擎**登记**(intent 标记)——尚未合规:按下方步骤(prompt → spawn → checkpoint complete)完成即解除;在此之前每 turn 会持续注入 `<workflow-intent>` 提醒。
|
|
22
|
+
|
|
23
|
+
下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
|
|
24
|
+
freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
|
|
25
|
+
{{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
|
|
26
|
+
|
|
27
|
+
**不要** pipe 到 `harnessed run plan-spec` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
|
|
28
|
+
|
|
29
|
+
1. Bash: `harnessed prompt plan-spec --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
30
|
+
2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
|
|
31
|
+
- subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete plan-spec --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
|
|
32
|
+
- 若被拦下,跑 `harnessed checkpoint fail plan-spec --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
|
|
33
|
+
- **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
|
|
34
|
+
3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
|
|
35
|
+
4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete plan-spec --result-file <path> --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
|
+
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-spec --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
|
+
|
|
38
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schema_version: harnessed.workflow.v3
|
|
2
|
+
workflow: plan-spec
|
|
3
|
+
description: GSD spec-phase design contract before ordinary phase planning.
|
|
4
|
+
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
5
|
+
tools_available: [gsd-spec-phase]
|
|
6
|
+
phases:
|
|
7
|
+
- id: 01-spec-phase
|
|
8
|
+
name: gsd-spec-phase
|
|
9
|
+
upstream: gsd
|
|
10
|
+
capability: '{{ capabilities.gsd-spec-phase.cmd }}'
|
|
11
|
+
model: sonnet
|
|
12
|
+
gate: judgments.stage-phase-gate.gsd-spec-phase.fires
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-ui
|
|
3
|
+
description: Run the conditional GSD ui-phase design contract before plan-phase.
|
|
4
|
+
trigger_phrases: ["plan ui", "gsd ui phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-ui workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Run `harnessed prompt plan-ui --task "$ARGUMENTS" --json`, execute `/gsd-ui-phase`, then complete the registered checkpoint with verifiable output.
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
Fires only when `phase.has_ui_changes == true`.
|
|
16
|
+
|
|
17
|
+
## How to invoke
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-ui`
|
|
20
|
+
|
|
21
|
+
> The banner above (when present) means this invocation is REGISTERED with the engine (an intent marker) — not yet compliant: the steps below (prompt → spawn → checkpoint complete) resolve it, and a per-turn `<workflow-intent>` reminder persists until they run.
|
|
22
|
+
|
|
23
|
+
The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
|
|
24
|
+
an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
|
|
25
|
+
evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
|
|
26
|
+
{{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
|
|
27
|
+
|
|
28
|
+
Do NOT pipe to `harnessed run plan-ui` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
|
|
29
|
+
|
|
30
|
+
1. Bash: `harnessed prompt plan-ui --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
|
|
31
|
+
2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
|
|
32
|
+
- on return, write the subagent's final output to a file and run `harnessed checkpoint complete plan-ui --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
|
|
33
|
+
- if it blocks, run `harnessed checkpoint fail plan-ui --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
|
|
34
|
+
- respawn ONLY while none of those three has fired. Any one of them means stop: re-scope the subtask, fix the blocker, or escalate to the user. Never respawn past a stop directive.
|
|
35
|
+
3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
|
|
36
|
+
4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete plan-ui --result-file <path> --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
|
+
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-ui --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
|
+
|
|
39
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-ui
|
|
3
|
+
description: 在 plan-phase 前按条件运行 GSD ui-phase 设计契约。
|
|
4
|
+
trigger_phrases: ["plan ui", "gsd ui phase"]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# plan-ui workflow
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
运行 `harnessed prompt plan-ui --task "$ARGUMENTS" --json`,执行 `/gsd-ui-phase`,再用可验证输出完成已登记 checkpoint。
|
|
12
|
+
|
|
13
|
+
## Invocation
|
|
14
|
+
|
|
15
|
+
仅当 `phase.has_ui_changes == true` 时触发。
|
|
16
|
+
|
|
17
|
+
## 如何调用
|
|
18
|
+
|
|
19
|
+
!`harnessed checkpoint intent plan-ui`
|
|
20
|
+
|
|
21
|
+
> 上方 banner(如出现)表示本次调用已在引擎**登记**(intent 标记)——尚未合规:按下方步骤(prompt → spawn → checkpoint complete)完成即解除;在此之前每 turn 会持续注入 `<workflow-intent>` 提醒。
|
|
22
|
+
|
|
23
|
+
下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
|
|
24
|
+
freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
|
|
25
|
+
{{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
|
|
26
|
+
|
|
27
|
+
**不要** pipe 到 `harnessed run plan-ui` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
|
|
28
|
+
|
|
29
|
+
1. Bash: `harnessed prompt plan-ui --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
30
|
+
2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
|
|
31
|
+
- subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete plan-ui --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
|
|
32
|
+
- 若被拦下,跑 `harnessed checkpoint fail plan-ui --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
|
|
33
|
+
- **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
|
|
34
|
+
3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
|
|
35
|
+
4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete plan-ui --result-file <path> --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
|
+
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-ui --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
|
+
|
|
38
|
+
<!-- harnessed-generated:v4.12.0 -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
schema_version: harnessed.workflow.v3
|
|
2
|
+
workflow: plan-ui
|
|
3
|
+
description: GSD ui-phase design contract before ordinary phase planning.
|
|
4
|
+
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
5
|
+
tools_available: [gsd-ui-phase]
|
|
6
|
+
phases:
|
|
7
|
+
- id: 01-ui-phase
|
|
8
|
+
name: gsd-ui-phase
|
|
9
|
+
upstream: gsd
|
|
10
|
+
capability: '{{ capabilities.gsd-ui-phase.cmd }}'
|
|
11
|
+
model: sonnet
|
|
12
|
+
gate: judgments.stage-phase-gate.gsd-ui-phase.fires
|
|
@@ -30,6 +30,32 @@ schema_version: harnessed.role-prompts.v1
|
|
|
30
30
|
|
|
31
31
|
prompts:
|
|
32
32
|
|
|
33
|
+
harnessed-update:
|
|
34
|
+
primary_cap: ""
|
|
35
|
+
specialist: "Deterministic update coordinator"
|
|
36
|
+
responsibility: |
|
|
37
|
+
Run `harnessed update --all --dry-run --json` for a read-only preview.
|
|
38
|
+
Show the proposed changes and limits, then obtain explicit confirmation
|
|
39
|
+
through {{ host.ask_user }} before running `harnessed update --all --json`
|
|
40
|
+
exactly once. If delegated without confirmation, return
|
|
41
|
+
`STATUS: NEEDS_CLARIFICATION` so the main session can ask the user.
|
|
42
|
+
Display the deterministic results; never substitute agent judgement for
|
|
43
|
+
verification. Phase 79 handles failed, unsupported or retained reviewed
|
|
44
|
+
components: present a second repair proposal and require explicit confirmation bound
|
|
45
|
+
to its component ids before using --repair --yes --json.
|
|
46
|
+
checklist:
|
|
47
|
+
- "Read exactly one JSON object from stdout, including on nonzero exit; stderr is diagnostics. Validate schemaVersion=1, operation=update, mode, host and runtime; malformed or missing JSON means STOP."
|
|
48
|
+
- "Preview is not authorization: cancellation, silence or unavailable confirmation means STOP without mutation. Unsupported preview entries remain visible; error or failed preview components mean STOP."
|
|
49
|
+
- "Results: preserve status, components, warnings and error; show each id, status, before, target, after, reasonCode, verified and restartRequired. Unknown versions stay null, not current."
|
|
50
|
+
- "unsupported or retained means partial, never all-success: unsupported has no reviewed update path; retained means refresh failed but the previous installation still verifies. not-installed means left absent, not installed or updated."
|
|
51
|
+
- "Any restartRequired=true means STOP and ask the user to restart {{ host.native }} before further workflow work, even when the update completed. Do not continue in the old session."
|
|
52
|
+
- "handoff-failed, invalid-continuation, failed components, error or nonzero exit means STOP. Report that harnessed may have changed while closure did not complete; preserve evidence and do not retry."
|
|
53
|
+
- "Repair may invoke the selected host agent and run upstream installers or verification commands only after the second confirmation; it may modify only listed targets and never reads credentials, grants plugin or MCP trust, expands host roots, or touches unlisted components."
|
|
54
|
+
- "After repair, require agentRepair.verified=true from a deterministic verifier; never rewrite the original result or claim success from agent output."
|
|
55
|
+
- "STOP overrides generic invoke-loop respawn instructions. Never use checkpoint --force or claim COMPLETE to bypass a failed, partial or restart-blocked update."
|
|
56
|
+
severity: "complete / planned / partial / failed (partial is not all-success; restartRequired means STOP)"
|
|
57
|
+
description: "Preview, confirm and run a deterministic harnessed update; offer bounded repair only after a second confirmation."
|
|
58
|
+
|
|
33
59
|
# ============================================================================
|
|
34
60
|
# Super-master + 4 stage-master (orchestrators — short dispatcher prompts)
|
|
35
61
|
# ============================================================================
|
|
@@ -66,13 +92,11 @@ prompts:
|
|
|
66
92
|
is_master: true
|
|
67
93
|
specialist: "Stage 2 plan dispatcher"
|
|
68
94
|
responsibility: |
|
|
69
|
-
Drive
|
|
70
|
-
|
|
71
|
-
phase planning (`/plan-phase` — GSD plan-phase + planning-with-files
|
|
72
|
-
persistence).
|
|
95
|
+
Drive conditional architecture, spec, UI, security, and AI-integration
|
|
96
|
+
design contracts in order, then unconditional `/plan-phase`.
|
|
73
97
|
checklist: []
|
|
74
|
-
severity: "
|
|
75
|
-
description: "Stage 2 Plan master —
|
|
98
|
+
severity: "architecture? → spec? → ui? → secure? → ai-integration? → phase"
|
|
99
|
+
description: "Stage 2 Plan master — conditional design contracts followed by persisted phase planning."
|
|
76
100
|
|
|
77
101
|
task:
|
|
78
102
|
primary_cap: ""
|
|
@@ -248,6 +272,38 @@ prompts:
|
|
|
248
272
|
severity: "approved / approved-with-changes / blocked"
|
|
249
273
|
description: "Staff Engineer architecture review for complex changes (lock design before plan-phase)."
|
|
250
274
|
|
|
275
|
+
plan-spec:
|
|
276
|
+
primary_cap: "gsd-spec-phase"
|
|
277
|
+
specialist: "Specification contract planner"
|
|
278
|
+
responsibility: "Lock the SDD specification before ordinary phase planning."
|
|
279
|
+
checklist: ["Run `/gsd-spec-phase`", "Resolve blocking decisions", "Produce the spec artifact"]
|
|
280
|
+
severity: "ready / blocked"
|
|
281
|
+
description: "Conditional GSD spec-phase contract before plan-phase."
|
|
282
|
+
|
|
283
|
+
plan-ui:
|
|
284
|
+
primary_cap: "gsd-ui-phase"
|
|
285
|
+
specialist: "UI contract planner"
|
|
286
|
+
responsibility: "Lock the UI design contract before ordinary phase planning."
|
|
287
|
+
checklist: ["Run `/gsd-ui-phase`", "Lock layout and interaction contracts", "Produce the UI artifact"]
|
|
288
|
+
severity: "ready / blocked"
|
|
289
|
+
description: "Conditional GSD ui-phase contract before plan-phase."
|
|
290
|
+
|
|
291
|
+
plan-secure:
|
|
292
|
+
primary_cap: "gsd-secure-phase"
|
|
293
|
+
specialist: "Security contract planner"
|
|
294
|
+
responsibility: "Lock the threat model before ordinary phase planning."
|
|
295
|
+
checklist: ["Run `/gsd-secure-phase`", "Lock mitigations and trust boundaries", "Produce the security artifact"]
|
|
296
|
+
severity: "ready / blocked"
|
|
297
|
+
description: "Conditional GSD secure-phase contract before plan-phase."
|
|
298
|
+
|
|
299
|
+
plan-ai-integration:
|
|
300
|
+
primary_cap: "gsd-ai-integration-phase"
|
|
301
|
+
specialist: "AI integration contract planner"
|
|
302
|
+
responsibility: "Lock the AI-SPEC contract before ordinary phase planning."
|
|
303
|
+
checklist: ["Run `/gsd-ai-integration-phase`", "Lock evaluations and guardrails", "Produce the AI-SPEC artifact"]
|
|
304
|
+
severity: "ready / blocked"
|
|
305
|
+
description: "Conditional GSD ai-integration-phase contract before plan-phase."
|
|
306
|
+
|
|
251
307
|
plan-phase:
|
|
252
308
|
primary_cap: "gsd-plan-phase"
|
|
253
309
|
specialist: "Phase planner"
|
|
@@ -20,6 +20,30 @@ schema_version: harnessed.role-prompts.v1
|
|
|
20
20
|
|
|
21
21
|
prompts:
|
|
22
22
|
|
|
23
|
+
harnessed-update:
|
|
24
|
+
primary_cap: ""
|
|
25
|
+
specialist: "确定性更新协调者"
|
|
26
|
+
responsibility: |
|
|
27
|
+
运行 `harnessed update --all --dry-run --json` 获取只读 preview。
|
|
28
|
+
展示计划变更与限制,通过 {{ host.ask_user }} 获得用户明确确认后,
|
|
29
|
+
仅运行一次 `harnessed update --all --json`。
|
|
30
|
+
若被委派时尚无确认,返回 `STATUS: NEEDS_CLARIFICATION`,由主 session 询问用户。
|
|
31
|
+
展示确定性 results,不得以 agent 判断替代验证。Phase 79 负责 failed、unsupported 或 retained
|
|
32
|
+
的已审查组件:先展示第二份 repair proposal,再对其中的组件 id 获取明确确认后使用
|
|
33
|
+
--repair --yes --json。
|
|
34
|
+
checklist:
|
|
35
|
+
- "即使 exit 非零也读取 stdout 中唯一的 JSON 对象;stderr 仅为诊断。验证 schemaVersion=1、operation=update、mode、host 和 runtime;JSON 缺失或格式错误即 STOP。"
|
|
36
|
+
- "preview 不构成授权:取消、沉默或无法确认均 STOP,不得修改。unsupported 预览项必须展示;error 或 failed 预览组件即 STOP。"
|
|
37
|
+
- "results 保留 status、components、warnings 和 error;逐项展示 id、status、before、target、after、reasonCode、verified 和 restartRequired。未知版本保留 null,不可称为 current。"
|
|
38
|
+
- "unsupported 或 retained 表示 partial,不是全部成功:unsupported 没有经审查的更新路径;retained 表示刷新失败但旧安装仍通过验证。not-installed 表示保持缺失,不是已安装或已更新。"
|
|
39
|
+
- "任一 restartRequired=true 均 STOP,要求用户重启 {{ host.native }} 后再进行其他 workflow 工作,即使更新已经完成也不得在旧 session 继续。"
|
|
40
|
+
- "handoff-failed、invalid-continuation、failed 组件、error 或 exit 非零均 STOP。说明 harnessed 可能已经变更,但更新闭环尚未完成;保留证据,不得重试。"
|
|
41
|
+
- "第二次确认后 repair 才能启动选定的宿主 agent,执行上游安装器或验证命令;只允许修改列出的目标,不得读取凭据、授予 plugin 或 MCP trust、扩大 host root 或触碰列表之外的组件。"
|
|
42
|
+
- "repair 完成后必须由确定性 verifier 产生 agentRepair.verified=true;不得改写原结果或根据 agent 输出声称成功。"
|
|
43
|
+
- "STOP 优先于通用 invoke-loop 的 respawn 指令。不得使用 checkpoint --force 或宣称 COMPLETE 绕过 failed、partial 或 restart 阻塞。"
|
|
44
|
+
severity: "complete / planned / partial / failed (partial 不等于全部成功;restartRequired 必须 STOP)"
|
|
45
|
+
description: "预览、确认并执行确定性 harnessed 更新;仅在第二次确认后提供有边界的 repair。"
|
|
46
|
+
|
|
23
47
|
# ============================================================================
|
|
24
48
|
# Super-master + 4 stage-master (orchestrators — short dispatcher prompts)
|
|
25
49
|
# ============================================================================
|
|
@@ -54,13 +78,11 @@ prompts:
|
|
|
54
78
|
is_master: true
|
|
55
79
|
specialist: "Stage 2 plan 分发器"
|
|
56
80
|
responsibility: |
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
phase 规划(`/plan-phase` —— GSD plan-phase + planning-with-files
|
|
60
|
-
持久化)。
|
|
81
|
+
按顺序执行条件架构、spec、UI、安全和 AI integration 设计契约,
|
|
82
|
+
最后无条件执行 `/plan-phase`。
|
|
61
83
|
checklist: []
|
|
62
|
-
severity: "
|
|
63
|
-
description: "Stage 2 Plan master —
|
|
84
|
+
severity: "architecture? → spec? → ui? → secure? → ai-integration? → phase"
|
|
85
|
+
description: "Stage 2 Plan master — 条件设计契约后执行持久化 phase 规划。"
|
|
64
86
|
|
|
65
87
|
task:
|
|
66
88
|
primary_cap: ""
|
|
@@ -231,6 +253,38 @@ prompts:
|
|
|
231
253
|
severity: "approved / approved-with-changes / blocked"
|
|
232
254
|
description: "针对复杂改动的 Staff Engineer 架构审查(在 plan-phase 前锁定设计)。"
|
|
233
255
|
|
|
256
|
+
plan-spec:
|
|
257
|
+
primary_cap: "gsd-spec-phase"
|
|
258
|
+
specialist: "Specification contract planner"
|
|
259
|
+
responsibility: "在常规 phase 规划前锁定 SDD specification。"
|
|
260
|
+
checklist: ["运行 `/gsd-spec-phase`", "解决阻塞决策", "产出 spec artifact"]
|
|
261
|
+
severity: "ready / blocked"
|
|
262
|
+
description: "plan-phase 前的条件 GSD spec-phase 契约。"
|
|
263
|
+
|
|
264
|
+
plan-ui:
|
|
265
|
+
primary_cap: "gsd-ui-phase"
|
|
266
|
+
specialist: "UI contract planner"
|
|
267
|
+
responsibility: "在常规 phase 规划前锁定 UI 设计契约。"
|
|
268
|
+
checklist: ["运行 `/gsd-ui-phase`", "锁定 layout 与 interaction contract", "产出 UI artifact"]
|
|
269
|
+
severity: "ready / blocked"
|
|
270
|
+
description: "plan-phase 前的条件 GSD ui-phase 契约。"
|
|
271
|
+
|
|
272
|
+
plan-secure:
|
|
273
|
+
primary_cap: "gsd-secure-phase"
|
|
274
|
+
specialist: "Security contract planner"
|
|
275
|
+
responsibility: "在常规 phase 规划前锁定 threat model。"
|
|
276
|
+
checklist: ["运行 `/gsd-secure-phase`", "锁定 mitigation 与 trust boundary", "产出 security artifact"]
|
|
277
|
+
severity: "ready / blocked"
|
|
278
|
+
description: "plan-phase 前的条件 GSD secure-phase 契约。"
|
|
279
|
+
|
|
280
|
+
plan-ai-integration:
|
|
281
|
+
primary_cap: "gsd-ai-integration-phase"
|
|
282
|
+
specialist: "AI integration contract planner"
|
|
283
|
+
responsibility: "在常规 phase 规划前锁定 AI-SPEC contract。"
|
|
284
|
+
checklist: ["运行 `/gsd-ai-integration-phase`", "锁定 evaluation 与 guardrail", "产出 AI-SPEC artifact"]
|
|
285
|
+
severity: "ready / blocked"
|
|
286
|
+
description: "plan-phase 前的条件 GSD ai-integration-phase 契约。"
|
|
287
|
+
|
|
234
288
|
plan-phase:
|
|
235
289
|
primary_cap: "gsd-plan-phase"
|
|
236
290
|
specialist: "Phase 规划者"
|
|
@@ -6,7 +6,8 @@ description: |
|
|
|
6
6
|
publish.yml CI (tag push 触发)。schema_version: harnessed.workflow.v3 with delegates_to
|
|
7
7
|
(1 sub: preflight serial order 1) + disciplines_applied (6 default) + tools_available
|
|
8
8
|
(release-preflight + ship + planning-with-files)。Triggered by `/ship` (bare per ADR 0030)
|
|
9
|
-
or `harnessed ship` after `harnessed verify`. Deploy boundary =
|
|
9
|
+
or headless CLI `harnessed run ship` after `harnessed run verify`. Deploy boundary =
|
|
10
|
+
TAG-READY (no push/publish/tag).
|
|
10
11
|
trigger_phrases:
|
|
11
12
|
- "ship"
|
|
12
13
|
- "发布阶段"
|
|
@@ -6,7 +6,8 @@ description: |
|
|
|
6
6
|
publish.yml CI(tag push 触发)。schema_version: harnessed.workflow.v3 with delegates_to
|
|
7
7
|
(1 sub: preflight serial order 1) + disciplines_applied (6 default) + tools_available
|
|
8
8
|
(release-preflight + ship + planning-with-files)。Triggered by `/ship` (bare per ADR 0030)
|
|
9
|
-
or `harnessed ship` after `harnessed verify`. Deploy boundary =
|
|
9
|
+
or headless CLI `harnessed run ship` after `harnessed run verify`. Deploy boundary =
|
|
10
|
+
TAG-READY (no push/publish/tag).
|
|
10
11
|
trigger_phrases:
|
|
11
12
|
- "ship"
|
|
12
13
|
- "发布阶段"
|
|
@@ -21,11 +21,23 @@ ready to tag a release:
|
|
|
21
21
|
|
|
22
22
|
| check | passes when |
|
|
23
23
|
| ----- | ----------- |
|
|
24
|
-
| `changelog` | `## [Unreleased]` has entries
|
|
25
|
-
| `version` |
|
|
24
|
+
| `changelog` | `## [Unreleased]` has entries, or a section exists for the valid target version |
|
|
25
|
+
| `version` | A static valid SemVer is discovered, or supplied with `--release-version <semver>` |
|
|
26
26
|
| `git-clean` | the working tree has no uncommitted changes |
|
|
27
27
|
| `tag-absent` | a `v<version>` tag does NOT already exist |
|
|
28
28
|
|
|
29
|
+
Version sources are `package.json.version`, `pyproject.toml [project].version`,
|
|
30
|
+
`pyproject.toml [tool.poetry].version`, and `Cargo.toml [package].version`.
|
|
31
|
+
`harnessed release-preflight --release-version <semver>` takes highest priority;
|
|
32
|
+
an invalid explicit value fails without falling back to manifests. Matching discovered
|
|
33
|
+
versions are accepted. Conflicting valid versions fail closed and require an explicit
|
|
34
|
+
override. No target version is inferred from git tags. Missing, dynamic,
|
|
35
|
+
workspace-inherited or malformed versions cannot supply a static target. If no valid
|
|
36
|
+
target can be determined, `version` fails and `tag-absent` is warn/not-run, never a check
|
|
37
|
+
against the literal tag `v`. Version-specific CHANGELOG sections are checked only for
|
|
38
|
+
a valid target; `[Unreleased]` remains independent. Root `harnessed --version` still
|
|
39
|
+
prints the harnessed CLI version, not the target release version.
|
|
40
|
+
|
|
29
41
|
## Process
|
|
30
42
|
|
|
31
43
|
1. Run `harnessed release-preflight`.
|
|
@@ -20,11 +20,21 @@ trigger_phrases:
|
|
|
20
20
|
|
|
21
21
|
| 检查项 | 通过条件 |
|
|
22
22
|
| ----- | ----------- |
|
|
23
|
-
| `changelog` | `## [Unreleased]`
|
|
24
|
-
| `version` |
|
|
23
|
+
| `changelog` | `## [Unreleased]` 下有实质性内容,或存在有效目标版本对应的章节 |
|
|
24
|
+
| `version` | 发现静态有效的 SemVer,或通过 `--release-version <semver>` 显式指定 |
|
|
25
25
|
| `git-clean` | 工作区无未提交的改动 |
|
|
26
26
|
| `tag-absent` | `v<version>` tag 尚不存在 |
|
|
27
27
|
|
|
28
|
+
版本来源为 `package.json.version`、`pyproject.toml [project].version`、
|
|
29
|
+
`pyproject.toml [tool.poetry].version` 和 `Cargo.toml [package].version`。
|
|
30
|
+
`harnessed release-preflight --release-version <semver>` 优先级最高;显式值无效时
|
|
31
|
+
直接失败,不回退到 manifest。发现的有效版本相同则允许,不同则 fail closed,必须
|
|
32
|
+
显式 override。不从 git tag 推断目标版本。缺失、动态、workspace 继承或损坏的版本
|
|
33
|
+
不能提供静态目标。如果无法确定有效目标,`version` 失败,`tag-absent` 标记为
|
|
34
|
+
warn/not-run,绝不检查字面量 tag `v`。只有有效目标版本才检查 CHANGELOG 的对应章节,
|
|
35
|
+
`[Unreleased]` 路径保持独立。根 `harnessed --version` 仍输出 harnessed CLI 自身版本,
|
|
36
|
+
不是目标发布版本。
|
|
37
|
+
|
|
28
38
|
## Process
|
|
29
39
|
|
|
30
40
|
1. 运行 `harnessed release-preflight`。
|
|
@@ -13,9 +13,15 @@ schema_version: harnessed.workflow.v3
|
|
|
13
13
|
workflow: ship-preflight
|
|
14
14
|
description: |
|
|
15
15
|
Stage ⑤.a release-preflight gate — runs `harnessed release-preflight` (read-only:
|
|
16
|
-
CHANGELOG [Unreleased] non-empty
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
CHANGELOG [Unreleased] non-empty or valid version section + static SemVer from
|
|
17
|
+
package.json.version, pyproject.toml [project].version / [tool.poetry].version,
|
|
18
|
+
or Cargo.toml [package].version + git working tree clean + v<version> tag absent).
|
|
19
|
+
Use `harnessed release-preflight --release-version <semver>` to override manifests.
|
|
20
|
+
Equal discovered versions are accepted; conflicting valid versions fail closed and
|
|
21
|
+
require an explicit override. Missing, dynamic, workspace-inherited or malformed
|
|
22
|
+
versions fail when no static valid target can be determined; tag-absent is warn/not-run.
|
|
23
|
+
Git tags never determine the target version. A failing gate BLOCKS shipping.
|
|
24
|
+
Nothing is pushed, published, or tagged here.
|
|
19
25
|
|
|
20
26
|
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
21
27
|
tools_available: [release-preflight]
|