harnessed 4.43.1 → 4.45.0

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 (77) hide show
  1. package/README-en.md +618 -0
  2. package/README.md +273 -275
  3. package/bin/harnessed-inject-state.mjs +45 -3
  4. package/dist/cli.mjs +8817 -7284
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/dist/index.mjs.map +1 -1
  8. package/manifests/SCHEMA.md +1 -1
  9. package/manifests/optional/perturn-inject-invalidate.yaml +1 -1
  10. package/messages/en.json +2 -0
  11. package/messages/zh-Hans.json +2 -0
  12. package/package.json +3 -1
  13. package/workflows/SCHEMA.md +31 -0
  14. package/workflows/auto/SKILL.md +7 -9
  15. package/workflows/auto/SKILL.zh-Hans.md +7 -9
  16. package/workflows/capabilities.yaml +16 -0
  17. package/workflows/disciplines/language.yaml +9 -1
  18. package/workflows/discuss/auto/SKILL.md +1 -1
  19. package/workflows/discuss/auto/SKILL.zh-Hans.md +1 -1
  20. package/workflows/discuss/phase/SKILL.md +1 -1
  21. package/workflows/discuss/phase/SKILL.zh-Hans.md +1 -1
  22. package/workflows/discuss/strategic/SKILL.md +1 -1
  23. package/workflows/discuss/strategic/SKILL.zh-Hans.md +1 -1
  24. package/workflows/discuss/subtask/SKILL.md +1 -1
  25. package/workflows/discuss/subtask/SKILL.zh-Hans.md +1 -1
  26. package/workflows/host-primitives.yaml +348 -0
  27. package/workflows/host-primitives.zh-Hans.yaml +319 -0
  28. package/workflows/plan/architecture/SKILL.md +4 -5
  29. package/workflows/plan/architecture/SKILL.zh-Hans.md +4 -5
  30. package/workflows/plan/auto/SKILL.md +6 -7
  31. package/workflows/plan/auto/SKILL.zh-Hans.md +6 -7
  32. package/workflows/plan/phase/SKILL.md +4 -5
  33. package/workflows/plan/phase/SKILL.zh-Hans.md +4 -5
  34. package/workflows/research/SKILL.md +5 -6
  35. package/workflows/research/SKILL.zh-Hans.md +5 -6
  36. package/workflows/retro/SKILL.md +4 -5
  37. package/workflows/retro/SKILL.zh-Hans.md +4 -5
  38. package/workflows/role-prompts.yaml +15 -16
  39. package/workflows/role-prompts.zh-Hans.yaml +14 -15
  40. package/workflows/ship/auto/SKILL.md +6 -7
  41. package/workflows/ship/auto/SKILL.zh-Hans.md +6 -7
  42. package/workflows/ship/preflight/SKILL.md +4 -5
  43. package/workflows/ship/preflight/SKILL.zh-Hans.md +4 -5
  44. package/workflows/task/auto/SKILL.md +7 -8
  45. package/workflows/task/auto/SKILL.zh-Hans.md +7 -8
  46. package/workflows/task/clarify/SKILL.md +1 -1
  47. package/workflows/task/clarify/SKILL.zh-Hans.md +1 -1
  48. package/workflows/task/code/SKILL.md +4 -5
  49. package/workflows/task/code/SKILL.zh-Hans.md +4 -5
  50. package/workflows/task/deliver/SKILL.md +11 -16
  51. package/workflows/task/deliver/SKILL.zh-Hans.md +11 -15
  52. package/workflows/task/test/SKILL.md +4 -5
  53. package/workflows/task/test/SKILL.zh-Hans.md +4 -5
  54. package/workflows/verify/auto/SKILL.md +9 -10
  55. package/workflows/verify/auto/SKILL.zh-Hans.md +9 -10
  56. package/workflows/verify/code-review/SKILL.md +6 -8
  57. package/workflows/verify/code-review/SKILL.zh-Hans.md +6 -8
  58. package/workflows/verify/design/SKILL.md +4 -5
  59. package/workflows/verify/design/SKILL.zh-Hans.md +4 -5
  60. package/workflows/verify/eval-review/SKILL.md +4 -5
  61. package/workflows/verify/eval-review/SKILL.zh-Hans.md +4 -5
  62. package/workflows/verify/multispec/SKILL.md +19 -23
  63. package/workflows/verify/multispec/SKILL.zh-Hans.md +18 -22
  64. package/workflows/verify/paranoid/SKILL.md +4 -5
  65. package/workflows/verify/paranoid/SKILL.zh-Hans.md +4 -5
  66. package/workflows/verify/progress/SKILL.md +4 -5
  67. package/workflows/verify/progress/SKILL.zh-Hans.md +4 -5
  68. package/workflows/verify/qa/SKILL.md +4 -5
  69. package/workflows/verify/qa/SKILL.zh-Hans.md +4 -5
  70. package/workflows/verify/second-opinion/SKILL.md +4 -5
  71. package/workflows/verify/second-opinion/SKILL.zh-Hans.md +4 -5
  72. package/workflows/verify/security/SKILL.md +4 -5
  73. package/workflows/verify/security/SKILL.zh-Hans.md +4 -5
  74. package/workflows/verify/simplify/SKILL.md +4 -5
  75. package/workflows/verify/simplify/SKILL.zh-Hans.md +4 -5
  76. package/workflows/verify/validate-phase/SKILL.md +4 -5
  77. package/workflows/verify/validate-phase/SKILL.zh-Hans.md +4 -5
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: verify-multispec
3
3
  description: |
4
- Stage ④.h verify 子工作流 — 4-specialist Agent Team Pattern C 多维度审查(关键发布 /
5
- 大重构 PR 升级,code-review + gstack-review + gstack-cso + gstack-qa 4 teammate 互相
6
- SendMessage 质询,NOT fire-and-forget subagent fan-out;bundled Agent Teams Pattern C
7
- routing)。Cleanup 必跑:按名请求每个 teammate shut down(bundled cleanup discipline)。
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
8
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
9
  (agent-teams 3 + 4 specialist capability) + 2 phase (01-team-create on critical-release
10
10
  invoke / 02-team-cleanup mandatory shutdown)。
@@ -22,9 +22,9 @@ trigger_phrases:
22
22
 
23
23
  ## 概览
24
24
 
25
- 2-phase 子工作流,将 CLAUDE.md「Verify 阶段 — 关键发布 / 大重构 PR 升级 Agent Team
25
+ 2-phase 子工作流,将 CLAUDE.md「Verify 阶段 — 关键发布 / 大重构 PR 升级 {{ host.team.singular }}
26
26
  Pattern C」映射到 harnessed 运行时(Phase v3.0-3.4 W0.13e — D-04 Stage ④ Verify 7 sub +
27
- D-11 Agent Teams + Pattern A sub-workflow ship)。
27
+ D-11 {{ host.team.attributive }} + Pattern A sub-workflow ship)。
28
28
 
29
29
  | phase | id | upstream | model | capability | gate / on |
30
30
  | ----- | -- | -------- | ----- | ---------- | --------- |
@@ -32,11 +32,8 @@ D-11 Agent Teams + Pattern A sub-workflow ship)。
32
32
  | 2 | `02-team-cleanup` | claude-platform | haiku | `{{ capabilities.agent-teams-shutdown.cmd }}` | mandatory 防呆清单 |
33
33
 
34
34
  Per-phase 配置从 `workflows/verify/multispec/workflow.yaml` 加载;phase 01 用
35
- `Agent(name, run_in_background=true)` spawn 4 个后台 teammate(code-review + gstack-review +
36
- gstack-cso + gstack-qa),团在**第一个** spawn 时隐式形成(CC 2.1.178+ 无建团步骤、无建团
37
- 工具);teammate 互相 SendMessage 质询 findings 是否真问题(NOT fire-and-forget);phase 02
38
- 必跑「按名请求每个 teammate shut down」(bundled Agent Teams cleanup discipline——团目录在
39
- session 退出时自动清理,无独立 teardown 工具,剩下的纪律是别把 teammate 落在运行态)。
35
+ {{ host.multispec_spawn_note }};phase 02
36
+ {{ host.teams_cleanup_note.multispec }}
40
37
 
41
38
  ## Capability refs
42
39
 
@@ -44,10 +41,10 @@ Sister `workflows/capabilities.yaml` 条目:
44
41
  - `agent-teams-create` — Bucket 5 Agent Teams (impl: claude-platform, cmd: `Agent(name, run_in_background=true)`)
45
42
  - `agent-teams-send-message` — Bucket 5 Agent Teams (impl: claude-platform, cmd: SendMessage)
46
43
  - `agent-teams-shutdown` — Bucket 5 Agent Teams (impl: claude-platform, cmd: `ask the <teammate-name> teammate to shut down`)
47
- - `code-review` — Bucket 1 mattpocock (teammate 1)
48
- - `gstack-review` — Bucket 3 治理关卡 (teammate 2 Paranoid Staff Engineer)
49
- - `gstack-cso` — Bucket 3 治理关卡 (teammate 3 安全审查)
50
- - `gstack-qa` — Bucket 3 治理关卡 (teammate 4 端到端 QA)
44
+ - `code-review` — Bucket 1 mattpocock ({{ host.teammate }} 1)
45
+ - `gstack-review` — Bucket 3 治理关卡 ({{ host.teammate }} 2 Paranoid Staff Engineer)
46
+ - `gstack-cso` — Bucket 3 治理关卡 ({{ host.teammate }} 3 安全审查)
47
+ - `gstack-qa` — Bucket 3 治理关卡 ({{ host.teammate }} 4 端到端 QA)
51
48
 
52
49
  ## Parallelism + on gate refs
53
50
 
@@ -59,7 +56,7 @@ Phase 级 `on` 子句(critical-release 升级触发):
59
56
  - `if: phase.is_major_release == true or phase.is_large_refactor == true` → `action: invoke`
60
57
  - else → `action: skip`
61
58
 
62
- ## 路由规则(bundled Agent Teams routing — `workflows/judgments/parallelism-gate.yaml`)
59
+ ## 路由规则(bundled {{ host.team.attributive }} routing — `workflows/judgments/parallelism-gate.yaml`)
63
60
 
64
61
  - ✅ **触发**:关键发布 / 大重构 PR(≥3 specialist 需互相质询而非 fire-and-forget)
65
62
  - ❌ **跳过**:常规 PR / 单点任务(sister verify-code-review fan-out + verify-paranoid 已够用且省 token)
@@ -74,17 +71,16 @@ Phase 级 `on` 子句(critical-release 升级触发):
74
71
 
75
72
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
76
73
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
77
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
74
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
78
75
 
79
- **不要** pipe 到 `harnessed run verify-multispec` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
80
- Code 内部会阻塞 session)。
76
+ **不要** pipe 到 `harnessed run verify-multispec` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
81
77
 
82
78
  1. Bash: `harnessed prompt verify-multispec --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
83
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
79
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
84
80
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-multispec --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
85
81
  - 若被拦下,跑 `harnessed checkpoint fail verify-multispec --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
86
82
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
87
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
83
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
88
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`),不是静默放行。
89
85
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-multispec --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
90
86
 
@@ -93,7 +89,7 @@ Code 内部会阻塞 session)。
93
89
  ## 参考资料
94
90
 
95
91
  - D-04 Stage ④ Verify 7 sub 分解
96
- - D-11 Agent Teams 4-specialist Pattern C upgrade
92
+ - D-11 {{ host.team.attributive }} 4-specialist Pattern C upgrade
97
93
  - workflows/capabilities.yaml — agent-teams-{create,send-message,shutdown} + 4 specialist
98
94
  - workflows/judgments/stage-routing.yaml — verify-multispec-critical-release trigger
99
95
  - workflows/judgments/parallelism-gate.yaml — agent-teams-upgrade.fires (5 OR-chain)
@@ -59,17 +59,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
59
59
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
60
60
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
61
61
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
62
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
62
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
63
63
 
64
- Do NOT pipe to `harnessed run verify-paranoid` — that is the CI/headless path (in-process SDK spawn
65
- that blocks the session inside Claude Code).
64
+ Do NOT pipe to `harnessed run verify-paranoid` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
66
65
 
67
66
  1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
68
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
67
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
69
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>`.
70
69
  - 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.
71
70
  - 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.
72
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
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.
73
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.
74
73
  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.
75
74
 
@@ -58,17 +58,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
58
58
 
59
59
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
60
60
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
61
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
61
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
62
62
 
63
- **不要** pipe 到 `harnessed run verify-paranoid` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
64
- Code 内部会阻塞 session)。
63
+ **不要** pipe 到 `harnessed run verify-paranoid` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
65
64
 
66
65
  1. Bash: `harnessed prompt verify-paranoid --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
67
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
66
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
68
67
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-paranoid --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
69
68
  - 若被拦下,跑 `harnessed checkpoint fail verify-paranoid --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
70
69
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
71
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
70
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
72
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`),不是静默放行。
73
72
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-paranoid --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
74
73
 
@@ -55,17 +55,16 @@ verify-progress-always trigger)。无 skip 条件 — verify-work 起点必跑
55
55
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
56
56
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
57
57
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
58
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
58
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
59
59
 
60
- Do NOT pipe to `harnessed run verify-progress` — that is the CI/headless path (in-process SDK spawn
61
- that blocks the session inside Claude Code).
60
+ Do NOT pipe to `harnessed run verify-progress` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
62
61
 
63
62
  1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
64
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
63
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
65
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>`.
66
65
  - 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.
67
66
  - 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.
68
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
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.
69
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.
70
69
  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.
71
70
 
@@ -53,17 +53,16 @@ verify-progress-always trigger)。无 skip 条件 — verify-work 起点必跑
53
53
 
54
54
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
55
55
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
56
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
56
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
57
57
 
58
- **不要** pipe 到 `harnessed run verify-progress` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
59
- Code 内部会阻塞 session)。
58
+ **不要** pipe 到 `harnessed run verify-progress` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
60
59
 
61
60
  1. Bash: `harnessed prompt verify-progress --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
62
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
61
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
63
62
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-progress --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
64
63
  - 若被拦下,跑 `harnessed checkpoint fail verify-progress --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
65
64
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
66
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
65
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
67
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`),不是静默放行。
68
67
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-progress --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
69
68
 
@@ -87,17 +87,16 @@ Sister `workflows/judgments/web-testing-routing.yaml` (T2.3 — 4 条 lane 各
87
87
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
88
88
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
89
89
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
90
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
90
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
91
91
 
92
- Do NOT pipe to `harnessed run verify-qa` — that is the CI/headless path (in-process SDK spawn
93
- that blocks the session inside Claude Code).
92
+ Do NOT pipe to `harnessed run verify-qa` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
94
93
 
95
94
  1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
96
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
95
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
97
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>`.
98
97
  - 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.
99
98
  - 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.
100
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
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.
101
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.
102
101
  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.
103
102
 
@@ -86,17 +86,16 @@ Sister `workflows/judgments/web-testing-routing.yaml`(T2.3 — 4 条 lane 各
86
86
 
87
87
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
88
88
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
89
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
89
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
90
90
 
91
- **不要** pipe 到 `harnessed run verify-qa` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
92
- Code 内部会阻塞 session)。
91
+ **不要** pipe 到 `harnessed run verify-qa` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
93
92
 
94
93
  1. Bash: `harnessed prompt verify-qa --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
95
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
94
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
96
95
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-qa --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
97
96
  - 若被拦下,跑 `harnessed checkpoint fail verify-qa --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
98
97
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
99
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
98
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
100
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`),不是静默放行。
101
100
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-qa --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
102
101
 
@@ -64,17 +64,16 @@ fail-closed 阻断,`--force` 在 ledger 记 `evidence_status: overridden`。跳
64
64
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
65
65
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
66
66
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
67
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
67
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
68
68
 
69
- Do NOT pipe to `harnessed run verify-second-opinion` — that is the CI/headless path (in-process SDK spawn
70
- that blocks the session inside Claude Code).
69
+ Do NOT pipe to `harnessed run verify-second-opinion` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
71
70
 
72
71
  1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
73
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
72
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
74
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>`.
75
74
  - 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.
76
75
  - 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.
77
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
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.
78
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.
79
78
  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.
80
79
 
@@ -63,17 +63,16 @@ fail-closed 阻断,`--force` 在 ledger 记 `evidence_status: overridden`。跳
63
63
 
64
64
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
65
65
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
66
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
66
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
67
67
 
68
- **不要** pipe 到 `harnessed run verify-second-opinion` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
69
- Code 内部会阻塞 session)。
68
+ **不要** pipe 到 `harnessed run verify-second-opinion` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
70
69
 
71
70
  1. Bash: `harnessed prompt verify-second-opinion --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
72
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
71
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
73
72
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-second-opinion --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
74
73
  - 若被拦下,跑 `harnessed checkpoint fail verify-second-opinion --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
75
74
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
76
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
75
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
77
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`),不是静默放行。
78
77
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-second-opinion --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
79
78
 
@@ -56,17 +56,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
56
56
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
57
57
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
58
58
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
59
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
59
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
60
60
 
61
- Do NOT pipe to `harnessed run verify-security` — that is the CI/headless path (in-process SDK spawn
62
- that blocks the session inside Claude Code).
61
+ Do NOT pipe to `harnessed run verify-security` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
63
62
 
64
63
  1. Bash: `harnessed prompt verify-security --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
65
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
64
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
66
65
  - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-security --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
67
66
  - if it blocks, run `harnessed checkpoint fail verify-security --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
68
67
  - 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.
69
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
68
+ 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.
70
69
  4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-security --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.
71
70
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-security --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.
72
71
 
@@ -55,17 +55,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
55
55
 
56
56
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
57
57
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
58
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
58
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
59
59
 
60
- **不要** pipe 到 `harnessed run verify-security` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
61
- Code 内部会阻塞 session)。
60
+ **不要** pipe 到 `harnessed run verify-security` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
62
61
 
63
62
  1. Bash: `harnessed prompt verify-security --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
64
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
63
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
65
64
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-security --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
66
65
  - 若被拦下,跑 `harnessed checkpoint fail verify-security --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
67
66
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
68
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
67
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
69
68
  4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-security --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
69
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-security --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
71
70
 
@@ -56,17 +56,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
56
56
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
57
57
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
58
58
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
59
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
59
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
60
60
 
61
- Do NOT pipe to `harnessed run verify-simplify` — that is the CI/headless path (in-process SDK spawn
62
- that blocks the session inside Claude Code).
61
+ Do NOT pipe to `harnessed run verify-simplify` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
63
62
 
64
63
  1. Bash: `harnessed prompt verify-simplify --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
65
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
64
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
66
65
  - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-simplify --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
67
66
  - if it blocks, run `harnessed checkpoint fail verify-simplify --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
68
67
  - 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.
69
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
68
+ 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.
70
69
  4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-simplify --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.
71
70
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-simplify --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.
72
71
 
@@ -55,17 +55,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
55
55
 
56
56
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
57
57
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
58
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
58
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
59
59
 
60
- **不要** pipe 到 `harnessed run verify-simplify` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
61
- Code 内部会阻塞 session)。
60
+ **不要** pipe 到 `harnessed run verify-simplify` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
62
61
 
63
62
  1. Bash: `harnessed prompt verify-simplify --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
64
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
63
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
65
64
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-simplify --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
66
65
  - 若被拦下,跑 `harnessed checkpoint fail verify-simplify --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
67
66
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
68
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
67
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
69
68
  4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-simplify --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
69
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-simplify --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
71
70
 
@@ -51,17 +51,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
51
51
  The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
52
52
  an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
53
53
  evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
54
- CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
54
+ {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).
55
55
 
56
- Do NOT pipe to `harnessed run verify-validate-phase` — that is the CI/headless path (in-process SDK spawn
57
- that blocks the session inside Claude Code).
56
+ Do NOT pipe to `harnessed run verify-validate-phase` — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}
58
57
 
59
58
  1. Bash: `harnessed prompt verify-validate-phase --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
60
- 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
59
+ 2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that `prompt` and `model`, then drive delivery with harnessed's own completion gate:
61
60
  - on return, write the subagent's final output to a file and run `harnessed checkpoint complete verify-validate-phase --result-file <path>` — it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim `<promise>COMPLETE</promise>`.
62
61
  - if it blocks, run `harnessed checkpoint fail verify-validate-phase --failing-tests <n>` to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
63
62
  - 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.
64
- 3. If the output contains `STATUS: NEEDS_CLARIFICATION` + a question list: STOP, relay them verbatim via AskUserQuestion, append the answers to the spec, then re-spawn the same sub.
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.
65
64
  4. On `<promise>COMPLETE</promise>`: write the subagent’s final output to a file, then Bash `harnessed checkpoint complete verify-validate-phase --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.
66
65
  5. If the complete gate blocked: Bash `harnessed checkpoint fail verify-validate-phase --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.
67
66
 
@@ -50,17 +50,16 @@ Sister `workflows/judgments/stage-routing.yaml`:
50
50
 
51
51
  下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
52
52
  freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
53
- CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
53
+ {{ host.native }} {{ host.spawn_subagent.zh_tool }} spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
54
54
 
55
- **不要** pipe 到 `harnessed run verify-validate-phase` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
56
- Code 内部会阻塞 session)。
55
+ **不要** pipe 到 `harnessed run verify-validate-phase` —— 那是 CI/headless 路径({{ host.harnessed_run_warning_note.execution_tail }}
57
56
 
58
57
  1. Bash: `harnessed prompt verify-validate-phase --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
59
- 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
58
+ 2. 用 {{ host.native }} subagent({{ host.spawn_subagent.zh_tool }})以该 `prompt` + `model` spawn,然后用 harnessed 自己的完成闸门驱动交付:
60
59
  - subagent 返回后,把它的最终输出写入文件,跑 `harnessed checkpoint complete verify-validate-phase --result-file <path>` —— 该命令对声明的产物、TDD boundary、逐字 `<promise>COMPLETE</promise>` 三者 fail-closed。
61
60
  - 若被拦下,跑 `harnessed checkpoint fail verify-validate-phase --failing-tests <n>` 记录本次尝试;命中停机条件时它会打印 BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP。
62
61
  - **仅当**这三者都未触发时才允许重 spawn。任一触发即停:重新收敛子任务范围、修掉阻塞点,或上报用户。绝不越过停机指令继续重 spawn。
63
- 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
62
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 {{ host.ask_user }} 原样转达,把答案 append 进 spec,再重 spawn。
64
63
  4. 命中 `<promise>COMPLETE</promise>`:把 subagent 最终输出写入文件,再 Bash `harnessed checkpoint complete verify-validate-phase --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`),不是静默放行。
65
64
  5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail verify-validate-phase --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
66
65