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.
- package/CHANGELOG.md +18 -0
- package/README-en.md +1 -0
- package/README-zh.md +1 -0
- package/README.md +1 -0
- package/bin/harnessed-check-docs.mjs +15 -0
- package/bin/harnessed-update-reminder-worker.mjs +2598 -134
- package/bin/harnessed-update-reminder.mjs +636 -61
- package/dist/cli.mjs +1524 -589
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/messages/en.json +15 -1
- package/messages/zh-Hans.json +15 -1
- package/package.json +1 -1
- package/workflows/auto/SKILL.md +10 -18
- package/workflows/auto/SKILL.zh-Hans.md +8 -18
- package/workflows/discuss/auto/SKILL.md +4 -7
- package/workflows/discuss/auto/SKILL.zh-Hans.md +2 -7
- package/workflows/discuss/phase/SKILL.md +4 -7
- package/workflows/discuss/phase/SKILL.zh-Hans.md +2 -7
- package/workflows/discuss/strategic/SKILL.md +4 -8
- package/workflows/discuss/strategic/SKILL.zh-Hans.md +2 -8
- package/workflows/discuss/subtask/SKILL.md +4 -7
- package/workflows/discuss/subtask/SKILL.zh-Hans.md +2 -7
- package/workflows/harnessed-update/SKILL.md +9 -8
- package/workflows/harnessed-update/SKILL.zh-Hans.md +7 -8
- package/workflows/host-primitives.yaml +8 -8
- package/workflows/host-primitives.zh-Hans.yaml +8 -8
- package/workflows/plan/ai-integration/SKILL.md +7 -7
- package/workflows/plan/ai-integration/SKILL.zh-Hans.md +7 -7
- package/workflows/plan/architecture/SKILL.md +7 -13
- package/workflows/plan/architecture/SKILL.zh-Hans.md +7 -13
- package/workflows/plan/auto/SKILL.md +8 -14
- package/workflows/plan/auto/SKILL.zh-Hans.md +8 -14
- package/workflows/plan/phase/SKILL.md +7 -13
- package/workflows/plan/phase/SKILL.zh-Hans.md +7 -13
- package/workflows/plan/secure/SKILL.md +7 -7
- package/workflows/plan/secure/SKILL.zh-Hans.md +7 -7
- package/workflows/plan/spec/SKILL.md +7 -7
- package/workflows/plan/spec/SKILL.zh-Hans.md +7 -7
- package/workflows/plan/ui/SKILL.md +7 -7
- package/workflows/plan/ui/SKILL.zh-Hans.md +7 -7
- package/workflows/research/SKILL.md +7 -7
- package/workflows/research/SKILL.zh-Hans.md +7 -7
- package/workflows/retro/SKILL.md +8 -15
- package/workflows/retro/SKILL.zh-Hans.md +7 -15
- package/workflows/ship/auto/SKILL.md +8 -14
- package/workflows/ship/auto/SKILL.zh-Hans.md +8 -14
- package/workflows/ship/preflight/SKILL.md +7 -9
- package/workflows/ship/preflight/SKILL.zh-Hans.md +7 -9
- package/workflows/task/auto/SKILL.md +8 -15
- package/workflows/task/auto/SKILL.zh-Hans.md +8 -15
- package/workflows/task/clarify/SKILL.md +2 -10
- package/workflows/task/clarify/SKILL.zh-Hans.md +2 -10
- package/workflows/task/code/SKILL.md +7 -15
- package/workflows/task/code/SKILL.zh-Hans.md +7 -15
- package/workflows/task/deliver/SKILL.md +7 -17
- package/workflows/task/deliver/SKILL.zh-Hans.md +7 -17
- package/workflows/task/test/SKILL.md +7 -14
- package/workflows/task/test/SKILL.zh-Hans.md +7 -14
- package/workflows/verify/auto/SKILL.md +9 -14
- package/workflows/verify/auto/SKILL.zh-Hans.md +9 -14
- package/workflows/verify/code-review/SKILL.md +8 -13
- package/workflows/verify/code-review/SKILL.zh-Hans.md +8 -13
- package/workflows/verify/design/SKILL.md +8 -12
- package/workflows/verify/design/SKILL.zh-Hans.md +7 -12
- package/workflows/verify/eval-review/SKILL.md +8 -12
- package/workflows/verify/eval-review/SKILL.zh-Hans.md +7 -12
- package/workflows/verify/multispec/SKILL.md +8 -15
- package/workflows/verify/multispec/SKILL.zh-Hans.md +7 -15
- package/workflows/verify/paranoid/SKILL.md +7 -14
- package/workflows/verify/paranoid/SKILL.zh-Hans.md +7 -14
- package/workflows/verify/progress/SKILL.md +8 -13
- package/workflows/verify/progress/SKILL.zh-Hans.md +8 -13
- package/workflows/verify/qa/SKILL.md +7 -13
- package/workflows/verify/qa/SKILL.zh-Hans.md +7 -13
- package/workflows/verify/second-opinion/SKILL.md +8 -12
- package/workflows/verify/second-opinion/SKILL.zh-Hans.md +7 -12
- package/workflows/verify/security/SKILL.md +8 -12
- package/workflows/verify/security/SKILL.zh-Hans.md +7 -12
- package/workflows/verify/simplify/SKILL.md +8 -12
- package/workflows/verify/simplify/SKILL.zh-Hans.md +7 -12
- package/workflows/verify/validate-phase/SKILL.md +8 -12
- 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
|
-
|
|
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
|
|
77
|
-
-
|
|
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.
|
|
81
|
-
4.
|
|
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.
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
60
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
59
|
-
-
|
|
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.
|
|
63
|
-
4.
|
|
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.
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
82
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
80
|
-
-
|
|
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.
|
|
84
|
-
4.
|
|
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.
|
|
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
|
-
|
|
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
|
|
68
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
67
|
-
-
|
|
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.
|
|
71
|
-
4.
|
|
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.
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
64
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
62
|
-
-
|
|
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.
|
|
66
|
-
4.
|
|
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.
|
|
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
|
-
|
|
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
|
|
96
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
95
|
-
-
|
|
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.
|
|
99
|
-
4.
|
|
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.
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
73
|
-
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
72
|
-
-
|
|
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.
|
|
76
|
-
4.
|
|
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.
|
|
74
|
+
<!-- harnessed-generated:v4.13.0 -->
|
|
80
75
|
|
|
81
76
|
## 参考资料
|
|
82
77
|
|