harnessed 4.11.2 → 4.12.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.
- package/dist/cli.mjs +8 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/skill-packs/gsd.yaml +3 -3
- package/manifests/skill-packs/gstack.yaml +3 -3
- package/manifests/tools/superpowers.yaml +3 -3
- package/package.json +1 -1
- package/workflows/capabilities.yaml +58 -4
- package/workflows/judgments/stage-routing.yaml +12 -0
- package/workflows/task/deliver/workflow.yaml +10 -0
- package/workflows/verify/auto/workflow.yaml +8 -0
- package/workflows/verify/eval-review/SKILL.md +68 -0
- package/workflows/verify/eval-review/SKILL.zh-Hans.md +67 -0
- package/workflows/verify/eval-review/workflow.yaml +34 -0
- package/workflows/verify/validate-phase/SKILL.md +68 -0
- package/workflows/verify/validate-phase/SKILL.zh-Hans.md +67 -0
- package/workflows/verify/validate-phase/workflow.yaml +33 -0
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,QAkGb,CAAA;;;AC/FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.12.0\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
|
|
@@ -19,7 +19,7 @@ spec:
|
|
|
19
19
|
install:
|
|
20
20
|
method: npm-cli
|
|
21
21
|
cmd: "npx --yes @opengsd/gsd-core@latest --claude --global"
|
|
22
|
-
npm_version: ^1.
|
|
22
|
+
npm_version: ^1.6.0
|
|
23
23
|
idempotent_check: "test -d ~/.claude/skills/gsd-plan-phase"
|
|
24
24
|
verify:
|
|
25
25
|
cmd: "test -f ~/.claude/skills/gsd-plan-phase/SKILL.md"
|
|
@@ -30,8 +30,8 @@ spec:
|
|
|
30
30
|
- ~/.claude/skills/gsd-plan-phase
|
|
31
31
|
upstream_health:
|
|
32
32
|
stability: stable
|
|
33
|
-
last_check: "2026-06-
|
|
34
|
-
last_known_good_version: 1.
|
|
33
|
+
last_check: "2026-06-30"
|
|
34
|
+
last_known_good_version: 1.6.0
|
|
35
35
|
fallback_action: warn
|
|
36
36
|
signed_by: easyinplay
|
|
37
37
|
platforms:
|
|
@@ -19,7 +19,7 @@ spec:
|
|
|
19
19
|
install:
|
|
20
20
|
method: git-clone-with-setup
|
|
21
21
|
cmd: "rm -rf ~/.claude/skills/gstack && git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && bash ./setup.sh"
|
|
22
|
-
git_ref:
|
|
22
|
+
git_ref: 14fc0866d9ac9d09d25adcac7b4437c0a235902b
|
|
23
23
|
idempotent_check: "test -d ~/.claude/skills/gstack/.git"
|
|
24
24
|
verify:
|
|
25
25
|
cmd: "test -f ~/.claude/skills/gstack/skills/office-hours.md"
|
|
@@ -30,8 +30,8 @@ spec:
|
|
|
30
30
|
- ~/.claude/skills/gstack
|
|
31
31
|
upstream_health:
|
|
32
32
|
stability: stable
|
|
33
|
-
last_check: "2026-06-
|
|
34
|
-
last_known_good_version: 1.
|
|
33
|
+
last_check: "2026-06-30"
|
|
34
|
+
last_known_good_version: 1.58.0.0
|
|
35
35
|
fallback_action: warn
|
|
36
36
|
signed_by: easyinplay
|
|
37
37
|
platforms:
|
|
@@ -23,7 +23,7 @@ spec:
|
|
|
23
23
|
install:
|
|
24
24
|
method: cc-plugin-marketplace
|
|
25
25
|
cmd: "/plugin marketplace add obra/superpowers-marketplace && /plugin install superpowers@superpowers-marketplace"
|
|
26
|
-
git_ref:
|
|
26
|
+
git_ref: v6.0.3
|
|
27
27
|
idempotent_check: "/plugin list | grep -q superpowers"
|
|
28
28
|
verify:
|
|
29
29
|
cmd: "/plugin list | grep -q superpowers"
|
|
@@ -32,8 +32,8 @@ spec:
|
|
|
32
32
|
cmd: "/plugin uninstall superpowers@superpowers-marketplace"
|
|
33
33
|
upstream_health:
|
|
34
34
|
stability: stable
|
|
35
|
-
last_check: "2026-
|
|
36
|
-
last_known_good_version:
|
|
35
|
+
last_check: "2026-06-30"
|
|
36
|
+
last_known_good_version: 6.0.3
|
|
37
37
|
fallback_action: warn
|
|
38
38
|
signed_by: easyinplay
|
|
39
39
|
platforms:
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# ADR 0024+ + npm patch release (2-3 day cycle). Schema = harnessed.capabilities.v1 (sister
|
|
9
9
|
# Phase 2.2 schemaVersion 7 surface convention).
|
|
10
10
|
#
|
|
11
|
-
# Entry buckets (5, total
|
|
11
|
+
# Entry buckets (5, total 39 — v13.0 P42 +gsd-eval-review[B2] +verification-before-completion[B4]; P43 +diagram[B7] +gsd-validate-phase[B2], +systematic-debugging alias on gsd-debug):
|
|
12
12
|
# 1. mattpocock 12 高频招式 (D-09) — grill-with-docs / zoom-out / diagnose / caveman /
|
|
13
13
|
# grill-me / tdd / to-prd / to-issues /
|
|
14
14
|
# improve-codebase-architecture / code-review /
|
|
@@ -318,12 +318,14 @@ capabilities:
|
|
|
318
318
|
cmd: /gsd-debug
|
|
319
319
|
since: v2.0
|
|
320
320
|
category: tool-slash-cmd
|
|
321
|
-
description: GSD systematic debugging (overlap with mattpocock /diagnose — alias)
|
|
321
|
+
description: GSD systematic debugging (overlap with mattpocock /diagnose + superpowers systematic-debugging — alias)
|
|
322
322
|
# ADR-0034 Finding 1 — ECC per-language build-resolvers收编 as debug/verify-dimension
|
|
323
323
|
# aliases (build-failure fix; runtime picks language-matching one). Opt-in: no-op
|
|
324
324
|
# when ECC absent.
|
|
325
325
|
aliases:
|
|
326
326
|
- { impl: mattpocock-skills, cmd: /diagnose }
|
|
327
|
+
# v13.0 P43 — superpowers-native debug alias (双 impl 备选, sister tdd superpowers主/mattpocock备)
|
|
328
|
+
- { impl: superpowers, cmd: "superpowers:systematic-debugging" }
|
|
327
329
|
- { impl: ecc, cmd: "ecc:rust-build" }
|
|
328
330
|
- { impl: ecc, cmd: "ecc:go-build" }
|
|
329
331
|
- { impl: ecc, cmd: "ecc:build-fix" }
|
|
@@ -352,6 +354,33 @@ capabilities:
|
|
|
352
354
|
fires_when:
|
|
353
355
|
- phase.stage == 'verify'
|
|
354
356
|
|
|
357
|
+
# v13.0 P42 (upstream re-sync) — GSD AI phase eval 覆盖审计 (conditional has_ai_phase;
|
|
358
|
+
# sister verify-qa/security/design 模式). Pairs with plan 侧 gsd-ai-integration-phase
|
|
359
|
+
# (AI-SPEC eval strategy): verify 侧回查实现是否真覆盖规划的 eval 维度。
|
|
360
|
+
gsd-eval-review:
|
|
361
|
+
impl: gsd
|
|
362
|
+
install_type: user-skill
|
|
363
|
+
skill_dir: gsd-eval-review
|
|
364
|
+
cmd: /gsd-eval-review
|
|
365
|
+
since: v13.0
|
|
366
|
+
category: tool-slash-cmd
|
|
367
|
+
description: AI phase eval 覆盖审计 (verify 回查 AI-SPEC eval 是否真覆盖)
|
|
368
|
+
fires_when:
|
|
369
|
+
- phase.stage == 'verify' AND phase.has_ai_phase == true
|
|
370
|
+
|
|
371
|
+
# v13.0 P43 (upstream re-sync) — GSD Nyquist 覆盖审计 (verify 回溯查 requirement→test
|
|
372
|
+
# 覆盖缺口, 补 TDD 前向之外的后向查漏; conditional requires_coverage_audit)。
|
|
373
|
+
gsd-validate-phase:
|
|
374
|
+
impl: gsd
|
|
375
|
+
install_type: user-skill
|
|
376
|
+
skill_dir: gsd-validate-phase
|
|
377
|
+
cmd: /gsd-validate-phase
|
|
378
|
+
since: v13.0
|
|
379
|
+
category: tool-slash-cmd
|
|
380
|
+
description: GSD Nyquist 覆盖审计 (verify 回溯查 requirement→test 缺口并补测)
|
|
381
|
+
fires_when:
|
|
382
|
+
- phase.stage == 'verify' AND phase.requires_coverage_audit == true
|
|
383
|
+
|
|
355
384
|
# ============================================================================
|
|
356
385
|
# Bucket 3 — gstack 治理关卡 6 (per D-12 + CLAUDE.md "gstack 治理关卡")
|
|
357
386
|
# ============================================================================
|
|
@@ -489,6 +518,18 @@ capabilities:
|
|
|
489
518
|
- subtask.has_api_contract == true
|
|
490
519
|
- subtask.error_cost == 'high'
|
|
491
520
|
|
|
521
|
+
# v13.0 P42 (upstream re-sync) — superpowers task 级 per-claim 证据门 (evidence before
|
|
522
|
+
# claims): 子任务声明 done/fixed/passing 前强制跑验证命令并贴 output。Pairs with
|
|
523
|
+
# ralph-loop COMPLETE + karpathy 完成=验收通过 (sister CLAUDE.md 子任务交付铁律)。
|
|
524
|
+
verification-before-completion:
|
|
525
|
+
impl: superpowers
|
|
526
|
+
cmd: "superpowers:verification-before-completion"
|
|
527
|
+
since: v13.0
|
|
528
|
+
category: tool-slash-cmd
|
|
529
|
+
description: 子任务声明 done/fixed/passing 前强制跑验证命令并贴 output (evidence before claims)
|
|
530
|
+
fires_when:
|
|
531
|
+
- subtask.completion_required == true
|
|
532
|
+
|
|
492
533
|
# ============================================================================
|
|
493
534
|
# Bucket 5 — Agent Teams 3 升级触发 (per D-11 + Q-AUDIT-5b schema fix +
|
|
494
535
|
# bundled Agent Teams prerequisite: CC 2.1.133+ + env var)
|
|
@@ -606,10 +647,10 @@ capabilities:
|
|
|
606
647
|
discipline_ref: workflows/disciplines/doc-discipline.yaml
|
|
607
648
|
|
|
608
649
|
# ============================================================================
|
|
609
|
-
# Bucket 7 — gstack
|
|
650
|
+
# Bucket 7 — gstack 34 optional registry-only (D-12 NEW v3; +diagram v13.0 P43)
|
|
610
651
|
# ============================================================================
|
|
611
652
|
#
|
|
612
|
-
#
|
|
653
|
+
# 34 gstack optional slash cmd — entry name 无 `gstack-` prefix per Pattern A E.2 LOCK
|
|
613
654
|
# (sister project CLAUDE.md gstack skill routing 直接 invoke cmd 名)。
|
|
614
655
|
# 例外 2 alias suffix `-gstack` 避免命名冲突:
|
|
615
656
|
# - retro-gstack (alias to harnessed standalone /retro)
|
|
@@ -990,6 +1031,19 @@ capabilities:
|
|
|
990
1031
|
fires_when:
|
|
991
1032
|
- subtask.needs_pdf_export == true
|
|
992
1033
|
|
|
1034
|
+
# v13.0 P43 (upstream re-sync) — gstack 1.58.0.0 NEW skill (commit 14fc0866
|
|
1035
|
+
# "diagram + multi-format document")。英文/mermaid → 可编辑架构图; mirror make-pdf on-demand。
|
|
1036
|
+
diagram:
|
|
1037
|
+
impl: gstack
|
|
1038
|
+
install_type: user-skill
|
|
1039
|
+
skill_dir: gstack
|
|
1040
|
+
cmd: /diagram
|
|
1041
|
+
since: v13.0
|
|
1042
|
+
category: tool-slash-cmd
|
|
1043
|
+
description: 英文描述/mermaid → 可编辑架构图 (.mmd + .excalidraw + SVG; gstack 1.58 NEW)
|
|
1044
|
+
fires_when:
|
|
1045
|
+
- subtask.needs_diagram == true
|
|
1046
|
+
|
|
993
1047
|
# 2 alias suffix `-gstack` (避免命名冲突 per Pattern A E.2)
|
|
994
1048
|
retro-gstack:
|
|
995
1049
|
impl: gstack
|
|
@@ -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]
|