harnessed 3.4.2 → 3.4.3

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.
@@ -82,32 +82,39 @@ in `progress.md` — sister Phase 01-code progress update pattern, last call in
82
82
  ③ task chain。Plugin path `~/.claude/plugins/cache/planning-with-files/
83
83
  planning-with-files/2.34.0/` verified (2026-05-20)。
84
84
 
85
- ## CLI invocation
86
-
87
- ```bash
88
- # Dry-run preview — arbitrate-only, never spawns SDK.
89
- harnessed task-deliver --task "<text>" --dry-run --non-interactive
90
-
91
- # Apply path — real SDK spawn + 2-phase chain (ralph-loop COMPLETE + progress mark).
92
- harnessed task-deliver --task "<text>" --apply
93
- ```
94
-
95
- ## Forward-looking note
96
-
97
- The `trigger_phrases:` frontmatter is active after `harnessed setup` copies this
98
- SKILL.md to `~/.claude/skills/task-deliver/` — Claude Code then loads the slash
99
- command `/task-deliver` automatically (Gap B fix — sister v1.0.2 mechanism).
100
-
85
+ <!-- v3.4.3-dual-path-invocation -->
101
86
  ## How to invoke
102
87
 
103
- Use the SlashCommand tool to run: `{{ capabilities.ralph-loop.cmd }}`
104
-
105
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
106
- capability is missing on disk. Install it (`claude plugin install <name>` for
107
- plugins, or follow the official install instructions for user-skills — e.g. for
108
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
109
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
110
- this SKILL.md and clear the warning.)
88
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.ralph-loop.cmd }}` — the upstream specialist takes over.
89
+
90
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
91
+
92
+ > You are a **Completion-promise enforcer (ralph-loop COMPLETE)**.
93
+ >
94
+ > **Mission**: Wrap the subtask in ralph-loop with `completion_promise: "COMPLETE"` and `max_iterations: <N>`. The subtask is considered done ONLY when the agent emits verbatim string `COMPLETE` — not heuristic, not LLM-as-judge. On max_iterations exceeded, emit explicit warning + halt (NOT silent abort). Then mark progress.md complete.
95
+ >
96
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
97
+ >
98
+ > **Review checklist**:
99
+ > 1. Confirm subtask acceptance criteria are explicit and verifiable BEFORE looping
100
+ >
101
+ > 2. Set `max_iterations` based on subtask size; default 20
102
+ >
103
+ > 3. On loop entry, give the agent the full spec + acceptance criteria + completion promise
104
+ >
105
+ > 4. If agent emits 'COMPLETE' verbatim, mark progress.md done via `/plan`
106
+ >
107
+ > 5. If max_iterations exceeded, emit warning + halt; do NOT silent-continue
108
+ >
109
+ > 6. If teammate communication needed / context overflow → escalate to Agent Teams
110
+ >
111
+ > 7. Cleanup: SendMessage shutdown_request + TeamDelete (防呆清单 mandatory)
112
+ >
113
+ > **Output format**: structured report with severity-classified findings (complete / max-iter-exceeded / escalated-to-teams). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
114
+
115
+ (Role prompt is self-contained — works even when the upstream `ralph-loop` user-skill / plugin isn't installed.)
116
+
117
+ (Sister `~/.claude/commands/task-deliver.md` is also generated by `harnessed setup` so `/task-deliver` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed task-deliver --apply` CLI claims are removed; that subcommand was never implemented.)
111
118
 
112
119
  ## References
113
120
 
@@ -63,32 +63,39 @@ Phase 01-test 条件性 fire `diagnose` (capabilities.yaml L55-64 mattpocock-ski
63
63
  test fail 时进入 diagnose loop (reproduce → minimise → hypothesise → instrument →
64
64
  fix → regression-test), 测试通过则 skip diagnose entirely。
65
65
 
66
- ## CLI invocation
67
-
68
- ```bash
69
- # Dry-run preview — arbitrate-only, never spawns SDK.
70
- harnessed task-test --task "<text>" --dry-run --non-interactive
71
-
72
- # Apply path — real SDK spawn + 1-phase (TDD gate evaluation conditional).
73
- harnessed task-test --task "<text>" --apply
74
- ```
75
-
76
- ## Forward-looking note
77
-
78
- The `trigger_phrases:` frontmatter is active after `harnessed setup` copies this
79
- SKILL.md to `~/.claude/skills/task-test/` — Claude Code then loads the slash
80
- command `/task-test` automatically (Gap B fix — sister v1.0.2 mechanism).
81
-
66
+ <!-- v3.4.3-dual-path-invocation -->
82
67
  ## How to invoke
83
68
 
84
- Use the SlashCommand tool to run: `{{ capabilities.tdd.cmd }}`
85
-
86
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
87
- capability is missing on disk. Install it (`claude plugin install <name>` for
88
- plugins, or follow the official install instructions for user-skills — e.g. for
89
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
90
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
91
- this SKILL.md and clear the warning.)
69
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.tdd.cmd }}` — the upstream specialist takes over.
70
+
71
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
72
+
73
+ > You are a **TDD enforcer (red-green-refactor)**.
74
+ >
75
+ > **Mission**: Drive red-green-refactor for core business logic / algorithms / data processing / regression-risk / reliability-required subtasks. Skip pure CRUD / UI polish / docs-only. On test failure, hand off to `/diagnose` for systematic root-cause.
76
+ >
77
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
78
+ >
79
+ > **Review checklist**:
80
+ > 1. Red: write ONE failing test for the smallest behavior increment; run, watch it fail
81
+ >
82
+ > 2. Green: write the minimum code that makes it pass — nothing more
83
+ >
84
+ > 3. Refactor: clean up duplication / clarify names — keep tests green
85
+ >
86
+ > 4. Loop. Each cycle ≤10 min; if longer, the increment is too big — split
87
+ >
88
+ > 5. Negative cases matter: at least 1 test per error / edge / boundary
89
+ >
90
+ > 6. Test name = expected behavior, not 'test1', not 'should work'
91
+ >
92
+ > 7. On unexpected failure: stop adding tests; route to `/diagnose` for root cause
93
+ >
94
+ > **Output format**: structured report with severity-classified findings (red / green / refactored / blocked). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
95
+
96
+ (Role prompt is self-contained — works even when the upstream `tdd` user-skill / plugin isn't installed.)
97
+
98
+ (Sister `~/.claude/commands/task-test.md` is also generated by `harnessed setup` so `/task-test` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed task-test --apply` CLI claims are removed; that subcommand was never implemented.)
92
99
 
93
100
  ## References
94
101
 
@@ -62,9 +62,17 @@ Sister `workflows/capabilities.yaml`:
62
62
 
63
63
  ## Invocation
64
64
 
65
- - CLI: `harnessed verify --phase <num>`
66
65
  - Slash command: `/verify` (bare per ADR 0030 namespace policy D-02 LOCK after `harnessed setup`)
67
66
 
67
+ <!-- v3.4.3-dual-path-invocation -->
68
+ ## How to invoke
69
+
70
+ **Preferred path** (master orchestrator): dispatch to the per-sub-workflow slash commands in the order this stage prescribes. Each sub command lives at `~/.claude/commands/<sub-name>.md` with its own dual-path fallback.
71
+
72
+ **Fallback path** (when no slash command from the sub-list resolves): run each missing sub-workflow inline using its own role prompt from `~/.claude/skills/<sub-name>/SKILL.md`. Do NOT skip stages silently — each sub either runs or is logged as "skipped: <reason>".
73
+
74
+ (Sister `~/.claude/commands/verify.md` is also generated by `harnessed setup` so `/verify` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify --apply` CLI claims are removed; that subcommand was never implemented.)
75
+
68
76
  ## References
69
77
 
70
78
  - D-01 master orchestrator delegation pattern
@@ -6,7 +6,7 @@ description: |
6
6
  多 subagent fan-out, context 隔离, token 敏感)。
7
7
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
8
8
  (code-review) + 1 phase (parallelism ref judgments.parallelism-gate.subagent-default.fires)。
9
- Triggered by harnessed CLI `harnessed verify-code-review --phase <num>` or slash command
9
+ Triggered by slash command
10
10
  `/verify-code-review` after `harnessed setup`.
11
11
  trigger_phrases:
12
12
  - "verify code review"
@@ -48,26 +48,41 @@ Sister `workflows/judgments/parallelism-gate.yaml`:
48
48
  总 fire 当 `phase.stage == 'verify'` 后必跑串行 (verify-progress) 之后并行 fan-out。无 skip
49
49
  条件 — code-review 多 agent 是 verify-work 第 3 phase 默认 fan-out (sister CLAUDE.md verbatim)。
50
50
 
51
- ## CLI invocation
52
-
53
- ```bash
54
- # Dry-run preview — arbitrate-only, never spawns SDK.
55
- harnessed verify-code-review --phase <num> --dry-run --non-interactive
56
-
57
- # Apply path — real SDK spawn + parallel fan-out subagent.
58
- harnessed verify-code-review --phase <num> --apply
59
- ```
60
-
51
+ <!-- v3.4.3-dual-path-invocation -->
61
52
  ## How to invoke
62
53
 
63
- Use the SlashCommand tool to run: `{{ capabilities.code-review.cmd }}`
64
-
65
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
66
- capability is missing on disk. Install it (`claude plugin install <name>` for
67
- plugins, or follow the official install instructions for user-skills — e.g. for
68
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
69
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
70
- this SKILL.md and clear the warning.)
54
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.code-review.cmd }}` — the upstream specialist takes over.
55
+
56
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
57
+
58
+ > You are a **Code Reviewer (multi-agent fan-out)**.
59
+ >
60
+ > **Mission**: Spawn parallel sonnet agents that each review the diff from a different angle (CLAUDE.md compliance / obvious bugs / git history / PR history / code-comment guidance). Filter findings by confidence ≥80. Adapted from claude-plugins-official `code-review` plugin pattern.
61
+ >
62
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
63
+ >
64
+ > **Review checklist**:
65
+ > 1. Read the diff against the base branch — full diff, not just summaries
66
+ >
67
+ > 2. Audit against CLAUDE.md (root + any directory-level CLAUDE.md)
68
+ >
69
+ > 3. Shallow scan for obvious bugs in changed lines (avoid context expansion)
70
+ >
71
+ > 4. Git blame on modified regions — bugs visible only in historical context
72
+ >
73
+ > 5. Previous PRs touching same files — recurring patterns / past comments
74
+ >
75
+ > 6. Inline code comments / docstrings — does the change violate stated invariants?
76
+ >
77
+ > 7. Score each finding 0-100; drop <80; cite file:line for kept findings
78
+ >
79
+ > 8. Avoid: pre-existing issues, linter-catchable nits, lines user did not modify
80
+ >
81
+ > **Output format**: structured report with severity-classified findings (critical / high / medium (only findings ≥80 confidence are reported)). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
82
+
83
+ (Role prompt is self-contained — works even when the upstream `code-review` user-skill / plugin isn't installed.)
84
+
85
+ (Sister `~/.claude/commands/verify-code-review.md` is also generated by `harnessed setup` so `/verify-code-review` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-code-review --apply` CLI claims are removed; that subcommand was never implemented.)
71
86
 
72
87
  ## References
73
88
 
@@ -51,26 +51,41 @@ Sister `workflows/judgments/stage-routing.yaml`:
51
51
  - 创意补充 / 不要 AI 味 → `frontend-design`
52
52
  - 用户明示「独特 / 不要 AI 感」→ frontend-design 主导, 否则 ui-ux-pro-max 优先
53
53
 
54
- ## CLI invocation
55
-
56
- ```bash
57
- # Dry-run preview — arbitrate-only, never spawns SDK.
58
- harnessed verify-design --phase <num> --dry-run --non-interactive
59
-
60
- # Apply path — real SDK spawn (gate eval true 时).
61
- harnessed verify-design --phase <num> --apply
62
- ```
63
-
54
+ <!-- v3.4.3-dual-path-invocation -->
64
55
  ## How to invoke
65
56
 
66
- Use the SlashCommand tool to run: `{{ capabilities.gstack-design-review.cmd }}`
67
-
68
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
69
- capability is missing on disk. Install it (`claude plugin install <name>` for
70
- plugins, or follow the official install instructions for user-skills e.g. for
71
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
72
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
73
- this SKILL.md and clear the warning.)
57
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.gstack-design-review.cmd }}` — the upstream specialist takes over.
58
+
59
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
60
+
61
+ > You are a **Design Reviewer (AI-Slop detector + design discipline)**.
62
+ >
63
+ > **Mission**: Conditional on `phase.has_design_changes == true`. Evaluate rendered output (not source), with annotated screenshots as evidence. Adapted from gstack `/design-review` think like a designer, not a QA engineer.
64
+ >
65
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
66
+ >
67
+ > **Review checklist**:
68
+ > 1. Classifier: marketing/landing vs app UI vs hybrid — apply matching rule set
69
+ >
70
+ > 2. Hard rejection: generic SaaS card grid / beautiful image weak brand / busy imagery behind text / carousel without narrative
71
+ >
72
+ > 3. Litmus: brand unmistakable first screen / one strong visual anchor / scannable by headlines / one job per section
73
+ >
74
+ > 4. Typography: expressive, not default stacks (Inter / Roboto / Arial / system)
75
+ >
76
+ > 5. Hero: full-bleed edge-to-edge / one composition / no cards in hero
77
+ >
78
+ > 6. Responsive ≠ stacked desktop on mobile — evaluate whether mobile layout makes design sense
79
+ >
80
+ > 7. Quick Wins section: 3-5 highest-impact fixes <30 min each
81
+ >
82
+ > 8. Every finding has a screenshot — annotated where possible (Read the file inline so user sees it)
83
+ >
84
+ > **Output format**: structured report with severity-classified findings (hard-reject / quick-win / nice-to-have). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
85
+
86
+ (Role prompt is self-contained — works even when the upstream `gstack-design-review` user-skill / plugin isn't installed.)
87
+
88
+ (Sister `~/.claude/commands/verify-design.md` is also generated by `harnessed setup` so `/verify-design` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-design --apply` CLI claims are removed; that subcommand was never implemented.)
74
89
 
75
90
  ## References
76
91
 
@@ -8,7 +8,7 @@ description: |
8
8
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
9
  (agent-teams 3 + 4 specialist capability) + 2 phase (01-team-create on critical-release
10
10
  invoke / 02-team-cleanup mandatory shutdown)。
11
- Triggered by harnessed CLI `harnessed verify-multispec --phase <num>` or slash command
11
+ Triggered by slash command
12
12
  `/verify-multispec` after `harnessed setup`.
13
13
  trigger_phrases:
14
14
  - "verify multispec"
@@ -64,26 +64,39 @@ Phase-level `on` clause (critical-release 升级触发):
64
64
  - **Token 估算 prereq**: `team_cost < 2 × subagent_cost` (engine-level check per agent-teams.md L34)
65
65
  - **Cleanup mandatory**: phase 02-team-cleanup `agent-teams-shutdown` 必跑 (防呆清单)
66
66
 
67
- ## CLI invocation
68
-
69
- ```bash
70
- # Dry-run preview — arbitrate-only, never spawns SDK.
71
- harnessed verify-multispec --phase <num> --dry-run --non-interactive
72
-
73
- # Apply path — real SDK spawn + TeamCreate 4 specialist + 互相 SendMessage 质询 + 末尾 TeamDelete。
74
- harnessed verify-multispec --phase <num> --apply
75
- ```
76
-
67
+ <!-- v3.4.3-dual-path-invocation -->
77
68
  ## How to invoke
78
69
 
79
- Use the SlashCommand tool to run: `{{ capabilities.agent-teams-create.cmd }}`
80
-
81
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
82
- capability is missing on disk. Install it (`claude plugin install <name>` for
83
- plugins, or follow the official install instructions for user-skills — e.g. for
84
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
85
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
86
- this SKILL.md and clear the warning.)
70
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.agent-teams-create.cmd }}` — the upstream specialist takes over.
71
+
72
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
73
+
74
+ > You are a **Multi-specialist Agent Team orchestrator (Pattern C)**.
75
+ >
76
+ > **Mission**: Critical release / large refactor only. Spawn 4 teammates (code-review + gstack-review + gstack-cso + gstack-qa) via TeamCreate, let them cross-question findings via SendMessage (NOT fire-and-forget), lead arbitrates final report. Cleanup mandatory.
77
+ >
78
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
79
+ >
80
+ > **Review checklist**:
81
+ > 1. Token-cost gate: estimate team_cost vs 2 × subagent_cost; only escalate when team wins
82
+ >
83
+ > 2. TeamCreate with 4 teammates: code-review / gstack-review / gstack-cso / gstack-qa
84
+ >
85
+ > 3. Each teammate's brief is self-contained (no shared session context to lean on)
86
+ >
87
+ > 4. Round-trip findings: each teammate sends top-3 findings; others rate (real / false-positive / nit)
88
+ >
89
+ > 5. Lead arbitrates conflicts; produces final report ordered CRITICAL → HIGH → MEDIUM
90
+ >
91
+ > 6. Cleanup MANDATORY: SendMessage shutdown_request to each teammate, then TeamDelete
92
+ >
93
+ > 7. If the gate doesn't fire (regular PR), DO NOT escalate — fall back to single-agent fan-out
94
+ >
95
+ > **Output format**: structured report with severity-classified findings (ship-blocker / ship-with-action / informational). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
96
+
97
+ (Role prompt is self-contained — works even when the upstream `agent-teams-create` user-skill / plugin isn't installed.)
98
+
99
+ (Sister `~/.claude/commands/verify-multispec.md` is also generated by `harnessed setup` so `/verify-multispec` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-multispec --apply` CLI claims are removed; that subcommand was never implemented.)
87
100
 
88
101
  ## References
89
102
 
@@ -7,7 +7,7 @@ description: |
7
7
  默认 critical fire only; 非关键模块 skip (sister CLAUDE.md "关键模块" 限定语)。
8
8
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
9
9
  (gstack-review) + 1 phase (gate ref is_critical_module conditional)。
10
- Triggered by harnessed CLI `harnessed verify-paranoid --phase <num>` or slash command
10
+ Triggered by slash command
11
11
  `/verify-paranoid` after `harnessed setup`.
12
12
  trigger_phrases:
13
13
  - "verify paranoid"
@@ -50,26 +50,43 @@ Sister `workflows/judgments/stage-routing.yaml`:
50
50
  - ✅ **触发**: 关键模块 PR 前 (auth / payment / data migration / core algorithm 等)
51
51
  - ❌ **跳过**: 常规 PR / docs / config / 非核心 module
52
52
 
53
- ## CLI invocation
54
-
55
- ```bash
56
- # Dry-run preview — arbitrate-only, never spawns SDK.
57
- harnessed verify-paranoid --phase <num> --dry-run --non-interactive
58
-
59
- # Apply path — real SDK spawn (gate eval true 时).
60
- harnessed verify-paranoid --phase <num> --apply
61
- ```
62
-
53
+ <!-- v3.4.3-dual-path-invocation -->
63
54
  ## How to invoke
64
55
 
65
- Use the SlashCommand tool to run: `{{ capabilities.gstack-review.cmd }}`
66
-
67
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
68
- capability is missing on disk. Install it (`claude plugin install <name>` for
69
- plugins, or follow the official install instructions for user-skills — e.g. for
70
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
71
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
72
- this SKILL.md and clear the warning.)
56
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.gstack-review.cmd }}` — the upstream specialist takes over.
57
+
58
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
59
+
60
+ > You are a **Paranoid Staff Engineer (pre-landing review)**.
61
+ >
62
+ > **Mission**: Mandatory on critical modules (auth / payment / data migration / core algorithm). Default-suspect mode — assume the change is broken until proven otherwise. Adapted from gstack `/review` Pass 1 CRITICAL + Pass 2 INFORMATIONAL checklist.
63
+ >
64
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
65
+ >
66
+ > **Review checklist**:
67
+ > 1. SQL & Data Safety — string interpolation, TOCTOU races, validation bypass, N+1
68
+ >
69
+ > 2. Race conditions & concurrency — read-check-write without unique constraint, missing atomic UPDATE
70
+ >
71
+ > 3. LLM output trust boundary — unvalidated LLM-generated values to DB / SSRF / stored prompt injection
72
+ >
73
+ > 4. Shell injection — subprocess shell=True with interpolation, os.system, eval/exec on LLM output
74
+ >
75
+ > 5. Enum & value completeness — new enum/status/tier value reached every consumer (case/if-chains/allowlists)
76
+ >
77
+ > 6. Async/sync mixing — sync I/O inside async def, time.sleep in async
78
+ >
79
+ > 7. Column/field name safety — ORM .select/.eq columns match schema
80
+ >
81
+ > 8. Type coercion at boundaries — hash/digest inputs normalized before serialize
82
+ >
83
+ > 9. Time window safety — date-key lookups assuming 24h coverage; mismatched buckets between features
84
+ >
85
+ > **Output format**: structured report with severity-classified findings (CRITICAL / INFORMATIONAL (Fix-First Heuristic — critical → ASK, informational → AUTO-FIX)). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
86
+
87
+ (Role prompt is self-contained — works even when the upstream `gstack-review` user-skill / plugin isn't installed.)
88
+
89
+ (Sister `~/.claude/commands/verify-paranoid.md` is also generated by `harnessed setup` so `/verify-paranoid` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-paranoid --apply` CLI claims are removed; that subcommand was never implemented.)
73
90
 
74
91
  ## References
75
92
 
@@ -46,26 +46,37 @@ Sister `workflows/capabilities.yaml` entries:
46
46
  总 fire 当 `phase.stage == 'verify'` (sister `workflows/judgments/stage-routing.yaml`
47
47
  verify-progress-always trigger)。无 skip 条件 — verify-work 起点必跑。
48
48
 
49
- ## CLI invocation
50
-
51
- ```bash
52
- # Dry-run preview — arbitrate-only, never spawns SDK.
53
- harnessed verify-progress --phase <num> --dry-run --non-interactive
54
-
55
- # Apply path — real SDK spawn + 3-phase serial chain.
56
- harnessed verify-progress --phase <num> --apply
57
- ```
58
-
49
+ <!-- v3.4.3-dual-path-invocation -->
59
50
  ## How to invoke
60
51
 
61
- Use the SlashCommand tool to run: `{{ capabilities.gsd-verify-work.cmd }}`
62
-
63
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
64
- capability is missing on disk. Install it (`claude plugin install <name>` for
65
- plugins, or follow the official install instructions for user-skills — e.g. for
66
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
67
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
68
- this SKILL.md and clear the warning.)
52
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.gsd-verify-work.cmd }}` — the upstream specialist takes over.
53
+
54
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
55
+
56
+ > You are a **Progress / UAT verifier**.
57
+ >
58
+ > **Mission**: Mandatory serial start of the verify stage. Run UAT-driven acceptance via GSD `/gsd-verify-work` then sync state via `/gsd-progress` and persist updates to `progress.md`. Order is locked: verify-work → progress.
59
+ >
60
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
61
+ >
62
+ > **Review checklist**:
63
+ > 1. Read the phase's acceptance criteria from PLAN.md / task_plan.md
64
+ >
65
+ > 2. For each criterion, demonstrate it passes (test result, manual UAT log, screenshot)
66
+ >
67
+ > 3. Flag any criterion that is partial / stubbed / TODO — do NOT mark complete
68
+ >
69
+ > 4. Sync ROADMAP.md / STATE.md / REQUIREMENTS.md via gsd-progress
70
+ >
71
+ > 5. Append `progress.md` with completed subtask hash + verification artifact
72
+ >
73
+ > 6. If acceptance is incomplete, route to bug-fix and re-verify; do not advance
74
+ >
75
+ > **Output format**: structured report with severity-classified findings (accepted / partial / blocked / failed). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
76
+
77
+ (Role prompt is self-contained — works even when the upstream `gsd-verify-work` user-skill / plugin isn't installed.)
78
+
79
+ (Sister `~/.claude/commands/verify-progress.md` is also generated by `harnessed setup` so `/verify-progress` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-progress --apply` CLI claims are removed; that subcommand was never implemented.)
69
80
 
70
81
  ## References
71
82
 
@@ -6,7 +6,7 @@ description: |
6
6
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
7
  (gstack-qa + playwright-cli + playwright-test + webapp-testing) + 1 phase (gate ref
8
8
  has_ui_changes conditional)。
9
- Triggered by harnessed CLI `harnessed verify-qa --phase <num>` or slash command
9
+ Triggered by slash command
10
10
  `/verify-qa` after `harnessed setup`.
11
11
  trigger_phrases:
12
12
  - "verify qa"
@@ -52,26 +52,39 @@ Sister `workflows/judgments/stage-routing.yaml`:
52
52
  - setup 需 Python 后端 (Tortoise ORM / pandas) → `webapp-testing` skill
53
53
  - 性能 / a11y / 内存诊断 → 不在此 sub-workflow,用 `chrome-devtools-mcp`
54
54
 
55
- ## CLI invocation
56
-
57
- ```bash
58
- # Dry-run preview — arbitrate-only, never spawns SDK.
59
- harnessed verify-qa --phase <num> --dry-run --non-interactive
60
-
61
- # Apply path — real SDK spawn (gate eval true 时).
62
- harnessed verify-qa --phase <num> --apply
63
- ```
64
-
55
+ <!-- v3.4.3-dual-path-invocation -->
65
56
  ## How to invoke
66
57
 
67
- Use the SlashCommand tool to run: `{{ capabilities.gstack-qa.cmd }}`
68
-
69
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
70
- capability is missing on disk. Install it (`claude plugin install <name>` for
71
- plugins, or follow the official install instructions for user-skills — e.g. for
72
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
73
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
74
- this SKILL.md and clear the warning.)
58
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.gstack-qa.cmd }}` — the upstream specialist takes over.
59
+
60
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
61
+
62
+ > You are a **QA Engineer (end-to-end)**.
63
+ >
64
+ > **Mission**: Hands-on UAT for the changed surface — orient → explore → exercise forms / nav / states / console / responsive. Use `playwright-cli` for probes, `@playwright/test` for committed tests, `webapp-testing` for Python-backend setups. Adapted from gstack `/qa`.
65
+ >
66
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
67
+ >
68
+ > **Review checklist**:
69
+ > 1. Orient: map the application (links, framework detection, initial console errors)
70
+ >
71
+ > 2. Per page: visual scan, interactive elements work, console clean, responsive check
72
+ >
73
+ > 3. Forms: empty / invalid / edge cases — error messages clear and actionable
74
+ >
75
+ > 4. Navigation: every path in and out works, no dead-ends
76
+ >
77
+ > 5. States: empty, loading, error, overflow — none look like AI placeholder
78
+ >
79
+ > 6. Mobile: 375x812 viewport — real layout, not stacked desktop
80
+ >
81
+ > 7. Authenticated paths if creds / cookies provided; depth > breadth on core flows
82
+ >
83
+ > **Output format**: structured report with severity-classified findings (blocker / major / minor / nit). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
84
+
85
+ (Role prompt is self-contained — works even when the upstream `gstack-qa` user-skill / plugin isn't installed.)
86
+
87
+ (Sister `~/.claude/commands/verify-qa.md` is also generated by `harnessed setup` so `/verify-qa` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-qa --apply` CLI claims are removed; that subcommand was never implemented.)
75
88
 
76
89
  ## References
77
90
 
@@ -5,7 +5,7 @@ description: |
5
5
  触发, 可选 conditional, sister ~/.claude/CLAUDE.md "Verify 阶段 — 可选 /cso" verbatim)。
6
6
  schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
7
7
  (gstack-cso) + 1 phase (gate ref has_auth_or_secrets conditional)。
8
- Triggered by harnessed CLI `harnessed verify-security --phase <num>` or slash command
8
+ Triggered by slash command
9
9
  `/verify-security` after `harnessed setup`.
10
10
  trigger_phrases:
11
11
  - "verify security"
@@ -47,26 +47,41 @@ Sister `workflows/judgments/stage-routing.yaml`:
47
47
  - ✅ **触发**: auth flow / session / credentials / API keys / SQL injection 路径 / OWASP top 10 area
48
48
  - ❌ **跳过**: docs / 纯 UI styling / 内部 refactor / non-security PR
49
49
 
50
- ## CLI invocation
51
-
52
- ```bash
53
- # Dry-run preview — arbitrate-only, never spawns SDK.
54
- harnessed verify-security --phase <num> --dry-run --non-interactive
55
-
56
- # Apply path — real SDK spawn (gate eval true 时).
57
- harnessed verify-security --phase <num> --apply
58
- ```
59
-
50
+ <!-- v3.4.3-dual-path-invocation -->
60
51
  ## How to invoke
61
52
 
62
- Use the SlashCommand tool to run: `{{ capabilities.gstack-cso.cmd }}`
63
-
64
- (If a `⚠️ ... not installed` warning was printed by `harnessed setup`, the backing
65
- capability is missing on disk. Install it (`claude plugin install <name>` for
66
- plugins, or follow the official install instructions for user-skills — e.g. for
67
- gstack: `git clone https://github.com/garrytan/gstack.git ~/.claude/skills/gstack` then
68
- `cd ~/.claude/skills/gstack && ./setup`), then re-run `harnessed setup` to re-render
69
- this SKILL.md and clear the warning.)
53
+ **Preferred path** (when the upstream specialist is installed): use the SlashCommand tool to run `{{ capabilities.gstack-cso.cmd }}` — the upstream specialist takes over.
54
+
55
+ **Fallback path** (when the upstream isn't installed or returns no result): use the Task tool to spawn a general-purpose subagent with this prompt:
56
+
57
+ > You are a **Chief Security Officer (CSO audit)**.
58
+ >
59
+ > **Mission**: Conditional on `phase.has_auth_or_secrets == true`. Audit auth flows, credentials, OWASP Top 10 surface, secrets, infrastructure security (CI/CD, Docker, IaC). Adapted from gstack `/cso`.
60
+ >
61
+ > **Default-suspect mode**: assume the change is broken / risky / incomplete until proven otherwise. Cite `file:line` for every finding; do not generalize.
62
+ >
63
+ > **Review checklist**:
64
+ > 1. OWASP Top 10: injection / broken auth / sensitive data exposure / XXE / broken access control / misconfig / XSS / insecure deserialize / known-vuln deps / insufficient logging
65
+ >
66
+ > 2. Secrets archaeology: git history scan for leaked credentials, .env tracked files, CI inline secrets
67
+ >
68
+ > 3. Auth boundaries: every protected route enforces auth (not just CSR check); authorization not transitive across requests
69
+ >
70
+ > 4. CSRF / SSRF / stored prompt injection where LLM output enters knowledge bases
71
+ >
72
+ > 5. CI/CD: pull_request_target + checkout PR code, script injection via github.event.*, unpinned third-party actions
73
+ >
74
+ > 6. Dockerfiles: missing USER (root), secrets as ARG, .env in image, exposed ports without purpose
75
+ >
76
+ > 7. IaC: wildcard IAM, hardcoded secrets in .tfvars, privileged containers, hostNetwork in K8s
77
+ >
78
+ > 8. Dependency audit (npm audit / pip-audit / bundler-audit) — note SKIPPED tools rather than fail audit
79
+ >
80
+ > **Output format**: structured report with severity-classified findings (CRITICAL / HIGH / MEDIUM / LOW / INFO). One finding per line: `[severity] file:line — problem (one sentence); fix: suggested change`. If no findings, say so explicitly. No preamble, no end-of-report summary.
81
+
82
+ (Role prompt is self-contained — works even when the upstream `gstack-cso` user-skill / plugin isn't installed.)
83
+
84
+ (Sister `~/.claude/commands/verify-security.md` is also generated by `harnessed setup` so `/verify-security` is a real platform slash command — both files carry the same dual-path instruction. Previous v3.4.x `harnessed verify-security --apply` CLI claims are removed; that subcommand was never implemented.)
70
85
 
71
86
  ## References
72
87