plan: controller brief for agent-start-demo plan 1 build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+126
−0
docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-1-build.md+126 −0
CI passed — run details
diff --git a/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-1-build.md b/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-1-build.md| new file mode 100644 |
| index 000000000..d8f35f8b5 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-1-build.md |
| @@ -0,0 +1,126 @@ |
| +# Controller brief: build agent-start-demo Plan 1 (anonymous demo apps on dev) |
| + |
| +You are the controller for building Plan 1 of the "try it from any agent" |
| +work in carlos/platform. Paul approved the design and chose |
| +subagent-driven execution on 2026-11-02 ("Let's go!", then "subagents"). |
| +You did not take part in the design conversation; everything you need is |
| +in these files on branch `agent-start-demo-1` (worktree |
| +`/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-1`): |
| + |
| +- Spec: `docs/superpowers/specs/2026-11-02-agent-start-demo-design.md` (approved; §5 holds Paul's rulings, do not reopen them) |
| +- Plan: `docs/superpowers/plans/2026-11-02-agent-start-demo-1-anonymous-apps.md` |
| + (9 tasks; written by Astra, checked by the design session; its "Open |
| + questions" are settled at the end of the plan) |
| +- Repo rules: `AGENTS.md`, especially the stopping rules, the census section |
| + and Build & test. |
| + |
| +Branch `design-agent-start-demo` holds only the spec and plan (pushed at |
| +edccc9fb). Build on `agent-start-demo-1`, which starts from that tip; it |
| +already exists locally. Push it (`git push origin agent-start-demo-1`, no |
| +`-u`) and describe it (`amadan branch describe carlos/platform |
| +agent-start-demo-1 -summary ...`) before Task 1. |
| + |
| +Commit as the agent identity in every worktree: |
| +`git -c user.name=claude -c user.email='claude~paul@keymail.dev' commit ...` |
| +(Codex commits with `--author "codex <codex~paul@keymail.dev>"`). Subjects |
| +under 80 characters. The "packed-refs.lock: File exists" and "credential |
| +storage lock" messages on push are the sandbox; check |
| +`git ls-remote origin refs/heads/<branch>` instead. |
| + |
| +## How to run it |
| + |
| +Use `superpowers:subagent-driven-development` with these adaptations, which |
| +follow Paul's standing rules (Anthropic weekly usage is scarce; Codex quota is |
| +not): |
| + |
| +1. **Implementers are Astra via Codex**, not Claude subagents. One Codex run |
| + per task: |
| + - Extract the task brief with the skill's `scripts/task-brief`, adding the |
| + plan's Global Constraints and the Review Focus lines for the task. |
| + - Write a launch script and run it **with the sandbox off**: |
| + `setsid nohup <script> &`, where the script `cd`s into the worktree and |
| + runs `codex exec -m gpt-6-astra -c model_reasoning_effort="high" |
| + --dangerously-bypass-approvals-and-sandbox -o <final.md> - < <prompt-file> |
| + > <log> 2>&1; touch <done-marker>`. |
| + - Within 20 seconds check the log header says `model: gpt-6-astra` and |
| + `reasoning effort: high`, and that the log grows. Wait on the `.done` |
| + marker with a background `until` loop. Never wait on `pgrep` patterns. |
| + - Scratch paths: the sandboxed and unsandboxed `$TMPDIR` differ on this |
| + box. Use absolute paths under |
| + `/home/paulca/.cache/tmp/claude-1001/agent-start-demo-1/` for briefs, |
| + logs and markers, and delete that directory when done. |
| + - The Codex prompt names the brief file and the report file, and says: |
| + commit with `--author "codex <codex~paul@keymail.dev>"`; do not spawn |
| + reviewers or any other agents; do not run the copy-review skill or start |
| + a review server; do not create `.claude/HANDOFF.md`; scratch under |
| + `$TMPDIR`; leave Go caches at their defaults; targeted tests only |
| + (`go test ./internal/console/ -run TestX`); bind any server to |
| + `127.0.0.1` and stop what it starts; never touch AWS, DNS or any real |
| + box. |
| + - Fix rounds are a new Codex run given the brief, the report and the |
| + findings. |
| +2. **Per-task review by risk.** The plan marks Tasks 1-8 for independent |
| + review: each gets a task review by an **Opus** subagent (model `opus`), |
| + briefed from `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`. Task 9 is |
| + covered by the whole-branch review. Record this as a ruling in the ledger |
| + at the start. |
| +3. **Census**: follow the plan's census steps and the repo's |
| + `make census-card` / `census-propose` recipe. The cross-model reviewer for |
| + Codex-authored census changes is Opus. Record the verdict on amadan #280. |
| + Never ask Paul for a census ruling. |
| +4. **Whole-branch review by Opus** after Task 9: one fix wave, one scoped |
| + re-review. Three rounds at most per review; the AGENTS.md stopping rules |
| + apply (stop at the first round with no P1; two rounds in one fault family |
| + means stop and offer Paul the choice). |
| +5. CI on amadan is the full gate; run only targeted tests locally. Nice and |
| + serialise heavy runs (shared machine). |
| + |
| +## Copy |
| + |
| +The plan's copy table is NOT approved yet. Implementers write the strings |
| +the code needs into one Go copy map per surface, keyed by the plan's copy |
| +IDs, and mark them draft. Only human-facing text needs review (API refusal |
| +messages an agent will relay to a person, operator docs); protocol |
| +identifiers, JSON field names and diagnostics stay out of it. Before the |
| +whole-branch review, collect the draft strings into one file and run a |
| +**Luna copy pass** (Paul's standing preference for large decks; see the |
| +`LUNA-COPY-BRIEF-*` / `LUNA-COPY-RESULT-*` files under |
| +`docs/superpowers/specs/` for the pattern), apply its result verbatim, and |
| +mention it in the handoff. Copy voice: no em dashes, full stops, plain words. |
| + |
| +## Real infrastructure: stop and ask |
| + |
| +Tasks 3 and 6 call for kernel witnesses and Task 9 for a dev witness on real |
| +boxes, DNS and certificates. None of that is authorised yet. Build and unit- |
| +test everything first. When only the real-box witnesses remain, stop, write |
| +the handoff, and post on the branch's discussion exactly what you need from |
| +Paul: the dev demo fleet (holding account, one arm64 nested box), the |
| +`dev.trycarlos.com` delegation from the flagship zone (Z01212201VSDT9BSJ6HSP, |
| +profile keymail) to dev (profile kass), the wildcard certificate, and the |
| +console settings. A skipped kernel witness is not evidence; say so plainly. |
| + |
| +## Never |
| + |
| +- Merge, release, roll or deploy. Paul merges (or asks a session to). When |
| + the branch is review-clean and CI is green on its exact tip, say so in the |
| + handoff, with the tip sha. |
| +- Touch AWS, DNS, Openprovider or any real box without Paul's explicit go. |
| +- `git worktree prune`, `git clean -fdx` outside scratch, `sudo`, `GOCACHE` |
| + changes, bare `amadan branch merge`, deleting lock files you did not |
| + create. |
| +- Chain setup commands with `;` (use `&&`). |
| +- Name a tenant in code, tests or docs (use shop, example.com). |
| + |
| +## Keep the branch page true |
| + |
| +- Push after each completed task. |
| +- Amadan tasks: add one task per plan task (plus "Luna copy pass", "whole- |
| + branch review" and "dev witness (needs Paul)") on `agent-start-demo-1` at |
| + the start; Started at dispatch, Done at review clean. |
| +- Rulings that need Paul go in a discussion on the branch; keep going on |
| + everything that does not depend on the answer. |
| +- When you finish or stop, write the branch handoff |
| + (`amadan branch handoff carlos/platform agent-start-demo-1 -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 branch tip. |
| + Clean up scratch and any processes you started. |