harnessed 5.0.12 → 5.0.13

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README-en.md +1 -0
  3. package/README-zh.md +1 -0
  4. package/README.md +1 -0
  5. package/bin/harnessed-check-docs.mjs +15 -0
  6. package/bin/harnessed-update-reminder-worker.mjs +2598 -134
  7. package/bin/harnessed-update-reminder.mjs +636 -61
  8. package/dist/cli.mjs +1524 -589
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/index.mjs +1 -1
  11. package/dist/index.mjs.map +1 -1
  12. package/messages/en.json +15 -1
  13. package/messages/zh-Hans.json +15 -1
  14. package/package.json +1 -1
  15. package/workflows/auto/SKILL.md +10 -18
  16. package/workflows/auto/SKILL.zh-Hans.md +8 -18
  17. package/workflows/discuss/auto/SKILL.md +4 -7
  18. package/workflows/discuss/auto/SKILL.zh-Hans.md +2 -7
  19. package/workflows/discuss/phase/SKILL.md +4 -7
  20. package/workflows/discuss/phase/SKILL.zh-Hans.md +2 -7
  21. package/workflows/discuss/strategic/SKILL.md +4 -8
  22. package/workflows/discuss/strategic/SKILL.zh-Hans.md +2 -8
  23. package/workflows/discuss/subtask/SKILL.md +4 -7
  24. package/workflows/discuss/subtask/SKILL.zh-Hans.md +2 -7
  25. package/workflows/harnessed-update/SKILL.md +9 -8
  26. package/workflows/harnessed-update/SKILL.zh-Hans.md +7 -8
  27. package/workflows/host-primitives.yaml +8 -8
  28. package/workflows/host-primitives.zh-Hans.yaml +8 -8
  29. package/workflows/plan/ai-integration/SKILL.md +7 -7
  30. package/workflows/plan/ai-integration/SKILL.zh-Hans.md +7 -7
  31. package/workflows/plan/architecture/SKILL.md +7 -13
  32. package/workflows/plan/architecture/SKILL.zh-Hans.md +7 -13
  33. package/workflows/plan/auto/SKILL.md +8 -14
  34. package/workflows/plan/auto/SKILL.zh-Hans.md +8 -14
  35. package/workflows/plan/phase/SKILL.md +7 -13
  36. package/workflows/plan/phase/SKILL.zh-Hans.md +7 -13
  37. package/workflows/plan/secure/SKILL.md +7 -7
  38. package/workflows/plan/secure/SKILL.zh-Hans.md +7 -7
  39. package/workflows/plan/spec/SKILL.md +7 -7
  40. package/workflows/plan/spec/SKILL.zh-Hans.md +7 -7
  41. package/workflows/plan/ui/SKILL.md +7 -7
  42. package/workflows/plan/ui/SKILL.zh-Hans.md +7 -7
  43. package/workflows/research/SKILL.md +7 -7
  44. package/workflows/research/SKILL.zh-Hans.md +7 -7
  45. package/workflows/retro/SKILL.md +8 -15
  46. package/workflows/retro/SKILL.zh-Hans.md +7 -15
  47. package/workflows/ship/auto/SKILL.md +8 -14
  48. package/workflows/ship/auto/SKILL.zh-Hans.md +8 -14
  49. package/workflows/ship/preflight/SKILL.md +7 -9
  50. package/workflows/ship/preflight/SKILL.zh-Hans.md +7 -9
  51. package/workflows/task/auto/SKILL.md +8 -15
  52. package/workflows/task/auto/SKILL.zh-Hans.md +8 -15
  53. package/workflows/task/clarify/SKILL.md +2 -10
  54. package/workflows/task/clarify/SKILL.zh-Hans.md +2 -10
  55. package/workflows/task/code/SKILL.md +7 -15
  56. package/workflows/task/code/SKILL.zh-Hans.md +7 -15
  57. package/workflows/task/deliver/SKILL.md +7 -17
  58. package/workflows/task/deliver/SKILL.zh-Hans.md +7 -17
  59. package/workflows/task/test/SKILL.md +7 -14
  60. package/workflows/task/test/SKILL.zh-Hans.md +7 -14
  61. package/workflows/verify/auto/SKILL.md +9 -14
  62. package/workflows/verify/auto/SKILL.zh-Hans.md +9 -14
  63. package/workflows/verify/code-review/SKILL.md +8 -13
  64. package/workflows/verify/code-review/SKILL.zh-Hans.md +8 -13
  65. package/workflows/verify/design/SKILL.md +8 -12
  66. package/workflows/verify/design/SKILL.zh-Hans.md +7 -12
  67. package/workflows/verify/eval-review/SKILL.md +8 -12
  68. package/workflows/verify/eval-review/SKILL.zh-Hans.md +7 -12
  69. package/workflows/verify/multispec/SKILL.md +8 -15
  70. package/workflows/verify/multispec/SKILL.zh-Hans.md +7 -15
  71. package/workflows/verify/paranoid/SKILL.md +7 -14
  72. package/workflows/verify/paranoid/SKILL.zh-Hans.md +7 -14
  73. package/workflows/verify/progress/SKILL.md +8 -13
  74. package/workflows/verify/progress/SKILL.zh-Hans.md +8 -13
  75. package/workflows/verify/qa/SKILL.md +7 -13
  76. package/workflows/verify/qa/SKILL.zh-Hans.md +7 -13
  77. package/workflows/verify/second-opinion/SKILL.md +8 -12
  78. package/workflows/verify/second-opinion/SKILL.zh-Hans.md +7 -12
  79. package/workflows/verify/security/SKILL.md +8 -12
  80. package/workflows/verify/security/SKILL.zh-Hans.md +7 -12
  81. package/workflows/verify/simplify/SKILL.md +8 -12
  82. package/workflows/verify/simplify/SKILL.zh-Hans.md +7 -12
  83. package/workflows/verify/validate-phase/SKILL.md +8 -12
  84. package/workflows/verify/validate-phase/SKILL.zh-Hans.md +7 -12
@@ -1,12 +1,7 @@
1
1
  ---
2
2
  name: verify-design
3
3
  description: |
4
- Stage ④.f verify 子工作流 — gstack /design-review 设计系统一致性 + AI 审美问题识别
5
- (has_design_changes 触发, 可选 conditional; bundled verify-stage optional /design-review step).
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (gstack-design-review + ui-ux-pro-max + design-taste-frontend) + 1 phase (gate ref has_design_changes
8
- conditional)。Triggered by headless CLI `harnessed run verify-design` or slash
9
- command `/verify-design` after `harnessed setup`.
4
+ 可选:改动涉及设计时,用 gstack /design-review 做设计系统一致性与 AI 审美审查。
10
5
  trigger_phrases:
11
6
  - "verify design"
12
7
  - "设计审查"
@@ -72,16 +67,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
72
67
 
73
68
  **不要** pipe 到 `harnessed run verify-design` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
74
69
 
75
- 1. Bash: `harnessed prompt verify-design --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
76
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
77
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-design --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
70
+ 1. Bash: `harnessed prompt verify-design --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
71
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
72
+ - 闸门是 `harnessed checkpoint complete verify-design --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
78
73
  - 若被拦下,跑 `harnessed checkpoint fail verify-design --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
79
74
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
80
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
81
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-design --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`),不是静默放行。
75
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
76
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-design --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
82
77
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-design --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
83
78
 
84
- <!-- harnessed-generated:v4.12.0 -->
79
+ <!-- harnessed-generated:v4.13.0 -->
85
80
 
86
81
  ## 参考资料
87
82
 
@@ -1,12 +1,8 @@
1
1
  ---
2
2
  name: verify-eval-review
3
3
  description: |
4
- Stage ④ verify sub-workflow — GSD /gsd-eval-review AI phase eval 覆盖审计 (has_ai_phase 触发,
5
- 可选 conditional; pairs with plan 侧 gsd-ai-integration-phase AI-SPEC eval strategy).
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (gsd-eval-review) + 1 phase (gate ref has_ai_phase conditional)。
8
- Triggered by slash command
9
- `/verify-eval-review` after `harnessed setup`.
4
+ Optional: run an AI-phase evaluation coverage audit with GSD /gsd-eval-review when the
5
+ phase ships an AI feature.
10
6
  trigger_phrases:
11
7
  - "verify eval review"
12
8
  - "eval 覆盖审计"
@@ -55,16 +51,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
55
51
 
56
52
  Do NOT pipe to `harnessed run verify-eval-review` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
57
53
 
58
- 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
59
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
60
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-eval-review --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
54
+ 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
55
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
56
+ - the gate is `harnessed checkpoint complete verify-eval-review --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
61
57
  - if it blocks, run `harnessed checkpoint fail verify-eval-review --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
62
58
  - 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.
63
- 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.
64
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-eval-review --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.
59
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
60
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-eval-review --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
65
61
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-eval-review --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.
66
62
 
67
- <!-- harnessed-generated:v4.12.0 -->
63
+ <!-- harnessed-generated:v4.13.0 -->
68
64
 
69
65
  ## References
70
66
 
@@ -1,12 +1,7 @@
1
1
  ---
2
2
  name: verify-eval-review
3
3
  description: |
4
- Stage ④ 验证子工作流 — GSD /gsd-eval-review AI phase eval 覆盖审计 (has_ai_phase 触发,
5
- 可选 conditional; 与 plan 侧 gsd-ai-integration-phase AI-SPEC eval strategy 配对).
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (gsd-eval-review) + 1 phase (gate ref has_ai_phase conditional)。
8
- Triggered by slash command
9
- `/verify-eval-review` after `harnessed setup`.
4
+ 可选:phase 交付 AI 能力时,用 GSD /gsd-eval-review 审计 eval 覆盖情况。
10
5
  trigger_phrases:
11
6
  - "verify eval review"
12
7
  - "eval 覆盖审计"
@@ -54,16 +49,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
54
49
 
55
50
  **不要** pipe 到 `harnessed run verify-eval-review` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
56
51
 
57
- 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
58
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
59
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-eval-review --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
52
+ 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
53
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
54
+ - 闸门是 `harnessed checkpoint complete verify-eval-review --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
60
55
  - 若被拦下,跑 `harnessed checkpoint fail verify-eval-review --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
61
56
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
62
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
63
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-eval-review --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`),不是静默放行。
57
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
58
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-eval-review --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
64
59
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-eval-review --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
65
60
 
66
- <!-- harnessed-generated:v4.12.0 -->
61
+ <!-- harnessed-generated:v4.13.0 -->
67
62
 
68
63
  ## 参考资料
69
64
 
@@ -1,15 +1,8 @@
1
1
  ---
2
2
  name: verify-multispec
3
3
  description: |
4
- Stage ④.h verify sub-workflow — 4-specialist {{ host.team.singular }} Pattern C 多维度审查 (关键发布 /
5
- 大重构 PR 升级, code-review + gstack-review + gstack-cso + gstack-qa 4 {{ host.teammate }} 互相
6
- {{ host.send_message }} 质询, NOT fire-and-forget subagent fan-out; bundled {{ host.team.attributive }} Pattern C
7
- routing). Cleanup mandatory: {{ host.teams_cleanup_note.shutdown_phrase }} (bundled cleanup discipline).
8
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
- (agent-teams 3 + 4 specialist capability) + 2 phase (01-team-create on critical-release
10
- invoke / 02-team-cleanup mandatory shutdown)。
11
- Triggered by slash command
12
- `/verify-multispec` after `harnessed setup`.
4
+ Optional: run a four-specialist cross-review for a critical release, where the specialists
5
+ question each other's findings instead of reporting independently.
13
6
  trigger_phrases:
14
7
  - "verify multispec"
15
8
  - "4-specialist Agent Team"
@@ -77,16 +70,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
77
70
 
78
71
  Do NOT pipe to `harnessed run verify-multispec` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
79
72
 
80
- 1. Bash: `harnessed prompt verify-multispec --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
81
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
82
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-multispec --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
73
+ 1. Bash: `harnessed prompt verify-multispec --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
74
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
75
+ - the gate is `harnessed checkpoint complete verify-multispec --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
83
76
  - if it blocks, run `harnessed checkpoint fail verify-multispec --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
84
77
  - 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.
85
- 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.
86
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-multispec --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.
78
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
79
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-multispec --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
87
80
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-multispec --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.
88
81
 
89
- <!-- harnessed-generated:v4.12.0 -->
82
+ <!-- harnessed-generated:v4.13.0 -->
90
83
 
91
84
  ## References
92
85
 
@@ -1,15 +1,7 @@
1
1
  ---
2
2
  name: verify-multispec
3
3
  description: |
4
- Stage ④.h verify 子工作流 — 4-specialist {{ host.team.singular }} Pattern C 多维度审查(关键发布 /
5
- 大重构 PR 升级,code-review + gstack-review + gstack-cso + gstack-qa 4 {{ host.teammate }} 互相
6
- {{ host.send_message }} 质询,NOT fire-and-forget subagent fan-out;bundled {{ host.team.attributive }} Pattern C
7
- routing)。Cleanup 必跑:{{ host.teams_cleanup_note.shutdown_phrase }}(bundled cleanup discipline)。
8
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
- (agent-teams 3 + 4 specialist capability) + 2 phase (01-team-create on critical-release
10
- invoke / 02-team-cleanup mandatory shutdown)。
11
- Triggered by slash command
12
- `/verify-multispec` after `harnessed setup`.
4
+ 可选:关键发布时开四专家交叉审查,让各专家互相质询发现的问题,而不是各自独立出报告。
13
5
  trigger_phrases:
14
6
  - "verify multispec"
15
7
  - "4-specialist Agent Team"
@@ -75,16 +67,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
75
67
 
76
68
  **不要** pipe 到 `harnessed run verify-multispec` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
77
69
 
78
- 1. Bash: `harnessed prompt verify-multispec --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
79
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
80
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-multispec --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
70
+ 1. Bash: `harnessed prompt verify-multispec --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
71
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
72
+ - 闸门是 `harnessed checkpoint complete verify-multispec --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
81
73
  - 若被拦下,跑 `harnessed checkpoint fail verify-multispec --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
82
74
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
83
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
84
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-multispec --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`),不是静默放行。
75
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
76
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-multispec --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
85
77
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-multispec --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
86
78
 
87
- <!-- harnessed-generated:v4.12.0 -->
79
+ <!-- harnessed-generated:v4.13.0 -->
88
80
 
89
81
  ## 参考资料
90
82
 
@@ -1,14 +1,7 @@
1
1
  ---
2
2
  name: verify-paranoid
3
3
  description: |
4
- Stage ④.c verify sub-workflow — gstack /review Paranoid Staff Engineer 关键模块 PR 前强制
5
- (bundled gstack governance gate — mandatory before critical-module PR)。Gate:
6
- judgments.stage-routing.verify-paranoid-critical.fires (phase.is_critical_module == true) —
7
- 默认 critical fire only; 非关键模块 skip。
8
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
- (gstack-review) + 1 phase (gate ref is_critical_module conditional)。
10
- Triggered by slash command
11
- `/verify-paranoid` after `harnessed setup`.
4
+ Run the gstack Paranoid Staff Engineer review before a critical-module PR.
12
5
  trigger_phrases:
13
6
  - "verify paranoid"
14
7
  - "paranoid staff engineer review"
@@ -63,16 +56,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
63
56
 
64
57
  Do NOT pipe to `harnessed run verify-paranoid` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
65
58
 
66
- 1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
67
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
68
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-paranoid --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
59
+ 1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
60
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
61
+ - the gate is `harnessed checkpoint complete verify-paranoid --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
69
62
  - if it blocks, run `harnessed checkpoint fail verify-paranoid --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
70
63
  - 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.
71
- 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.
72
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-paranoid --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.
64
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
65
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-paranoid --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
73
66
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-paranoid --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.
74
67
 
75
- <!-- harnessed-generated:v4.12.0 -->
68
+ <!-- harnessed-generated:v4.13.0 -->
76
69
 
77
70
  ## References
78
71
 
@@ -1,14 +1,7 @@
1
1
  ---
2
2
  name: verify-paranoid
3
3
  description: |
4
- Stage ④.c verify 子工作流 — gstack /review Paranoid Staff Engineer 关键模块 PR 前强制
5
- (bundled gstack governance gate — mandatory before critical-module PR)。Gate:
6
- judgments.stage-routing.verify-paranoid-critical.fires (phase.is_critical_module == true) —
7
- 默认 critical fire only;非关键模块 skip。
8
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
- (gstack-review) + 1 phase (gate ref is_critical_module conditional)。
10
- Triggered by slash command
11
- `/verify-paranoid` after `harnessed setup`.
4
+ 关键模块 PR 合并前,跑 gstack 的 Paranoid Staff Engineer 审查。
12
5
  trigger_phrases:
13
6
  - "verify paranoid"
14
7
  - "paranoid staff engineer review"
@@ -62,16 +55,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
62
55
 
63
56
  **不要** pipe 到 `harnessed run verify-paranoid` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
64
57
 
65
- 1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
66
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
67
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-paranoid --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
58
+ 1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
59
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
60
+ - 闸门是 `harnessed checkpoint complete verify-paranoid --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
68
61
  - 若被拦下,跑 `harnessed checkpoint fail verify-paranoid --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
69
62
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
70
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
71
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-paranoid --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`),不是静默放行。
63
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
64
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-paranoid --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
72
65
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-paranoid --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
73
66
 
74
- <!-- harnessed-generated:v4.12.0 -->
67
+ <!-- harnessed-generated:v4.13.0 -->
75
68
 
76
69
  ## 参考资料
77
70
 
@@ -1,13 +1,8 @@
1
1
  ---
2
2
  name: verify-progress
3
3
  description: |
4
- Stage ④.a verify sub-workflow — gsd-verify-work + gsd-progress 必跑串行 (verify-work 起点)
5
- + planning-with-files progress.md 持久化 (bundled verify-stage cadence — mandatory serial:
6
- gsd-verify-work UAT-driven acceptance + gsd-progress 状态同步 顺序不可调换)。
7
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
8
- (gsd-verify-work + gsd-progress + planning-with-files) + 3 phases (serial 01→02 + persist
9
- progress.md sink)。Triggered by headless CLI `harnessed run verify-progress` or
10
- slash command `/verify-progress` after `harnessed setup`.
4
+ Verify the work against its acceptance criteria, then sync the roadmap state and the
5
+ planning progress file. Run it first in the Verify stage.
11
6
  trigger_phrases:
12
7
  - "verify progress"
13
8
  - "进度同步"
@@ -59,16 +54,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
59
54
 
60
55
  Do NOT pipe to `harnessed run verify-progress` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
61
56
 
62
- 1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
63
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
64
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-progress --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
57
+ 1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
58
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
59
+ - the gate is `harnessed checkpoint complete verify-progress --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
65
60
  - if it blocks, run `harnessed checkpoint fail verify-progress --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
66
61
  - 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.
67
- 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.
68
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-progress --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.
62
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
63
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-progress --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
69
64
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-progress --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.
70
65
 
71
- <!-- harnessed-generated:v4.12.0 -->
66
+ <!-- harnessed-generated:v4.13.0 -->
72
67
 
73
68
  ## References
74
69
 
@@ -1,13 +1,8 @@
1
1
  ---
2
2
  name: verify-progress
3
3
  description: |
4
- Stage ④.a verify 子工作流 — gsd-verify-work + gsd-progress 必跑串行(verify-work 起点)
5
- + planning-with-files progress.md 持久化(bundled verify-stage cadence — mandatory serial:
6
- gsd-verify-work UAT-driven acceptance + gsd-progress 状态同步,顺序不可调换)。
7
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
8
- (gsd-verify-work + gsd-progress + planning-with-files) + 3 phases (serial 01→02 + persist
9
- progress.md sink)。Triggered by headless CLI `harnessed run verify-progress` or
10
- slash command `/verify-progress` after `harnessed setup`.
4
+ 先按验收标准核对工作成果,再同步 ROADMAP 状态与 planning 进度文件。
5
+ Verify 阶段的第一个必跑步骤。
11
6
  trigger_phrases:
12
7
  - "verify progress"
13
8
  - "进度同步"
@@ -57,16 +52,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
57
52
 
58
53
  **不要** pipe 到 `harnessed run verify-progress` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
59
54
 
60
- 1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
61
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
62
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-progress --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
55
+ 1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
56
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
57
+ - 闸门是 `harnessed checkpoint complete verify-progress --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
63
58
  - 若被拦下,跑 `harnessed checkpoint fail verify-progress --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
64
59
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
65
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
66
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-progress --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`),不是静默放行。
60
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
61
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-progress --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
67
62
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-progress --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
68
63
 
69
- <!-- harnessed-generated:v4.12.0 -->
64
+ <!-- harnessed-generated:v4.13.0 -->
70
65
 
71
66
  ## 参考资料
72
67
 
@@ -1,13 +1,7 @@
1
1
  ---
2
2
  name: verify-qa
3
3
  description: |
4
- Stage ④.d verify sub-workflow — gstack /qa 端到端 QA 验收 (has_ui_changes 触发, 可选 conditional;
5
- bundled verify-stage optional /qa step).
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (gstack-qa + browse + playwright-cli + playwright-test + webapp-testing + chrome-devtools-mcp)
8
- + 5 phase (01-qa gate ref has_ui_changes conditional + 4 条 web-testing-routing lane)。
9
- Triggered by slash command
10
- `/verify-qa` after `harnessed setup`.
4
+ Optional: run end-to-end QA with gstack /qa when the change touches the UI.
11
5
  trigger_phrases:
12
6
  - "verify qa"
13
7
  - "端到端 QA"
@@ -91,16 +85,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
91
85
 
92
86
  Do NOT pipe to `harnessed run verify-qa` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
93
87
 
94
- 1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
95
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
96
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-qa --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
88
+ 1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
89
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
90
+ - the gate is `harnessed checkpoint complete verify-qa --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
97
91
  - if it blocks, run `harnessed checkpoint fail verify-qa --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
98
92
  - 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.
99
- 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.
100
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-qa --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.
93
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
94
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-qa --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
101
95
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-qa --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.
102
96
 
103
- <!-- harnessed-generated:v4.12.0 -->
97
+ <!-- harnessed-generated:v4.13.0 -->
104
98
 
105
99
  ## References
106
100
 
@@ -1,13 +1,7 @@
1
1
  ---
2
2
  name: verify-qa
3
3
  description: |
4
- Stage ④.d 验证子工作流 — gstack /qa 端到端 QA 验收 (has_ui_changes 触发, 可选 conditional;
5
- 捆绑 verify 阶段可选 /qa 步骤).
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (gstack-qa + browse + playwright-cli + playwright-test + webapp-testing + chrome-devtools-mcp)
8
- + 5 phase (01-qa gate ref has_ui_changes conditional + 4 条 web-testing-routing lane)。
9
- Triggered by slash command
10
- `/verify-qa` after `harnessed setup`.
4
+ 可选:改动涉及 UI 时,用 gstack /qa 跑端到端验收。
11
5
  trigger_phrases:
12
6
  - "verify qa"
13
7
  - "端到端 QA"
@@ -90,16 +84,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
90
84
 
91
85
  **不要** pipe 到 `harnessed run verify-qa` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
92
86
 
93
- 1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
94
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
95
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-qa --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
87
+ 1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
88
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
89
+ - 闸门是 `harnessed checkpoint complete verify-qa --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
96
90
  - 若被拦下,跑 `harnessed checkpoint fail verify-qa --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
97
91
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
98
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
99
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-qa --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`),不是静默放行。
92
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
93
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-qa --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
100
94
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-qa --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
101
95
 
102
- <!-- harnessed-generated:v4.12.0 -->
96
+ <!-- harnessed-generated:v4.13.0 -->
103
97
 
104
98
  ## 参考资料
105
99
 
@@ -1,12 +1,8 @@
1
1
  ---
2
2
  name: verify-second-opinion
3
3
  description: |
4
- Stage ④ verify sub-workflow — 跨模型第二意见 (cross-AI peer review), fired only when this
5
- release-in-progress touched the ORCHESTRATION SURFACE.
6
- schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
- (codex) + 1 phase (gate ref requires_second_opinion, mechanically derived).
8
- Triggered by slash command
9
- `/verify-second-opinion` after `harnessed setup`.
4
+ Optional: ask a second AI model for a peer review when the change touches the
5
+ orchestration contract itself.
10
6
  trigger_phrases:
11
7
  - "verify second opinion"
12
8
  - "cross model review"
@@ -68,16 +64,16 @@ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subag
68
64
 
69
65
  Do NOT pipe to `harnessed run verify-second-opinion` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
70
66
 
71
- 1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
72
- 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
73
- - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-second-opinion --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
67
+ 1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model, result_file}`.
68
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`. The sub writes its own final result into `result_file` — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
69
+ - the gate is `harnessed checkpoint complete verify-second-opinion --result-file <result_file> --wait 60` — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
74
70
  - if it blocks, run `harnessed checkpoint fail verify-second-opinion --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
75
71
  - 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.
76
- 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.
77
- 4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-second-opinion --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.
72
+ 3. If the sub’s output contains `STATUS: NEEDS_CLARIFICATION` + a question list (read it from `result_file` — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
73
+ 4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete verify-second-opinion --result-file <result_file> --wait 60 --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 file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
78
74
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-second-opinion --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.
79
75
 
80
- <!-- harnessed-generated:v4.12.0 -->
76
+ <!-- harnessed-generated:v4.13.0 -->
81
77
 
82
78
  ## References
83
79
 
@@ -1,12 +1,7 @@
1
1
  ---
2
2
  name: verify-second-opinion
3
3
  description: |
4
- Stage ④ verify 子工作流 — 跨模型第二意见 (cross-AI peer review),仅在本次发版触及
5
- 编排契约面时触发。
6
- schema_version: harnessed.workflow.v3,含 disciplines_applied (6 默认) + tools_available
7
- (codex) + 1 phase (gate ref requires_second_opinion,机械派生)。
8
- 斜杠命令
9
- `/verify-second-opinion`(`harnessed setup` 之后可用)。
4
+ 可选:改动触及编排契约本身时,请另一个 AI 模型做第二意见审查。
10
5
  trigger_phrases:
11
6
  - "verify second opinion"
12
7
  - "cross model review"
@@ -67,16 +62,16 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
67
62
 
68
63
  **不要** pipe 到 `harnessed run verify-second-opinion` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
69
64
 
70
- 1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
71
- 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
72
- - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-second-opinion --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
65
+ 1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model, result_file}`。
66
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn。sub 自己把最终结果写入 `result_file`(prompt 里给出的那个路径)—— **完成信号是文件**,不是聊天消息:后台 / 被 re-parent 的 agent 消息可能永不到达,不要等它。然后用 harnessed 自己的完成闸门驱动交付:
67
+ - 闸门是 `harnessed checkpoint complete verify-second-opinion --result-file <result_file> --wait 60` —— 单次调用最多等 60 秒,sub 需要更久就重复**同一条**命令;它对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
73
68
  - 若被拦下,跑 `harnessed checkpoint fail verify-second-opinion --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
74
69
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
75
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
76
- 4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-second-opinion --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`),不是静默放行。
70
+ 3. 若 sub 的输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表(从 `result_file` 读 —— 聊天消息可能永不到达):STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
71
+ 4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete verify-second-opinion --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
77
72
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-second-opinion --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
78
73
 
79
- <!-- harnessed-generated:v4.12.0 -->
74
+ <!-- harnessed-generated:v4.13.0 -->
80
75
 
81
76
  ## 参考资料
82
77