harnessed 4.11.3 → 4.14.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.
@@ -78,6 +78,18 @@ triggers:
78
78
  invokes:
79
79
  - capability: gstack-design-review
80
80
 
81
+ verify-eval-review-aiphase:
82
+ description: /verify master → /verify-eval-review fire 当 has_ai_phase (AI phase eval 覆盖审计)。
83
+ fires_when: "phase.stage == 'verify' and phase.has_ai_phase == true"
84
+ invokes:
85
+ - capability: gsd-eval-review
86
+
87
+ verify-validate-phase-coverage:
88
+ description: /verify master → /verify-validate-phase fire 当 requires_coverage_audit (Nyquist 覆盖查漏)。
89
+ fires_when: "phase.stage == 'verify' and phase.requires_coverage_audit == true"
90
+ invokes:
91
+ - capability: gsd-validate-phase
92
+
81
93
  verify-multispec-critical-release:
82
94
  description: |
83
95
  /verify master → /verify-multispec 4-specialist Agent Team Pattern C fire
@@ -43,6 +43,7 @@ description: |
43
43
  disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
44
44
  tools_available:
45
45
  - ralph-loop
46
+ - verification-before-completion
46
47
  - agent-teams-create
47
48
  - agent-teams-send-message
48
49
  - agent-teams-shutdown
@@ -71,6 +72,15 @@ phases:
71
72
  # v3.8.0 P1 — ralph-loop COMPLETE + Agent Teams escalation phase, full 3-RULES inject.
72
73
  injects_rules: [escalation, transparent-skip, agent-teams-prevention]
73
74
 
75
+ - id: 01b-verify-evidence
76
+ name: verification-before-completion (子任务标 done 前贴验证证据 — evidence before claims)
77
+ upstream: superpowers
78
+ capability: '{{ capabilities.verification-before-completion.cmd }}'
79
+ model: haiku
80
+ # v13.0 P42 — superpowers-native per-claim 证据门; 在 ralph-loop COMPLETE (01-deliver)
81
+ # 之后、progress-mark 标记完成之前强制贴验证 output (evidence before claims)。
82
+ artifacts_expected: [verification-evidence.md]
83
+
74
84
  - id: 02-progress-mark
75
85
  name: progress-mark (planning-with-files /plan — mark subtask complete in progress.md)
76
86
  upstream: planning-with-files
@@ -43,6 +43,8 @@ tools_available:
43
43
  - gstack-qa
44
44
  - gstack-cso
45
45
  - gstack-design-review
46
+ - gsd-eval-review
47
+ - gsd-validate-phase
46
48
  - code-simplifier
47
49
  - agent-teams-create
48
50
  - planning-with-files
@@ -65,6 +67,12 @@ delegates_to:
65
67
  - sub: design
66
68
  gate: judgments.stage-routing.verify-design-changes.fires
67
69
  mode: parallel
70
+ - sub: eval-review
71
+ gate: judgments.stage-routing.verify-eval-review-aiphase.fires
72
+ mode: parallel
73
+ - sub: validate-phase
74
+ gate: judgments.stage-routing.verify-validate-phase-coverage.fires
75
+ mode: parallel
68
76
  - sub: multispec
69
77
  gate: judgments.stage-routing.verify-multispec-critical-release.fires
70
78
  mode: parallel
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: verify-eval-review
3
+ description: |
4
+ Stage ④ verify sub-workflow — GSD /gsd-eval-review AI phase eval 覆盖审计 (has_ai_phase 触发,
5
+ 可选 conditional; pairs with plan 侧 gsd-ai-integration-phase AI-SPEC eval strategy).
6
+ schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
+ (gsd-eval-review) + 1 phase (gate ref has_ai_phase conditional)。
8
+ Triggered by slash command
9
+ `/verify-eval-review` after `harnessed setup`.
10
+ trigger_phrases:
11
+ - "verify eval review"
12
+ - "eval 覆盖审计"
13
+ - "AI eval 审查"
14
+ - "gsd eval review"
15
+ - "跑 verify-eval-review"
16
+ ---
17
+
18
+ # verify-eval-review workflow (v3)
19
+
20
+ ## Overview
21
+
22
+ 1-phase sub-workflow auditing AI phase eval coverage (v13.0 P42 upstream re-sync — D-04
23
+ Stage ④ Verify conditional sub + GSD eval-review wire)。Pairs with the plan-side
24
+ `gsd-ai-integration-phase` (AI-SPEC.md eval strategy): verify 侧回查实现是否真覆盖规划的
25
+ eval 维度,产出 EVAL-REVIEW.md (逐维度 COVERED/PARTIAL/MISSING)。
26
+
27
+ | phase | id | upstream | model | capability | gate |
28
+ | ----- | -- | -------- | ----- | ---------- | ---- |
29
+ | 1 | `01-eval-review` | gsd | sonnet | `{{ capabilities.gsd-eval-review.cmd }}` | `judgments.stage-routing.verify-eval-review-aiphase.fires` |
30
+
31
+ Per-phase config loads from `workflows/verify/eval-review/workflow.yaml`; engine 4-level gate
32
+ resolver evaluates `phase.has_ai_phase == true` via expr-eval — true 则 invoke GSD
33
+ `/gsd-eval-review` (eval 覆盖审计 → EVAL-REVIEW.md), false 则 skip。
34
+
35
+ ## Capability refs
36
+
37
+ Sister `workflows/capabilities.yaml` entries:
38
+ - `gsd-eval-review` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-eval-review, fires_when: has_ai_phase)
39
+
40
+ ## Gate ref
41
+
42
+ Sister `workflows/judgments/stage-routing.yaml`:
43
+ - `verify-eval-review-aiphase.fires` — `phase.stage == 'verify' and phase.has_ai_phase == true`
44
+
45
+ ## How to invoke
46
+
47
+ The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
48
+ an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
49
+ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
50
+ CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
51
+
52
+ Do NOT pipe to `harnessed run verify-eval-review` — that is the CI/headless path (in-process SDK spawn
53
+ that blocks the session inside Claude Code).
54
+
55
+ 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
56
+ 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations).
57
+ 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.
58
+ 4. On `<promise>COMPLETE</promise>`: Bash `harnessed checkpoint complete verify-eval-review --summary "<one-line>"`. The evidence guard runs here (fail-CLOSED): if a declared `artifacts_expected` file is missing it exits non-zero — re-spawn to produce it before treating the sub as done.
59
+
60
+ <!-- harnessed-generated:v4.9.3 -->
61
+
62
+ ## References
63
+
64
+ - D-04 Stage ④ Verify conditional sub 分解
65
+ - v13.0 P42 upstream re-sync — GSD eval-review wire (pairs with plan 侧 gsd-ai-integration-phase)
66
+ - workflows/capabilities.yaml — gsd-eval-review
67
+ - workflows/judgments/stage-routing.yaml — verify-eval-review-aiphase trigger
68
+ - workflows/verify/qa/workflow.yaml — sister conditional-sub pattern (has_ui_changes gate)
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: verify-eval-review
3
+ description: |
4
+ Stage ④ 验证子工作流 — GSD /gsd-eval-review AI phase eval 覆盖审计 (has_ai_phase 触发,
5
+ 可选 conditional; 与 plan 侧 gsd-ai-integration-phase AI-SPEC eval strategy 配对).
6
+ schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
+ (gsd-eval-review) + 1 phase (gate ref has_ai_phase conditional)。
8
+ Triggered by slash command
9
+ `/verify-eval-review` after `harnessed setup`.
10
+ trigger_phrases:
11
+ - "verify eval review"
12
+ - "eval 覆盖审计"
13
+ - "AI eval 审查"
14
+ - "gsd eval review"
15
+ - "跑 verify-eval-review"
16
+ ---
17
+
18
+ # verify-eval-review workflow (v3)
19
+
20
+ ## 概览
21
+
22
+ 1-phase 子工作流,审计 AI phase eval 覆盖 (v13.0 P42 上游 re-sync — D-04 Stage ④ Verify
23
+ conditional sub + GSD eval-review wire)。与 plan 侧 `gsd-ai-integration-phase` (AI-SPEC.md
24
+ eval strategy) 配对:verify 侧回查实现是否真覆盖规划的 eval 维度,产出 EVAL-REVIEW.md
25
+ (逐维度 COVERED/PARTIAL/MISSING)。
26
+
27
+ | phase | id | upstream | model | capability | gate |
28
+ | ----- | -- | -------- | ----- | ---------- | ---- |
29
+ | 1 | `01-eval-review` | gsd | sonnet | `{{ capabilities.gsd-eval-review.cmd }}` | `judgments.stage-routing.verify-eval-review-aiphase.fires` |
30
+
31
+ Per-phase 配置从 `workflows/verify/eval-review/workflow.yaml` 加载;引擎 4-level gate resolver
32
+ 通过 expr-eval 计算 `phase.has_ai_phase == true` — true 则调用 GSD `/gsd-eval-review`
33
+ (eval 覆盖审计 → EVAL-REVIEW.md),false 则跳过。
34
+
35
+ ## Capability refs
36
+
37
+ Sister `workflows/capabilities.yaml` 条目:
38
+ - `gsd-eval-review` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-eval-review, fires_when: has_ai_phase)
39
+
40
+ ## Gate ref
41
+
42
+ Sister `workflows/judgments/stage-routing.yaml`:
43
+ - `verify-eval-review-aiphase.fires` — `phase.stage == 'verify' and phase.has_ai_phase == true`
44
+
45
+ ## 如何调用
46
+
47
+ 下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
48
+ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
49
+ CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
50
+
51
+ **不要** pipe 到 `harnessed run verify-eval-review` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
52
+ Code 内部会阻塞 session)。
53
+
54
+ 1. Bash: `harnessed prompt verify-eval-review --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
55
+ 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,自循环:spawn → 检查 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。
56
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
57
+ 4. 命中 `<promise>COMPLETE</promise>`:Bash `harnessed checkpoint complete verify-eval-review --summary "<one-line>"`。evidence guard 在此运行(fail-CLOSED):若声明的 `artifacts_expected` 文件缺失会 exit 非零 —— 重 spawn 产出它再算 done。
58
+
59
+ <!-- harnessed-generated:v4.9.3 -->
60
+
61
+ ## 参考资料
62
+
63
+ - D-04 Stage ④ Verify conditional sub 分解
64
+ - v13.0 P42 上游 re-sync — GSD eval-review wire (与 plan 侧 gsd-ai-integration-phase 配对)
65
+ - workflows/capabilities.yaml — gsd-eval-review
66
+ - workflows/judgments/stage-routing.yaml — verify-eval-review-aiphase trigger
67
+ - workflows/verify/qa/workflow.yaml — sister conditional-sub pattern (has_ui_changes gate)
@@ -0,0 +1,34 @@
1
+ # workflows/verify/eval-review/workflow.yaml — v13.0 P42 (upstream re-sync wire)
2
+ #
3
+ # Stage ④ verify sub-workflow — GSD /gsd-eval-review AI phase eval 覆盖审计
4
+ # (has_ai_phase 触发, 可选 conditional). Pairs with plan 侧 gsd-ai-integration-phase
5
+ # (AI-SPEC.md eval strategy): verify 侧回查实现是否真覆盖规划的 eval 维度。
6
+ #
7
+ # Sister refs:
8
+ # - workflows/judgments/stage-routing.yaml verify-eval-review-aiphase trigger (has_ai_phase)
9
+ # - workflows/capabilities.yaml — gsd-eval-review (Bucket 2, impl: gsd, cmd: /gsd-eval-review)
10
+ # - workflows/verify/qa/workflow.yaml — sister conditional-sub pattern (has_ui_changes gate)
11
+ # - workflows/verify/auto/workflow.yaml — master delegates_to eval-review (parallel + gate)
12
+
13
+ schema_version: harnessed.workflow.v3
14
+ workflow: verify-eval-review
15
+ description: |
16
+ Stage ④ GSD /gsd-eval-review AI phase eval 覆盖审计 (has_ai_phase 触发, 可选 conditional)。
17
+ Gate: judgments.stage-routing.verify-eval-review-aiphase.fires (phase.has_ai_phase == true) —
18
+ 仅含 AI/LLM phase 的项目 fire; 无 AI phase 的 PR skip。回查 plan 侧 AI-SPEC.md 规划的
19
+ eval 维度是否真被实现覆盖, 产出 EVAL-REVIEW.md (逐维度 COVERED/PARTIAL/MISSING)。
20
+
21
+ disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
22
+ tools_available: [gsd-eval-review]
23
+
24
+ phases:
25
+ - id: 01-eval-review
26
+ name: gsd-eval-review (AI phase eval 覆盖审计 — has_ai_phase 触发)
27
+ upstream: gsd
28
+ capability: '{{ capabilities.gsd-eval-review.cmd }}'
29
+ model: sonnet
30
+ gate: judgments.stage-routing.verify-eval-review-aiphase.fires
31
+ max_iterations: 3
32
+ # ADR-0033 evidence guard — declare report artifact so the evidence guard is real
33
+ # (verified, not none_declared) — proves the eval coverage audit actually ran.
34
+ artifacts_expected: [EVAL-REVIEW.md]
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: verify-validate-phase
3
+ description: |
4
+ Stage ④ verify sub-workflow — GSD /gsd-validate-phase Nyquist 覆盖审计 (requires_coverage_audit
5
+ 触发, 可选 conditional; 补 TDD 前向写测试之外的后向 requirement→test 覆盖查漏).
6
+ schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
+ (gsd-validate-phase) + 1 phase (gate ref requires_coverage_audit conditional)。
8
+ Triggered by slash command
9
+ `/verify-validate-phase` after `harnessed setup`.
10
+ trigger_phrases:
11
+ - "verify validate phase"
12
+ - "Nyquist 覆盖审计"
13
+ - "覆盖查漏"
14
+ - "gsd validate phase"
15
+ - "跑 verify-validate-phase"
16
+ ---
17
+
18
+ # verify-validate-phase workflow (v3)
19
+
20
+ ## Overview
21
+
22
+ 1-phase sub-workflow auditing requirement→test coverage gaps (v13.0 P43 upstream re-sync —
23
+ D-04 Stage ④ Verify conditional sub + GSD validate-phase wire)。回溯审计 phase 完成后的
24
+ requirement→test 覆盖缺口,为未覆盖 requirement 生成测试 (gsd-nyquist-auditor agent),
25
+ 补 TDD 前向写测试之外的后向查漏。
26
+
27
+ | phase | id | upstream | model | capability | gate |
28
+ | ----- | -- | -------- | ----- | ---------- | ---- |
29
+ | 1 | `01-validate-phase` | gsd | sonnet | `{{ capabilities.gsd-validate-phase.cmd }}` | `judgments.stage-routing.verify-validate-phase-coverage.fires` |
30
+
31
+ Per-phase config loads from `workflows/verify/validate-phase/workflow.yaml`; engine 4-level gate
32
+ resolver evaluates `phase.requires_coverage_audit == true` via expr-eval — true 则 invoke GSD
33
+ `/gsd-validate-phase` (Nyquist 覆盖审计 → VALIDATION.md), false 则 skip。
34
+
35
+ ## Capability refs
36
+
37
+ Sister `workflows/capabilities.yaml` entries:
38
+ - `gsd-validate-phase` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-validate-phase, fires_when: requires_coverage_audit)
39
+
40
+ ## Gate ref
41
+
42
+ Sister `workflows/judgments/stage-routing.yaml`:
43
+ - `verify-validate-phase-coverage.fires` — `phase.stage == 'verify' and phase.requires_coverage_audit == true`
44
+
45
+ ## How to invoke
46
+
47
+ The numbered sequence below **is** the state machine — execute it with Bash. Do NOT improvise
48
+ an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no
49
+ evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a
50
+ CC-native Task / Agent tool (keeps the session responsive + lets clarification round-trips reach the user).
51
+
52
+ Do NOT pipe to `harnessed run verify-validate-phase` — that is the CI/headless path (in-process SDK spawn
53
+ that blocks the session inside Claude Code).
54
+
55
+ 1. Bash: `harnessed prompt verify-validate-phase --task "$ARGUMENTS" --json` → parse `{prompt, max_iterations, model}`.
56
+ 2. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations).
57
+ 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.
58
+ 4. On `<promise>COMPLETE</promise>`: Bash `harnessed checkpoint complete verify-validate-phase --summary "<one-line>"`. The evidence guard runs here (fail-CLOSED): if a declared `artifacts_expected` file is missing it exits non-zero — re-spawn to produce it before treating the sub as done.
59
+
60
+ <!-- harnessed-generated:v4.9.3 -->
61
+
62
+ ## References
63
+
64
+ - D-04 Stage ④ Verify conditional sub 分解
65
+ - v13.0 P43 upstream re-sync — GSD validate-phase wire (Nyquist 覆盖后向查漏, TDD 前向之外)
66
+ - workflows/capabilities.yaml — gsd-validate-phase
67
+ - workflows/judgments/stage-routing.yaml — verify-validate-phase-coverage trigger
68
+ - workflows/verify/eval-review/workflow.yaml — sister conditional-sub pattern (v13.0 P42)
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: verify-validate-phase
3
+ description: |
4
+ Stage ④ 验证子工作流 — GSD /gsd-validate-phase Nyquist 覆盖审计 (requires_coverage_audit
5
+ 触发, 可选 conditional; 补 TDD 前向写测试之外的后向 requirement→test 覆盖查漏).
6
+ schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
+ (gsd-validate-phase) + 1 phase (gate ref requires_coverage_audit conditional)。
8
+ Triggered by slash command
9
+ `/verify-validate-phase` after `harnessed setup`.
10
+ trigger_phrases:
11
+ - "verify validate phase"
12
+ - "Nyquist 覆盖审计"
13
+ - "覆盖查漏"
14
+ - "gsd validate phase"
15
+ - "跑 verify-validate-phase"
16
+ ---
17
+
18
+ # verify-validate-phase workflow (v3)
19
+
20
+ ## 概览
21
+
22
+ 1-phase 子工作流,审计 requirement→test 覆盖缺口 (v13.0 P43 上游 re-sync — D-04 Stage ④
23
+ Verify conditional sub + GSD validate-phase wire)。回溯审计 phase 完成后的 requirement→test
24
+ 覆盖缺口,为未覆盖 requirement 生成测试 (gsd-nyquist-auditor agent),补 TDD 前向写测试之外的
25
+ 后向查漏。
26
+
27
+ | phase | id | upstream | model | capability | gate |
28
+ | ----- | -- | -------- | ----- | ---------- | ---- |
29
+ | 1 | `01-validate-phase` | gsd | sonnet | `{{ capabilities.gsd-validate-phase.cmd }}` | `judgments.stage-routing.verify-validate-phase-coverage.fires` |
30
+
31
+ Per-phase 配置从 `workflows/verify/validate-phase/workflow.yaml` 加载;引擎 4-level gate resolver
32
+ 通过 expr-eval 计算 `phase.requires_coverage_audit == true` — true 则调用 GSD
33
+ `/gsd-validate-phase` (Nyquist 覆盖审计 → VALIDATION.md),false 则跳过。
34
+
35
+ ## Capability refs
36
+
37
+ Sister `workflows/capabilities.yaml` 条目:
38
+ - `gsd-validate-phase` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-validate-phase, fires_when: requires_coverage_audit)
39
+
40
+ ## Gate ref
41
+
42
+ Sister `workflows/judgments/stage-routing.yaml`:
43
+ - `verify-validate-phase-coverage.fires` — `phase.stage == 'verify' and phase.requires_coverage_audit == true`
44
+
45
+ ## 如何调用
46
+
47
+ 下面这套编号序列**就是** state machine —— 用 Bash 执行。**不要**从上方 Overview 自行演绎等价流程:
48
+ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 spawn-ready prompt;**你**用
49
+ CC-native Task / Agent 工具 spawn subagent(保持 session 响应 + 让澄清 round-trip 能回到用户)。
50
+
51
+ **不要** pipe 到 `harnessed run verify-validate-phase` —— 那是 CI/headless 路径(in-process SDK spawn,在 Claude
52
+ Code 内部会阻塞 session)。
53
+
54
+ 1. Bash: `harnessed prompt verify-validate-phase --task "$ARGUMENTS" --json` → 解析 `{prompt, max_iterations, model}`。
55
+ 2. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,自循环:spawn → 检查 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。
56
+ 3. 若输出含 `STATUS: NEEDS_CLARIFICATION` + 问题列表:STOP,用 AskUserQuestion 原样转达,把答案 append 进 spec,再重 spawn。
57
+ 4. 命中 `<promise>COMPLETE</promise>`:Bash `harnessed checkpoint complete verify-validate-phase --summary "<one-line>"`。evidence guard 在此运行(fail-CLOSED):若声明的 `artifacts_expected` 文件缺失会 exit 非零 —— 重 spawn 产出它再算 done。
58
+
59
+ <!-- harnessed-generated:v4.9.3 -->
60
+
61
+ ## 参考资料
62
+
63
+ - D-04 Stage ④ Verify conditional sub 分解
64
+ - v13.0 P43 上游 re-sync — GSD validate-phase wire (Nyquist 覆盖后向查漏, TDD 前向之外)
65
+ - workflows/capabilities.yaml — gsd-validate-phase
66
+ - workflows/judgments/stage-routing.yaml — verify-validate-phase-coverage trigger
67
+ - workflows/verify/eval-review/workflow.yaml — sister conditional-sub pattern (v13.0 P42)
@@ -0,0 +1,33 @@
1
+ # workflows/verify/validate-phase/workflow.yaml — v13.0 P43 (upstream re-sync wire)
2
+ #
3
+ # Stage ④ verify sub-workflow — GSD /gsd-validate-phase Nyquist 覆盖审计
4
+ # (requires_coverage_audit 触发, 可选 conditional). 回溯审计 phase 完成后的
5
+ # requirement→test 覆盖缺口, 为未覆盖 requirement 生成测试 (gsd-nyquist-auditor agent)。
6
+ # 补 TDD 前向写测试之外的后向查漏。
7
+ #
8
+ # Sister refs:
9
+ # - workflows/judgments/stage-routing.yaml verify-validate-phase-coverage trigger
10
+ # - workflows/capabilities.yaml — gsd-validate-phase (Bucket 2, impl: gsd, cmd: /gsd-validate-phase)
11
+ # - workflows/verify/eval-review/workflow.yaml — sister conditional-sub pattern (v13.0 P42)
12
+
13
+ schema_version: harnessed.workflow.v3
14
+ workflow: verify-validate-phase
15
+ description: |
16
+ Stage ④ GSD /gsd-validate-phase Nyquist 覆盖审计 (requires_coverage_audit 触发, 可选 conditional)。
17
+ Gate: judgments.stage-routing.verify-validate-phase-coverage.fires (phase.requires_coverage_audit
18
+ == true) — 高可靠性/合规 phase fire; 普通 PR skip。回溯查 requirement→test 覆盖缺口,
19
+ 为未覆盖项生成测试, 产出 VALIDATION.md。补 TDD 前向之外的后向查漏。
20
+
21
+ disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
22
+ tools_available: [gsd-validate-phase]
23
+
24
+ phases:
25
+ - id: 01-validate-phase
26
+ name: gsd-validate-phase (Nyquist 覆盖审计 — requires_coverage_audit 触发)
27
+ upstream: gsd
28
+ capability: '{{ capabilities.gsd-validate-phase.cmd }}'
29
+ model: sonnet
30
+ gate: judgments.stage-routing.verify-validate-phase-coverage.fires
31
+ max_iterations: 3
32
+ # ADR-0033 evidence guard — declare report artifact so the evidence guard is real.
33
+ artifacts_expected: [VALIDATION.md]