carlos / platform Public

plan: controller brief for agent-start-demo-2

claude agent, operated by paul@keymail.dev 14dd4de62167eae321a1c12e4f9e08fdd160e2ab parent 3e466eb
1 file changed, +33 −0
  • docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-2.md +33 −0

CI failed — run details

Intent

Attributed to this commit: 29.8 g CO₂e (2,440,539 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on agent-start-demo-2, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-2.md b/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-2.md
new file mode 100644
index 000000000..3693deec3
--- /dev/null
+++ b/docs/superpowers/plans/CONTROLLER-BRIEF-agent-start-demo-2.md
@@ -0,0 +1,33 @@
+# Controller brief: build agent-start-demo-2
+
+You are the build controller for `docs/superpowers/plans/2026-11-04-agent-start-demo-2-edge-protections.md` in carlos/platform. Paul approved the design (`docs/superpowers/specs/2026-11-02-agent-start-demo-design.md`), this plan and its rulings on 2026-11-04, and chose subagent-driven execution. Worktree: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-2`, branch `agent-start-demo-2` (cut from `agent-start-demo-plans` at 3e466eb3, which is main plus the plan documents). Read AGENTS.md (stopping rules, census, Build & test) and, for demo work, `docs/superpowers/notes/agent-start-demo-1-rulings.md`.
+
+Push the branch (`git push origin agent-start-demo-2`, no `-u`) and describe it (`amadan branch describe carlos/platform agent-start-demo-2 -summary ...`) before Task 1. Commit as `git -c user.name=claude -c user.email='claude~paul@keymail.dev' commit` (Codex: `--author "codex <codex~paul@keymail.dev>"`). Subjects under 80 characters. "packed-refs.lock" / "credential storage lock" messages on push are the sandbox; check `git ls-remote`.
+
+## How to run it
+
+Use `superpowers:subagent-driven-development`, adapted:
+1. **Implementers are Astra via Codex.** One run per task: extract the brief with the skill's `scripts/task-brief` plus Global Constraints and that task's Review Focus lines; launch a script with the sandbox off via `setsid nohup`: `codex exec -m gpt-6-astra -c model_reasoning_effort="high" --dangerously-bypass-approvals-and-sandbox -o <final.md> - < <prompt> > <log> 2>&1; touch <done>`. Within 20 s check the log says `model: gpt-6-astra` and `reasoning effort: high` and grows. Wait on the `.done` marker with a background until-loop, never on pgrep. Scratch under `/home/paulca/.cache/tmp/claude-1001/agent-start-demo-2/`, deleted at the end. The Codex prompt says: commit with the codex author; spawn no agents; no copy-review skill or review server; no `.claude/HANDOFF.md`; leave Go caches at defaults; targeted tests only; bind servers to 127.0.0.1 and stop them; never touch AWS, DNS or real boxes.
+2. **Reviews:** an **Opus** subagent (model `opus`) reviews each task the plan marks for independent review, briefed from `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`; one whole-branch Opus review at the end, one fix wave, one scoped re-review. AGENTS.md stopping rules apply: stop at the first round with no P1, three rounds max, two rounds in one fault family means stop and offer Paul the choice.
+3. **Census:** follow the plan and `make census-card` / `census-propose`; Opus is the cross-model reviewer for Codex-authored census changes; record verdicts on #280. Never ask Paul for a census ruling.
+4. **Copy:** human-facing strings in the plan's copy table go through a Luna copy pass (pattern: `docs/superpowers/specs/LUNA-COPY-*`), applied verbatim, unless the plan says Paul reviews them himself; then collect them and post on the branch for Paul.
+5. CI on amadan is the full gate; targeted tests locally, niced and serial.
+
+## Landing
+
+When the whole-branch review is clean and CI is green on the exact tip, you may merge: re-merge main if it moved and wait for CI again, then run exactly `amadan branch merge carlos/platform agent-start-demo-2 -squash -expect <full 40-char sha>` with a subject under 80 characters and a short body. **`-squash` is mandatory** (an earlier controller forgot it). Keep the worktree until the merge succeeds. Never cut a release.
+
+## Dev activation
+
+Paul allows dev activation of this plan once it is merged (dev only, profile kass): roll the merged build to the dev demo box (i-05789ae978ebf2608), the dev ingress and the dev console following the platform roll recipe, set the plan's switches on dev, and run the plan's dev witness against dev.trycarlos.com. Demo admission on dev is already on (sophie console drop-in `console.service.d/demo-apps.conf`); other dev sessions rely on it, so keep it on. If a witness fails, turn this plan's switches off and report. Report on the branch and on amadan #527.
+
+## Never
+
+- Release, roll to flagship, or touch flagship boxes, its console or trycarlos.com.
+- Touch AWS, DNS, Openprovider or a real box except as this brief allows.
+- `git worktree prune`, `git clean -fdx` outside scratch, `sudo`, `GOCACHE` changes, bare `amadan branch merge`, deleting lock files you did not create, chaining setup commands with `;`.
+- Name a tenant in code, tests or docs (use shop, example.com).
+
+## Keep the branch page true
+
+One amadan task per plan task (plus copy pass, whole-branch review, landing); Started at dispatch, Done at review clean. Push after each task. Questions only Paul can answer go in a discussion on the branch; keep going on everything else. When you finish or stop, write the branch handoff and end with: what was built, test and review results, every ruling (with what it costs if wrong), the merge sha or tip. Clean up scratch and processes.