oficina / equipo Public

Controller brief for building plan 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 29cc55bf76ce1bc41f9d6bdea5f92788f609659f parent 4ebd057
1 file changed, +104 −0
  • docs/superpowers/plans/CONTROLLER-BRIEF-plan-3-build.md +104 −0

CI failed — run details

diff --git a/docs/superpowers/plans/CONTROLLER-BRIEF-plan-3-build.md b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-3-build.md
new file mode 100644
index 00000000..f4929538
--- /dev/null
+++ b/docs/superpowers/plans/CONTROLLER-BRIEF-plan-3-build.md
@@ -0,0 +1,104 @@
+# Controller brief: build Equipo plan 3 (coordinator and conversation)
+
+You are the controller for building plan 3 (3a, then 3b) on branch `plan-3` in
+`/home/paulca/amadan.net/oficina/equipo-plan-3`. Paul approved building it on
+2026-11-03 ("Go ahead. Get it done."). 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-04-equipo-plan-3-coordinator.md`
+ (Opus R1 NOT READY, R2 READY AFTER FIXES, fixes applied at 4ebd057; its
+ briefs `CODEX-BRIEF-plan-3*.md` beside it; the two overnight rulings are
+ in it)
+- Spec section 13 (revision 3) and the mockups in `docs/mockups/`
+- **Plan 2b is still finishing** on branch `plan-2b` (its controller is
+ Paseo agent 7fc70b2c; do not message or disturb it). This branch started
+ from plan-2b at 9cd5910. Merge `origin/plan-2b` into `plan-3` before each
+ task, and once more when plan 2b's final review is done, resolving any
+ conflict in favour of plan 2b's fixes.
+- 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 (coordinator authority and
+ admission), 6 (coordinator tools), 7 (coordinator sessions and context),
+ 10 (person API and CSRF), 15 (invitations), 16 (runner install and
+ pairing), 17 (account setup) and 20 (the native API) 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`.
+- Enrol a machine, sign in to a provider, create credential homes, or run
+ live provider sessions. Use the recorded fixtures plan 2b made. Build and
+ test everything offline (network allowed); prepare live steps 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 plan-3`, then
+ `amadan task set oficina/equipo <id> -branch plan-3 -status Done`.
+- Rulings that need Paul go in a discussion on the branch
+ (`amadan discuss new oficina/equipo -branch plan-3 ...`); 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`).
+
+## Briefs to Codex
+
+Say in every Codex prompt itself (not only the brief file): do not start a
+copy-review server; list user-facing strings instead. Say "network
+allowed"; never "offline", which made an earlier run set GOPROXY=off.
+
+## Overnight
+
+Paul is away and said "get it done". Rule on what would otherwise wait for
+him and ledger it; record decisions that genuinely need him in a discussion
+on plan-3 and keep going. If a usage limit stops a dispatch, wait for the
+reset and resume. Before going idle on any wait, use a background waiter
+that touches a .done marker, and check it on wake. Copy: list strings for
+Paul's copy review; do not start a review server.