Controller brief for building plan 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+83
−0
docs/superpowers/plans/CONTROLLER-BRIEF-plan-2-build.md+83 −0
CI passed — run details
Intent
Human
Go ahead. (Build Equipo plan 2, the Runner: Astra implements via Codex; Opus reviews tasks 5, 11, 13, 14 and 15 and the whole branch.)
diff --git a/docs/superpowers/plans/CONTROLLER-BRIEF-plan-2-build.md b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-2-build.md| new file mode 100644 |
| index 00000000..ab033040 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-2-build.md |
| @@ -0,0 +1,83 @@ |
| +# Controller brief: build Equipo plan 2 (Runner) |
| + |
| +You are the controller for building plan 2 on branch `runner` in |
| +`/home/paulca/amadan.net/oficina/equipo-runner`. Paul approved the plan and |
| +the execution approach on 2026-11-02 ("Go ahead"). You did not take part |
| +in the design conversation; everything you need is in these files: |
| + |
| +- Spec: `docs/superpowers/specs/2026-11-01-equipo-design.md` |
| +- Plan: `docs/superpowers/plans/2026-11-02-equipo-plan-2-runner.md` |
| + (READY AFTER FIXES at Opus round 2; fixes applied; see its dispositions, |
| + including Paul's ruling on unconfined Codex and the tainted-runner rule) |
| +- Paseo probe: `docs/superpowers/specs/2026-11-01-paseo-probe.md` |
| +- Plan 1 carries and rulings: `amadan discuss show oficina/equipo 2` |
| +- Roadmap: `docs/superpowers/plans/2026-11-01-equipo-roadmap.md` |
| +- Repo rules: this repo's `AGENTS.md`. |
| +- How plan 1 was built (ledger pattern, Codex launch scripts, review |
| + packages): plan 1's controller brief in git history, |
| + `git show e5c58ab:docs/superpowers/plans/CONTROLLER-BRIEF-plan-1-build.md`. |
| + |
| +## How to run it |
| + |
| +Use `superpowers:subagent-driven-development`, with these adaptations that |
| +Paul approved: |
| + |
| +1. **Implementers are Astra via Codex, not Claude subagents** (Anthropic |
| + weekly usage is the scarce resource). One Codex run per task: |
| + - Extract the task brief with the skill's `scripts/task-brief`. |
| + - Write a launch script and run it **with the sandbox off**: |
| + `setsid nohup <script> &`, where the script `cd`s into this worktree and |
| + runs `codex exec -m gpt-6-astra -c model_reasoning_effort="high" |
| + --dangerously-bypass-approvals-and-sandbox -o <final.md> "<prompt>" |
| + </dev/null > <log> 2>&1; touch <done-marker>`. |
| + - Within 20 seconds, check the log exists and is growing. Wait on the |
| + `.done` marker with a background `until` loop, never `pgrep -f`. |
| + - The Codex prompt names the brief file and the report file, and says: |
| + commit with `--author "codex <codex~paul@keymail.dev>"`; do not spawn |
| + Anthropic-model reviewers or any other agents; do not create |
| + `.claude/HANDOFF.md`; scratch under `$TMPDIR`; leave Go caches at their |
| + defaults; run targeted tests only (`go test ./pkg/... -run TestX`); bind |
| + any server to `127.0.0.1`; stop what it starts. |
| + - Fix rounds are a new Codex run given the brief, the report file and the |
| + findings. |
| +2. **Per-task review by risk.** Tasks 5 (enrolment and credentials), 11 |
| + (frozen reproductions and the trusted executor), 13 (tool channel and |
| + relayed permissions), 14 (publishing) and 15 (containment) each get a task review by an **Opus** subagent (model |
| + `opus`), using the skill's task-reviewer template and review package. |
| + The other tasks get no per-task review; the final whole-branch review |
| + covers them. Record this as a ruling in the ledger at the start. |
| +3. **Final whole-branch review by Opus**, one fix wave, one scoped |
| + re-review, as the skill says. |
| +4. Run the repo's full `make ci` once before the final review, not in a loop. |
| + |
| +## Never |
| + |
| +- Merge, deploy, or push to `main`. |
| +- Start real Paseo agents, enrol a machine, sign in to a provider, or record a |
| + Codex acknowledgement. Task 18's live gate needs Paul (enrolment and the |
| + owner acknowledgement are his). Build and test everything offline, prepare |
| + the live gate as a script and checklist, and stop there with a handoff |
| + saying exactly what Paul must do. |
| +- Touch another session's Paseo agents, workspaces or daemon configuration. |
| +- `git worktree prune`, `git clean -fdx` outside `$TMPDIR`, `sudo`, or |
| + changes to `GOCACHE`/`GOMODCACHE`. |
| +- Chain setup commands with `;` (use `&&`). |
| + |
| +## Keep the branch page true |
| + |
| +- Push after each completed task. |
| +- Advance the branch's Amadan tasks as you go: |
| + `amadan task list oficina/equipo -branch runner`, then |
| + `amadan task set oficina/equipo <id> -branch runner -status Done`. |
| +- Rulings that need Paul go in a discussion on the branch |
| + (`amadan discuss new oficina/equipo -branch runner ...`); keep going on |
| + everything that does not depend on the answer. |
| +- When you finish or stop, write the branch handoff |
| + (`amadan branch handoff ... -state - -next ...`) and end your final |
| + message with: what was built, test and review results, every ruling you |
| + made (with what it costs if wrong), and the exact steps Paul runs for the live gate. Clean up scratch and any processes you started. |
| + |
| +## UI rule from Paul |
| + |
| +No coloured left-border accents on cards, notes or list items; hairline border |
| +and tint instead (`docs/mockups/README.md`). |