test: prove anonymous demo publish and cleanup on dev
Exercise anonymous create, update and retirement through local HTTP, worker and release protocols. Preserve SQLite across a built fixture update, verify disabled compatibility, and correct pending-settlement status. Add the gated dev kernel witness, generated branch census proposal and draft operator copy deck. Live dev evidence and independent census/copy review remain outstanding; the local gate reports baseline and timing failures.
README.md+39 −0docs/superpowers/notes/census-proposal-agent-start-demo-1.md+146 −0docs/superpowers/notes/copy-agent-start-demo-1.md+140 −0internal/console/apidemo.go+26 −20internal/console/demo_e2e_test.go+598 −0internal/console/demo_finishing_test.go+18 −0internal/console/demo_settlement_r2_test.go+1 −1internal/console/demo_settlement_test.go+1 −1internal/console/testdata/demo/go.mod+34 −0internal/console/testdata/demo/go.sum+56 −0internal/console/testdata/demo/main.go+40 −0internal/demobuild/demo_retry_test.go+27 −0internal/host/demo_dev_linux_test.go+138 −0internal/host/demo_policy_linux_test.go+15 −3internal/instancectl/demo_retry_test.go+52 −0internal/provision/testdata/plan14-root-reads-agent-start-demo-1.tsv+188 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0
CI failed — run details
Intent
<task-notification> <task-id>b0irgno5n</task-id> <tool-use-id>toolu_019pBtB6kAnV1AhhGzn7MzPe</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/cd1b6de2-ac77-426f-a77d-fc5436969c88/tasks/b0irgno5n.output</output-file> <status>completed</status> <summary>Background command "Wait for Task 8" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>b8bqwbu4d</task-id> <tool-use-id>toolu_017yYKBMCS5PqAhMNs3fQMxD</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/cd1b6de2-ac77-426f-a77d-fc5436969c88/tasks/b8bqwbu4d.output</output-file> <status>completed</status> <summary>Background command "Wait for Task 8 continuation" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a978b487bb5e0e74f</task-id> <tool-use-id>toolu_01GBFR2Jo2Myo8PjKayiC5WF</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/cd1b6de2-ac77-426f-a77d-fc5436969c88/tasks/a978b487bb5e0e74f.output</output-file> <status>completed</status> <summary>Agent "Review Task 8 (spec + quality)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Verdict: READY AFTER FIXES. No P1s; spec compliance ❌ (two missing items, M1 and M2, behind P2-2 and P2-3). - **P2-1:** If a box can't finish one retirement, it never gets its build jobs again. Any `retireDemo` error makes `Connect` return, and the console resends retirements ahead of jobs on every connect, wake and 10 s tick. Every later retirement for that box stalls too, and the box re-reads the bucket every 10–15 s (`internal/host/demo_jobs.go:396-400`, `internal/console/apidemobox.go:200-208`). - **P2-2:** Several new paths have no tests: - the brief's offline-reconnect case, `offlineBoxReconnect => cleanupBeforeServe`, including stream replay through `pendingDemoRetirements` - the HTTP ack handler, including its `complete=1` stage - root's `/demo-purge` handler - root refusing `/start` while a demo's registry row is held - root refusing when the registry row is absent but a leftover directory exists - **P2-3:** Stuck cleanups are invisible. Demo retire and purge write no audit row, the DEMO-EXPIRED operator-failure wording is missing, and a retirement waiting on an offline or wedged box returns silently (`internal/console/demo_expiry.go:231-233`). The full review, with nine P3s and the census answer, is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-1/.superpowers/sdd/2026-11-02-agent-start-demo-1-anonymous-apps/task-8-review-r1.md`.</result> <usage><subagent_tokens>211528</subagent_tokens><tool_uses>43</tool_uses><duration_ms>811242</duration_ms></usage> </task-notification>
<task-notification> <task-id>bm88fuuea</task-id> <tool-use-id>toolu_01SNHHVVb6drwVUFvVy8F3ku</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/cd1b6de2-ac77-426f-a77d-fc5436969c88/tasks/bm88fuuea.output</output-file> <status>killed</status> <summary>Background command "Wait for Task 9" was stopped after reaching its background time limit</summary> <note>If the work in progress still needs it, start it again with `run_in_background` and a longer `timeout`. If it already had the longest `timeout` allowed, do not restart it. Either way, report that it was stopped.</note> </task-notification>
Attributed to this commit: 27.1 g CO₂e (3,387,502 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-1, 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.
README.mdLoading diff…
docs/superpowers/notes/census-proposal-agent-start-demo-1.mdLoading diff…
docs/superpowers/notes/copy-agent-start-demo-1.mdLoading diff…
internal/console/apidemo.goLoading diff…
internal/console/demo_e2e_test.goLoading diff…
internal/console/demo_finishing_test.goLoading diff…
internal/console/demo_settlement_r2_test.goLoading diff…
internal/console/demo_settlement_test.goLoading diff…
internal/console/testdata/demo/go.modLoading diff…
internal/console/testdata/demo/go.sumLoading diff…
internal/console/testdata/demo/main.goLoading diff…
internal/demobuild/demo_retry_test.goLoading diff…
internal/host/demo_dev_linux_test.goLoading diff…
internal/host/demo_policy_linux_test.goLoading diff…
internal/instancectl/demo_retry_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-agent-start-demo-1.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…