reviews: round 1 briefs for rootfs-apps-3-release (whole branch, census)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-release-R1.md+20 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-release-branch-R1.md+30 −0
CI passed — run details
Intent
<task-notification> <task-id>b2doonwyj</task-id> <tool-use-id>toolu_01HdF92N4pzhVkPa1nMM6vZZ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/fc618670-579d-4b96-a3b9-686b6c074952/tasks/b2doonwyj.output</output-file> <status>completed</status> <summary>Background command "Wait until the app serves again after reboot" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>aece2f0eae5dad8de</task-id> <tool-use-id>toolu_01W8v5X3GSCWMzP1fMyCuZ54</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/fc618670-579d-4b96-a3b9-686b6c074952/tasks/aece2f0eae5dad8de.output</output-file> <status>completed</status> <summary>Agent "Implement Group R task R3" 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>Fix round 1 for findings 1 and 2 is DONE, committed as **2b551efc** on rootfs-apps-3-release (on top of R2's fix 03313767). Not pushed, and I left the lock file alone. **Finding 3 dropped, as you asked.** I had started the hold-phase work, and I took it out before committing: `swap.go`, `scheduler.go` and R2's two phase test files are exactly as in 03313767. Nothing in this commit relies on the Phase/Advance machinery, so removing it later won't touch this round. **Finding 1 (planned wake):** a release that ran now counts as B having run, whatever happens to the web: `w.bootRan = released || …`. A passed release followed by a refused web ends as GenCancelled with Executed, so a hold first wake leaves the hold-ran marker. Binary rows behave as before. **Finding 2 (hold):** a release that ran now records attempt evidence only (new `pinWebExec` field, `markPinReleaseExec`). `holdResult` and `wakeFailureEvent` treat a pinned error as the build's failure only for a `*ReleaseError`, or when the web ran or may have. So a web error before its exec abandons the hold with Executed=true: the marker is kept, no failure is recorded, and the member is not told "wake failed". A web that ran and failed is still SwapDown. **Tests:** - `TestPlannedReleaseCountsWhenTheWebIsRefused` (hold and overlap). - `TestHoldWebErrorBeforeExecIsNotABuildFailure`. - `TestAPlannedHoldReleaseThenRefusedWebKeepsTheMarker`, through the real planner, the on-disk failure book and `OnGen`: the marker is set and the next wake is refused, never booted on v1. Its control row (the old Executed=false) shows the bug, booting v1. - A new row in `TestReleaseOutcomesThroughTheScheduler` for a web refused after the release ran. All 6 mutations (F1 to F6) were caught by real test failures. F5 and F6 first failed only on an unused variable, so I re-ran both as behavioural mutations. **Checks, all passing:** - the guards, the activator families and the whole rollout package; - `-race` three times over both new test sets; - arm64 under qemu: 127 passed in the activator set with none skipped or failed, and the rollout package passed; - vet, gofmt, and the darwin and windows builds. The `internal/instancectl` diff is empty. No new test skipped locally. **One thing for the Phase removal:** the `plan.BeforeWeb` block in `spawnPlanned`, including its `w.bootRan = released` line, goes with that machinery. The finding 1 fix is on the web-start result line, outside the block, so it survives. The fix report is appended to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3r/.superpowers/sdd/2026-10-27-rootfs-apps-3-rw/task-R3-report.md`.</result> <usage><subagent_tokens>495098</subagent_tokens><tool_uses>25</tool_uses><duration_ms>4343273</duration_ms></usage> </task-notification>
<task-notification> <task-id>a778af18d3421c374</task-id> <tool-use-id>toolu_0159hzgvJG67DyScqDkdhMsQ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/fc618670-579d-4b96-a3b9-686b6c074952/tasks/a778af18d3421c374.output</output-file> <status>completed</status> <summary>Agent "Group R gate implementer" 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>DONE: Group R gate steps 1 to 7 pass. The census proposal is committed and needs one cross-model approval. I approved nothing and changed no R1 to R3 behaviour. - Commits, not pushed: merge 03c67c8b (origin/main ee066183, no conflicts, main's chain line first, ours last); d9785f36 `plan3: group R landed`; 4ea4367e census proposal. - Group W is not on main, so the workers are untouched. The instancectl diff is empty. - Build, vet, gofmt and the darwin, windows and linux/arm64 builds are clean. activator, rollout, rolloutwords and status pass. The race list and the guards plus the seven R invariants pass, as do the ops test and the root copy and plan3 tests ("R" landed). - Census card: body 10, sites 6, reads 1 (startPinnedChecked), new 15 (ReleaseEnv x2, StartRelease x2, startRootfsCmd, rootfsReleaseVars, committedGood, releaseAdmitLocked, releaseAppLog, releaseBeforeSwap, releaseInWake, runRelease, releaseDue, releaseRan, spawnPlannedRelease). removed 0, other 0. 4 envelopes. `go test ./internal/provision -run Census` passes after the propose. - TestPlan9B8RecordWriteCensus passes with main's inventory: no record-write site changed or added, so no new layer. The card has two hand sections (record-write, envelope-only changes); a census-propose re-run drops them. - Files: docs/superpowers/notes/census-proposal-rootfs-apps-3-release.md, docs/superpowers/notes/census-rootfs-apps-3-release-claims.md, internal/provision/testdata/plan14-root-reads-rootfs-apps-3-release.tsv. - Skipped on x86_64, to confirm on arm64 CI: the six named harness tests, plus TestReleaseThroughTheHarnessService and TestReleaseThroughTheProductionBackend. Five other skips also skip on main. - Report: .superpowers/sdd/2026-10-27-rootfs-apps-3-rw/task-Rgate-report.md</result> <usage><subagent_tokens>148445</subagent_tokens><tool_uses>55</tool_uses><duration_ms>954159</duration_ms></usage> </task-notification>
Attributed to this commit: 14.0 g CO₂e (1,735,496 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-apps-3-release, 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-census-rootfs-apps-3-release-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-release-R1.md| new file mode 100644 |
| index 000000000..a992f1d71 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-release-R1.md |
| @@ -0,0 +1,20 @@ |
| +# Review brief: census for branch rootfs-apps-3-release, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-release`, commit 4ea4367e55d7774d43f899d635286e0e78a56e8f. |
| +Under review: the census card `docs/superpowers/notes/census-proposal-rootfs-apps-3-release.md` (32 units: 10 body, 6 sites, 1 reads, 15 new; 4 envelopes; no record-write site changed), its overlay `internal/provision/testdata/plan14-root-reads-rootfs-apps-3-release.tsv`, the claims `docs/superpowers/notes/census-rootfs-apps-3-release-claims.md`, and the card's hand sections. Read them against the diff `origin/main...4ea4367e55d7774d43f899d635286e0e78a56e8f` (merge base ee066183) on the amadan.net remote. |
| +Authorities: AGENTS.md "The census: the reviewer decides" and "Stopping rules"; the rootfs spec §5.2.1 and the Plan 3 Group R text on main. The branch is Plan 3 Group R (the release process). |
| + |
| +You are the independent census reviewer (the code was written by Claude models). You decide every class. |
| + |
| +## What to check |
| +1. For every unit and envelope: approve or reject per AGENTS.md. 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; or if the diff cannot settle it. |
| +2. The release's launch: startRootfsCmd, StartRelease, ReleaseEnv, rootfsReleaseVars. The command must come from the staged manifest root resolved (the new image's), never tenant config; the environment is rootfsLaunchEnv(composed vars) only; the unit is the rootfs cmd template's in the instance's slice and tier. Data a box agent or tenant writes must never steer root. |
| +3. The record-write census: confirm no record-write site changed (TestPlan9B8RecordWriteCensus passes with main's inventory). |
| + |
| +## Severity |
| +P1 blocks merge; P2 fixed without another round; P3 follow-up. A P1 states its failure scenario and evidence (file:line). |
| + |
| +## Output |
| +First a table with one row per unit and envelope: unit, class/disposition, verdict (APPROVE/REJECT), lines read. Then findings ranked P1, P2, P3. End with exactly one verdict: READY (every unit approved, no P1, no P2) / READY AFTER FIXES / NOT READY. |
| + |
| +Do not edit files. Do not spawn reviewers or subagents. Do not run the full test suites. |
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-release-branch-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-release-branch-R1.md| new file mode 100644 |
| index 000000000..fbf10983f |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-release-branch-R1.md |
| @@ -0,0 +1,30 @@ |
| +# Review brief: whole branch rootfs-apps-3-release (Plan 3 Group R), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-release`, commit 4ea4367e55d7774d43f899d635286e0e78a56e8f. |
| +Under review: the diff `origin/main...4ea4367e55d7774d43f899d635286e0e78a56e8f` on the amadan.net remote (merge base ee066183): rootfs apps Plan 3 Group R, the release process. A rootfs app's declared `release` command (migrations) runs from the new image, in the rootfs cmd unit inside the instance's slice and tier, before the new web serves: before an overlap swap is admitted (R2) and inside a wake (R3), with one per-host release record that outlives the entry (R1). It ships as v0.29.1 to dev, then runs a Rails app's `bin/rails db:migrate` on a dev fleet box. |
| +Authorities on main: docs/superpowers/specs/2026-10-24-rootfs-apps-design.md §5.2 and §5.2.1, docs/superpowers/plans/2026-10-24-rootfs-apps-3-lifecycle.md (Group R, its invariants, Review Focus 2, 6, 7, 11), AGENTS.md "Stopping rules". Preflight rulings: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3r/.superpowers/sdd/2026-10-27-rootfs-apps-3-rw/preflight-R.md. Every task was reviewed on its own (R1 READY in round 2, R2 READY in round 3, R3 READY in round 2); 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) and Group A's rulings (merged as 7de0f081). |
| +- Controller rulings in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3r/.superpowers/sdd/2026-10-27-rootfs-apps-3-rw/progress.md (lines starting "Ruling:"), in particular: no root-side kill of the release unit (R0.2); no new version floor (R0.10); the release shares the instance's memory tier under overlap (R0.11); only the release's own errors are excluded from the resident's failure count (R1c); **stopping rule 2: an interrupted rootfs adoption or first wake recovers as a binary one does (a failure on restart, explicit retry, the retry re-runs the release).** |
| +- Per-task findings already resolved in their commits. Raise one again only with new evidence. |
| + |
| +## What to check |
| +1. C8 / INV-R5 end to end: the new web never serves unless THIS release passed for THIS build in THIS attempt, across overlap swaps, holds, planned wakes, cold wakes and resident starts; a failed, timed-out, cancelled or unproven release never stops the old web under overlap. |
| +2. C7 and the record (Review Focus 6, 11): across R1-R3 together, can any path (lease loss, failed wake, abandoned swap, Shutdown, agent restart, fence, move, purge, layout pass) give the lease back, start anything, or let another box acquire while a release unit may still write the database? |
| +3. Classification across the tasks: only a proven *ReleaseError is a build failure anywhere (scheduler, holdResult, verdictOf, wake failure events, resident accounting); release execution evidence is never lost (hold-ran marker). |
| +4. Binary rows, static sites and existing rootfs apps without a release: unchanged (INV-6 goldens, the rollout package as on main except the reason words). |
| +5. Mixed versions: a v0.29.0 box with this console and the reverse; a rootfs release with a `release` process on a box without Group R (the docs keep db:prepare in web until every box runs R). |
| + |
| +## 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; a follow-up list, never another round. |
| +A P1 states its failure scenario and evidence (file:line). Do not raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| +Findings ranked P1, P2, P3, each with area, problem, evidence (file:line, verified), failure scenario, fix and fault family. End with exactly one verdict: READY / READY AFTER FIXES / NOT READY. |
| + |
| +Do not edit files. Do not spawn reviewers or subagents. Do not run the full test suites. |