@loneexile/omp-superpowers 6.4.2-omp.1
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/.pi/extensions/superpowers.ts +123 -0
- package/CHANGELOG.md +28 -0
- package/LICENSE +21 -0
- package/README.md +187 -0
- package/agents/sdd-escalation-implementer.md +18 -0
- package/agents/sdd-final-reviewer.md +23 -0
- package/agents/sdd-implementer.md +23 -0
- package/agents/sdd-rereviewer.md +69 -0
- package/agents/sdd-reviewer.md +83 -0
- package/package.json +40 -0
- package/skills/brainstorming/SKILL.md +285 -0
- package/skills/brainstorming/scripts/frame-template.html +213 -0
- package/skills/brainstorming/scripts/helper.js +167 -0
- package/skills/brainstorming/scripts/server.cjs +723 -0
- package/skills/brainstorming/scripts/start-server.sh +209 -0
- package/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/skills/brainstorming/visual-companion.md +299 -0
- package/skills/diagnosing-superpowers/SKILL.md +120 -0
- package/skills/diagnosing-superpowers/prompts/analyst-common.md +38 -0
- package/skills/diagnosing-superpowers/prompts/cost-and-time.md +28 -0
- package/skills/diagnosing-superpowers/prompts/plan-adherence.md +29 -0
- package/skills/diagnosing-superpowers/prompts/quality-evidence.md +26 -0
- package/skills/diagnosing-superpowers/prompts/repeated-work.md +30 -0
- package/skills/diagnosing-superpowers/prompts/request-conflicts.md +20 -0
- package/skills/diagnosing-superpowers/prompts/scrub-audit.md +33 -0
- package/skills/diagnosing-superpowers/prompts/scrub.md +29 -0
- package/skills/diagnosing-superpowers/prompts/similar-session.md +38 -0
- package/skills/diagnosing-superpowers/prompts/skill-timeline.md +30 -0
- package/skills/diagnosing-superpowers/prompts/stumbles.md +28 -0
- package/skills/diagnosing-superpowers/references/context-safety.md +22 -0
- package/skills/diagnosing-superpowers/references/github-issues.md +47 -0
- package/skills/diagnosing-superpowers/references/redaction-policy.md +34 -0
- package/skills/diagnosing-superpowers/references/session-discovery.md +31 -0
- package/skills/diagnosing-superpowers/templates/bundle-README.md +77 -0
- package/skills/diagnosing-superpowers/templates/case.md +64 -0
- package/skills/diagnosing-superpowers/templates/issue.md +51 -0
- package/skills/diagnosing-superpowers/templates/report.md +82 -0
- package/skills/dispatching-parallel-agents/SKILL.md +167 -0
- package/skills/executing-plans/SKILL.md +373 -0
- package/skills/executing-plans/scripts/task-done +52 -0
- package/skills/executing-plans/scripts/task-start +28 -0
- package/skills/finishing-a-development-branch/SKILL.md +225 -0
- package/skills/receiving-code-review/SKILL.md +205 -0
- package/skills/requesting-code-review/SKILL.md +95 -0
- package/skills/requesting-code-review/code-reviewer.md +198 -0
- package/skills/subagent-driven-development/SKILL.md +681 -0
- package/skills/subagent-driven-development/implementer-prompt.md +157 -0
- package/skills/subagent-driven-development/re-review-prompt.md +110 -0
- package/skills/subagent-driven-development/scripts/review-package +53 -0
- package/skills/subagent-driven-development/scripts/sdd-workspace +82 -0
- package/skills/subagent-driven-development/scripts/task-brief +43 -0
- package/skills/subagent-driven-development/task-reviewer-prompt.md +205 -0
- package/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/systematic-debugging/SKILL.md +283 -0
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/systematic-debugging/find-polluter.sh +72 -0
- package/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/systematic-debugging/test-academic.md +14 -0
- package/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/test-driven-development/SKILL.md +330 -0
- package/skills/test-driven-development/writing-good-tests.md +198 -0
- package/skills/using-git-worktrees/SKILL.md +194 -0
- package/skills/using-superpowers/SKILL.md +65 -0
- package/skills/using-superpowers/references/antigravity-tools.md +23 -0
- package/skills/using-superpowers/references/claude-code-tools.md +29 -0
- package/skills/using-superpowers/references/codex-tools.md +108 -0
- package/skills/using-superpowers/references/gemini-tools.md +63 -0
- package/skills/using-superpowers/references/hermes-tools.md +56 -0
- package/skills/using-superpowers/references/muse-tools.md +35 -0
- package/skills/using-superpowers/references/pi-tools.md +41 -0
- package/skills/verification-before-completion/SKILL.md +120 -0
- package/skills/writing-plans/SKILL.md +204 -0
- package/skills/writing-skills/SKILL.md +681 -0
- package/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/writing-skills/persuasion-principles.md +187 -0
- package/skills/writing-skills/render-graphs.js +169 -0
- package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: subagent-driven-development
|
|
3
|
+
description: Use when executing implementation plans with independent tasks in the current session
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Subagent-Driven Development
|
|
7
|
+
|
|
8
|
+
Execute plan by dispatching a fresh implementer subagent per task, a task review (spec compliance + code quality) after each, and a broad whole-branch review at the end.
|
|
9
|
+
|
|
10
|
+
**Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
|
|
11
|
+
|
|
12
|
+
**Core principle:** Fresh subagent per task + task review (spec + quality) + broad final review = high quality, fast iteration
|
|
13
|
+
|
|
14
|
+
**Narration:** between tool calls, narrate at most one short line — the
|
|
15
|
+
ledger and the tool results carry the record.
|
|
16
|
+
|
|
17
|
+
**Continuous execution:** Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are the four named below, or all tasks complete. "Should I continue?" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it.
|
|
18
|
+
|
|
19
|
+
**Rulings, not stalls.** A running plan does not wait on a human. Conflicts,
|
|
20
|
+
ambiguities, plan defects, a cap you would have asked to exceed — decide
|
|
21
|
+
them. The spec is the binding authority, the plan is its argument, and your
|
|
22
|
+
judgment settles what neither answers. Record every decision in the ledger as
|
|
23
|
+
`Ruling: <what you decided> — <why> — <what it costs if wrong>`, and keep
|
|
24
|
+
going. A wrong ruling costs rework your human partner can see and undo; a
|
|
25
|
+
session parked on a question costs their whole day and buys nothing.
|
|
26
|
+
|
|
27
|
+
Four things stop you, and only these: an irreversible or destructive
|
|
28
|
+
operation; a security-sensitive action; a side effect outside this worktree
|
|
29
|
+
that norms say you ask about first (a merge, a push to a shared branch, a
|
|
30
|
+
publish); and a plan so broken that every path forward is a guess. For those,
|
|
31
|
+
stop and ask.
|
|
32
|
+
|
|
33
|
+
## When to Use
|
|
34
|
+
|
|
35
|
+
```dot
|
|
36
|
+
digraph when_to_use {
|
|
37
|
+
"Have implementation plan?" [shape=diamond];
|
|
38
|
+
"Tasks mostly independent?" [shape=diamond];
|
|
39
|
+
"Partner chose inline, or no subagent tool?" [shape=diamond];
|
|
40
|
+
"subagent-driven-development" [shape=box];
|
|
41
|
+
"executing-plans" [shape=box];
|
|
42
|
+
"Manual execution or brainstorm first" [shape=box];
|
|
43
|
+
|
|
44
|
+
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
|
|
45
|
+
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
|
|
46
|
+
"Tasks mostly independent?" -> "Partner chose inline, or no subagent tool?" [label="yes"];
|
|
47
|
+
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
|
|
48
|
+
"Partner chose inline, or no subagent tool?" -> "executing-plans" [label="yes"];
|
|
49
|
+
"Partner chose inline, or no subagent tool?" -> "subagent-driven-development" [label="no"];
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**vs. Executing Plans (inline):**
|
|
54
|
+
- Fresh subagent per task (no context pollution) instead of one context doing every task
|
|
55
|
+
- Review after each task (spec compliance + code quality) instead of only at the end
|
|
56
|
+
- Costs a fresh context per task and per review; inline costs one context plus one final reviewer
|
|
57
|
+
- Both run in this session, share the same plan workspace and ledger, and never pause between tasks
|
|
58
|
+
|
|
59
|
+
## The Process
|
|
60
|
+
|
|
61
|
+
```dot
|
|
62
|
+
digraph process {
|
|
63
|
+
rankdir=TB;
|
|
64
|
+
|
|
65
|
+
subgraph cluster_per_task {
|
|
66
|
+
label="Per Task";
|
|
67
|
+
"Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
|
|
68
|
+
"Implementer asks questions?" [shape=diamond];
|
|
69
|
+
"Answer questions, provide context" [shape=box];
|
|
70
|
+
"Implementer implements, tests, commits, self-reviews" [shape=box];
|
|
71
|
+
"Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" [shape=box];
|
|
72
|
+
"Spec ✅ and quality approved?" [shape=diamond];
|
|
73
|
+
"Finding conflicts with plan text?" [shape=diamond];
|
|
74
|
+
"Rule on the conflict, ledger the ruling" [shape=box];
|
|
75
|
+
"Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" [shape=box];
|
|
76
|
+
"Dispatch scoped re-review (./re-review-prompt.md)" [shape=box];
|
|
77
|
+
"All findings addressed?" [shape=diamond];
|
|
78
|
+
"R = 3?" [shape=diamond];
|
|
79
|
+
"Adjudicate each open finding" [shape=box];
|
|
80
|
+
"Any load-bearing finding?" [shape=diamond];
|
|
81
|
+
"Rule and continue; stop only if every path forward is a guess" [shape=box];
|
|
82
|
+
"Park findings in ledger with rulings" [shape=box];
|
|
83
|
+
"Append completion to ledger, mark todo complete" [shape=box];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
"Setup: worktree, ledger check, read plan, pre-flight review" [shape=box];
|
|
87
|
+
"More tasks remain?" [shape=diamond];
|
|
88
|
+
"Dispatch final reviewer: sdd-final-reviewer (package + ledger lines; its agent file governs the output)" [shape=box];
|
|
89
|
+
"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals" [shape=box];
|
|
90
|
+
"Final review clean: delete this plan's workspace" [shape=box];
|
|
91
|
+
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
|
|
92
|
+
|
|
93
|
+
"Setup: worktree, ledger check, read plan, pre-flight review" -> "Dispatch implementer subagent (./implementer-prompt.md)";
|
|
94
|
+
"Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer asks questions?";
|
|
95
|
+
"Implementer asks questions?" -> "Answer questions, provide context" [label="yes"];
|
|
96
|
+
"Answer questions, provide context" -> "Implementer implements, tests, commits, self-reviews";
|
|
97
|
+
"Implementer asks questions?" -> "Implementer implements, tests, commits, self-reviews" [label="no"];
|
|
98
|
+
"Implementer implements, tests, commits, self-reviews" -> "Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)";
|
|
99
|
+
"Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" -> "Spec ✅ and quality approved?";
|
|
100
|
+
"Spec ✅ and quality approved?" -> "Append completion to ledger, mark todo complete" [label="yes"];
|
|
101
|
+
"Spec ✅ and quality approved?" -> "Finding conflicts with plan text?" [label="no"];
|
|
102
|
+
"Finding conflicts with plan text?" -> "Rule on the conflict, ledger the ruling" [label="yes"];
|
|
103
|
+
"Rule on the conflict, ledger the ruling" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer";
|
|
104
|
+
"Finding conflicts with plan text?" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" [label="no"];
|
|
105
|
+
"Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" -> "Dispatch scoped re-review (./re-review-prompt.md)";
|
|
106
|
+
"Dispatch scoped re-review (./re-review-prompt.md)" -> "All findings addressed?";
|
|
107
|
+
"All findings addressed?" -> "Append completion to ledger, mark todo complete" [label="yes"];
|
|
108
|
+
"All findings addressed?" -> "R = 3?" [label="no"];
|
|
109
|
+
"R = 3?" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" [label="no - next round"];
|
|
110
|
+
"R = 3?" -> "Adjudicate each open finding" [label="yes - breaker trips"];
|
|
111
|
+
"Adjudicate each open finding" -> "Any load-bearing finding?";
|
|
112
|
+
"Any load-bearing finding?" -> "Rule and continue; stop only if every path forward is a guess" [label="yes"];
|
|
113
|
+
"Any load-bearing finding?" -> "Park findings in ledger with rulings" [label="no"];
|
|
114
|
+
"Park findings in ledger with rulings" -> "Append completion to ledger, mark todo complete";
|
|
115
|
+
"Append completion to ledger, mark todo complete" -> "More tasks remain?";
|
|
116
|
+
"More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
|
|
117
|
+
"More tasks remain?" -> "Dispatch final reviewer: sdd-final-reviewer (package + ledger lines; its agent file governs the output)" [label="no"];
|
|
118
|
+
"Dispatch final reviewer: sdd-final-reviewer (package + ledger lines; its agent file governs the output)" -> "Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals";
|
|
119
|
+
"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals" -> "Final review clean: delete this plan's workspace";
|
|
120
|
+
"Final review clean: delete this plan's workspace" -> "Use superpowers:finishing-a-development-branch";
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Setup
|
|
125
|
+
|
|
126
|
+
Ensure the work happens in an isolated workspace: use
|
|
127
|
+
superpowers:using-git-worktrees to create one or verify the existing one.
|
|
128
|
+
Never start implementation on a main/master branch without your human
|
|
129
|
+
partner's explicit consent.
|
|
130
|
+
|
|
131
|
+
Conversation memory does not survive compaction. In real sessions,
|
|
132
|
+
controllers that lost their place have re-dispatched entire completed task
|
|
133
|
+
sequences — the single most expensive failure observed. Track progress in
|
|
134
|
+
a ledger file, not only in todos.
|
|
135
|
+
|
|
136
|
+
- Each plan owns a workspace: at skill start, run this skill's
|
|
137
|
+
`bash scripts/sdd-workspace PLAN_FILE` — it prints the plan's git-ignored
|
|
138
|
+
directory (under `<repo-root>/.superpowers/sdd/`), home to
|
|
139
|
+
every artifact for THIS plan: ledger, briefs, reports, review packages.
|
|
140
|
+
Another plan's directory is never yours to read or write.
|
|
141
|
+
- Check for this plan's ledger at `<workspace>/progress.md`. If its first
|
|
142
|
+
line names your plan file, tasks with a `Task <N>: complete` line are DONE
|
|
143
|
+
— do not re-dispatch them; resume at the first task without one. A task
|
|
144
|
+
whose last line is a fix round is mid-loop: resume the loop at the next
|
|
145
|
+
round. A ledger whose first line names a different plan file — or a stray
|
|
146
|
+
ledger at the old flat path `.superpowers/sdd/progress.md` — is another
|
|
147
|
+
plan's progress: leave it in place and start your own, fresh.
|
|
148
|
+
- Create the ledger with its identity as the first line:
|
|
149
|
+
`# SDD ledger — plan: <plan file path>`.
|
|
150
|
+
- The ledger is your recovery map: the commits it names exist in git even
|
|
151
|
+
when your context no longer remembers creating them. After compaction,
|
|
152
|
+
trust the ledger and `git log` over your own recollection.
|
|
153
|
+
- `git clean -fdx` will destroy the workspace (it's git-ignored scratch); if
|
|
154
|
+
that happens, recover from `git log`.
|
|
155
|
+
|
|
156
|
+
Read the plan once, note its context and Global Constraints, and create a
|
|
157
|
+
todo per task. If the plan names a Spec, read that too: the spec is the
|
|
158
|
+
authority the plan argues from, and conflicts inside the plan resolve
|
|
159
|
+
against it. A plan with no reachable spec gets a ledger note saying so —
|
|
160
|
+
rulings made without one are provisional.
|
|
161
|
+
|
|
162
|
+
Before dispatching Task 1, scan the plan once for conflicts, writing down
|
|
163
|
+
what you checked as you check it:
|
|
164
|
+
|
|
165
|
+
- tasks that contradict each other or the plan's Global Constraints
|
|
166
|
+
- anything the plan explicitly mandates that the review rubric treats as a
|
|
167
|
+
defect (a test that asserts nothing, verbatim duplication of a logic block)
|
|
168
|
+
|
|
169
|
+
The scan's output is a table, not a verdict. One row for every pair of tasks
|
|
170
|
+
that share a file or an interface: the two tasks, what one produces against
|
|
171
|
+
what the other consumes, and what you found. One row for every task: whether
|
|
172
|
+
its own text agrees with itself — the tests it specifies against the code it
|
|
173
|
+
specifies, the files it creates against the files it later touches. "The scan
|
|
174
|
+
is clean" without those rows is not a scan you ran.
|
|
175
|
+
|
|
176
|
+
Write the table to the ledger. Rule on everything you find before execution
|
|
177
|
+
begins — each finding against the plan text that mandates it — and record
|
|
178
|
+
each ruling in the ledger. If the scan is clean, proceed without comment.
|
|
179
|
+
Rule on each conflict it surfaces — the spec is the binding authority, the
|
|
180
|
+
plan is its argument — record the ruling beside its row, and dispatch
|
|
181
|
+
Task 1. The review loop remains the net for conflicts that only emerge from
|
|
182
|
+
implementation.
|
|
183
|
+
|
|
184
|
+
## Agent Selection
|
|
185
|
+
|
|
186
|
+
On omp the `task` tool has no `model:` field — the agent TYPE carries the
|
|
187
|
+
model, the thinking level, and the tool set. This fork ships five SDD
|
|
188
|
+
agents (`agents/sdd-*.md`); they appear in the `task` tool's own roster.
|
|
189
|
+
**Always dispatch SDD work with one of them.** The bundled `task` agent
|
|
190
|
+
resolves to whatever `modelRoles.task` is configured to (else the session
|
|
191
|
+
model) and the bundled `reviewer` to `@slow` — in a real 157-subagent
|
|
192
|
+
session both were the slowest tier over the widest tool set, which is where
|
|
193
|
+
most of the wall-clock went.
|
|
194
|
+
|
|
195
|
+
| Role | `agent:` | Shipped default · thinking | Tools |
|
|
196
|
+
|---|---|---|---|
|
|
197
|
+
| Implementer (every task, fix rounds 1-2) | `sdd-implementer` | sonnet-5 · medium | edit/test set, no subagents |
|
|
198
|
+
| Fix round 3 | `sdd-escalation-implementer` | opus-5 · **xhigh** | same as implementer |
|
|
199
|
+
| Task reviewer | `sdd-reviewer` | sonnet-5 · high | `read`, `grep`, `glob` — no file writes, no shell (see note) |
|
|
200
|
+
| Scoped re-review | `sdd-rereviewer` | sonnet-5 · low | `read`, `grep`; ≤4 tool calls (a justified fifth is allowed) |
|
|
201
|
+
| Final whole-branch review | `sdd-final-reviewer` | opus-5 · **xhigh** | read-only + focused bash |
|
|
202
|
+
|
|
203
|
+
The shipped defaults are Anthropic (sonnet for the per-task seats, opus for
|
|
204
|
+
the two seats that run once per plan or once per stuck task). The tiers are
|
|
205
|
+
a **thinking ladder** as much as a model ladder: escalation and the final
|
|
206
|
+
review raise reasoning to `xhigh`, re-reviews drop to `low`.
|
|
207
|
+
|
|
208
|
+
**Per-host override, no file edits:** `task.agentModelOverrides` in
|
|
209
|
+
`~/.omp/agent/config.yml` (or the `/agents` hub) beats the agent file's
|
|
210
|
+
`model:` line and applies on the next dispatch. A bare model keeps the
|
|
211
|
+
agent's `thinkingLevel:`; an explicit `:level` on the override replaces it.
|
|
212
|
+
Example — every seat on a flat-rate model, mapped onto that model's own
|
|
213
|
+
ladder:
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
task:
|
|
217
|
+
agentModelOverrides:
|
|
218
|
+
sdd-implementer: opencode-go/deepseek-v4.1-flash:high
|
|
219
|
+
sdd-reviewer: opencode-go/deepseek-v4.1-flash:high
|
|
220
|
+
sdd-rereviewer: opencode-go/deepseek-v4.1-flash:low
|
|
221
|
+
sdd-escalation-implementer: opencode-go/deepseek-v4.1-flash:max
|
|
222
|
+
sdd-final-reviewer: opencode-go/deepseek-v4.1-flash:max
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Use the exact catalog id and only levels that model offers (`omp models ls
|
|
226
|
+
<provider>`): an unsupported level is silently clamped to the nearest valid
|
|
227
|
+
one, which collapses the ladder without an error. Ids get renamed across
|
|
228
|
+
catalog refreshes; when a seat's speed or quality shifts overnight, read
|
|
229
|
+
`session_init.resolvedModel` in its transcript before blaming the plan.
|
|
230
|
+
(Discovery-only ids accept `:level` in config and overrides but not on the
|
|
231
|
+
`--model` CLI flag.)
|
|
232
|
+
|
|
233
|
+
**What "no shell" enforces (measured, omp 18.1.15).** A `tools:` list is
|
|
234
|
+
honoured: the reviewers get no `bash`/`edit`, and their `write` is only the
|
|
235
|
+
`xd://` device transport — a filesystem write is refused ("Filesystem
|
|
236
|
+
writes are not available elsewhere"). Two things the frontmatter cannot
|
|
237
|
+
remove: `hub` (always-on for every non-restricted subagent) and, with it,
|
|
238
|
+
`hub start`, which launches an executable directly — a probe from
|
|
239
|
+
`sdd-reviewer` ran `echo` that way. The executor's `restrictToolNames`
|
|
240
|
+
option would strip it, but only omp's own compression and security
|
|
241
|
+
sessions set it; no agent frontmatter field maps to it. So the guarantee
|
|
242
|
+
is "cannot edit the tree and cannot run a shell", not "cannot spawn a
|
|
243
|
+
process". The prompts forbid mutation; the harness enforces the file and
|
|
244
|
+
shell parts.
|
|
245
|
+
|
|
246
|
+
**Turn count beats token price.** Wall-clock scales with how many turns a
|
|
247
|
+
subagent takes, and the cheap model here takes 2-3× the turns of a
|
|
248
|
+
sonnet-class model on multi-step work — that is the trade this
|
|
249
|
+
configuration makes deliberately (flat-rate cost, ~17 s/turn). Watch the
|
|
250
|
+
ledger: a task whose implementer needs 100+ turns, or a re-review that
|
|
251
|
+
wanders, is the signal to rule that task onto the escalation seat.
|
|
252
|
+
Re-reviews are verdict-only work over a small diff — `low` reasoning is
|
|
253
|
+
correct for them, not a compromise.
|
|
254
|
+
|
|
255
|
+
**Escalation (fix round 3):** the implementer that got stuck cannot see its
|
|
256
|
+
own problem. Dispatch a FRESH `sdd-escalation-implementer` with the
|
|
257
|
+
framing below. If `task.enableEffort` is on you may add `effort: "hi"`
|
|
258
|
+
(the only accepted values are `"lo"`, `"med"`, `"hi"`) to raise thinking
|
|
259
|
+
further; it is optional — the agent's own tier is the escalation.
|
|
260
|
+
|
|
261
|
+
**Override, never omit.** If a task genuinely needs the strongest tier for
|
|
262
|
+
its first implementation (design judgment across many files), say so in
|
|
263
|
+
the ledger as a ruling and dispatch `sdd-escalation-implementer` for it;
|
|
264
|
+
the default remains `sdd-implementer`. Never reach for the bundled `task`
|
|
265
|
+
agent for an SDD seat — its tier is whatever the session configured.
|
|
266
|
+
|
|
267
|
+
## The Task Loop
|
|
268
|
+
|
|
269
|
+
**Batch small same-shape work.** When the plan lists several tasks that are
|
|
270
|
+
each a small, independent edit of the same kind — the same one-line fix,
|
|
271
|
+
constant change, or field addition repeated across files — do not dispatch
|
|
272
|
+
one subagent per task. Compose ONE dispatch brief listing every file and
|
|
273
|
+
its change, send the whole batch to a single subagent, and review its diff
|
|
274
|
+
as one unit. Reserve one-dispatch-per-task for work that needs its own
|
|
275
|
+
judgment, its own tests, or its own review surface.
|
|
276
|
+
|
|
277
|
+
Everything you paste into a dispatch prompt — and everything a subagent
|
|
278
|
+
prints back — stays resident in your context for the rest of the session
|
|
279
|
+
and is re-read on every later turn. Hand artifacts over as files.
|
|
280
|
+
|
|
281
|
+
**Waiting on dispatched subagents:** never poll a wait interface with
|
|
282
|
+
short timeouts, and never sit in one silent, open-ended wait either.
|
|
283
|
+
While you have local work — ledger updates, packaging the next review,
|
|
284
|
+
reading reports — keep working; child results arrive on their own.
|
|
285
|
+
When you are genuinely idle, wait in bounded stretches (five to ten
|
|
286
|
+
minutes, where your platform allows), and between stretches post one
|
|
287
|
+
line of status and reconcile your live children: list them, and chase
|
|
288
|
+
any that finished without reporting. A bounded stretch keeps nearly
|
|
289
|
+
all of a long wait's efficiency while guaranteeing a stuck or lost
|
|
290
|
+
child is noticed within minutes, not at the end of the session.
|
|
291
|
+
|
|
292
|
+
### 1. Dispatch the implementer
|
|
293
|
+
|
|
294
|
+
Record BASE (`git rev-parse HEAD`) before dispatching — the review package
|
|
295
|
+
and fix-round diffs need it.
|
|
296
|
+
|
|
297
|
+
- **Task brief:** before dispatching an implementer, run this skill's
|
|
298
|
+
`bash scripts/task-brief PLAN_FILE N` — it extracts the task's full text to a
|
|
299
|
+
uniquely named file and prints the path. Compose the dispatch so the
|
|
300
|
+
brief stays the single source of
|
|
301
|
+
requirements. Your dispatch should contain: (1) one line on where this
|
|
302
|
+
task fits in the project; (2) the brief path, introduced as "read this
|
|
303
|
+
first — it is your requirements, with the exact values to use verbatim";
|
|
304
|
+
(3) interfaces and decisions from earlier tasks that the brief cannot
|
|
305
|
+
know; (4) your resolution of any ambiguity you noticed in the brief;
|
|
306
|
+
(5) the report-file path and report contract. Exact values (numbers,
|
|
307
|
+
magic strings, signatures, test cases) appear only in the brief. Never
|
|
308
|
+
make a subagent read the whole plan file.
|
|
309
|
+
- **Report file:** name the implementer's report file after the brief
|
|
310
|
+
(brief `…/task-N-brief.md` → report `…/task-N-report.md`) and put it in
|
|
311
|
+
the dispatch prompt. The implementer writes the full report there and
|
|
312
|
+
returns only status, commits, a one-line test summary, and concerns.
|
|
313
|
+
- A dispatch prompt describes one task, not the session's history. Do not
|
|
314
|
+
paste accumulated prior-task summaries ("state after Tasks 1-3") into
|
|
315
|
+
later dispatches — a real session's dispatch hit 42k chars of which 99%
|
|
316
|
+
was pasted history. A fresh subagent needs its task, the interfaces it
|
|
317
|
+
touches, and the global constraints. Nothing else.
|
|
318
|
+
- The dispatch carries the no-subagents contract (it is in the
|
|
319
|
+
implementer template): the implementer never dispatches subagents —
|
|
320
|
+
not helpers, and never a reviewer. Review arrives from you, after the
|
|
321
|
+
report. In real sessions, every reviewer a worker spawned duplicated
|
|
322
|
+
the task review the controller dispatched anyway — a full extra
|
|
323
|
+
review seat per task.
|
|
324
|
+
- If an earlier task parked a finding in the area this task touches, carry
|
|
325
|
+
a pointer to that ledger entry in the dispatch.
|
|
326
|
+
- Record the implementer's agent identity from the dispatch result —
|
|
327
|
+
fix-loop rounds 1-2 resume this agent.
|
|
328
|
+
- **Waves, only with isolation.** Disjoint files are not enough on omp:
|
|
329
|
+
subagents share the controller's checkout — one index, one HEAD, one
|
|
330
|
+
working tree — unless subagent isolation is on (`task.isolation.enabled`,
|
|
331
|
+
default `false`; the backend is `isolation.backend`, default `auto`).
|
|
332
|
+
Two concurrent implementers in one tree sweep each other's half-written
|
|
333
|
+
files into their commits and test against each other's in-flight code.
|
|
334
|
+
So: at setup, run `omp config get task.isolation.enabled` and ledger the
|
|
335
|
+
answer — read it from the live CLI, not from memory or a source tree, the
|
|
336
|
+
key has been renamed across omp versions (older builds spelled it
|
|
337
|
+
`task.isolation.mode`). If it is `false`, every implementer runs alone,
|
|
338
|
+
in plan order, and the rest of this bullet does not apply. If it is
|
|
339
|
+
`true`, group tasks into waves from your pre-flight table (it already
|
|
340
|
+
names every pair sharing a file or interface — it IS the dependency
|
|
341
|
+
graph): a wave holds tasks with no shared row between them and no
|
|
342
|
+
unfinished producer. Dispatch a wave as ONE `task` call, one
|
|
343
|
+
`sdd-implementer` per task, each with its own brief and report path and
|
|
344
|
+
the per-item `isolated: true` flag the `task` tool exposes once isolation
|
|
345
|
+
is on (check the tool's own schema); record the same BASE for every task
|
|
346
|
+
in the wave. Tasks that share a row run in later waves, in
|
|
347
|
+
producer→consumer order. A task whose brief you had to amend with a
|
|
348
|
+
ruling runs alone. When in doubt about a shared file, serialize — a
|
|
349
|
+
conflict costs more than the parallelism buys.
|
|
350
|
+
- **A wave shares the dispatch call, never the diff.** Each task keeps its
|
|
351
|
+
own review package: after the wave's results integrate, run
|
|
352
|
+
`bash scripts/review-package PLAN_FILE <task BASE> <task HEAD>` per task — the range
|
|
353
|
+
the harness reports as that task's integrated commits — and dispatch one
|
|
354
|
+
`sdd-reviewer` per task in one `task` call, each pointed at its own brief,
|
|
355
|
+
report, and package. A reviewer that sees sibling hunks cannot decide
|
|
356
|
+
"nothing extra" for its own brief. Fix rounds stay per task and per
|
|
357
|
+
package: FIX_BASE for a task is that task's own previous review head, and
|
|
358
|
+
two tasks' fix rounds may share a dispatch call only if they are isolated
|
|
359
|
+
too. Findings the final whole-branch review raises across wave seams are
|
|
360
|
+
the normal cross-task case — that review exists for them.
|
|
361
|
+
|
|
362
|
+
Template: [implementer-prompt.md](implementer-prompt.md)
|
|
363
|
+
|
|
364
|
+
### 2. Handle the report
|
|
365
|
+
|
|
366
|
+
Implementer subagents report one of four statuses. Handle each appropriately:
|
|
367
|
+
|
|
368
|
+
**DONE:** Generate the review package (`bash scripts/review-package PLAN_FILE BASE HEAD`, from this skill's directory — it prints the unique file path it wrote; BASE is the commit you recorded before dispatching the implementer — never `HEAD~1`, which silently drops all but the last commit of a multi-commit task), then dispatch `sdd-reviewer` with the printed path.
|
|
369
|
+
|
|
370
|
+
**DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
|
|
371
|
+
|
|
372
|
+
**NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
|
|
373
|
+
|
|
374
|
+
**BLOCKED:** The implementer cannot complete the task. Assess the blocker:
|
|
375
|
+
1. If it's a context problem, provide more context and re-dispatch with the same model
|
|
376
|
+
2. If the task requires more reasoning, re-dispatch with a more capable model
|
|
377
|
+
3. If the task is too large, break it into smaller pieces
|
|
378
|
+
4. If the plan itself is wrong, rule on the correction, ledger it, and re-dispatch with the ruling carried in the dispatch
|
|
379
|
+
|
|
380
|
+
**Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
|
|
381
|
+
|
|
382
|
+
If the implementer asks questions — before starting or mid-task — answer
|
|
383
|
+
clearly and completely, provide additional context if needed, and don't
|
|
384
|
+
rush it into implementation.
|
|
385
|
+
|
|
386
|
+
### 3. Review the task
|
|
387
|
+
|
|
388
|
+
Per-task reviews are task-scoped gates. The broad review happens once, at the
|
|
389
|
+
final whole-branch review. Never skip the task review, and never accept a
|
|
390
|
+
report missing either verdict — spec compliance AND task quality are both
|
|
391
|
+
required. Implementer self-review never replaces the task review; both are
|
|
392
|
+
needed.
|
|
393
|
+
|
|
394
|
+
- Hand the reviewer its diff as a file: run this skill's
|
|
395
|
+
`bash scripts/review-package PLAN_FILE BASE HEAD` and pass the reviewer the file path
|
|
396
|
+
it prints (or, without bash: `git log --oneline`, `git diff --stat`,
|
|
397
|
+
and `git diff -U10` for the range, redirected to one uniquely named
|
|
398
|
+
file). The output never enters your own context, and the reviewer sees
|
|
399
|
+
the commit list, stat summary, and full diff with context in one Read
|
|
400
|
+
call. Use the BASE you recorded before dispatching the implementer —
|
|
401
|
+
never `HEAD~1`, which silently truncates multi-commit tasks. Never
|
|
402
|
+
dispatch a task reviewer without a diff file.
|
|
403
|
+
- **Reviewer inputs:** the task reviewer gets three paths — the same brief
|
|
404
|
+
file, the report file, and the review package — plus the global
|
|
405
|
+
constraints that bind the task.
|
|
406
|
+
- The global-constraints block you hand the reviewer is its attention
|
|
407
|
+
lens. Copy the binding requirements verbatim from the plan's Global
|
|
408
|
+
Constraints section or the spec: exact values, exact formats, and the
|
|
409
|
+
stated relationships between components ("same layout as X", "matches
|
|
410
|
+
Y"). The reviewer's template already carries the process rules (YAGNI,
|
|
411
|
+
test hygiene, review method) — the constraints block is for what THIS
|
|
412
|
+
project's spec demands.
|
|
413
|
+
- Do not add open-ended directives like "check all uses" or "run race tests
|
|
414
|
+
if useful" without a concrete, task-specific reason
|
|
415
|
+
- Do not ask a reviewer to re-run tests the implementer already ran on the
|
|
416
|
+
same code — the implementer's report carries the test evidence
|
|
417
|
+
- Do not pre-judge findings for the reviewer — never instruct a reviewer to
|
|
418
|
+
ignore or not flag a specific issue. If you believe a finding would be a
|
|
419
|
+
false positive, let the reviewer raise it and adjudicate it in the review
|
|
420
|
+
loop. If the prompt you are writing contains "do not flag," "don't treat X
|
|
421
|
+
as a defect," "at most Minor," or "the plan chose" — stop: you are
|
|
422
|
+
pre-judging, usually to spare yourself a review loop.
|
|
423
|
+
Both SDD reviewers yield a structured result (their `output:` schema), so
|
|
424
|
+
read fields, not prose: `spec_compliance` / `task_quality` are the two
|
|
425
|
+
verdicts; `findings[].severity` drives the loop; `cannot_verify[]` lists
|
|
426
|
+
requirements that live in unchanged code or span tasks. Those `cannot_verify`
|
|
427
|
+
items — the old "⚠️ Cannot verify from diff" — do not block the rest of the
|
|
428
|
+
review, but you must resolve each one yourself before marking the task
|
|
429
|
+
complete: you hold the plan and cross-task context the reviewer
|
|
430
|
+
lacks. If you confirm an item is a real gap, treat it as a failed spec
|
|
431
|
+
review — it enters the fix loop with the other findings.
|
|
432
|
+
|
|
433
|
+
Template: [task-reviewer-prompt.md](task-reviewer-prompt.md)
|
|
434
|
+
|
|
435
|
+
### 4. The fix loop
|
|
436
|
+
|
|
437
|
+
The loop triggers when the review reports `spec_compliance: issues`, any
|
|
438
|
+
Critical or Important finding, or a `cannot_verify` item you confirmed as a
|
|
439
|
+
real gap.
|
|
440
|
+
|
|
441
|
+
A review whose verdict is `package_gap` (`spec_compliance`/`task_quality`
|
|
442
|
+
on a task review, `round_verdict` on a re-review — the reviewer could not
|
|
443
|
+
read the package you named; the `package_gap` field says what it tried) is
|
|
444
|
+
not a verdict on the code: regenerate the package, check the path,
|
|
445
|
+
re-dispatch, and ledger the retry. Never treat a gap as "clean" or as a
|
|
446
|
+
finding. The schema admits the gap outright so a reviewer is never pushed
|
|
447
|
+
to invent verdicts for a package it did not read.
|
|
448
|
+
|
|
449
|
+
Before the loop starts, three routes leave it immediately:
|
|
450
|
+
|
|
451
|
+
- Record Minor findings in the progress ledger as you go
|
|
452
|
+
(`Task <N>: minor (deferred): <one-liner>`), and point the final
|
|
453
|
+
whole-branch review at that list so it can triage which must be fixed
|
|
454
|
+
before merge. A roll-up nobody reads is a silent discard. Minor findings
|
|
455
|
+
never enter the loop.
|
|
456
|
+
- A finding labeled plan-mandated — or any finding that conflicts with
|
|
457
|
+
what the plan's text requires — is yours to rule on: weigh the finding
|
|
458
|
+
against the plan text, decide with the spec as the binding authority, and
|
|
459
|
+
ledger the ruling before you act on it. Do not dismiss the finding because
|
|
460
|
+
the plan mandates it, and do not dispatch a fix that contradicts the plan
|
|
461
|
+
without a recorded ruling.
|
|
462
|
+
- **A proven trivial fix.** When the reviewer supplied the exact
|
|
463
|
+
replacement (a JSON tag, a regex, a struct field, a constant) AND you can
|
|
464
|
+
prove the property directly — a throwaway script, `cat -A`, a marshal
|
|
465
|
+
check, the one covering test — apply it yourself, run that proof, commit,
|
|
466
|
+
and ledger `Task <N>: applied <finding> — proof: <what you ran>`. The
|
|
467
|
+
proof replaces the re-review round; a re-read of a one-line change is
|
|
468
|
+
weaker evidence than executing it. Anything you cannot prove in one
|
|
469
|
+
command enters the loop.
|
|
470
|
+
|
|
471
|
+
Everything else enters the loop. A fix round is one fix dispatch plus one
|
|
472
|
+
scoped re-review. **Three rounds maximum per task** — a real session's
|
|
473
|
+
worst task spent four re-reviews and a fourth round on one task, ~100
|
|
474
|
+
minutes, and converged on adjudication anyway.
|
|
475
|
+
|
|
476
|
+
**Rounds 1-2 — resume the original implementer.** Send it the open findings
|
|
477
|
+
verbatim. Its context is intact: it knows the task, the code, and its own
|
|
478
|
+
choices. If your harness cannot send another message to a live subagent,
|
|
479
|
+
dispatch a fresh `sdd-implementer` carrying the brief path, the report-file
|
|
480
|
+
path, and the findings — the report file is the persistent memory either way.
|
|
481
|
+
|
|
482
|
+
**Round 3 — escalate:** dispatch a fresh `sdd-escalation-implementer` with
|
|
483
|
+
the brief path, the report-file path, the open findings, and this framing: "A
|
|
484
|
+
prior implementer attempted this task [N] times; you own it now. Read the
|
|
485
|
+
report file for what was tried." A loop that survives two resumes usually
|
|
486
|
+
means the implementer cannot see its own problem — fresh eyes and a
|
|
487
|
+
capability bump in one move.
|
|
488
|
+
|
|
489
|
+
**Every round, either way:** the implementer fixes, re-runs the tests
|
|
490
|
+
covering the amended code, appends its fix report to the same report file,
|
|
491
|
+
and returns the short contract. Before re-dispatching the reviewer, confirm
|
|
492
|
+
the fix report contains the covering tests, the command run, and the
|
|
493
|
+
output; dispatch the re-review once all three are present. Name the
|
|
494
|
+
covering test files in the fix message — a one-line fix does not need the
|
|
495
|
+
whole suite.
|
|
496
|
+
|
|
497
|
+
**The re-review is scoped.** Run `bash scripts/review-package PLAN_FILE FIX_BASE HEAD`
|
|
498
|
+
where FIX_BASE is the head the previous review saw, and dispatch
|
|
499
|
+
`sdd-rereviewer` with [re-review-prompt.md](re-review-prompt.md): the
|
|
500
|
+
findings list, the brief, the report file, and the printed diff path. It
|
|
501
|
+
has no shell and no file writes, and a four-call budget. It yields
|
|
502
|
+
`finding_verdicts[]` (ADDRESSED / NOT_ADDRESSED with file:line),
|
|
503
|
+
`new_breakage[]` for the fix diff only, `out_of_scope[]`, and
|
|
504
|
+
`round_verdict`. New Critical/Important entries in `new_breakage` join the
|
|
505
|
+
open findings list. `out_of_scope` goes to the ledger as deferred minors —
|
|
506
|
+
it never extends the loop.
|
|
507
|
+
|
|
508
|
+
**After each round,** append to the ledger:
|
|
509
|
+
`Task <N>: fix round <R>/3 (<X> addressed, <Y> open — <finding one-liners>; commits <a7>..<b7>)`
|
|
510
|
+
|
|
511
|
+
Outside the proven-trivial route above, never fix findings yourself in the
|
|
512
|
+
controller session — your context stays clean for coordination, and an
|
|
513
|
+
unproven controller fix skips review.
|
|
514
|
+
|
|
515
|
+
**The breaker.** When round 3's re-review still leaves findings open, stop
|
|
516
|
+
dispatching. Adjudicate each open finding yourself — you hold the plan and
|
|
517
|
+
the cross-task context the reviewer lacks:
|
|
518
|
+
|
|
519
|
+
- **The reviewer is wrong, or the point is contestable:** park it —
|
|
520
|
+
`Task <N>: parked — <finding> — Ruling: <why the code stands>`. The final
|
|
521
|
+
review sees both sides.
|
|
522
|
+
- **Real, but nothing downstream builds on it:** park it the same way, with
|
|
523
|
+
a ruling that says it's real and deferred.
|
|
524
|
+
- **Real and load-bearing** — a later task builds on it, or it reveals a
|
|
525
|
+
plan defect: rule on the smallest change that unblocks the dependent work,
|
|
526
|
+
ledger it as `Task <N>: Ruling: <finding> — <what you decided and why>`,
|
|
527
|
+
and carry it into the next task's dispatch. Parking a structural failure
|
|
528
|
+
silently lets every dependent task build on it. Stop only when the defect
|
|
529
|
+
leaves every path forward a guess.
|
|
530
|
+
|
|
531
|
+
Adjudicate only at the cap. Adjudicating earlier to end a loop is
|
|
532
|
+
pre-judging with a different name. Every adjudication is a ledger entry —
|
|
533
|
+
a silent discard is forbidden.
|
|
534
|
+
|
|
535
|
+
### 5. Complete the task
|
|
536
|
+
|
|
537
|
+
When the review comes back clean — or every open finding is parked with a
|
|
538
|
+
ruling at the cap — append the completion line to the ledger in the same
|
|
539
|
+
message as your other bookkeeping:
|
|
540
|
+
|
|
541
|
+
- `Task <N>: complete (commits <base7>..<head7>, review clean)`
|
|
542
|
+
- `Task <N>: complete (commits <base7>..<head7>, <K> parked)` after a
|
|
543
|
+
tripped breaker
|
|
544
|
+
|
|
545
|
+
Then mark the todo complete and move on. Never move to the next task while
|
|
546
|
+
the review has open Critical/Important issues that are neither fixed nor
|
|
547
|
+
parked-with-ruling at the cap.
|
|
548
|
+
|
|
549
|
+
## Final Review
|
|
550
|
+
|
|
551
|
+
The final whole-branch review gets a package too: run
|
|
552
|
+
`bash scripts/review-package PLAN_FILE MERGE_BASE HEAD` (MERGE_BASE = the commit the
|
|
553
|
+
branch started from, e.g. `git merge-base main HEAD`) and include the
|
|
554
|
+
printed path in the final review dispatch, so the final reviewer reads
|
|
555
|
+
one file instead of re-deriving the branch diff with git commands. Dispatch
|
|
556
|
+
`sdd-final-reviewer` (xhigh reasoning, once per plan — see Agent
|
|
557
|
+
Selection) with a `task` that names: the package path, the plan/spec
|
|
558
|
+
paths, and the ledger's deferred-minor and parked-with-ruling lines
|
|
559
|
+
verbatim. Do not wrap it in requesting-code-review's `code-reviewer.md` —
|
|
560
|
+
that template asks a prose "Ready to merge?" and has no slot for the
|
|
561
|
+
package or the ledger. The agent file's `<output>` governs: findings with
|
|
562
|
+
file:line, a `### Ledger triage` section (each line → fix-before-merge |
|
|
563
|
+
accept, with reason), a `### Declined to judge` section, and a closing
|
|
564
|
+
**Mergeable:** yes | no. Every "Declined to judge" line is a ruling you
|
|
565
|
+
make and ledger, exactly like a plan conflict — `Final: Ruling: <behavior
|
|
566
|
+
the reviewer set aside> — <what a reasonable person using this software
|
|
567
|
+
gets, and why that stands or why it is now a finding> — <cost if wrong>`;
|
|
568
|
+
one that becomes a finding joins the findings below.
|
|
569
|
+
|
|
570
|
+
If the final whole-branch review returns findings, dispatch ONE fix subagent
|
|
571
|
+
with the complete findings list — not one fixer per finding.
|
|
572
|
+
Per-finding fixers each rebuild context and re-run suites; a real
|
|
573
|
+
session's final-review fix wave cost more than all its tasks combined.
|
|
574
|
+
Then run exactly one scoped re-review of the fix wave
|
|
575
|
+
(`bash scripts/review-package PLAN_FILE FIX_BASE HEAD` over the fix range,
|
|
576
|
+
[re-review-prompt.md](re-review-prompt.md)).
|
|
577
|
+
Adjudicate any residual findings as in the task loop's breaker: park with
|
|
578
|
+
rulings, or rule on the load-bearing ones and ledger what you decided. Only
|
|
579
|
+
the four classes above stop you here. There is no second fix wave —
|
|
580
|
+
residual load-bearing findings surface to your human partner when
|
|
581
|
+
finishing-a-development-branch presents the options.
|
|
582
|
+
|
|
583
|
+
## Finish
|
|
584
|
+
|
|
585
|
+
Before you delete anything, collect every ledger line containing `Ruling:` —
|
|
586
|
+
preflight rulings, parked findings, breaker adjudications, all of them — into
|
|
587
|
+
your final message under "Rulings I made", in the order you made them, each
|
|
588
|
+
with what it costs if wrong. The list is exhaustive: if the ledger holds a
|
|
589
|
+
ruling, the list holds it. That list is the only place the decisions you
|
|
590
|
+
took on your human partner's behalf reach them — they read it and rework
|
|
591
|
+
whatever you got wrong. A ruling that dies with the workspace was a decision
|
|
592
|
+
made in secret.
|
|
593
|
+
|
|
594
|
+
When the final whole-branch review is clean and its fixes are merged,
|
|
595
|
+
delete this plan's workspace (`rm -rf <workspace>`) — the git history is
|
|
596
|
+
the record now. Sibling directories belong to other plans; leave them
|
|
597
|
+
alone.
|
|
598
|
+
|
|
599
|
+
Use superpowers:finishing-a-development-branch.
|
|
600
|
+
|
|
601
|
+
## Common Rationalizations
|
|
602
|
+
|
|
603
|
+
| Excuse | Reality |
|
|
604
|
+
|--------|---------|
|
|
605
|
+
| "Close enough on spec compliance" | Reviewer found spec gaps = not done. Fix or hit the cap and adjudicate — those are the only exits. |
|
|
606
|
+
| "I'll fix it myself, dispatching is overhead" | Only when the reviewer gave the exact replacement AND you can prove it in one command — then ledger the proof. Anything else: resume the implementer. |
|
|
607
|
+
| "One more round will converge" | Past three rounds, rounds don't converge — the failure is structural. Adjudicate and route. |
|
|
608
|
+
| "The reviewer will just find something new anyway" | Scoped re-reviews verify fixes; they cannot wander. New findings on untouched code go to the ledger, not the loop. |
|
|
609
|
+
| "This finding is obviously wrong, I'll drop it" | You adjudicate only at the cap, and every ruling is a ledger entry. Silent discards are forbidden. |
|
|
610
|
+
| "The fix was small, skip the re-review" | Small is not the test — proven is. If you cannot run one command that proves the exact property (and ledger it), the round ends with a scoped re-review. |
|
|
611
|
+
| "Reviews slow the loop down" | The loop without reviews is just unverified churn. Reviews are the loop's brakes and steering. |
|
|
612
|
+
| "Ledger bookkeeping is overhead" | The ledger is what survives compaction. Controllers without one have re-dispatched entire completed task sequences. |
|
|
613
|
+
| "The implementer spawned its own reviewer — free extra assurance" | It's a duplicate seat reviewing the same diff; the task review is the gate. A worker-spawned reviewer is a defect to flag, not rigor. |
|
|
614
|
+
|
|
615
|
+
## Example Workflow
|
|
616
|
+
|
|
617
|
+
```
|
|
618
|
+
You: I'm using Subagent-Driven Development to execute this plan.
|
|
619
|
+
|
|
620
|
+
[Setup: worktree verified]
|
|
621
|
+
[Read plan file once: docs/superpowers/plans/feature-plan.md]
|
|
622
|
+
[Resolve workspace: bash scripts/sdd-workspace docs/superpowers/plans/feature-plan.md — no ledger inside, fresh start]
|
|
623
|
+
[Create todos for all tasks]
|
|
624
|
+
|
|
625
|
+
Task 1: Hook installation script
|
|
626
|
+
|
|
627
|
+
[Run task-brief for Task 1; dispatch implementer with brief + report paths + context]
|
|
628
|
+
|
|
629
|
+
Implementer: "Before I begin - should the hook be installed at user or system level?"
|
|
630
|
+
|
|
631
|
+
You: "User level (~/.config/superpowers/hooks/)"
|
|
632
|
+
|
|
633
|
+
Implementer: [Later]
|
|
634
|
+
- Implemented install-hook command
|
|
635
|
+
- Added tests, 5/5 passing
|
|
636
|
+
- Self-review: Found I missed --force flag, added it
|
|
637
|
+
- Committed
|
|
638
|
+
|
|
639
|
+
[Run review-package PLAN_FILE BASE HEAD; dispatch sdd-reviewer with the printed path]
|
|
640
|
+
sdd-reviewer: spec_compliance: compliant · task_quality: approved
|
|
641
|
+
strengths: ["Good test coverage", "clean"] · findings: []
|
|
642
|
+
|
|
643
|
+
[Ledger: Task 1: complete (commits a1b2c3d..d4e5f6a, review clean)]
|
|
644
|
+
|
|
645
|
+
Task 2: Recovery modes
|
|
646
|
+
|
|
647
|
+
[Run task-brief for Task 2; dispatch implementer with brief + report paths + context]
|
|
648
|
+
|
|
649
|
+
Implementer: [No questions]
|
|
650
|
+
- Added verify/repair modes
|
|
651
|
+
- 8/8 tests passing
|
|
652
|
+
- Committed
|
|
653
|
+
|
|
654
|
+
[Run review-package PLAN_FILE BASE HEAD; dispatch sdd-reviewer with the printed path]
|
|
655
|
+
sdd-reviewer: spec_compliance: issues · task_quality: needs_fixes
|
|
656
|
+
spec_issues: ["Missing: progress reporting (spec says 'report every 100 items')"]
|
|
657
|
+
findings: [{severity: Important, location: src/recovery.js:7, body: "Magic number (100)"}]
|
|
658
|
+
|
|
659
|
+
[Fix round 1: resume the implementer with both findings]
|
|
660
|
+
Implementer: Added progress reporting, extracted PROGRESS_INTERVAL constant.
|
|
661
|
+
Re-ran test/recovery.test.js — 10/10 passing. Fix report appended.
|
|
662
|
+
|
|
663
|
+
[Run review-package PLAN_FILE FIX_BASE HEAD; dispatch sdd-rereviewer]
|
|
664
|
+
sdd-rereviewer: round_verdict: all_addressed
|
|
665
|
+
finding_verdicts: [{Missing progress reporting: ADDRESSED, src/recovery.js:41},
|
|
666
|
+
{Magic number: ADDRESSED, src/recovery.js:7}]
|
|
667
|
+
new_breakage: [] · out_of_scope: []
|
|
668
|
+
|
|
669
|
+
[Ledger: Task 2: fix round 1/3 (2 addressed, 0 open; commits d4e5f6a..b7c8d9e)]
|
|
670
|
+
[Ledger: Task 2: complete (commits d4e5f6a..b7c8d9e, review clean)]
|
|
671
|
+
|
|
672
|
+
...
|
|
673
|
+
|
|
674
|
+
[After all tasks]
|
|
675
|
+
[Run review-package PLAN_FILE MERGE_BASE HEAD; dispatch sdd-final-reviewer]
|
|
676
|
+
sdd-final-reviewer: Mergeable: yes. Ledger triage: deferred minors — none block merge.
|
|
677
|
+
|
|
678
|
+
[Delete this plan's workspace — the record now lives in git]
|
|
679
|
+
|
|
680
|
+
Done! Using superpowers:finishing-a-development-branch.
|
|
681
|
+
```
|