agent-start-demo-2
No handoff yet. An agent working here writes one with amadan branch handoff, so that whoever picks the branch up next — a person, or another agent on another machine — can start without reading the whole history.
Recently
<task-notification> <task-id>b0z7cnn8r</task-id> <tool-use-id>toolu_0146rg2EaK4frDpKttPZx8Gq</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/b0z7cnn8r.output</output-file> <status>completed</status> <summary>Background command "Wait for CI verdict on 8e8906cc" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a53f124905ffeb3ef</task-id> <tool-use-id>toolu_01Bm2mJcH7Va8xfSd7ffvhdh</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/a53f124905ffeb3ef.output</output-file> <status>completed</status> <summary>Agent "Check CI fix + census regen (Opus)" 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>Both CI fixes check out with no new P1 or P2, and the census is **APPROVE**. ## Part 1: CI fix 9ba99ded **(a) Six demo operator doors answer 401 first: ADDRESSED.** - `internal/console/authcli.go:490-496` no longer has the demo-path 404. A missing, invalid or forged token now gets the same 401 and body as every other CLI door. That body is the standard "not signed in" message and says nothing about demos. - The six routes are registered whenever `HostClaim` is false, whether or not demos are configured (`apidemooperator.go:16-25`, `apidemoreports.go:35-36`). So the 401 tells an anonymous caller nothing about demo configuration. - Signed-in callers still get the same plain 404 as before: - Service credentials are refused at `authcli.go:500-504`. - App tokens and non-operator members are refused by `apiSystemRoller` (`apisystemupdate.go:144-162`). - With demos unconfigured, even owners and listed operators get 404 (`apidemooperator.go:26-35`). - The tests now pin the exact 404 body and the exact 401 response (`demo_operator_test.go:169-175` and `:206-212`, `demo_reports_test.go:364-370`). - A forged token can no longer be mistaken for a signed-in non-operator. It still can't be told apart from an absent or expired token, which is what `TestUnknownStoredRoleIsNotSignedInAtEveryDoor` requires of every door. I accept that reading of the plan's "indistinguishable refusal" wording. - The three authority tests pass. **(b) Fixture build copies use go 1.26.0: ADDRESSED.** - `internal/console/demo_protections_e2e_test.go:71-79` matches Plan 1's `demo_e2e_test.go:496-504` exactly. It changes only the local build copy, after the archive is written, and the archive keeps the locked version that `ValidateSource` checks. - Nothing else changed: - the lock (`internal/demobuild/lock.go:19`, still 1.26.10) - `go.mod` and `go.sum` - the checked-in fixture `testdata/demo/go.mod` - archive validation **P3 (cosmetic only):** - The approved census note for `handleDemoRequest` still points at `demo.go:87-109`; the function is now at 104-128. - The new `redirectDemoRequest` claim cites 87-102; the body starts at 89, with lines 87-88 being its comment. ## Part 2: census after the merge (8e8906cc): APPROVE - **Main's census files:** taken unchanged, including the `region-ha-p3b1-f4` overlay. The merge only adds this branch's overlay plus one chain line. - **Overlay changes since 811cb3a8:** - The fix-wave overlay is gone. - The branch overlay gains exactly one unit, `internal/edge/demo.go:Edge.redirectDemoRequest`. It keeps the reads (`whole:Route` ×3) and code hash `2d21dbdb…` that R2 approved. - The `internal/edge` re-pin is `976284b5…`, the same hash R2 approved. - No other row changed. - **Card:** 25 units (R1's 24 plus `redirectDemoRequest`) and 7 envelopes, seal `71bbbf68…` → `1daafee8…`. Nothing goes beyond what R1 and R2 approved. - **`make census-card`:** reports clean at seal `1daafee8030f9d370adf5541b5e87313523073c4afdc022d4238c3a7bc1a60ba` and wrote nothing. - **`nice -n 10 go test -p 1 ./internal/provision -run 'Census|Plan14' -count=1`:** in the sandbox, four tests fail because the build cache is read-only there, the same as in R1 and R2. Rerun outside the sandbox with GOCACHE at its default, it passes (`ok internal/provision 15.781s`). I edited no code, made no commits and spawned no agents. The full check is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-2/.superpowers/sdd/2026-11-04-agent-start-demo-2-edge-protections/ci-fix-1-check.md`.</result> <usage><subagent_tokens>88585</subagent_tokens><tool_uses>19</tool_uses><duration_ms>203818</duration_ms></usage> </task-notification>
<task-notification> <task-id>bz2yxmo69</task-id> <tool-use-id>toolu_01U2ZyAFYkphom99R5ZYxW2s</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/bz2yxmo69.output</output-file> <status>completed</status> <summary>Background command "Wait for CI fix run" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>btxyox0hv</task-id> <tool-use-id>toolu_01Cjsa3eUNSzu5mrU1uCdo23</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/btxyox0hv.output</output-file> <status>completed</status> <summary>Background command "Wait for CI verdict on the tip" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a72b91f3d188ff4b6</task-id> <tool-use-id>toolu_017UP1apTfsE73WRW1xAG3Wq</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/a72b91f3d188ff4b6.output</output-file> <status>completed</status> <summary>Agent "Re-review final fix wave (Opus)" 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.** Every item is fixed and the fix diff adds no new P1 or P2. **Census: approves.** `make census-card` says "Nothing to approve: the census is clean" at seal `22534a1666c574d30f86da73e7f6708b6ab2ec79994f217958bdc7cc67853245`. It wrote nothing, and `git status` was clean before and after. I approved both census changes in the fix wave: the new `Edge.redirectDemoRequest` and the `internal/edge` envelope re-pin. Both run in the agent's edge, not root, and read only the route that is already loaded. - **P1-1, record-write census rows: ADDRESSED.** `internal/provision/agent_start_demo_2_census_test.go:6-20` re-pins `registerCLIRoutes` as `key-site` `lit:instances,lit:sidecars` and adds `serveDemoTraffic` as `nonrecord` `sel:Put`. The census test now uses that inventory (`plan9_b8_census_test.go:369`), and `TestPlan9B8RecordWriteCensus` passes. - **Port 80 redirect: ADDRESSED.** `internal/edge/demo.go:87-102`, called from `edge.go:3284`. It sends a 308 with demo policy headers, and the existing check validates `Location` against the demo host. It only redirects when the route, alias and serving checks all pass; otherwise the old refusal applies. Nothing on this path reaches the proxy or the counters. The test at `demo_traffic_test.go:484-511` covers the HTTP methods, `HOST:80`, escaped paths, `//example.com/shop`, an empty `?`, and the closed gate (503 with no counting). - **TestConsoleTemplatesFetchNothingOffOrigin: ADDRESSED at the cause.** The guard is untouched. The report page now inlines the embedded `fiesta_day` stylesheet (`demo_report.html:7`). Its CSP allows only the SHA-256 hash of those exact bytes (`apidemoreports.go:94-111`), which is stricter than the old `'self'`. - **TestEveryCLIDoorNamesItsRoles flag-off: ADDRESSED, and who is authorized is unchanged.** The six doors are now registered whenever the console is not host-claim (`apidemooperator.go:16-25`). They keep the same empty role set, and the same `demoOperator` gate returns 404 when demos are not in box mode. `demo_operator_test.go:195-210` checks that all six doors return 404 for every kind of caller when demos are unconfigured. `svcroutes_test.go:524-535` pins that they are present with no roles, and absent on host-claim consoles. - **TestDemoProtectionsSourceToLimitAndTakedown: ADDRESSED.** Only the "disk TMPDIR required" check was removed (`demo_protections_e2e_test.go:117-123`); the scratch-directory setup, cleanup and assertions are unchanged. No skip was added. It passed outside the sandbox on a disk TMPDIR (25.5 s) and left no scratch directory. I did not run it on tmpfs, the CI case. - **TestGroupNameClassCensus: ADDRESSED.** Only the `*Edge.Reload` digest was re-pinned (`group_names_test.go:367-369`). Reload's change only wraps demo proxies and adds names that refuse requests; it adds no new group-name class. - **Copy applied verbatim: ADDRESSED.** I checked 11 rows and all matched exactly: README-02/07/14/22/24/26/27 and the `CARLOS_DEMO_EDGE_PROTECTIONS` table row in `README.md`, and CLI-DOC-02/04/05/06 with their line breaks in `docs/site/cli.md`. CLI help is pinned exactly at `system_demos_test.go:53-55`. Two minor follow-ups, neither blocking: - The report page renders and hashes the 27 KB stylesheet on every request. It never changes, so it could be computed once at startup. - On a forwarding ingress, port 80 redirects without checking the local serving gate. With serving off, a visitor gets the 308 and then a 503 over HTTPS, which re-checks. Sandbox: inside it, two provision fixture tests failed on the read-only Go build cache, and the integration test could not open sockets. Outside the sandbox, the provision `Census|Plan9` run passed and so did the integration test. The host, console and edge tests passed inside it. Review written to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-2/.superpowers/sdd/2026-11-04-agent-start-demo-2-edge-protections/branch-review-r2.md`.</result> <usage><subagent_tokens>106670</subagent_tokens><tool_uses>26</tool_uses><duration_ms>303746</duration_ms></usage> </task-notification>
<task-notification> <task-id>b9h71n7lo</task-id> <tool-use-id>toolu_016rKK6KLqzHjtFaJ2f3vGgg</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/b9h71n7lo.output</output-file> <status>completed</status> <summary>Background command "Wait for the final fix wave" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bbz3blog3</task-id> <tool-use-id>toolu_01KPiHQ55CDzPPceNU1JSvnn</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/bbz3blog3.output</output-file> <status>completed</status> <summary>Background command "Ledger branch review, launch final fix wave" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>aa2ee66dfd185e28d</task-id> <tool-use-id>toolu_019WTDK4htdG1B9HYmcuWUaC</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/aa2ee66dfd185e28d.output</output-file> <status>completed</status> <summary>Agent "Whole-branch + census review (Opus)" 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.** One test fails at the tip; the rest of the branch looks sound. **Census verdict: APPROVE.** All 24 changed units and all 7 re-pinned envelopes are approved at `ed6a19ee`. `make census-card` reports the census clean at seal `4cbf6f01…`. Root's only demo consumer, the purge in `internal/instancectl`, is unchanged. The new signed early-retirement receipt is checked by the agent, never by root. **Counts:** P1 1, P2 0, P3 6. - **P1-1:** `TestPlan9B8RecordWriteCensus` fails at the tip, so CI's `go test ./...` will be red. This is the record-write census (a separate inventory from the census above), and the branch added no inventory rows for it. - `authcli.go` `Server.registerCLIRoutes` no longer matches its reviewed digest, because it now registers the demo operator routes. - `demo_traffic.go` `Edge.serveDemoTraffic` has an unlisted `sel:Put` site. It is a `gzipPool.Put`. - **Fix:** add a branch census test file that re-pins `registerCLIRoutes` as `key-site` and lists `serveDemoTraffic` as `nonrecord`. I'd approve both classifications. - The Task 6 report's census checks did not cover this test. Other results: - **Task 6 witnesses:** `TestDemoProtectionsSourceToLimitAndTakedown` passes outside the sandbox (the sandbox blocks unix sockets). `TestDemoMovedHookInert`, `TestDemoProtectionsOrdinaryUnchanged` and `TestDemoProtectionsNoBucketTraffic` pass. The `TestDemo` tests in edge, host, demo and demobuild pass, and so does `TestSystemDemos`. My broad console run hit the 10-minute timeout in an unrelated test and is inconclusive; it printed no failures. - **Wiring and safety:** the resident runs the planned order: identity and control, request debit, dispatch, policy and banner, compression, byte debit, output. Forwarding ingresses neither count nor rewrite. No path serves a demo without policy, a counter row and a live control. Plan 1 demos (R9) stay closed and can still be taken down. I found no new storage or polling on the traffic, status or switch paths; the report-path key cache is the ruled exception. - **Deferred minors:** none needs fixing before merge. - **P3s (follow-up list):** - Port 80 tells every demo visitor "try again shortly" forever. - The integration test wires the worker by hand rather than through `runAgent`. - Acknowledgements identify a revision only, not the control that carried it. - A console database restored to an older revision keeps boxes closed until it catches up. - Operator status runs several queries per demo row. - The `systemUsage` line for demos omits `reports`. Under the stopping rules this round has a P1, so round 2 should be a scoped check that `go test ./internal/provision -run Census` passes once the rows are added. The full review is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-start-demo-2/.superpowers/sdd/2026-11-04-agent-start-demo-2-edge-protections/branch-review-r1.md`. Scratch logs are deleted.</result> <usage><subagent_tokens>291152</subagent_tokens><tool_uses>74</tool_uses><duration_ms>1511159</duration_ms></usage> </task-notification>
<task-notification> <task-id>bms5929jh</task-id> <tool-use-id>toolu_013Gvkc1XHM4UpqXDZeYSKSE</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/bms5929jh.output</output-file> <status>completed</status> <summary>Background command "Wait for Luna pass 2" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bo8lkp069</task-id> <tool-use-id>toolu_01DuFdEcdws19G48i6d6LAgb</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6e566fe9-9aca-47cb-9753-64e881b0d285/tasks/bo8lkp069.output</output-file> <status>completed</status> <summary>Background command "Wait for Task 6 Codex run" completed (exit code 0)</summary> </task-notification>