reviews: census and whole-branch briefs for rootfs-apps-3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+71
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3.md+36 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-branch.md+35 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3.md| new file mode 100644 |
| index 000000000..057a44545 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3.md |
| @@ -0,0 +1,36 @@ |
| +# Review brief: census for branch rootfs-apps-3-lifecycle, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-lifecycle`, commit 78fd0d8a8cdcb6c21791d5418b9e8418cdac61a2. |
| +Under review: the census card `docs/superpowers/notes/census-proposal-rootfs-apps-3.md` (141 units: 29 body, 41 sites, 53 new, 17 reads, 1 quiet; 17 envelopes re-pinned, including `internal/hostops`), its overlay `internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv`, the claims `docs/superpowers/notes/census-rootfs-apps-3-claims.md`, and the card's hand-added section "Record-write re-pins" (10 sites in `rootfsApps4WriteCensusInventory`, `internal/provision/plan9_b8_census_test.go`). Read them against the branch's diff `origin/main...78fd0d8a8cdcb6c21791d5418b9e8418cdac61a2` (merge base bf55f29e) on the amadan.net remote. |
| +Authorities: AGENTS.md "The census: the reviewer decides" and "Stopping rules"; docs/superpowers/specs/2026-10-24-rootfs-apps-design.md (rev 5) and the rootfs plans index on main. The branch holds rootfs apps Plan 3 Group A (lifecycle) and Plan 4's console first slice; its plans are on the branch (docs/superpowers/plans/2026-10-24-rootfs-apps-3-lifecycle.md, -4-console-and-docs.md) and describe intent only. |
| + |
| +You are the independent census reviewer (the code was written by Claude models). Paul no longer rules on census units: you decide every class. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings R1-R11 (spec), and the build rulings in the plans' amendment sections: unknown non-empty runtime is fixed and inert; Task 12 (carlos run on rootfs) cut; Task 13 placement immutability; Task 15 rollback floor at the console with a hand-run box refusal only. |
| + |
| +## What to check |
| + |
| +1. For every unit and envelope on the card: approve or reject per AGENTS.md step 4. Reject if the change lets root open, run, query or follow anything it did not before, from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment root relies on; if a new unit's disposition is wrong for its reads; if a quiet unit is not really quiet; or if the diff cannot settle it. |
| +2. The `internal/hostops` envelope: Task 5a's fleet owner classifier (`internal/hostops/fleetowner_classifier.go`, routed in `mutation_classifier.go`). It admits only a create-only Put of `accounts/<acct>/fleets/<fleet>.json` naming its own account and fleet. Confirm no other key or op reaches it, and that it loosens nothing. |
| +3. The rootfs box surfaces root reads: `internal/host` (rootfs placement, fleet owner check, system apply's hand-run floor refusal), `internal/activator` (rootfs starts, resident lease watch, swaps), `internal/registry` (runtime column guards, SetPlacement/Upsert), and `internal/provision` (WriteRecord runtimeFixed beside main's checkKindUnchanged). Data a box agent or tenant writes must never steer root. |
| +4. The 10 record-write re-pins: is each one only a guard or refusal added before or inside an existing write, as the card says? Does any change a write's target, kind or class? |
| + |
| +## 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 still checks 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 |
| + |
| +First a table with one row per unit, envelope and record-write re-pin: unit, class/disposition, verdict (APPROVE/REJECT), lines read. Then findings ranked P1, P2, P3, each with the problem, evidence (file:line, verified), failure scenario, fix and fault family. End with exactly one verdict: |
| + |
| +- **READY**: every unit approved, no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another round. |
| +- **NOT READY**: one or more P1s or rejected units, listed. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-branch.md| new file mode 100644 |
| index 000000000..9278d05b5 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-branch.md |
| @@ -0,0 +1,35 @@ |
| +# Review brief: whole branch rootfs-apps-3-lifecycle, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-lifecycle`, commit 78fd0d8a8cdcb6c21791d5418b9e8418cdac61a2. |
| +Under review: the diff `origin/main...78fd0d8a8cdcb6c21791d5418b9e8418cdac61a2` (merge base bf55f29e, 202 files): rootfs apps Plan 3 Group A (lifecycle: runtime column predicates, Record.Runtime, reconcile, readers, cmd environment, swaps/holds/planned wakes, start placement and wake bound, residency, declared-but-unrun processes, move refusals, the rollback floor) and Plan 4's console first slice (single-tenant setting, where a rootfs instance may run, instance create mints rootfs records, first rootfs ship refused while binary instances exist, fleet owner record). It ships as platform v0.29.0 to dev first, then serves a Rails 8 app on a dev fleet box. |
| +Authorities on main: docs/superpowers/specs/2026-10-24-rootfs-apps-design.md (rev 5), docs/superpowers/plans/2026-10-24-rootfs-apps-0-index.md, AGENTS.md ("Stopping rules"). Intent on the branch: docs/superpowers/plans/2026-10-24-rootfs-apps-3-lifecycle.md (Group A, its Invariants INV-1..7) and -4-console-and-docs.md ("First-slice amendments (preflight 2026-10-27)" overrides task text). Every task was reviewed on its own; this review looks at what crosses tasks. |
| + |
| +You are an independent reviewer (the code was written by Claude models). Read the diff, then the code it names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings R1-R11 (spec). Build rulings, recorded in the plans' amendment sections and commit messages: unknown non-empty runtime is fixed and inert; layout never applies to a row with a runtime (activator.LayoutExempt asked first); every binary launch asks the runtime first (refuseRuntimeBinaryLaunch); installProcLocked is the single resident install point and installs the lease watch; Task 12 (carlos run on rootfs, --version) CUT, so rootfs runs stay refused; moves and `apps place` refuse rootfs (by established app kind; SetPlacement refuses runtime rows; Upsert keeps a runtime row's region and hibernation unless the tenant changed); the rollback floor is v0.29.0, judged at the console before any activation reservation, with the override in the reservation's identity and a box-side refusal on a hand-run `carlos system apply` only; Group R (release process) and Group W (workers) come later, and apps migrate in their own web command meanwhile; Plan 4 Task 4 cut. |
| +- Per-task findings already resolved, in each task's commits. Raise one again only with new evidence. |
| + |
| +## What to check |
| + |
| +1. Cross-task invariants INV-1..7 (Plan 3 plan, "Invariants"), end to end: from a rootfs record minted by the console (Plan 4 Task 3) through reconcile (Task 4), the registry row, the box's placement and fleet owner checks (Plan 2, Plan 4 Task 5a), start, swap, hold, planned wake, residency and stop. Can any path start, stop, delete or launch anything without its proof or outside its row's account, app or host; let a rootfs row take a binary path; change a binary row's behaviour; record a refusal as a build failure; or let an unknown runtime admit anything? |
| +2. WriteRecord now has two guards, runtimeFixed (this branch) and main's checkKindUnchanged. Check their interplay and order on create, rewrite, tombstone and write-back, including JSON key aliases of protected fields. |
| +3. The first-kind boundary across ship and create (Plan 4 Tasks 3 and 5: firstKindRecheck under the record writers' lockApp, the ship slot's lockApp with strict record and pending-allocation counts, the recovery backstop) together with Plan 1's EstablishedKind and the kind marker: can an app end up with records of both kinds? |
| +4. The rollback floor: the console judges the channel's current pointer, not each box's installed version. A systemd-started apply gets no box refusal, and the pointer carries a signed allow_below_rootfs_floor that boxes do not read. Is there a realistic path to a box with rootfs instances running a release below v0.29.0 without an explicit operator override? (The ruling accepts a box lagging its channel.) |
| +5. Binary rows, static sites and existing apps: does anything on this branch change their behaviour, their wakes, swaps, moves or create door, beyond the reads the per-task reviews accepted? |
| +6. Mixed versions: a v0.29.0 console with older boxes, and v0.29.0 boxes with an older console. Do older boxes ignore rootfs rows safely? Can an older console write anything a v0.29.0 box misreads? |
| + |
| +## 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. |
| +- **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 area, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and its fault family (the invariant or trust boundary it breaks). End with exactly one verdict: READY / READY AFTER FIXES / NOT READY. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |