harnessed 3.9.14 → 3.9.16

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.
@@ -1,141 +0,0 @@
1
- # workflows/verify-work/workflow.yaml — Phase v2.0-2.4 W2 T2.4.W2.2 (D-12 + R20.12 + R20.11 + R20.14)
2
- #
3
- # Stage ④ Verify 完整 workflow — 9-phase composition per D-12 (Q-AUDIT-2 amend) verbatim + R20.12 acceptance:
4
- # 必跑串行 (01-02) → 并行 fan-out (03) → 强制 conditional (04) → 可选 conditional (05-07) → 末尾串行 (08) → Agent Team 升级 (09)
5
- #
6
- # Sister refs:
7
- # - workflows/capabilities.yaml — gsd-verify-work / gsd-progress / code-review / gstack-review / gstack-qa / gstack-cso / gstack-design-review / code-simplifier / agent-teams-create 9 entry (Phase 2.3 W0.1 SHIPPED)
8
- # - workflows/judgments/parallelism-gate.yaml — subagent-default.fires (default fan-out) + agent-teams-upgrade.fires (5 触发 OR-chain; Phase 2.3 W0.2 SHIPPED)
9
- # - workflows/defaults.yaml — ralph_max_iterations.verify-work.{01-gsd-verify-work=3, 02-code-review=5, 03-gstack-review=3, 04-code-simplifier=5} (Phase 2.3 W1.2 SHIPPED)
10
- # - src/workflow/schema/workflow.ts WorkflowSchemaV2 (Phase 2.4 W0.1 SHIPPED 86L)
11
- # - Sister pattern workflows/plan-feature/workflow.yaml v2 + workflows/execute-task/phases.yaml v2 (Phase 2.4 W1 SHIPPED)
12
- #
13
- # Workflow-level on_veto: halt_workflow (D-04 PUSH 任 1 phase veto → 全 halt; engine-level wiring,
14
- # NOT yaml v2 root schema strict additionalProperties:false per T2.4.W0.1 + STRIDE T-2.2-02)。
15
- #
16
- # Fallback 3 铁律 chain_isolation (R20.16): phase ≥04 各 conditional `on: [..., {action: skip}]` 实装 —
17
- # skip 04-gstack-review ≠ skip 08-code-simplifier 等 (条件式 fallback, 非互相级联跳过)。
18
-
19
- schema_version: harnessed.workflow.v2
20
- workflow: verify-work
21
- description: |
22
- verify-work Stage ④ Verify 完整 workflow — 9-phase composition per CLAUDE.md verbatim:
23
- gsd-verify-work UAT-driven + gsd-progress 状态同步 必跑串行 → code-review 多 agent 并行 fan-out
24
- → gstack /review Paranoid Staff Eng 关键模块强制 → 可选 /qa /cso /design-review conditional
25
- → code-simplifier 末尾串行 → 关键发布/大重构 PR 升级 4-specialist Agent Team Pattern C
26
- 多维度审查 (code-review + gstack-review + gstack-cso + gstack-qa 互相质询, NOT fire-and-forget)。
27
- Cleanup mandatory (bundled Agent Teams discipline): SendMessage shutdown_request +
28
- TeamDelete — engine-level wiring, NOT yaml v2 schema scope.
29
-
30
- phases:
31
- # ============================================================================
32
- # 必跑串行 (2 phase) — gsd-verify-work 起点 + gsd-progress 状态同步
33
- # ============================================================================
34
- - id: 01-gsd-verify-work
35
- name: gsd-verify-work (UAT-driven conversational verification + acceptance criteria check)
36
- upstream: gsd
37
- capability: '{{ capabilities.gsd-verify-work.cmd }}'
38
- model: sonnet
39
- max_iterations: '{{ defaults.ralph_max_iterations.verify-work.01-gsd-verify-work }}'
40
-
41
- - id: 02-gsd-progress
42
- name: gsd-progress (状态同步 — ROADMAP/STATE/REQUIREMENTS 更新)
43
- upstream: gsd
44
- capability: '{{ capabilities.gsd-progress.cmd }}'
45
- model: haiku
46
- max_iterations: 2
47
-
48
- # ============================================================================
49
- # 并行 fan-out (1 phase) — code-review 多 agent (subagent default per CLAUDE.md 子任务并行机制)
50
- # ============================================================================
51
- - id: 03-code-review-parallel
52
- name: code-review (multi-agent 并行 fan-out — 高置信度 finding)
53
- upstream: mattpocock-skills
54
- capability: '{{ capabilities.code-review.cmd }}'
55
- model: sonnet
56
- max_iterations: '{{ defaults.ralph_max_iterations.verify-work.02-code-review }}'
57
- parallelism: judgments.parallelism-gate.subagent-default.fires
58
-
59
- # ============================================================================
60
- # 关键模块强制 conditional (1 phase) — gstack /review Paranoid Staff Engineer
61
- # ============================================================================
62
- - id: 04-gstack-review-conditional
63
- name: gstack-review (Paranoid Staff Engineer 视角 — 关键模块 PR 前强制)
64
- upstream: gstack
65
- capability: '{{ capabilities.gstack-review.cmd }}'
66
- model: opus
67
- max_iterations: '{{ defaults.ralph_max_iterations.verify-work.03-gstack-review }}'
68
- on:
69
- - if: 'phase.is_critical_module == true'
70
- action: invoke
71
- - if: 'phase.is_critical_module == false'
72
- action: skip
73
-
74
- # ============================================================================
75
- # 可选 conditional (3 phase) — /qa /cso /design-review (按 phase fact context 独立触发)
76
- # ============================================================================
77
- - id: 05-qa-conditional
78
- name: gstack-qa (E2E QA 验收 — has_ui_changes 触发)
79
- upstream: gstack
80
- capability: '{{ capabilities.gstack-qa.cmd }}'
81
- model: sonnet
82
- max_iterations: 3
83
- on:
84
- - if: 'phase.has_ui_changes == true'
85
- action: invoke
86
- - if: 'phase.has_ui_changes == false'
87
- action: skip
88
-
89
- - id: 06-cso-conditional
90
- name: gstack-cso (安全审查 OWASP/auth/secrets — has_auth_or_secrets 触发)
91
- upstream: gstack
92
- capability: '{{ capabilities.gstack-cso.cmd }}'
93
- model: opus
94
- max_iterations: 3
95
- on:
96
- - if: 'phase.has_auth_or_secrets == true'
97
- action: invoke
98
- - if: 'phase.has_auth_or_secrets == false'
99
- action: skip
100
-
101
- - id: 07-design-review-conditional
102
- name: gstack-design-review (设计系统一致性 + AI 审美问题 — has_design_changes 触发)
103
- upstream: gstack
104
- capability: '{{ capabilities.gstack-design-review.cmd }}'
105
- model: sonnet
106
- max_iterations: 3
107
- on:
108
- - if: 'phase.has_design_changes == true'
109
- action: invoke
110
- - if: 'phase.has_design_changes == false'
111
- action: skip
112
-
113
- # ============================================================================
114
- # 末尾串行 (1 phase) — code-simplifier (移除重复/多余逻辑)
115
- # ============================================================================
116
- - id: 08-code-simplifier
117
- name: code-simplifier (末尾串行 — 简化 + 移除重复)
118
- upstream: mattpocock-skills
119
- capability: '{{ capabilities.code-simplifier.cmd }}'
120
- model: sonnet
121
- max_iterations: '{{ defaults.ralph_max_iterations.verify-work.04-code-simplifier }}'
122
-
123
- # ============================================================================
124
- # Agent Team 升级 (1 phase) — 关键发布 / 大重构 PR 4-specialist Pattern C
125
- # ============================================================================
126
- # Bundled Agent Teams Pattern C — 多维度审查 (≥3 specialist 需要互相质询而非
127
- # fire-and-forget): code-review + gstack-review + gstack-cso + gstack-qa
128
- # team_cost < 2 × subagent_cost 估算前置 (开 team 前必估算; bundled cost guideline)
129
- # cleanup mandatory: SendMessage shutdown_request + TeamDelete (engine-level wiring)
130
- - id: 09-agent-team-multispecialist
131
- name: agent-team-upgrade (4-specialist Pattern C — 关键发布/大重构 多维度审查 互相质询)
132
- upstream: claude-platform
133
- capability: '{{ capabilities.agent-teams-create.cmd }}'
134
- model: opus
135
- max_iterations: 1
136
- parallelism: judgments.parallelism-gate.agent-teams-upgrade.fires
137
- on:
138
- - if: 'phase.is_major_release == true or phase.is_large_refactor == true'
139
- action: invoke
140
- - if: 'phase.is_major_release == false and phase.is_large_refactor == false'
141
- action: skip