carlos / platform Public

review brief: rootfs apps Plan 6 whole branch and census, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 3e60617e57c2330a9806d2ee35bc9046d918c790 parent 098df29
1 file changed, +71 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-6-branch.md +71 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>a25c283f9da90f5df</task-id> <tool-use-id>toolu_011QuHUrcMtXbfkWe6tyaWzj</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a25c283f9da90f5df.output</output-file> <status>completed</status> <summary>Agent "Merge main into Plan 6 branch" 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>I merged origin/main into rootfs-apps-6-interactive and pushed it to amadan as a plain fast-forward push. The census is clean and CI is queued. **Merge commit:** `48336f06` (Merge origin/main 6f1f6ca6 into rootfs-apps-6-interactive). **Conflicts.** Four files conflicted, all resolved by keeping both sides: - `internal/console/testdata/claim-routes.txt`: main's four `/alerts/...` routes and this branch's `/api/box/interactive/{id}` and `/api/box/runs/{id}` are all kept, in sorted order. - `internal/console/svcroutes_test.go`: the closed-door count is now 76. That is main's 74 (it added a seventh fleet door) plus this branch's two doors, the interactive setting and the session door. - `internal/provision/plan9_b8_census_test.go`: the list of record writers the census tracks now has both `setrecordinteractive` (this branch) and `setrecordfleetbox` (main). The test still runs `rootfsApps6WriteCensusInventory`. I rebased that inventory onto main's newest one, `managedFleets1bWriteCensusInventory`, in `internal/provision/rootfs_apps_6_census_test.go`. - Four functions changed on both sides: `Reconcile`, `main`, `Server.registerCLIRoutes` and `NewServer`. Before updating their recorded hashes I read the merged code: each is this branch's change plus main's (fleet-box scoping, devbox, the drain route, the alert and Protection routes). The kinds are unchanged and neither side adds a record write. - `internal/provision/testdata/plan14-root-reads-chain.tsv`: main's seven new chain lines come first and the rootfs-apps-6 overlay is last. None of the conflicts needed a design choice. **Census.** After the merge, `census-card` showed three functions that main's managed fleets 1b also changed: `type Service` (activator), `runAgent` and `Reconcile`. My CLAIMS file has all 72 existing rootfs-apps-6 claims, copied unchanged from the overlay. The three functions above each also get a merge note citing census-ruling-managed-fleets-1b. I committed the re-proposal as `098df29c`. Its counts are the same as before: 26 body, 6 sites, 11 envelope, 1 removed, 39 new dispositions. A second `census-card` run reports the census clean. - **Seal:** `c86929d08b9b2038fa103d1c7311ab2958e7100e92dc550d36daeb364affd029` (was `7570ca61…`, main's last chain line). **Checks.** All passed: - `go build ./...` and `go vet ./...` - the root copy gates - the provision census tests (`Census|Plan14|B8|RecordWrite`) - `internal/docsite` - the darwin/arm64, windows/amd64 and linux/arm64 builds - two console tests for the files I edited: `TestClaimConsoleRouteCensus` and `TestEveryClosedDoorRefusesAService` **Push.** `git push origin rootfs-apps-6-interactive` went `de4246b9..098df29c`, so the pushed tip is `098df29c`. **CI:** `carlos/platform @ 098df29cb (branch rootfs-apps-6-interactive): CI queued` I deleted my scratch directory under `$TMPDIR`.</result> <usage><subagent_tokens>108268</subagent_tokens><tool_uses>39</tool_uses><duration_ms>389876</duration_ms></usage> </task-notification>

Attributed to this commit: 38.4 g CO₂e (4,881,270 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-apps-6-interactive, 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/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-6-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-6-branch.md
new file mode 100644
index 000000000..9b544d674
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-6-branch.md
@@ -0,0 +1,71 @@
+# Review brief: rootfs apps Plan 6 (interactive sessions, carlos run on rootfs and fleet boxes), whole branch and census, round 1 of 3
+
+Repo carlos/platform, branch `rootfs-apps-6-interactive`, commit 098df29cb (run `git rev-parse HEAD` for the full sha).
+Under review: the diff `6f1f6ca6..098df29c`, where 6f1f6ca6 is origin/main as merged in 48336f06. Also the census proposal `docs/superpowers/notes/census-proposal-rootfs-apps-6.md` and the overlay `internal/provision/testdata/plan14-root-reads-rootfs-apps-6.tsv`, seal c86929d0.
+Authorities: the plan `docs/superpowers/plans/2026-10-24-rootfs-apps-6-interactive.md` (amended rev 1-4, Astra plan reviews), the rootfs apps specs merged on main, and the copy deck `docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md`. The build ledger `.superpowers/sdd/2026-10-24-rootfs-apps-6-interactive/progress.md` holds every ruling, and the per-task review files beside it hold earlier findings and census verdicts.
+
+You are an independent reviewer. Every task (2-15) was reviewed on its own already. This review covers what only shows across the whole branch, and Task 16, which had no per-task review (it was folded into this one).
+
+## Fixed: do not re-argue
+
+- Paul's rulings: R7 (`carlos run` on fleet boxes over the box door); interactive sessions off by default, turned on per app by an owner; refused attempts are audited (2026-10-31); the verification budget.
+- Controller rulings in progress.md:
+ - the lease-loss kill join;
+ - AfterSettled is asynchronous;
+ - the handoff listener lives until the settle;
+ - release admission refuses during either role's start window;
+ - ended ids are pruned after PickupBy;
+ - the admission bound is OpenWait plus the change-index tail;
+ - End is sent only after the writer drains;
+ - the orphan-grant scan runs daily;
+ - lifetime 0 is a value (0 == 0 matches);
+ - a signal exit is 128+n;
+ - 429s and strangers are journalled, not audited;
+ - the host-claim C35 refusal is not audited.
+ Report only mechanisms that fail to honour them.
+- Known limits recorded: a fleet box door accepts any active box of the account-owned fleet (the record names no box); a sleeping HA host that no box holds awake expires its session (dev only); SIGKILL mid-session leaves the tty non-blocking.
+- The root-runner witnesses passed under real systemd (Task 15 report).
+
+## What to check
+
+1. **Task 16 end to end** (apirunsbox.go, runrelay.go, the runSink, the grant Kind, run relays, the sweep):
+ - Can a fleet box make, or cause, a bucket write for a run that isn't its own: another app, host, run id or incarnation, or after the run ended?
+ - Is every console write on the box's behalf judged and admitted like the bucket path?
+ - Is the run directory removed only after proof?
+ - Are the request budgets (13 judged / 11 legacy console, 2+3 box) real at the wire?
+ - The departures to rule on: the console's End after result.json; the run-ended log line moved after the done CAS; RUN-C21 retired via runCopyRetired.
+2. **Trust across the three doors** (CLI session door, box session door, box run door): authentication, account and fleet ownership, grant scope and expiry. Can one door's credential, grant or id be used at another?
+3. **Termination:** every session and run end path stops the unit, proves it gone, and only then removes files, writes the end row and frees the slot. No unit outlives its lease, and no kill hits a successor.
+4. **Requests and cost:** no new per-box polling; every recurring request budgeted.
+5. **Audit completeness:** start, end and refused rows written exactly once.
+6. **Cross-compile:** darwin and windows builds of the root binary, and linux-only code behind tags with stubs.
+7. **Census:** for each unit on the card and each re-pinned envelope, APPROVE or REJECT with evidence. Earlier per-task verdicts are in the task review files. Approve the Task 13 fix round 2 claims (openSession, fdInput.Read, root envelope at 3e6d53be) and Task 16's three new claims here.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the task, the problem,
+the evidence (file:line, verified), the failure scenario, a concrete
+fix and the invariant or trust boundary it breaks (its fault family).
+Then the census verdicts. End with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.