Controller brief for building plan 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+69
−0
docs/superpowers/plans/CONTROLLER-BRIEF-plan-1-build.md+69 −0
No CI script — run details
diff --git a/docs/superpowers/plans/CONTROLLER-BRIEF-plan-1-build.md b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-1-build.md| new file mode 100644 |
| index 00000000..8e1050f5 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-1-build.md |
| @@ -0,0 +1,69 @@ |
| +# Controller brief: build Equipo plan 1 (Foundation) |
| + |
| +You are the controller for building plan 1 on branch `foundation` in |
| +`/home/paulca/amadan.net/oficina/equipo-foundation`. Paul approved the plan |
| +and the execution approach on 2026-11-01 ("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-01-equipo-plan-1-foundation.md` |
| + (READY AFTER FIXES at Opus round 2; fixes applied; see its dispositions) |
| +- Roadmap: `docs/superpowers/plans/2026-11-01-equipo-roadmap.md` |
| +- Repo rules: `/home/paulca/amadan.net/oficina/memoria/AGENTS.md` is the |
| + closest template until this repo's own AGENTS.md exists (Task 1 writes it). |
| + |
| +## 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 3 (sign-in), 5 (limits) and 6 |
| + (Authority) 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`. Task 10 prepares the release and |
| + writes the human deployment steps (under the `oficina` CARLOS account on |
| + the flagship console); a person runs them. |
| +- `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 foundation`, then |
| + `amadan task set oficina/equipo <id> -branch foundation -status Done`. |
| +- Rulings that need Paul go in a discussion on the branch |
| + (`amadan discuss new oficina/equipo -branch foundation ...`); 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 deployment steps for a |
| + human. Clean up scratch and any processes you started. |