@loneexile/omp-superpowers 7.0.0-omp.2 → 7.0.0-omp.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.
- package/CHANGELOG.md +15 -1
- package/README.md +22 -15
- package/agents/sdd-final-reviewer.md +4 -3
- package/package.json +1 -1
- package/skills/brainstorming/SKILL.md +64 -20
- package/skills/executing-plans/SKILL.md +9 -7
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +231 -84
- package/skills/subagent-driven-development/implementer-prompt.md +23 -8
- package/skills/subagent-driven-development/re-review-prompt.md +3 -0
- package/skills/subagent-driven-development/task-reviewer-prompt.md +5 -0
- package/skills/using-git-worktrees/SKILL.md +1 -1
- package/skills/using-superpowers/references/pi-tools.md +1 -1
- package/skills/writing-plans/SKILL.md +50 -20
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ A version is `<upstream version>-omp.<n>`: the upstream release this fork is syn
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [7.0.0-omp.3] - 2026-10-16
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **A small change no longer goes through the full process.** brainstorming's small-change row said "build it through the normal workflow", which left it to a plan and a subagent run. It now has its own path: after the in-chat approval the session builds it itself, test first, runs the covering tests and the suite once, and commits once, with no design document, plan or subagents. A new behavior such as a `--quiet` flag can be small. Security, auth, concurrency, money, migrations, changes one revert cannot undo, new config files or stored formats, changes to existing behavior (defaults, exit codes, error handling, what happens with no input), new interfaces other code builds on and new dependencies never are: in a live run before that list was written, a request for a `--format` flag and a `~/.wcrc` config file was sized small and committed with no design, and the commit also changed what the tool does with no input. In a measured herdr-tunnel feature (2026-09-21), the brainstorm, plan and finish phases took 1h41m of its 3h52m agent time.
|
|
14
|
+
- **One approval for design, plan and method.** A playback no longer waits for its own answer; it rides along with the next question. For software, the plan is written right after the builder check, and writing-plans asks once for approval of the design, the plan, the execution method and the workspace (a new branch in this checkout by default, so no `/move`), picking the method itself and naming its reason instead of asking the partner to choose. In the same feature, 16h55m of 20h48m wall clock was waiting for the partner's reply across the brainstorm, plan and finish prompts; this removes some of those prompts, not the time a partner takes to answer the rest. The combined plan-review and method prompt alone waited 1h42m.
|
|
15
|
+
- **subagent-driven-development reviews per task only where risk earns it, and runs independent tasks in parallel.** writing-plans marks security, auth, concurrency, migration or persisted-format, money and destructive tasks `**Review:** per-task`, and a plan with such a mark runs subagent-driven unless the partner says otherwise. The controller's pre-flight scan turns the marks into a review list and the scan table into waves: tasks with no shared file or interface (lockfiles, manifests and test-time ports count as shared) run in parallel, up to three, each in its own `omp worktree add` worktree. Every dispatch for a wave task, reviewers included, names its worktree. A wave task's covering tests run on the merged tree before the merge commits (`git merge --no-ff --no-commit`), a failure goes back to its implementer as a counted round, and the full suite runs once after each wave. A task reviewed at final gets the controller's own run of its covering tests instead of a task reviewer, and `sdd-final-reviewer` does the task review's work on it, and on any rebased or wave-fix code, before the seams. 6.4.2-omp.3 removed parallel waves because they rode on `task.isolation`, whose patch merge leaves no commits and whose agents cannot be resumed; these waves use git worktrees and keep both. Across six measured SDD runs, task reviews and re-reviews took 2h28m and final reviews 1h24m, against 7h06m of implementation, and every task ran in sequence.
|
|
16
|
+
- **`sdd-final-reviewer` always reports crashes and lost data.** A crash (an uncaught exception, a traceback) or lost data on input a user can give is a finding, never a "Declined to judge" line, whatever the plan or spec says about that input. In a live SDD run on a three-task plan, the final reviewer listed a traceback on a bad `--larger-than` value under "Declined to judge", and the branch kept it; per-task reviews now cover fewer tasks, so the final review is where such a crash gets caught.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **The `task.isolation` notes match omp 18.11.0.** They said isolated work always returns as an uncommitted patch and an isolated agent cannot be messaged. Measured in two scratch runs on 18.11.0 (the bundled `task` agent, and an `sdd-implementer` seat on cursor-sdk): `merge: branch` keeps a subagent's commits and cherry-picks them onto the parent branch as it finishes, under new ids, and deletes the task branch; a same-file conflict leaves `omp/task/<id>` behind. A `write agent://<id>` to an isolated agent answers `Delivered` although its result says it "cannot be resumed or messaged", and the fix it then committed never reached the parent branch while the session ran; after the session ended it sat on a leftover `omp/task/<id>` branch that also repeated the already-merged commit. `pi-tools.md` now says never to send an isolated subagent a follow-up, and how to recover one that went out (cherry-pick only its new commits). SDD still uses its own worktrees, because its fix rounds resume the implementer.
|
|
21
|
+
|
|
9
22
|
## [7.0.0-omp.2] - 2026-10-11
|
|
10
23
|
|
|
11
24
|
### Changed
|
|
@@ -90,7 +103,8 @@ First release, synced to upstream [v6.4.2](https://github.com/obra/superpowers/b
|
|
|
90
103
|
- The fork's rewritten subagent-driven-development text invokes its helper scripts through `bash` as well, so a package extractor that drops exec bits cannot break them.
|
|
91
104
|
- `sdd-final-reviewer` carries upstream's new review rules from `code-reviewer.md`, the template it replaces in SDD's final review: the spec is a vision document (behavior it is silent on is graded by what a reasonable person expects), and a "Declined to judge" section that the controller rules on and ledgers like a plan conflict.
|
|
92
105
|
|
|
93
|
-
[Unreleased]: https://github.com/LoneExile/omp-superpowers/compare/v7.0.0-omp.
|
|
106
|
+
[Unreleased]: https://github.com/LoneExile/omp-superpowers/compare/v7.0.0-omp.3...HEAD
|
|
107
|
+
[7.0.0-omp.3]: https://github.com/LoneExile/omp-superpowers/releases/tag/v7.0.0-omp.3
|
|
94
108
|
[7.0.0-omp.2]: https://github.com/LoneExile/omp-superpowers/releases/tag/v7.0.0-omp.2
|
|
95
109
|
[7.0.0-omp.1]: https://github.com/LoneExile/omp-superpowers/releases/tag/v7.0.0-omp.1
|
|
96
110
|
[6.4.2-omp.4]: https://github.com/LoneExile/omp-superpowers/releases/tag/v6.4.2-omp.4
|
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@ This fork keeps the skills and fixes the omp side:
|
|
|
8
8
|
|
|
9
9
|
- the injected tool mapping tells the truth about `task`, `todo`, `read`/`grep`/`glob`
|
|
10
10
|
- **five omp agents** (`agents/sdd-*.md`) give every subagent-driven-development seat its own model, thinking level, and tool set
|
|
11
|
-
- subagent-driven-development is rewritten around them: three-round fix loop, structured reviewer output,
|
|
11
|
+
- subagent-driven-development is rewritten around them: three-round fix loop, structured reviewer output, independent tasks in parallel worktrees, a task review only where a task's risk earns it
|
|
12
|
+
- a small change skips the design document, plan and subagents, and a project asks for one approval of design, plan and execution method together
|
|
12
13
|
|
|
13
14
|
## Install
|
|
14
15
|
|
|
@@ -41,9 +42,9 @@ Agent definitions are read **per dispatch**, so a reinstall takes effect on the
|
|
|
41
42
|
|
|
42
43
|
The skills drive themselves once loaded. The usual path:
|
|
43
44
|
|
|
44
|
-
1. `read skill://brainstorming` — turn an idea into a design
|
|
45
|
-
2. `read skill://writing-plans` — produce `docs/plans/<date>-<name>.md
|
|
46
|
-
3. `read skill://subagent-driven-development` — execute the plan
|
|
45
|
+
1. `read skill://brainstorming` — turn an idea into a design. A small change stops here: after you approve it in chat, the session builds it itself, test first, and commits once
|
|
46
|
+
2. `read skill://writing-plans` — produce `docs/plans/<date>-<name>.md`, pick the execution method, and ask once for approval of the design, the plan and the method together
|
|
47
|
+
3. `read skill://subagent-driven-development` — execute the plan via subagents, independent tasks in parallel. If you swap to Native in that approval, `executing-plans` runs instead: the session does every task itself, and only the final review is a subagent (`sdd-final-reviewer`)
|
|
47
48
|
4. `read skill://finishing-a-development-branch` — merge / PR / discard
|
|
48
49
|
|
|
49
50
|
On omp the agent invokes a skill by reading it (`read skill://<name>`); you can also invoke one explicitly with `/skill:<name>`.
|
|
@@ -54,10 +55,15 @@ On omp the agent invokes a skill by reading it (`read skill://<name>`); you can
|
|
|
54
55
|
|
|
55
56
|
```mermaid
|
|
56
57
|
flowchart TD
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
S["pre-flight scan: review list + waves"] --> B
|
|
59
|
+
B["task-brief: one task's text from the plan; a wave of 2+ gets a worktree per task"] --> I
|
|
60
|
+
I["sdd-implementer: TDD, commit, report file"] --> L{"on the review list?"}
|
|
61
|
+
L -->|"no: review at final"| T["controller runs the covering tests"]
|
|
62
|
+
T -->|"pass"| D
|
|
63
|
+
T -->|"fail: fix round"| I
|
|
64
|
+
L -->|"yes: risk class"| P["review-package: git diff -U10 to a file"]
|
|
59
65
|
P --> R["sdd-reviewer: spec + quality, structured result"]
|
|
60
|
-
R -->|"approved"| D["ledger: Task N complete"]
|
|
66
|
+
R -->|"approved"| D["merge the task branch; ledger: Task N complete"]
|
|
61
67
|
R -->|"Critical or Important findings"| F
|
|
62
68
|
F["fix round 1 or 2: resume sdd-implementer"] --> RR["sdd-rereviewer: verdict per finding"]
|
|
63
69
|
RR -->|"all addressed"| D
|
|
@@ -65,9 +71,9 @@ flowchart TD
|
|
|
65
71
|
E --> RR
|
|
66
72
|
RR -->|"still open after round 3"| A["controller adjudicates and parks with a ruling"]
|
|
67
73
|
A --> D
|
|
68
|
-
D --> N{"more
|
|
74
|
+
D --> N{"more waves?"}
|
|
69
75
|
N -->|"yes"| B
|
|
70
|
-
N -->|"no"| W["sdd-final-reviewer: whole-branch, once per plan"]
|
|
76
|
+
N -->|"no"| W["sdd-final-reviewer: whole-branch, once per plan; does the task review's work for review-at-final tasks"]
|
|
71
77
|
W --> X["finishing-a-development-branch"]
|
|
72
78
|
|
|
73
79
|
classDef seat fill:#1e3a8a,stroke:#3b82f6,color:#dbeafe
|
|
@@ -144,7 +150,7 @@ Rules that are easy to get wrong:
|
|
|
144
150
|
|
|
145
151
|
| setting | why |
|
|
146
152
|
|---|---|
|
|
147
|
-
| `task.isolation.enabled` (+ `isolation.backend`, default `auto`) | off by default. SDD does not use it
|
|
153
|
+
| `task.isolation.enabled` (+ `isolation.backend`, default `auto`) | off by default. SDD does not use it. Under the default `merge: patch` isolated work returns as an uncommitted patch; `merge: branch` keeps commits but applies them as each task ends, before review, under new ids. Either way, an isolated subagent cannot take a fix round: on omp 18.11.0 a message to one is delivered, but its fix never reaches your branch while the session runs. Parallel tasks get their own `omp worktree add` worktrees instead. Older omp builds spelled this `task.isolation.mode`; check `omp config get task.isolation.enabled` on your build |
|
|
148
154
|
| `task.enableEffort` | exposes per-dispatch `effort` (`"lo"`, `"med"`, `"hi"`); `"hi"` maps to the model's top supported level, capped by `task.maxEffort`. SDD uses `effort: "hi"` for high-risk task reviews, and for escalation only when a host override lowers that seat |
|
|
149
155
|
| `task.showResolvedModelBadge` (default off) | shows the model each subagent actually ran. A seat whose pinned provider has no credentials silently runs on another model |
|
|
150
156
|
| `task.enableLsp`, `astGrep.enabled` (both default off) | omp only activates `lsp` and `ast_grep` in subagents when these are on |
|
|
@@ -155,11 +161,12 @@ Rules that are easy to get wrong:
|
|
|
155
161
|
- `.pi/extensions/superpowers.ts` — the injected mapping names `task`, `todo`, the `sdd-*` roster, and the no-`model:`-field rule; it also re-arms on `session_switch`, skips subagent sessions, and ignores an `agent_end` that will auto-continue; it tells a dispatching session to name the checks each subagent must run, since omp 18.4.12 tells subagents to leave builds, tests and smoke runs to the main agent unless their assignment explicitly instructs them; its last paragraph points a vibe-mode director (tools include `vibe_spawn` but not `task`) at the *Vibe mode* section of `pi-tools.md`
|
|
156
162
|
- `.omp-plugin/plugin.json` — new. Marks the repo root as an omp-native plugin so a marketplace or `--plugin-dir` install keeps each agent's `model:` line
|
|
157
163
|
- `skills/using-superpowers/references/pi-tools.md` — same, as the reference doc; it also gains a *Checks* subsection (the 18.4.12 subagent hand-off rule, and why every dispatch names its checks) and a *Vibe mode* section: what a director keeps and lacks, how skill actions map onto `vibe_*` and workers, and the worktree and request-budget limits
|
|
158
|
-
- `
|
|
159
|
-
- `
|
|
164
|
+
- `skills/brainstorming/` — a defined small-change path: after the in-chat approval the session builds it itself, test first, runs the covering tests and the suite once, and commits once, with no design document, plan or subagents (a new behavior such as a `--quiet` flag can be small; security, auth, concurrency, money, migrations, changes one revert cannot undo, new config files or stored formats, changes to existing behavior, new interfaces other code builds on and new dependencies never are); a playback rides along with the next question instead of waiting for its own answer; for software, the plan is written right after the builder check so the design and the plan get one approval
|
|
165
|
+
- `agents/sdd-*.md` — new. Each seat's `model:` is a pin plus a role fallback (`@task` or `@slow`), and all set `readSummarize: false`. `sdd-final-reviewer` reviews the whole branch for both ways of running a plan; after subagent-driven-development it does the task review's work on every task left to it (`review at final`) before the seams. It reads `requesting-code-review/code-reviewer.md` at run time and applies its What to Check, Calibration, severity definitions and Critical Rules, while carrying upstream's vision-document and Declined-to-judge rules in its own body; a crash or lost data on user input is always a finding, never a Declined-to-judge line. Descriptions name roles, never models
|
|
166
|
+
- `skills/subagent-driven-development/` — *Model Selection* → *Agent Selection*; fix-loop cap 5 → 3 with a round-3 escalation seat; a proven-trivial-fix route that replaces a re-review with a one-command proof; the pre-flight scan builds a review list (plan-marked or ruled high-risk tasks get a task review, the rest get the controller's own covering-test run and the final review) and waves (tasks with no shared file or interface run in parallel, up to three, each in its own `omp worktree add` worktree, merged back with `--no-ff`); the scripts directory resolves via `realpath skill://subagent-driven-development/scripts`; fix rounds resume the implementer with `write agent://<id>` (id ledgered) and full results are read at `agent://<id>`; task review scales with risk through `effort: "hi"`; the controller checks reviewer results; templates show omp's real `{ context, tasks: [{ agent, task, solutionSpace }] }` wire shape and the reviewers' structured fields; one omp paragraph for vibe mode, where a director (no `task` or `bash`) hands the whole run to one `good` worker that dispatches the seats itself
|
|
160
167
|
- `skills/executing-plans/` — one additive omp paragraph in *Final Review*: the `task` tool has no `model:` field, so the final review goes to `sdd-final-reviewer` (its model is what the host maps that agent to), told that no task was reviewed; it also resolves the scripts directory with `realpath` and reads full results at `agent://<id>`; one more omp paragraph for vibe mode, where a director hands the whole run to one `good` worker
|
|
161
168
|
- `skills/using-git-worktrees/` — additive omp section: `/wt` is the user's one-line answer to the consent question (moves the session, carries WIP); when the agent creates the worktree itself it uses `omp worktree add` under `~/.omp/wt/` (the only place `omp worktree list`/`clear` manage), knows that command leaves uncommitted changes behind, and asks for `/move <path>` because `cd` never moves the tools' cwd. Also: clone-first falls back to a plain checkout without `node_modules` (no copy-on-write, or in-repo targets); setup and tests use the bash tool's `cwd` parameter until `/move`; `omp worktree clear --all` is warned against, since it force-removes every worktree, uncommitted work included; omp's bash rewrites a literal `git worktree add` into `omp worktree add` only without shell expansion; vibe mode refuses `/move` and `/wt`, so the worktree and `/move` come before `/vibe`, or every worker brief carries the absolute path
|
|
162
|
-
- `skills/writing-plans/` — one
|
|
169
|
+
- `skills/writing-plans/` — *Execution Handoff* picks the method itself and asks for one approval of the design, the plan and the method; *Review Marks* (and a self-review check) mark security, auth, concurrency, migration, money and destructive tasks `**Review:** per-task`; tasks that share no file or interface can run in parallel; in vibe mode both execution approaches run in one `good` worker the director briefs, not in its own session
|
|
163
170
|
- `README.md` — this file: rewritten for omp (install, seats, overrides, maintenance); upstream's multi-harness README is gone
|
|
164
171
|
- `tests/pi/test-pi-extension.mjs` — covers the extension's lifecycle (bootstrap on start, `session_switch`, compaction; none for subagents or an auto-continuing `agent_end`), the action table in `pi-tools.md`, the seat table against the names in `agents/*.md`, and the `.omp-plugin/plugin.json` manifest; the package-name assertion is gone (`scripts/check-npm-package.sh` checks the published name)
|
|
165
172
|
- `package.json` — the npm identity: `@loneexile/omp-superpowers`, `<upstream version>-omp.<n>` versions, a `files` allowlist (the extension, `skills/`, `agents/`), `publishConfig`, `omp`/`oh-my-pi` keywords; `main` is dropped, since it pointed at the OpenCode plugin this package does not ship
|
|
@@ -178,7 +185,7 @@ git rebase upstream/main
|
|
|
178
185
|
git push --force-with-lease origin main
|
|
179
186
|
```
|
|
180
187
|
|
|
181
|
-
Expect conflicts in `skills/subagent-driven-development/`, `pi-tools.md`, `README.md`, and `package.json` whenever upstream touches them — this fork rewrites those files rather than appending to them (README.md is never a partial conflict). In `package.json` keep the fork's identity and set `version` to `<new upstream version>-omp.1`: CI's package check fails until the version's base matches the upstream version in `.claude-plugin/plugin.json`. `agents/`, the extension's mapping paragraph, and the omp blocks in `using-git-worktrees` are additive.
|
|
188
|
+
Expect conflicts in `skills/subagent-driven-development/`, `skills/brainstorming/`, `skills/writing-plans/`, `pi-tools.md`, `README.md`, and `package.json` whenever upstream touches them — this fork rewrites those files rather than appending to them (README.md is never a partial conflict). In `package.json` keep the fork's identity and set `version` to `<new upstream version>-omp.1`: CI's package check fails until the version's base matches the upstream version in `.claude-plugin/plugin.json`. `agents/`, the extension's mapping paragraph, and the omp blocks in `using-git-worktrees` are additive.
|
|
182
189
|
|
|
183
190
|
A clean rebase is not the whole sync. Upstream's edits to text this fork replaced never reach the replacement, so read upstream's diff for those files and port what still applies. The v6.4.x sync needed two: `bash scripts/...` invocations in the SDD text, and `code-reviewer.md`'s new review rules. Upstream edits to `code-reviewer.md`'s What to Check, Calibration, severity definitions and Critical Rules now reach `sdd-final-reviewer` without porting, because it reads the file at run time. Edits to the vision-document or Declined-to-judge sections still need porting into the agent body, which carries them itself.
|
|
184
191
|
|
|
@@ -197,7 +204,7 @@ gh release create "v$v" --target main --title "v$v" --notes-file /tmp/notes.md
|
|
|
197
204
|
|
|
198
205
|
### New omp versions
|
|
199
206
|
|
|
200
|
-
Before trusting a new omp release, re-check the harness facts this fork depends on — against the **running binary**, not an npm source tree that may lag it. `~/.bun/install/global/node_modules/@oh-my-pi/pi-coding-agent/src` routinely lags `omp --version` (a 17.4.2 tree sat beside an 18.1.17 binary while this README was written, and the isolation setting had been renamed in between). The fork was last verified against omp 18.4.10; its vibe-mode text and the subagent check rule were re-checked against 18.4.12. To read the exact running version's source, pack it into a temp dir: `cd "$(mktemp -d)" && npm pack @oh-my-pi/pi-coding-agent@$(omp --version | cut -d/ -f2) && tar xzf *.tgz` (source under `package/src`). The live oracles are `omp config list --json` (every setting and its default), the `task` tool's own description in a session (agent roster, item fields), a `session_init.resolvedModel` line in a subagent transcript (what actually resolved), and `grep -a` on the binary for an exact string when you need to know whether a code path exists.
|
|
207
|
+
Before trusting a new omp release, re-check the harness facts this fork depends on — against the **running binary**, not an npm source tree that may lag it. `~/.bun/install/global/node_modules/@oh-my-pi/pi-coding-agent/src` routinely lags `omp --version` (a 17.4.2 tree sat beside an 18.1.17 binary while this README was written, and the isolation setting had been renamed in between). The fork was last verified against omp 18.4.10; its vibe-mode text and the subagent check rule were re-checked against 18.4.12, and the `task.isolation` notes against 18.11.0. To read the exact running version's source, pack it into a temp dir: `cd "$(mktemp -d)" && npm pack @oh-my-pi/pi-coding-agent@$(omp --version | cut -d/ -f2) && tar xzf *.tgz` (source under `package/src`). The live oracles are `omp config list --json` (every setting and its default), the `task` tool's own description in a session (agent roster, item fields), a `session_init.resolvedModel` line in a subagent transcript (what actually resolved), and `grep -a` on the binary for an exact string when you need to know whether a code path exists.
|
|
201
208
|
|
|
202
209
|
## License
|
|
203
210
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sdd-final-reviewer
|
|
3
|
-
description: "Superpowers final whole-branch reviewer, dispatched once per plan: after subagent-driven-development it
|
|
3
|
+
description: "Superpowers final whole-branch reviewer, dispatched once per plan: after subagent-driven-development it reviews the tasks left to it and the seams between all of them; after an inline executing-plans run it is the only review the branch gets. Triages the ledger lines it is given."
|
|
4
4
|
tools: read, grep, glob, bash, lsp, ast_grep
|
|
5
5
|
# thinkingLevel is the seat's reasoning tier; an explicit :level on the model
|
|
6
6
|
# string (or on a task.agentModelOverrides entry) takes precedence over it.
|
|
@@ -15,7 +15,7 @@ readSummarize: false
|
|
|
15
15
|
|
|
16
16
|
You review a whole branch once, at the end of a plan. Your dispatch gives the merge-base..HEAD review package, the plan/spec paths, the ledger lines to triage, and how the plan ran:
|
|
17
17
|
|
|
18
|
-
- **subagent-driven-development:**
|
|
18
|
+
- **subagent-driven-development:** the dispatch names the tasks that had their own task review (`review per-task`, with a risk class) and the tasks that did not (`review at final`). Do the task review's work on every `review at final` task first, as for an inline run below. Then the seams: per-task reviews cannot see cross-file seams, so spend your attention there, deepest around the `review per-task` classes. Fixes the controller applied itself on the proven-trivial route (ledger lines `Task <N>: applied … proof: …`, passed in the dispatch) skipped the re-review: check each such fix and its proof as if no one had.
|
|
19
19
|
- **executing-plans (inline):** no task was reviewed, and you are the only fresh review this branch gets. Do the task reviews' work across the whole branch first — every plan requirement present, nothing extra, the code sound, and tests that can fail (would deleting a fix, or a plausible regression, leave them green?) — then the seams.
|
|
20
20
|
|
|
21
21
|
If the dispatch does not say how the plan ran, review it as an inline run.
|
|
@@ -24,10 +24,11 @@ If the dispatch does not say how the plan ran, review it as an inline run.
|
|
|
24
24
|
- Read `skill://requesting-code-review/code-reviewer.md` first and apply its **What to Check** (plan alignment, code quality, architecture, testing, production readiness), its **Calibration**, its Critical / Important / Minor definitions (under *Output Format → Issues*), and its **Critical Rules**. Its Output Format layout, Recommendations, Assessment, and Read-Only Review section do not apply: `<output>` below governs the result, and the bash limits below govern the checkout.
|
|
25
25
|
- Read the package in full, from line 1, with an explicit range: a bare `read` returns only the first 300 lines, `<path>:1-3000` returns up to 3,000 per call, and when the footer says `[Showing lines … of N. Use :M to continue]` you continue with `:M-<M+2999>` until you have read all N lines. Never judge from a partial read. A line over 768 characters arrives truncated — `grep -n` the file to see one in full.
|
|
26
26
|
- Then trace every patch-introduced type, value, or contract across its consuming side: the dispatch point is often outside the diff — read it before concluding the producer is correct.
|
|
27
|
-
- If the dispatch names a high-risk change class (concurrency, security, a data migration),
|
|
27
|
+
- If the dispatch names a high-risk change class (concurrency, security, a data migration), go deepest there, after any task left to you for its task review. Code the dispatch lists as `rebased` or `Wave <K>: fix` had no task review: check it as if no one had.
|
|
28
28
|
- Bash is read-only: `git log`, `git show`, `git diff`, running a focused test. Never edit, never run the whole suite.
|
|
29
29
|
- Read-only is your rule, not the harness's: omp mounts MCP and extension tools on you as `xd://` devices reached through `write`, and the `tools:` list cannot remove them. Never call an `xd://` device, or any extension or MCP tool, that executes code, writes files, or changes external state — nor a memory tool that writes (`retain`, `memory_edit`) if your tool list shows one.
|
|
30
30
|
- The spec is a vision document: it says what the software must do, not every input, environment, or condition it will meet. Where it is silent, a reasonable person's expectation is the requirement — the spec's silence is not permission. Grade such findings by their effect on that person, not by whether the spec mentions the trigger.
|
|
31
|
+
- A crash (an uncaught exception, a traceback) or lost data on input a user can give is always a finding, never a `Declined to judge` line, whatever the plan or spec says about that input.
|
|
31
32
|
- If the dispatch carries the plan's Review Focus list, check each item deliberately: those are inputs and failure modes the plan's tests do not exercise.
|
|
32
33
|
- Triage the ledger lines you were given: which deferred minors must be fixed before merge, which rulings you overturn — say why in one line each.
|
|
33
34
|
- You do not dispatch subagents.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loneexile/omp-superpowers",
|
|
3
|
-
"version": "7.0.0-omp.
|
|
3
|
+
"version": "7.0.0-omp.3",
|
|
4
4
|
"description": "obra/superpowers adapted for Oh My Pi (omp): a truthful task/todo tool mapping and five subagent-driven-development agents, each with its own model, thinking level, and tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,7 +31,8 @@ Your first message is two things, in this order:
|
|
|
31
31
|
have you just start, they can say so. If they take you up on it, this
|
|
32
32
|
skill is done: state any significant how-it-gets-made choice
|
|
33
33
|
(platform, language, medium) in one plain line, then do what they
|
|
34
|
-
asked
|
|
34
|
+
asked the way its size calls for (Size the Work, below). Their opt-out
|
|
35
|
+
is the approval a small change needs.
|
|
35
36
|
2. One open question that gets them describing. Ask about a real moment
|
|
36
37
|
or a concrete picture: "What's the moment you find yourself wishing
|
|
37
38
|
this existed?" or "Tell me about the people who'll be in the room."
|
|
@@ -113,12 +114,15 @@ conversation.
|
|
|
113
114
|
|
|
114
115
|
Play back as you go. As soon as you understand one part well enough to
|
|
115
116
|
describe it (what it's for and who it serves, say, or how one piece
|
|
116
|
-
behaves), describe that part back in about 200-300 words
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
behaves), describe that part back in about 200-300 words. A playback
|
|
118
|
+
doesn't wait for its own answer: send it in the same message as your
|
|
119
|
+
next question, with one line saying they can correct anything in it in
|
|
120
|
+
their reply. The last chunk covers whatever is left and goes out with
|
|
121
|
+
the size you pick; for a small change, it ends by asking whether to
|
|
122
|
+
build it.
|
|
119
123
|
|
|
120
124
|
Mark anything you're guessing as your guess; only what they said goes in
|
|
121
|
-
as theirs.
|
|
125
|
+
as theirs.
|
|
122
126
|
|
|
123
127
|
Before you send a chunk, check it: does it describe something they'll
|
|
124
128
|
look at, like a page, a screen, a schedule, or a printout? If so, and
|
|
@@ -134,9 +138,41 @@ words. They can override it.
|
|
|
134
138
|
| Size | The full description | Then |
|
|
135
139
|
|------|----------------------|------|
|
|
136
140
|
| A quick, clear task | the request itself | do it |
|
|
137
|
-
| A small change | in chat |
|
|
141
|
+
| A small change | in chat | the small-change path, below |
|
|
138
142
|
| A project with a written design | a written design document | a full plan (for software: superpowers:writing-plans) |
|
|
139
143
|
|
|
144
|
+
**A small change** is one you can describe in a few lines of chat: it
|
|
145
|
+
stays inside one area of the work, adds nothing that other parts will
|
|
146
|
+
build on, and one revert undoes it. Adding a behavior can be small (a new
|
|
147
|
+
`--quiet` flag). These are never small; size them as projects: security,
|
|
148
|
+
authentication, concurrency, money, data migrations, anything one revert
|
|
149
|
+
cannot undo, and in software a new config file or stored format, a change
|
|
150
|
+
to existing behavior (a default, an exit code, error handling, what
|
|
151
|
+
happens with no input), a new interface other code builds on (plugins, a
|
|
152
|
+
public API), or a new dependency.
|
|
153
|
+
|
|
154
|
+
**The small-change path.** Once they approve the description, build it
|
|
155
|
+
yourself, in this session: no design document, no plan, no subagents.
|
|
156
|
+
For software:
|
|
157
|
+
|
|
158
|
+
1. Run `git status --short` first and note anything that isn't yours. On
|
|
159
|
+
the default branch or a detached HEAD, start a branch for the change
|
|
160
|
+
(`git switch -c <topic>`), unless they told you to work where you are.
|
|
161
|
+
2. Test first (superpowers:test-driven-development): a failing test,
|
|
162
|
+
then the code that makes it pass. A change no test can cover
|
|
163
|
+
(configuration, docs) gets the cheapest check that can fail instead:
|
|
164
|
+
a build, a lint, a parse. Their approval of the description covers
|
|
165
|
+
that exception.
|
|
166
|
+
3. Run the tests that cover the change, then the full suite once.
|
|
167
|
+
4. Commit once, staging your own files by path, never with `-a` or `-A`.
|
|
168
|
+
5. Before you call it done, follow
|
|
169
|
+
superpowers:verification-before-completion: name the commit, the
|
|
170
|
+
command you ran, what it printed, and any changes in the tree that
|
|
171
|
+
aren't yours.
|
|
172
|
+
|
|
173
|
+
Your human partner reviews that commit; it is the only review a small
|
|
174
|
+
change gets. Outside software, make the change and show it to them.
|
|
175
|
+
|
|
140
176
|
If it grows mid-task, stop, say so, and step up a size.
|
|
141
177
|
|
|
142
178
|
If this is really several independent projects, say so, agree on an
|
|
@@ -159,9 +195,11 @@ Otherwise, ask. Your human partner's preferences override both.
|
|
|
159
195
|
|
|
160
196
|
**Builder check:** dispatch a fresh subagent with
|
|
161
197
|
`builder-check-prompt.md` in this directory. When you tell your human
|
|
162
|
-
partner you're writing it up, say a reviewer will read it first
|
|
163
|
-
may come back once with a few questions
|
|
164
|
-
|
|
198
|
+
partner you're writing it up, say a reviewer will read it first, that you
|
|
199
|
+
may come back once with a few questions, and, for software, that the
|
|
200
|
+
plan comes with it. Don't hand over the document until the check is
|
|
201
|
+
back. Without a subagent tool, read the document as that builder
|
|
202
|
+
yourself. Sort what the builder asks into three piles:
|
|
165
203
|
|
|
166
204
|
- **Answered already** by the conversation or the project: put the answer
|
|
167
205
|
in the document.
|
|
@@ -170,26 +208,31 @@ until the check is back. Sort what the builder asks into three piles:
|
|
|
170
208
|
- **Theirs:** only your human partner can answer it, and the answer changes
|
|
171
209
|
what gets built.
|
|
172
210
|
|
|
173
|
-
Bring the "theirs" pile in one message, most important first.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
211
|
+
Bring the "theirs" pile in one message, most important first. That's the
|
|
212
|
+
only round of questions the check produces. Update the document with
|
|
213
|
+
their answers. Then, for software, don't hand the document over on its
|
|
214
|
+
own: invoke superpowers:writing-plans and write the plan now, so your
|
|
215
|
+
human partner approves the design and its plan in one reading. The plan's
|
|
216
|
+
handoff asks for that approval and lists the calls you made. Outside
|
|
217
|
+
software, hand the document over with a short list of the calls you made
|
|
218
|
+
so they can check those while reading.
|
|
178
219
|
|
|
179
220
|
<HARD-GATE>
|
|
180
221
|
Nothing gets built until your human partner approves the full
|
|
181
|
-
description: in chat for a small change
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
222
|
+
description: in chat for a small change; for a software project, the
|
|
223
|
+
design document and its plan together, in one approval; otherwise the
|
|
224
|
+
document. Building includes writing product code, scaffolding,
|
|
225
|
+
installing dependencies, creating projects, and invoking an
|
|
226
|
+
implementation skill. Reading, exploring, and writing the plan are fine.
|
|
185
227
|
|
|
186
228
|
Two exceptions. If they opted out of the questions, the skill is done
|
|
187
229
|
and the gate goes with it. A spike they said yes to may be built; it
|
|
188
230
|
stays labeled throwaway, and keeping what it produced is a new request
|
|
189
231
|
that comes back through this gate.
|
|
190
232
|
|
|
191
|
-
|
|
192
|
-
|
|
233
|
+
The next step after the builder check is the plan. For software, write
|
|
234
|
+
it before the approval: invoke superpowers:writing-plans and no other
|
|
235
|
+
skill. Outside software, the plan follows the document's approval.
|
|
193
236
|
</HARD-GATE>
|
|
194
237
|
|
|
195
238
|
## Red Flags
|
|
@@ -200,6 +243,7 @@ software, invoke superpowers:writing-plans and no other skill.
|
|
|
200
243
|
| "I'll fill in sensible defaults" | Good. Say them out loud. A default they never heard is one they couldn't reject. |
|
|
201
244
|
| "I should explain the process first" | Ask your question. The process shows itself. |
|
|
202
245
|
| "They said 'sounds good' to the idea" | Approval covers what you showed them. A description you haven't written isn't approved. |
|
|
246
|
+
| "I'll get the design approved, then write the plan" | For software, write the plan first, so they approve both in one reading. A change to the design updates the plan before you ask again. |
|
|
203
247
|
| "The spike works, I'll keep building on it" | Keeping it is a new request. Back through the gate. |
|
|
204
248
|
|
|
205
249
|
## Visual Companion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: executing-plans
|
|
3
|
-
description: Use when executing an implementation plan in the current session as the implementer yourself — your human partner
|
|
3
|
+
description: Use when executing an implementation plan in the current session as the implementer yourself — your human partner approved inline execution, or no subagent tool is available
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Executing Plans
|
|
@@ -10,7 +10,7 @@ subagent per task, no reviewer per task. One fresh-context review of the
|
|
|
10
10
|
whole branch at the end.
|
|
11
11
|
|
|
12
12
|
**Why inline:** Subagent-driven development pays for a fresh implementer
|
|
13
|
-
and a fresh reviewer on
|
|
13
|
+
on every task and a fresh reviewer on each high-risk one, each re-reading the codebase from zero.
|
|
14
14
|
Inline execution pays for one context (yours) plus one reviewer at the end.
|
|
15
15
|
What it gives up is a fresh context per task and a second pair of eyes per
|
|
16
16
|
task. This skill keeps what those two things bought, by other means: the
|
|
@@ -25,7 +25,7 @@ record that survives your own forgetting.
|
|
|
25
25
|
ledger and the tool results carry the record.
|
|
26
26
|
|
|
27
27
|
**Continuous execution:** Do not pause to check in with your human partner
|
|
28
|
-
between tasks. They
|
|
28
|
+
between tasks. They approved inline execution to spend less, not to answer
|
|
29
29
|
"should I continue?" after every task. Execute all tasks from the plan
|
|
30
30
|
without stopping.
|
|
31
31
|
|
|
@@ -62,7 +62,7 @@ answers. The worktree and budget limits are in "Vibe mode" in
|
|
|
62
62
|
## When to Use
|
|
63
63
|
|
|
64
64
|
- You have a plan from superpowers:writing-plans and your human partner
|
|
65
|
-
|
|
65
|
+
approved inline (Native) execution at the handoff.
|
|
66
66
|
- Your harness has no subagent tool (see the per-platform references in
|
|
67
67
|
`../using-superpowers/references/`). Never fabricate a dispatch; run
|
|
68
68
|
the plan here.
|
|
@@ -74,8 +74,8 @@ it runs well on a mid-tier session model, and the one place the most
|
|
|
74
74
|
capable model earns its cost is the final review, which this skill
|
|
75
75
|
dispatches separately. Tell your human partner so when they choose inline.
|
|
76
76
|
|
|
77
|
-
Prefer superpowers:subagent-driven-development when
|
|
78
|
-
wants a review gate on every task, or when the plan is long enough that
|
|
77
|
+
Prefer superpowers:subagent-driven-development when the plan marks tasks
|
|
78
|
+
`**Review:** per-task`, when your human partner wants a review gate on every task, or when the plan is long enough that
|
|
79
79
|
its later tasks would run on a compacted context. Inline execution over a
|
|
80
80
|
long plan still works — the ledger is what makes it recoverable — but the
|
|
81
81
|
last tasks get the least of you.
|
|
@@ -292,7 +292,9 @@ carries the model — so choosing the reviewer's model means choosing its
|
|
|
292
292
|
agent. Dispatch `sdd-final-reviewer`, the whole-branch reviewer this
|
|
293
293
|
plugin ships, not the bundled `reviewer` or `task` agent. Give it the
|
|
294
294
|
inputs above and say the plan ran inline, with no task reviewed, so it
|
|
295
|
-
checks every change rather than only cross-task seams.
|
|
295
|
+
checks every change rather than only cross-task seams. Name every task the
|
|
296
|
+
plan marks `**Review:** per-task`, with its class, so it goes deepest
|
|
297
|
+
there. Do not paste
|
|
296
298
|
code-reviewer.md into the dispatch: the agent reads the review rubric from
|
|
297
299
|
it itself, and its own `<output>` governs. Its model is whatever this host
|
|
298
300
|
maps that agent to: opus-5-5 · max by default (`@slow` when that pin has no
|
|
@@ -12,7 +12,7 @@ Dispatch a code reviewer subagent to catch issues before they cascade. The revie
|
|
|
12
12
|
## When to Request Review
|
|
13
13
|
|
|
14
14
|
**Mandatory:**
|
|
15
|
-
- After each task
|
|
15
|
+
- After each task on subagent-driven development's review list, and once on the whole branch at the end
|
|
16
16
|
- After completing major feature
|
|
17
17
|
- Before merge to main
|
|
18
18
|
|
|
@@ -5,11 +5,11 @@ description: Use when executing implementation plans with independent tasks in t
|
|
|
5
5
|
|
|
6
6
|
# Subagent-Driven Development
|
|
7
7
|
|
|
8
|
-
Execute plan by dispatching a fresh implementer subagent per task, a task review (spec compliance + code quality)
|
|
8
|
+
Execute a plan by dispatching a fresh implementer subagent per task — independent tasks in parallel waves, each in its own worktree — with a task review (spec compliance + code quality) for each task on the review list, and one broad whole-branch review at the end that also does the task review's work for every other task.
|
|
9
9
|
|
|
10
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
11
|
|
|
12
|
-
**Core principle:** Fresh subagent per task + task review
|
|
12
|
+
**Core principle:** Fresh subagent per task + parallel waves for independent tasks + a task review where risk earns it + one broad final review = high quality, fast iteration
|
|
13
13
|
|
|
14
14
|
**Narration:** between tool calls, narrate at most one short line — the
|
|
15
15
|
ledger and the tool results carry the record.
|
|
@@ -28,7 +28,8 @@ Four things stop you, and only these: an irreversible or destructive
|
|
|
28
28
|
operation; a security-sensitive action; a side effect outside this worktree
|
|
29
29
|
that norms say you ask about first (a merge, a push to a shared branch, a
|
|
30
30
|
publish); and a plan so broken that every path forward is a guess. For those,
|
|
31
|
-
stop and ask.
|
|
31
|
+
stop and ask. This skill's own wave merges into the plan branch, and the task
|
|
32
|
+
worktrees it creates and removes, are not among them.
|
|
32
33
|
|
|
33
34
|
**On omp in vibe mode** (your tools include `vibe_spawn` but not `task`)
|
|
34
35
|
you are the director, and this loop cannot run in your session: you have
|
|
@@ -54,24 +55,25 @@ limits are in "Vibe mode" in
|
|
|
54
55
|
digraph when_to_use {
|
|
55
56
|
"Have implementation plan?" [shape=diamond];
|
|
56
57
|
"Tasks mostly independent?" [shape=diamond];
|
|
57
|
-
"
|
|
58
|
+
"Inline approved at the handoff, or no subagent tool?" [shape=diamond];
|
|
58
59
|
"subagent-driven-development" [shape=box];
|
|
59
60
|
"executing-plans" [shape=box];
|
|
60
61
|
"Manual execution or brainstorm first" [shape=box];
|
|
61
62
|
|
|
62
63
|
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
|
|
63
64
|
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
|
|
64
|
-
"Tasks mostly independent?" -> "
|
|
65
|
+
"Tasks mostly independent?" -> "Inline approved at the handoff, or no subagent tool?" [label="yes"];
|
|
65
66
|
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
|
|
66
|
-
"
|
|
67
|
-
"
|
|
67
|
+
"Inline approved at the handoff, or no subagent tool?" -> "executing-plans" [label="yes"];
|
|
68
|
+
"Inline approved at the handoff, or no subagent tool?" -> "subagent-driven-development" [label="no"];
|
|
68
69
|
}
|
|
69
70
|
```
|
|
70
71
|
|
|
71
72
|
**vs. Executing Plans (inline):**
|
|
72
73
|
- Fresh subagent per task (no context pollution) instead of one context doing every task
|
|
73
|
-
-
|
|
74
|
-
-
|
|
74
|
+
- Independent tasks run in parallel; inline runs every task in turn
|
|
75
|
+
- A task review (spec compliance + code quality) for each high-risk task, plus the final review; inline has only the final review
|
|
76
|
+
- Costs a fresh context per task and per task review; inline costs one context plus one final reviewer
|
|
75
77
|
- Both run in this session, share the same plan workspace and ledger, and never pause between tasks
|
|
76
78
|
|
|
77
79
|
## The Process
|
|
@@ -81,11 +83,14 @@ digraph process {
|
|
|
81
83
|
rankdir=TB;
|
|
82
84
|
|
|
83
85
|
subgraph cluster_per_task {
|
|
84
|
-
label="Per Task";
|
|
86
|
+
label="Per Task (every task of a wave at once)";
|
|
85
87
|
"Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
|
|
86
88
|
"Implementer asks questions?" [shape=diamond];
|
|
87
89
|
"Answer questions, provide context" [shape=box];
|
|
88
90
|
"Implementer implements, tests, commits, self-reviews" [shape=box];
|
|
91
|
+
"On the review list?" [shape=diamond];
|
|
92
|
+
"Run the brief's covering tests yourself" [shape=box];
|
|
93
|
+
"Resume implementer with the failure" [shape=box];
|
|
89
94
|
"Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" [shape=box];
|
|
90
95
|
"Spec ✅ and quality approved?" [shape=diamond];
|
|
91
96
|
"Finding conflicts with plan text?" [shape=diamond];
|
|
@@ -98,42 +103,49 @@ digraph process {
|
|
|
98
103
|
"Any load-bearing finding?" [shape=diamond];
|
|
99
104
|
"Rule and continue; stop only if every path forward is a guess" [shape=box];
|
|
100
105
|
"Park findings in ledger with rulings" [shape=box];
|
|
101
|
-
"
|
|
106
|
+
"Merge the task branch (wave of 2+), append completion to ledger, mark todo complete" [shape=box];
|
|
102
107
|
}
|
|
103
108
|
|
|
104
|
-
"Setup: worktree, ledger check, read plan, pre-flight review" [shape=box];
|
|
105
|
-
"
|
|
106
|
-
"
|
|
109
|
+
"Setup: worktree, ledger check, read plan, pre-flight scan: review list + waves" [shape=box];
|
|
110
|
+
"Start the next wave: a worktree per task when it has 2+" [shape=box];
|
|
111
|
+
"More waves remain?" [shape=diamond];
|
|
112
|
+
"Dispatch final reviewer: sdd-final-reviewer (package + ledger lines + the tasks left to it; its agent file governs the output)" [shape=box];
|
|
107
113
|
"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals" [shape=box];
|
|
108
114
|
"Final review clean: delete this plan's workspace" [shape=box];
|
|
109
115
|
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
|
|
110
116
|
|
|
111
|
-
"Setup: worktree, ledger check, read plan, pre-flight review" -> "
|
|
117
|
+
"Setup: worktree, ledger check, read plan, pre-flight scan: review list + waves" -> "Start the next wave: a worktree per task when it has 2+";
|
|
118
|
+
"Start the next wave: a worktree per task when it has 2+" -> "Dispatch implementer subagent (./implementer-prompt.md)";
|
|
112
119
|
"Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer asks questions?";
|
|
113
120
|
"Implementer asks questions?" -> "Answer questions, provide context" [label="yes"];
|
|
114
121
|
"Answer questions, provide context" -> "Implementer implements, tests, commits, self-reviews";
|
|
115
122
|
"Implementer asks questions?" -> "Implementer implements, tests, commits, self-reviews" [label="no"];
|
|
116
|
-
"Implementer implements, tests, commits, self-reviews" -> "
|
|
123
|
+
"Implementer implements, tests, commits, self-reviews" -> "On the review list?";
|
|
124
|
+
"On the review list?" -> "Run the brief's covering tests yourself" [label="no - review at final"];
|
|
125
|
+
"Run the brief's covering tests yourself" -> "Merge the task branch (wave of 2+), append completion to ledger, mark todo complete" [label="pass"];
|
|
126
|
+
"Run the brief's covering tests yourself" -> "Resume implementer with the failure" [label="fail"];
|
|
127
|
+
"Resume implementer with the failure" -> "Run the brief's covering tests yourself";
|
|
128
|
+
"On the review list?" -> "Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" [label="yes"];
|
|
117
129
|
"Generate review package, dispatch task reviewer (./task-reviewer-prompt.md)" -> "Spec ✅ and quality approved?";
|
|
118
|
-
"Spec ✅ and quality approved?" -> "
|
|
130
|
+
"Spec ✅ and quality approved?" -> "Merge the task branch (wave of 2+), append completion to ledger, mark todo complete" [label="yes"];
|
|
119
131
|
"Spec ✅ and quality approved?" -> "Finding conflicts with plan text?" [label="no"];
|
|
120
132
|
"Finding conflicts with plan text?" -> "Rule on the conflict, ledger the ruling" [label="yes"];
|
|
121
133
|
"Rule on the conflict, ledger the ruling" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer";
|
|
122
134
|
"Finding conflicts with plan text?" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" [label="no"];
|
|
123
135
|
"Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" -> "Dispatch scoped re-review (./re-review-prompt.md)";
|
|
124
136
|
"Dispatch scoped re-review (./re-review-prompt.md)" -> "All findings addressed?";
|
|
125
|
-
"All findings addressed?" -> "
|
|
137
|
+
"All findings addressed?" -> "Merge the task branch (wave of 2+), append completion to ledger, mark todo complete" [label="yes"];
|
|
126
138
|
"All findings addressed?" -> "R = 3?" [label="no"];
|
|
127
139
|
"R = 3?" -> "Fix round R of 3: R≤2 resume implementer; R=3 fresh sdd-escalation-implementer" [label="no - next round"];
|
|
128
140
|
"R = 3?" -> "Adjudicate each open finding" [label="yes - breaker trips"];
|
|
129
141
|
"Adjudicate each open finding" -> "Any load-bearing finding?";
|
|
130
142
|
"Any load-bearing finding?" -> "Rule and continue; stop only if every path forward is a guess" [label="yes"];
|
|
131
143
|
"Any load-bearing finding?" -> "Park findings in ledger with rulings" [label="no"];
|
|
132
|
-
"Park findings in ledger with rulings" -> "
|
|
133
|
-
"
|
|
134
|
-
"More
|
|
135
|
-
"More
|
|
136
|
-
"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";
|
|
144
|
+
"Park findings in ledger with rulings" -> "Merge the task branch (wave of 2+), append completion to ledger, mark todo complete";
|
|
145
|
+
"Merge the task branch (wave of 2+), append completion to ledger, mark todo complete" -> "More waves remain?" [label="after the wave's last task"];
|
|
146
|
+
"More waves remain?" -> "Start the next wave: a worktree per task when it has 2+" [label="yes"];
|
|
147
|
+
"More waves remain?" -> "Dispatch final reviewer: sdd-final-reviewer (package + ledger lines + the tasks left to it; its agent file governs the output)" [label="no"];
|
|
148
|
+
"Dispatch final reviewer: sdd-final-reviewer (package + ledger lines + the tasks left to it; its agent file governs the output)" -> "Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals";
|
|
137
149
|
"Final findings? ONE fix dispatch, one scoped re-review, adjudicate residuals" -> "Final review clean: delete this plan's workspace";
|
|
138
150
|
"Final review clean: delete this plan's workspace" -> "Use superpowers:finishing-a-development-branch";
|
|
139
151
|
}
|
|
@@ -184,8 +196,14 @@ a ledger file, not only in todos.
|
|
|
184
196
|
line names your plan file, tasks with a `Task <N>: complete` line are DONE
|
|
185
197
|
— do not re-dispatch them; resume at the first task without one. A task
|
|
186
198
|
whose last line is `dispatched` or `re-dispatched` is mid-implementation:
|
|
187
|
-
check `git log` from its BASE
|
|
188
|
-
|
|
199
|
+
check `git log` from its BASE (on its task branch, for a wave task whose
|
|
200
|
+
`dispatched` line names a worktree) and read `agent://<id>` before you
|
|
201
|
+
dispatch anything. A wave task whose last line is `merged` is merged: clean
|
|
202
|
+
up its worktree and branch (Complete the task) and write its `complete`
|
|
203
|
+
line. A wave task whose branch tip is already an ancestor of the plan
|
|
204
|
+
branch (`git merge-base --is-ancestor <branch> HEAD`) merged before the
|
|
205
|
+
ledger caught up: ledger `merged` and do the same. A worktree that exists
|
|
206
|
+
for a task with no `dispatched` line is reused, not added again. A task
|
|
189
207
|
whose last line is a fix round is mid-loop: resume the loop at the next
|
|
190
208
|
round. A ledger whose first line names a different plan file — or a stray
|
|
191
209
|
ledger at the old flat path `.superpowers/sdd/progress.md` — is another
|
|
@@ -222,9 +240,34 @@ Write the table to the ledger. Rule on everything you find before execution
|
|
|
222
240
|
begins — each finding against the plan text that mandates it — and record
|
|
223
241
|
each ruling in the ledger. If the scan is clean, proceed without comment.
|
|
224
242
|
Rule on each conflict it surfaces — the spec is the binding authority, the
|
|
225
|
-
plan is its argument — record the ruling beside its row
|
|
226
|
-
|
|
227
|
-
|
|
243
|
+
plan is its argument — and record the ruling beside its row. Clean or not,
|
|
244
|
+
the same table then gives you the two ledger blocks below; write both before
|
|
245
|
+
the first dispatch. The review loop remains the net for conflicts that only
|
|
246
|
+
emerge from implementation.
|
|
247
|
+
|
|
248
|
+
**The review list.** A task gets its own task review when the plan marks it
|
|
249
|
+
`**Review:** per-task`, or when you rule it high-risk: security or
|
|
250
|
+
authentication, concurrency, a data migration or persisted format, money, a
|
|
251
|
+
destructive operation, or an interface two or more later tasks consume. A
|
|
252
|
+
batch (below) counts as one task. Ledger one line per task, `Task <N>:
|
|
253
|
+
review per-task — <class>` or `Task <N>: review at final`. The final
|
|
254
|
+
whole-branch review does the task review's work for every `review at final`
|
|
255
|
+
task. A task joins the list mid-run, ledgered as `Task <N>: review per-task
|
|
256
|
+
— <reason>`, when its report is DONE_WITH_CONCERNS about correctness, it
|
|
257
|
+
went BLOCKED, or its implementer needed 100+ turns.
|
|
258
|
+
|
|
259
|
+
**The waves.** Tasks with no row between them in the scan table (no shared
|
|
260
|
+
file, no shared interface), whose `Consumes` all come from earlier waves,
|
|
261
|
+
form one wave: take them in plan order, at most three to a wave. A task that
|
|
262
|
+
consumes another's interface waits for the wave that produces it. Files
|
|
263
|
+
every task tends to touch (a lockfile, a manifest, a CHANGELOG, an index or
|
|
264
|
+
barrel file) count as shared, and so does anything the tests hold at run
|
|
265
|
+
time (a fixed port, a database, a cache directory). Ledger
|
|
266
|
+
`Wave <K>: tasks <N>, <N>, <N>` for each wave, then start Wave 1. A plan that
|
|
267
|
+
is one long chain gets one task per wave and runs in sequence, and so does
|
|
268
|
+
every plan whose checkout has uncommitted changes to tracked files
|
|
269
|
+
(`git status --porcelain --untracked-files=no` not empty): a merge needs
|
|
270
|
+
them committed or stashed. Untracked files do not block a wave.
|
|
228
271
|
|
|
229
272
|
## Agent Selection
|
|
230
273
|
|
|
@@ -346,13 +389,12 @@ needs 100+ turns, or a re-review that wanders, is the signal to rule that
|
|
|
346
389
|
task onto the escalation seat. Re-reviews are verdict-only work over a small
|
|
347
390
|
diff — `low` reasoning is correct for them, not a compromise.
|
|
348
391
|
|
|
349
|
-
**Scale the task review to the diff's risk.**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
the risk — `Task <N>: high-risk diff — <class>` — and name that class in the
|
|
392
|
+
**Scale the task review to the diff's risk.** Every task on the review list
|
|
393
|
+
is there for its risk class or a trouble signal (Setup), so its reviewer needs the deepest
|
|
394
|
+
reasoning the seat has. When `task.enableEffort` is on (it is off by
|
|
395
|
+
default — `omp config get task.enableEffort`), dispatch that reviewer with
|
|
396
|
+
`effort: "hi"`: that selects the resolved model's top thinking level,
|
|
397
|
+
capped by `task.maxEffort`. Either way, name each listed task's class in the
|
|
356
398
|
final review dispatch.
|
|
357
399
|
|
|
358
400
|
**Escalation (fix round 3):** the implementer that got stuck cannot see its
|
|
@@ -406,8 +448,9 @@ judge, and **Mergeable:** come last.
|
|
|
406
448
|
|
|
407
449
|
### 1. Dispatch the implementer
|
|
408
450
|
|
|
409
|
-
Record BASE (`git rev-parse HEAD`) before dispatching —
|
|
410
|
-
and fix-round diffs need it.
|
|
451
|
+
Record BASE (`git rev-parse HEAD` in the plan checkout) before dispatching —
|
|
452
|
+
the review package and fix-round diffs need it. Every task in a wave shares
|
|
453
|
+
the wave's BASE.
|
|
411
454
|
|
|
412
455
|
- **Task brief:** before dispatching an implementer, run this skill's
|
|
413
456
|
`bash scripts/task-brief PLAN_FILE N` — it extracts the task's full text to a
|
|
@@ -440,7 +483,8 @@ and fix-round diffs need it.
|
|
|
440
483
|
a pointer to that ledger entry in the dispatch.
|
|
441
484
|
- Record the implementer's agent identity from the dispatch result —
|
|
442
485
|
fix-loop rounds 1-2 resume this agent.
|
|
443
|
-
-
|
|
486
|
+
- Dispatch a wave's implementers together: ONE `task` call with one item per
|
|
487
|
+
task. A task runs only in the wave the ledger gave it.
|
|
444
488
|
- **On omp, the agent id is the handle and resume is a message.** The
|
|
445
489
|
`<task-result id="X" …>` envelope (inline, or delivered as a notice)
|
|
446
490
|
reports the agent id and says the agent is now idle. Use that id exactly
|
|
@@ -448,7 +492,8 @@ and fix-round diffs need it.
|
|
|
448
492
|
that was already taken (`Name-2`), and calls a follow-up turn's job
|
|
449
493
|
`<id>-2` — the job id is not the agent id. Ledger the dispatch the moment
|
|
450
494
|
you have the id, together with BASE, so both survive compaction:
|
|
451
|
-
`Task <N>: dispatched (BASE <base7>, implementer <id>
|
|
495
|
+
`Task <N>: dispatched (BASE <base7>, implementer <id>[, worktree <absolute path>])`,
|
|
496
|
+
the worktree part for a wave task only. Fix rounds 1-2
|
|
452
497
|
and the answer to a NEEDS_CONTEXT then go to that agent with
|
|
453
498
|
`write agent://<id>`.
|
|
454
499
|
- **The write has two success answers; only an error means "dispatch
|
|
@@ -461,14 +506,51 @@ and fix-round diffs need it.
|
|
|
461
506
|
next result arrives as a notice either way. Only an error answer (`Failed:
|
|
462
507
|
…`, or a write error) means dispatch a fresh `sdd-implementer`. That
|
|
463
508
|
dispatch gets a new id, which omp may suffix (`Name-2`) because the old id is
|
|
464
|
-
taken: ledger it — `Task <N>: re-dispatched (implementer <new id>)` — and use
|
|
509
|
+
taken: ledger it — `Task <N>: re-dispatched (implementer <new id>[, worktree <absolute path>])` — and use
|
|
465
510
|
it from then on.
|
|
466
|
-
- **
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
`task.isolation.merge: patch` an isolated run's work lands as an applied
|
|
470
|
-
uncommitted diff, so a review package has no commit range to cut
|
|
471
|
-
|
|
511
|
+
- **A wave of two or more: one git worktree per task, not omp isolation.**
|
|
512
|
+
Implementers sharing one checkout overwrite each other, and
|
|
513
|
+
`task.isolation.enabled` does not fit SDD. Under the default
|
|
514
|
+
`task.isolation.merge: patch` an isolated run's work lands as an applied
|
|
515
|
+
but uncommitted diff, so a review package has no commit range to cut.
|
|
516
|
+
`merge: branch` keeps the commits, but omp cherry-picks them onto the plan
|
|
517
|
+
branch the moment the task ends, before any review, under new commit ids,
|
|
518
|
+
and deletes the task branch. And fix rounds 1-2 resume the implementer,
|
|
519
|
+
which an isolated agent cannot take. Measured on omp 18.11.0: a `write
|
|
520
|
+
agent://<id>` to an isolated agent answers `Delivered`, the agent commits
|
|
521
|
+
its fix in its own copy, and the fix never reaches the plan branch while
|
|
522
|
+
the session runs; after the session ended it sat on a leftover
|
|
523
|
+
`omp/task/<id>` branch that also repeats the already-merged commit.
|
|
524
|
+
Before dispatching the wave, from the plan checkout, add one
|
|
525
|
+
worktree per task at the plan branch's head:
|
|
526
|
+
|
|
527
|
+
```bash
|
|
528
|
+
repo=$(basename "$(git rev-parse --show-toplevel)")
|
|
529
|
+
omp worktree add -b "sdd/<plan>/task-<N>" ~/.omp/wt/"$repo-<plan>-task-<N>"
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
`<plan>` is the plan file's name without `.md`;
|
|
533
|
+
superpowers:using-git-worktrees says why `omp worktree add` and
|
|
534
|
+
`~/.omp/wt/`. If the add warns that the clone fell back to a plain
|
|
535
|
+
checkout, the worktree lacks `node_modules` and other ignored build
|
|
536
|
+
output: run the plan's install step there before dispatching. A wave of
|
|
537
|
+
one runs in the plan checkout, with no extra worktree.
|
|
538
|
+
|
|
539
|
+
**Until it merges, a wave task lives in its worktree, not in yours.** The
|
|
540
|
+
`task` tool has no `cwd`, so every subagent starts in your checkout, which
|
|
541
|
+
does not have the task's commits yet. So every dispatch for the task —
|
|
542
|
+
implementer, re-dispatch, escalation, reviewer, re-reviewer — carries its
|
|
543
|
+
worktree's absolute path: the implementer template's `Work from:` line,
|
|
544
|
+
and for a reviewer a `Checkout: <path>` line saying to read the changed
|
|
545
|
+
files and their call sites there. Every command you run for the task
|
|
546
|
+
(its tests, a proven-trivial fix and its commit) runs with the `bash`
|
|
547
|
+
tool's `cwd` set to that path, and its branch `sdd/<plan>/task-<N>` stands
|
|
548
|
+
in for HEAD in every review-package command for it. The skill's scripts
|
|
549
|
+
(`task-brief`, `review-package`) still run from the plan checkout, never
|
|
550
|
+
from a task worktree: they write into the workspace of the checkout they
|
|
551
|
+
run in, and a task worktree's copy is deleted with it. If the session
|
|
552
|
+
never got `/move`d into the plan's worktree (Setup), run every git command
|
|
553
|
+
that touches the plan branch with `cwd` set to the plan checkout, too.
|
|
472
554
|
|
|
473
555
|
Template: [implementer-prompt.md](implementer-prompt.md)
|
|
474
556
|
|
|
@@ -476,9 +558,18 @@ Template: [implementer-prompt.md](implementer-prompt.md)
|
|
|
476
558
|
|
|
477
559
|
Implementer subagents report one of four statuses. Handle each appropriately:
|
|
478
560
|
|
|
479
|
-
**DONE:**
|
|
561
|
+
**DONE:** For a wave task, first check it worked where it should: its
|
|
562
|
+
worktree has commits past BASE (`git -C <worktree> rev-list --count
|
|
563
|
+
BASE..HEAD` is 1 or more), its worktree is clean (`git -C <worktree> status
|
|
564
|
+
--porcelain` empty; untracked leftovers go back to the implementer), and
|
|
565
|
+
your own checkout gained no changes. A task that wrote into your checkout
|
|
566
|
+
goes back to its implementer with the paths. Then check the task's line in
|
|
567
|
+
the review list.
|
|
480
568
|
|
|
481
|
-
|
|
569
|
+
- **`review per-task`:** 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; for a wave task, its branch `sdd/<plan>/task-<N>` stands in for HEAD), then dispatch `sdd-reviewer` with the printed path.
|
|
570
|
+
- **`review at final`:** run the covering test command from the brief yourself, once, in the task's checkout, with its output redirected to a file in the plan's workspace; read the tail. A brief that names no test (docs, configuration) gets the cheapest check that can fail instead (a build, a lint, a parse), or goes on the review list. That run is the only check this task gets before the final review, so never take the implementer's report in its place. A pass completes the task (step 5). A failure goes back to the implementer with the output file's path: rounds 1-2 resume it, round 3 is a fresh `sdd-escalation-implementer`, as in the fix loop, and each round ends when your rerun passes, with no re-review. A failure after round 3 is a plan the tests disagree with: stop and ask.
|
|
571
|
+
|
|
572
|
+
**DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness, address them before review, and put a `review at final` task on the review list (`Task <N>: review per-task — <concern>`). If they're observations (e.g., "this file is getting large"), note them and proceed.
|
|
482
573
|
|
|
483
574
|
**NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch. On omp, message the idle agent instead (`write agent://<id>`, the id from the ledger's `dispatched` line): it keeps its context and yields again. Only a write error means re-dispatch, with the context carried in the brief.
|
|
484
575
|
|
|
@@ -505,11 +596,13 @@ rush it into implementation.
|
|
|
505
596
|
|
|
506
597
|
### 3. Review the task
|
|
507
598
|
|
|
508
|
-
|
|
509
|
-
final whole-branch review.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
599
|
+
Task reviews run for the tasks on the review list (Setup); every other task
|
|
600
|
+
gets its review from the final whole-branch review. Per-task reviews are
|
|
601
|
+
task-scoped gates; the broad review happens once, at the end. For a task on
|
|
602
|
+
the list, never skip the review, and never accept a report missing either
|
|
603
|
+
verdict — spec compliance AND task quality are both required. Implementer
|
|
604
|
+
self-review never replaces a review: for a listed task the task review is
|
|
605
|
+
it, for any other the final review is.
|
|
513
606
|
|
|
514
607
|
- Hand the reviewer its diff as a file: run this skill's
|
|
515
608
|
`bash scripts/review-package PLAN_FILE BASE HEAD` and pass the reviewer the file path
|
|
@@ -527,7 +620,8 @@ needed.
|
|
|
527
620
|
dispatch a task reviewer without a diff file.
|
|
528
621
|
- **Reviewer inputs:** the task reviewer gets three paths — the same brief
|
|
529
622
|
file, the report file, and the review package — plus the global
|
|
530
|
-
constraints that bind the task
|
|
623
|
+
constraints that bind the task, and for a wave task a `Checkout:` line with
|
|
624
|
+
its worktree's absolute path (the re-reviewer gets the same line).
|
|
531
625
|
- The global-constraints block you hand the reviewer is its attention
|
|
532
626
|
lens. Copy the binding requirements verbatim from the plan's Global
|
|
533
627
|
Constraints section or the spec: exact values, exact formats, and the
|
|
@@ -693,17 +787,58 @@ a silent discard is forbidden.
|
|
|
693
787
|
|
|
694
788
|
### 5. Complete the task
|
|
695
789
|
|
|
696
|
-
|
|
697
|
-
ruling at the cap
|
|
698
|
-
|
|
790
|
+
A task is done when its review comes back clean, when every open finding is
|
|
791
|
+
parked with a ruling at the cap, or, for a `review at final` task, when your
|
|
792
|
+
own run of its covering tests passes.
|
|
793
|
+
|
|
794
|
+
**A wave task merges first, and its tests run before the merge commits.**
|
|
795
|
+
From the plan checkout, as soon as the task is done (wave tasks are
|
|
796
|
+
independent, so their order does not matter):
|
|
797
|
+
|
|
798
|
+
```bash
|
|
799
|
+
git merge --no-ff --no-commit "sdd/<plan>/task-<N>"
|
|
800
|
+
# run the task's covering tests on the merged tree, output to a workspace file
|
|
801
|
+
git commit --no-edit
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
If the merge stops on a conflict, or the covering tests fail on the merged
|
|
805
|
+
tree, run `git merge --abort` and send the task back to its implementer
|
|
806
|
+
(`write agent://<id>`) with the plan branch's name and, for a failure, the
|
|
807
|
+
output file's path: rebase onto the plan branch, fix what the merge
|
|
808
|
+
exposed, re-run its covering tests, report again. Each such round counts
|
|
809
|
+
toward the task's three rounds (rounds and breaker as in the fix loop);
|
|
810
|
+
ledger it as `Task <N>: rebased (<conflict | failing test>)`. A `review
|
|
811
|
+
per-task` task whose rebase changed code gets a scoped re-review over its
|
|
812
|
+
rebased commits: `review-package PLAN_FILE <plan-branch>
|
|
813
|
+
sdd/<plan>/task-<N>`. A failure that belongs to a task already merged, not
|
|
814
|
+
to this one, goes to ONE fix dispatch on the plan checkout as a fix round of
|
|
815
|
+
that earlier task; then merge this one.
|
|
816
|
+
|
|
817
|
+
Right after the merge commit, ledger `Task <N>: merged (<sha7>)`, then
|
|
818
|
+
remove the task's worktree and branch: `git worktree remove <path>`, then
|
|
819
|
+
`git branch -d "sdd/<plan>/task-<N>"`. If the removal refuses, read
|
|
820
|
+
`git -C <path> status --short`: use `--force` only when nothing it lists is
|
|
821
|
+
missing from the merge; otherwise ledger it and leave it for Finish.
|
|
822
|
+
|
|
823
|
+
After the last task of a wave of two or more merges, run the full suite once
|
|
824
|
+
in the plan checkout, output to a workspace file. Implementers ran it in
|
|
825
|
+
worktrees without their siblings, so this is the first run on the combined
|
|
826
|
+
tree. A failure no single task owns goes to ONE fix dispatch on the plan
|
|
827
|
+
checkout, ledgered `Wave <K>: fix (<failing tests>)`, before the next wave
|
|
828
|
+
starts.
|
|
829
|
+
|
|
830
|
+
Then append the completion line to the ledger in the same message as your
|
|
831
|
+
other bookkeeping:
|
|
699
832
|
|
|
700
833
|
- `Task <N>: complete (commits <base7>..<head7>, review clean)`
|
|
701
834
|
- `Task <N>: complete (commits <base7>..<head7>, <K> parked)` after a
|
|
702
835
|
tripped breaker
|
|
836
|
+
- `Task <N>: complete (commits <base7>..<head7>, review at final — tests: <command>, pass)`
|
|
703
837
|
|
|
704
|
-
Then mark the todo complete
|
|
705
|
-
|
|
706
|
-
parked-with-ruling at
|
|
838
|
+
Then mark the todo complete. Start the next wave only when every task of
|
|
839
|
+
this one is complete and merged; never start it while a task has open
|
|
840
|
+
Critical/Important issues that are neither fixed nor parked-with-ruling at
|
|
841
|
+
the cap.
|
|
707
842
|
|
|
708
843
|
## Final Review
|
|
709
844
|
|
|
@@ -713,13 +848,15 @@ branch started from, e.g. `git merge-base main HEAD`) and include the
|
|
|
713
848
|
printed path in the final review dispatch, so the final reviewer reads
|
|
714
849
|
one file instead of re-deriving the branch diff with git commands. Dispatch
|
|
715
850
|
`sdd-final-reviewer` (the deepest seat, once per plan — see Agent
|
|
716
|
-
Selection) with a `task` that says the plan ran subagent-driven
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
`
|
|
851
|
+
Selection) with a `task` that says the plan ran subagent-driven and names:
|
|
852
|
+
the package path; the plan/spec paths; every `review per-task` task with its
|
|
853
|
+
class, which had its own task review (so the last review spends its depth
|
|
854
|
+
on the seams around them); every `review at final` task, which had none, so
|
|
855
|
+
the final reviewer does the task review's work on it first; the ledger's
|
|
856
|
+
deferred-minor and parked-with-ruling lines verbatim; every `rebased` and
|
|
857
|
+
`Wave <K>: fix` line (code no task review saw); and every `Task <N>:
|
|
858
|
+
applied … proof:` line, a fix you applied yourself on the proven-trivial
|
|
859
|
+
route without a re-review (the reviewer checks those as if unreviewed). Do not
|
|
723
860
|
paste requesting-code-review's `code-reviewer.md` into the dispatch — that
|
|
724
861
|
template asks a prose "Ready to merge?" and has no slot for the package or
|
|
725
862
|
the ledger; the agent reads that file's review rubric itself. The agent
|
|
@@ -757,6 +894,11 @@ took on your human partner's behalf reach them — they read it and rework
|
|
|
757
894
|
whatever you got wrong. A ruling that dies with the workspace was a decision
|
|
758
895
|
made in secret.
|
|
759
896
|
|
|
897
|
+
Check that no wave left anything behind: `git worktree list` shows none of
|
|
898
|
+
this plan's task worktrees, and `git branch --list 'sdd/<plan>/*'` is empty.
|
|
899
|
+
Remove a leftover as in Complete the task, or name it in your final message
|
|
900
|
+
if it holds work the merge does not.
|
|
901
|
+
|
|
760
902
|
When the final whole-branch review is clean and its fixes are merged,
|
|
761
903
|
delete this plan's workspace (`rm -rf <workspace>`) — the git history is
|
|
762
904
|
the record now. Sibling directories belong to other plans; leave them
|
|
@@ -774,7 +916,9 @@ Use superpowers:finishing-a-development-branch.
|
|
|
774
916
|
| "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. |
|
|
775
917
|
| "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. |
|
|
776
918
|
| "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. |
|
|
777
|
-
| "
|
|
919
|
+
| "This auth change is one line — review it at final" | Risk class, not size, puts a task on the review list. One line of auth gets its own review. |
|
|
920
|
+
| "The report says the tests pass, skip my run" | For a `review at final` task, your run is the only check before the merge. Run it. |
|
|
921
|
+
| "These two tasks barely touch — same wave" | A shared file or a Consumes/Produces link means separate waves. A conflict costs a rebase round; a silent clash between them costs the final review. |
|
|
778
922
|
| "Ledger bookkeeping is overhead" | The ledger is what survives compaction. Controllers without one have re-dispatched entire completed task sequences. |
|
|
779
923
|
| "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. |
|
|
780
924
|
|
|
@@ -788,11 +932,13 @@ You: I'm using Subagent-Driven Development to execute this plan.
|
|
|
788
932
|
[Resolve workspace: bash scripts/sdd-workspace docs/plans/feature-plan.md — no ledger inside, fresh start]
|
|
789
933
|
[On omp: scripts dir resolved with realpath skill://subagent-driven-development/scripts and added to the ledger as "SDD scripts: <dir>"; each script runs as bash <dir>/<name>]
|
|
790
934
|
[Create todos for all tasks]
|
|
935
|
+
[Pre-flight scan → ledger: Tasks 1, 3, 4: review at final · Task 2: review per-task — persisted data (repair rewrites stored records) · Wave 1: tasks 1, 3 · Wave 2: tasks 2, 4]
|
|
791
936
|
|
|
792
|
-
|
|
937
|
+
Wave 1: Task 1 (hook installation script) and Task 3 (help text)
|
|
793
938
|
|
|
794
|
-
[
|
|
795
|
-
[
|
|
939
|
+
[Two worktrees: omp worktree add -b sdd/feature-plan/task-1 …, and task-3]
|
|
940
|
+
[Run task-brief for Tasks 1 and 3; ONE task call with two implementer items, each naming its worktree]
|
|
941
|
+
[Ledger: Task 1: dispatched (BASE a1b2c3d, implementer Impl1, worktree /home/me/.omp/wt/app-feature-plan-task-1)]
|
|
796
942
|
|
|
797
943
|
Implementer: "Before I begin - should the hook be installed at user or system level?"
|
|
798
944
|
|
|
@@ -804,23 +950,23 @@ Implementer: [Later]
|
|
|
804
950
|
- Self-review: Found I missed --force flag, added it
|
|
805
951
|
- Committed
|
|
806
952
|
|
|
807
|
-
[
|
|
808
|
-
sdd-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
[
|
|
953
|
+
[Task 1 is review at final: run the brief's covering test in its worktree — npm test test/install.test.js: 5/5 passing]
|
|
954
|
+
[git merge --no-ff --no-commit sdd/feature-plan/task-1; covering test on the merged tree passes; git commit --no-edit]
|
|
955
|
+
[Ledger: Task 1: merged (9a8b7c6); worktree and branch removed]
|
|
956
|
+
[Ledger: Task 1: complete (commits a1b2c3d..d4e5f6a, review at final — tests: npm test test/install.test.js, pass)]
|
|
957
|
+
[Task 3 likewise; its merge was the wave's last, so the full suite runs once in the plan checkout: pass]
|
|
812
958
|
|
|
813
|
-
|
|
959
|
+
Wave 2: Task 2 (recovery modes, review per-task) and Task 4
|
|
814
960
|
|
|
815
961
|
[Run task-brief for Task 2; dispatch implementer with brief + report paths + context]
|
|
816
|
-
[Ledger: Task 2: dispatched (BASE
|
|
962
|
+
[Ledger: Task 2: dispatched (BASE e5f6a7b, implementer Impl2, worktree /home/me/.omp/wt/app-feature-plan-task-2)]
|
|
817
963
|
|
|
818
964
|
Implementer: [No questions]
|
|
819
965
|
- Added verify/repair modes
|
|
820
966
|
- 8/8 tests passing
|
|
821
967
|
- Committed
|
|
822
968
|
|
|
823
|
-
[Run review-package PLAN_FILE BASE
|
|
969
|
+
[Run review-package PLAN_FILE BASE sdd/feature-plan/task-2; dispatch sdd-reviewer with the printed path]
|
|
824
970
|
sdd-reviewer: spec_compliance: issues · task_quality: needs_fixes
|
|
825
971
|
spec_issues: ["Missing: progress reporting (spec says 'report every 100 items')"]
|
|
826
972
|
findings: [{severity: Important, location: src/recovery.js:7, body: "Magic number (100)"}]
|
|
@@ -829,19 +975,20 @@ sdd-reviewer: spec_compliance: issues · task_quality: needs_fixes
|
|
|
829
975
|
Implementer: Added progress reporting, extracted PROGRESS_INTERVAL constant.
|
|
830
976
|
Re-ran test/recovery.test.js — 10/10 passing. Fix report appended.
|
|
831
977
|
|
|
832
|
-
[Run review-package PLAN_FILE FIX_BASE
|
|
978
|
+
[Run review-package PLAN_FILE FIX_BASE sdd/feature-plan/task-2; dispatch sdd-rereviewer]
|
|
833
979
|
sdd-rereviewer: round_verdict: all_addressed
|
|
834
980
|
finding_verdicts: [{Missing progress reporting: ADDRESSED, src/recovery.js:41},
|
|
835
981
|
{Magic number: ADDRESSED, src/recovery.js:7}]
|
|
836
982
|
new_breakage: [] · out_of_scope: []
|
|
837
983
|
|
|
838
|
-
[Ledger: Task 2: fix round 1/3 (2 addressed, 0 open; commits
|
|
839
|
-
[Ledger: Task 2:
|
|
984
|
+
[Ledger: Task 2: fix round 1/3 (2 addressed, 0 open; commits e5f6a7b..b7c8d9e)]
|
|
985
|
+
[Merge sdd/feature-plan/task-2 the same way; Ledger: Task 2: merged (c3d4e5f)]
|
|
986
|
+
[Ledger: Task 2: complete (commits e5f6a7b..b7c8d9e, review clean)]
|
|
840
987
|
|
|
841
988
|
...
|
|
842
989
|
|
|
843
|
-
[After
|
|
844
|
-
[Run review-package PLAN_FILE MERGE_BASE HEAD; dispatch sdd-final-reviewer]
|
|
990
|
+
[After the last wave]
|
|
991
|
+
[Run review-package PLAN_FILE MERGE_BASE HEAD; dispatch sdd-final-reviewer naming Task 2's class, and Tasks 1, 3, 4 as review at final]
|
|
845
992
|
[Read the full result at agent://<id>]
|
|
846
993
|
sdd-final-reviewer: Ledger triage: deferred minors — none block merge. **Mergeable:** yes
|
|
847
994
|
|
|
@@ -47,7 +47,14 @@ Use this template when dispatching an implementer subagent.
|
|
|
47
47
|
5. Self-review (see below)
|
|
48
48
|
6. Report back
|
|
49
49
|
|
|
50
|
-
Work from: [directory]
|
|
50
|
+
Work from: [directory — for a wave task, its worktree's absolute path]
|
|
51
|
+
|
|
52
|
+
Work only under that directory. Your session may have started in a
|
|
53
|
+
different checkout, so give every file tool (`read`, `write`, `edit`,
|
|
54
|
+
`grep`, `glob`, `lsp`) absolute paths under it, set the `bash` tool's
|
|
55
|
+
`cwd` to it for every command, and commit on the branch checked out
|
|
56
|
+
there. The brief and the report file are the exception: use the paths
|
|
57
|
+
given for them.
|
|
51
58
|
|
|
52
59
|
**While you work:** If you encounter something unexpected or unclear, **ask questions**.
|
|
53
60
|
It's always OK to pause and clarify. Don't guess or make assumptions.
|
|
@@ -60,12 +67,12 @@ Use this template when dispatching an implementer subagent.
|
|
|
60
67
|
Do all of this task's work yourself. Never spawn a subagent to
|
|
61
68
|
implement part of the task, and above all never spawn a reviewer to
|
|
62
69
|
check your work. Self-review (below) means reading your own diff.
|
|
63
|
-
Review is the controller's job: after you report, it
|
|
64
|
-
|
|
65
|
-
that review at full cost, and its
|
|
66
|
-
the process. If you catch yourself
|
|
67
|
-
would strengthen my report" — that
|
|
68
|
-
Report instead.
|
|
70
|
+
Review is the controller's job: after you report, it reviews or tests
|
|
71
|
+
your work, and a whole-branch review at the end covers every task. A
|
|
72
|
+
reviewer you spawn duplicates that review at full cost, and its
|
|
73
|
+
approval counts for nothing in the process. If you catch yourself
|
|
74
|
+
thinking "an independent review would strengthen my report" — that
|
|
75
|
+
review is already scheduled. Report instead.
|
|
69
76
|
|
|
70
77
|
## Code Organization
|
|
71
78
|
|
|
@@ -126,13 +133,21 @@ Use this template when dispatching an implementer subagent.
|
|
|
126
133
|
|
|
127
134
|
## After Review Findings
|
|
128
135
|
|
|
129
|
-
If the task review
|
|
136
|
+
If the task review, or the controller's own run of your covering tests,
|
|
137
|
+
finds issues, you will be resumed with the findings.
|
|
130
138
|
Fix them, re-run the tests that cover the amended code, and append a fix
|
|
131
139
|
report to your report file: what you changed, the covering tests you
|
|
132
140
|
ran, the command, and the output. Reviewers will not re-run tests for
|
|
133
141
|
you — your report is the test evidence. Then reply with the same short
|
|
134
142
|
status contract as your first report.
|
|
135
143
|
|
|
144
|
+
You may also be resumed because your branch would not merge into the
|
|
145
|
+
plan branch: the message names the plan branch and, when tests failed
|
|
146
|
+
on the merged tree, the file holding their output. Rebase onto the
|
|
147
|
+
plan branch, fix what the merge exposed, re-run your covering tests,
|
|
148
|
+
append what you did to your report file, and reply with the same short
|
|
149
|
+
status contract.
|
|
150
|
+
|
|
136
151
|
## Report Format
|
|
137
152
|
|
|
138
153
|
Write your full report to [REPORT_FILE]:
|
|
@@ -38,6 +38,7 @@ that the fix itself broke nothing.
|
|
|
38
38
|
**Fix base:** [FIX_BASE_SHA] (the head the previous review saw)
|
|
39
39
|
**Head:** [HEAD_SHA]
|
|
40
40
|
**Diff file:** [DIFF_FILE]
|
|
41
|
+
[CHECKOUT_LINE]
|
|
41
42
|
|
|
42
43
|
Read the diff file in full, with an explicit range: `[DIFF_FILE]:1-3000`
|
|
43
44
|
(a bare read returns only the first 300 lines; while the footer says
|
|
@@ -115,6 +116,8 @@ that the fix itself broke nothing.
|
|
|
115
116
|
- `[FIX_BASE_SHA]` — the head the previous review saw
|
|
116
117
|
- `[HEAD_SHA]` — current commit
|
|
117
118
|
- `[DIFF_FILE]` — the path `bash scripts/review-package PLAN_FILE FIX_BASE HEAD` printed
|
|
119
|
+
- `[CHECKOUT_LINE]` — same as the task reviewer's: the worktree line for a wave
|
|
120
|
+
task that has not merged yet, omitted otherwise
|
|
118
121
|
|
|
119
122
|
**Re-reviewer returns** (structured): `finding_verdicts[]` (ADDRESSED /
|
|
120
123
|
NOT_ADDRESSED with file:line), `new_breakage[]` for the fix diff only,
|
|
@@ -38,6 +38,7 @@ more, nothing less) and is well-built (clean, tested, maintainable)
|
|
|
38
38
|
**Base:** [BASE_SHA]
|
|
39
39
|
**Head:** [HEAD_SHA]
|
|
40
40
|
**Diff file:** [DIFF_FILE]
|
|
41
|
+
[CHECKOUT_LINE]
|
|
41
42
|
|
|
42
43
|
Read the diff file in full, with an explicit range: `[DIFF_FILE]:1-3000`
|
|
43
44
|
(a bare read returns only the first 300 lines; while the footer says
|
|
@@ -206,6 +207,10 @@ more, nothing less) and is well-built (clean, tested, maintainable)
|
|
|
206
207
|
- `[DIFF_FILE]` — REQUIRED: the path the controller wrote the review
|
|
207
208
|
package to (`bash scripts/review-package PLAN_FILE BASE HEAD` prints the unique
|
|
208
209
|
path it wrote; the package never enters the controller's context)
|
|
210
|
+
- `[CHECKOUT_LINE]` — for a wave task that has not merged yet: `**Checkout:**
|
|
211
|
+
<worktree absolute path> — the task's code lives here, not in your
|
|
212
|
+
session's checkout; read changed files and their call sites under this
|
|
213
|
+
path.` Omit the line otherwise.
|
|
209
214
|
|
|
210
215
|
**Reviewer returns** (structured): `spec_compliance`, `spec_issues[]`,
|
|
211
216
|
`cannot_verify[]`, `strengths[]`, `findings[]` (Critical/Important/Minor with
|
|
@@ -78,7 +78,7 @@ Rules, each measured on omp 18.4.10:
|
|
|
78
78
|
- **In vibe mode the session cannot follow a worktree.** Vibe refuses `/move` and `/wt` ("Exit vibe mode first."), and leaving vibe mode kills every worker. A vibe director (your tools include `vibe_spawn` but not `task`) has no `bash`; a worker can run `omp worktree add`, but the session cannot follow it while vibe is on. So ask your human partner to create the worktree and `/move` into it before `/vibe`; otherwise put the worktree's absolute path in every worker brief and `read` files there by absolute path.
|
|
79
79
|
- **Cleanup.** A finished worktree is removed with `git worktree remove <path>` from the repo — that also deletes the directory. `omp worktree clear` only sweeps *orphaned* entries (its own words: "parent repo no longer tracks this worktree"); a live worktree survives it. **`omp worktree clear --all` removes every entry under the worktree directory** — live worktrees and `/wt` session worktrees included — and force-removes them even with uncommitted changes, without asking (the branches survive). Never run it unless your human partner asked for exactly that, and preview any `clear` with `--dry-run`. Never `rm -rf` a registered worktree.
|
|
80
80
|
|
|
81
|
-
This is the whole-session layer. Per-*subagent* isolation is a separate switch, `task.isolation.enabled` (default off)
|
|
81
|
+
This is the whole-session layer. Per-*subagent* isolation is a separate switch, `task.isolation.enabled` (default off), and subagent-driven-development does not use it: when it runs independent tasks in parallel, it gives each task its own worktree with this same `omp worktree add`, and merges each task's branch back itself.
|
|
82
82
|
|
|
83
83
|
Then skip to Step 2.
|
|
84
84
|
|
|
@@ -18,7 +18,7 @@ Batch shape (the `task.batch` setting, on by default): one call carries `{ conte
|
|
|
18
18
|
|
|
19
19
|
Agent types: pick the most specific one per item from the roster in the `task` tool's own description. Commonly available: `scout` (read-only research — use for investigation), `reviewer`, `security-reviewer`, `sonic` (strictly mechanical work), `task` (general-purpose, full capabilities). The exact roster depends on installed and configured agents, so read the tool description rather than assuming.
|
|
20
20
|
|
|
21
|
-
The tool is lowercase `task`; `Task` does not exist. `task.isolation.enabled` (default off) only lets a dispatch mark items `isolated: true
|
|
21
|
+
The tool is lowercase `task`; `Task` does not exist. `task.isolation.enabled` (default off) only lets a dispatch mark items `isolated: true`. Under the default `task.isolation.merge: patch`, isolated work comes back as an applied, uncommitted patch. Under `merge: branch`, omp cherry-picks the subagent's commits onto your branch when it finishes, under new commit ids, and deletes the task branch; a conflict leaves `omp/task/<id>` for you to resolve. Never send an isolated subagent a follow-up. Measured on omp 18.11.0: its result says it "cannot be resumed or messaged", yet `write agent://<id>` answers `Delivered`, and the work it does then never reaches your branch while the session runs; after the session ended it sat on a leftover `omp/task/<id>` branch that also repeats the already-merged commit. Dispatch a fresh subagent instead. If a follow-up already went out, cherry-pick only its new commits from that branch, never merge the branch. Superpowers SDD does not use isolation.
|
|
22
22
|
|
|
23
23
|
### Model selection on omp
|
|
24
24
|
|
|
@@ -33,13 +33,29 @@ This structure informs the task decomposition. Each task should produce self-con
|
|
|
33
33
|
|
|
34
34
|
## Task Right-Sizing
|
|
35
35
|
|
|
36
|
-
A task is the smallest unit that carries its own test cycle and
|
|
37
|
-
|
|
36
|
+
A task is the smallest unit that carries its own test cycle and its own
|
|
37
|
+
commit range. When drawing task boundaries: fold setup,
|
|
38
38
|
configuration, scaffolding, and documentation steps into the task whose
|
|
39
|
-
deliverable needs them; split only where
|
|
40
|
-
|
|
39
|
+
deliverable needs them; split only where one task could be rejected
|
|
40
|
+
while its neighbor stands. Each task ends with an
|
|
41
41
|
independently testable deliverable.
|
|
42
42
|
|
|
43
|
+
Tasks that share no file and no interface can run in parallel under
|
|
44
|
+
subagent-driven-development. Where a shared file is avoidable, keep it in
|
|
45
|
+
one task.
|
|
46
|
+
|
|
47
|
+
## Review Marks
|
|
48
|
+
|
|
49
|
+
Every task is reviewed in the whole-branch review at the end of the plan.
|
|
50
|
+
A task also gets its own fresh reviewer when a shipped mistake there is
|
|
51
|
+
costly or hard to see in a whole-branch diff: security or authentication,
|
|
52
|
+
concurrency, a data migration or persisted format, money, a destructive
|
|
53
|
+
operation. Mark such a task under its heading, naming the class:
|
|
54
|
+
|
|
55
|
+
`**Review:** per-task — concurrency`
|
|
56
|
+
|
|
57
|
+
Leave every other task unmarked.
|
|
58
|
+
|
|
43
59
|
## Step Granularity
|
|
44
60
|
|
|
45
61
|
**Each step is one action with a checkable result:**
|
|
@@ -94,6 +110,8 @@ owns the code, in that task's own step style.]
|
|
|
94
110
|
````markdown
|
|
95
111
|
### Task N: [Component Name]
|
|
96
112
|
|
|
113
|
+
**Review:** per-task — [class; this line only on a task Review Marks covers]
|
|
114
|
+
|
|
97
115
|
**Files:**
|
|
98
116
|
- Create: `exact/path/to/file.py`
|
|
99
117
|
- Modify: `exact/path/to/existing.py:123-145`
|
|
@@ -174,33 +192,45 @@ After writing the complete plan, look at the spec with fresh eyes and check the
|
|
|
174
192
|
|
|
175
193
|
**5. Proportion:** Compare the plan's length to the spec's. A plan several times longer than the spec it implements is a transcript of the program, not a plan. If code blocks are most of the document, replace bodies with signatures, test names and assertions, and check that each step is still unambiguous.
|
|
176
194
|
|
|
195
|
+
**6. Review marks:** Every task touching security, authentication, concurrency, a data migration or persisted format, money, or a destructive operation carries a `**Review:** per-task` mark; no other task does.
|
|
196
|
+
|
|
177
197
|
If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
|
|
178
198
|
|
|
179
199
|
## Execution Handoff
|
|
180
200
|
|
|
181
|
-
After saving and self-reviewing the plan,
|
|
182
|
-
|
|
183
|
-
them to review the plan and confirm it captures what they want; wait for that
|
|
184
|
-
review before implementation, then use the preserved method. Otherwise, ask
|
|
185
|
-
them to review the plan and choose an execution method before implementation.
|
|
186
|
-
|
|
187
|
-
**When no execution method has already been supplied:**
|
|
201
|
+
After saving and self-reviewing the plan, choose the execution method
|
|
202
|
+
yourself, unless your human partner already named one:
|
|
188
203
|
|
|
189
|
-
**
|
|
204
|
+
- **Subagent-driven** (superpowers:subagent-driven-development) - A fresh subagent implements each task, independent tasks run in parallel in their own worktrees, the tasks marked `**Review:** per-task` get a fresh reviewer each, and one whole-branch review at the end covers every task. Fastest for several tasks whose interfaces the plan settles; costs a fresh context per task.
|
|
205
|
+
- **Native** (superpowers:executing-plans) - I implement every task myself in this session, the way this harness runs work, then one fresh reviewer on the most capable model checks the whole branch. Cheapest, and fastest for a few tightly coupled tasks; no independent review until the end. Runs well with a mid-tier session model, since the plan carries the design.
|
|
190
206
|
|
|
191
|
-
|
|
192
|
-
|
|
207
|
+
A plan with any `**Review:** per-task` mark runs Subagent-driven unless your
|
|
208
|
+
human partner says otherwise: Native has no task reviews. If you still
|
|
209
|
+
choose Native, name the marked tasks in the approval and say they get no
|
|
210
|
+
review before the final one.
|
|
193
211
|
|
|
194
|
-
|
|
212
|
+
Then ask for ONE approval that covers everything they have not approved
|
|
213
|
+
yet: the design document when this plan came straight from brainstorming,
|
|
214
|
+
the plan, the method, and where the work runs. Do not ask them to pick the
|
|
215
|
+
method; name the one you chose and why, and they can swap it in the same
|
|
216
|
+
reply. Name the workspace too: a new branch in this checkout unless they
|
|
217
|
+
already said otherwise, so the run needs no `/move` from them, and this
|
|
218
|
+
approval is the consent superpowers:using-git-worktrees would otherwise
|
|
219
|
+
ask for. They can answer `/wt <branch>` instead to move the session into
|
|
220
|
+
its own worktree:
|
|
195
221
|
|
|
196
|
-
**
|
|
222
|
+
**"Design: `docs/specs/<filename>.md`. Plan: `docs/plans/<filename>.md`, <N> tasks. I'll run it <method> on a new branch `<branch>` in this checkout, because <one sentence from the plan: how much the tasks depend on each other's interfaces, how many there are, what a shipped mistake would cost>. Calls I made for you: <the decisions marked as your call, one line each>. Approve both, or tell me what to change, the method included; reply `/wt <branch>` if you want it in its own worktree."**
|
|
197
223
|
|
|
198
|
-
|
|
224
|
+
Leave out the Design line when there is no new design document, and the
|
|
225
|
+
calls line when you made none. When they already named the method, use
|
|
226
|
+
theirs and say so instead of the because-sentence. Wait for that one
|
|
227
|
+
answer. If they change the design, update both documents before you ask
|
|
228
|
+
again; if they change only the method or the workspace, start with theirs.
|
|
199
229
|
|
|
200
|
-
**
|
|
230
|
+
**On omp in vibe mode** (your tools include `vibe_spawn` but not `task`), both approaches run in one `good` worker you brief, not in your own session; the chosen skill's vibe note says how. Say so in the approval message.
|
|
201
231
|
|
|
202
|
-
**
|
|
232
|
+
**Once approved, Subagent-driven:**
|
|
203
233
|
- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
|
|
204
234
|
|
|
205
|
-
**
|
|
235
|
+
**Once approved, Native:**
|
|
206
236
|
- **REQUIRED SUB-SKILL:** Use superpowers:executing-plans
|