reviews: whole-branch and census briefs for rootfs-apps-3-workers (round 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+52
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-workers-R1.md+20 −0docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-workers-branch-R1.md+32 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-workers-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-workers-R1.md| new file mode 100644 |
| index 000000000..f87dae471 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rootfs-apps-3-workers-R1.md |
| @@ -0,0 +1,20 @@ |
| +# Review brief: census for branch rootfs-apps-3-workers, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-workers`, commit b7953789ad94140dea4c07ed3642d416e4a0e72a, worktree /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3w. |
| +Under review: the census card `docs/superpowers/notes/census-proposal-rootfs-apps-3-workers.md` (9 changed units, 20 new, 1 reads, 1 removed (rootfsProcessesHook); 4 envelopes re-pinned: internal/activator, internal/rollout, internal/rolloutwords, internal/status), its overlay `internal/provision/testdata/plan14-root-reads-rootfs-apps-3-workers.tsv`, the claims `docs/superpowers/notes/census-rootfs-apps-3-workers-claims.md` (written by the gate agent from W's diff; check it), and the card's hand sections. Read them against the diff `origin/main...b7953789ad94140dea4c07ed3642d416e4a0e72a` (merge base cca7c9c3). |
| +Authorities: AGENTS.md "The census: the reviewer decides" and "Stopping rules"; the rootfs spec §5.2.1, §5.4 and the Plan 3 Group W text on main. The branch is Plan 3 Group W (workers). |
| + |
| +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 worker's launch: LaunchRootfsWorker, prepareWorker, writeRootfsWorkerLaunch, rootfsWorkerVars and the worker unit names/paths. The process must come from the staged manifest of the generation's build (never the live link or tenant config); the environment is rootfsLaunchEnv(composed vars) only; the memory limit is the generation's tier; worker names are validated (release.ValidWorkerName) before they reach any path or unit name; no internal/instancectl change. |
| +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-workers-branch-R1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-workers-branch-R1.md| new file mode 100644 |
| index 000000000..279b722c3 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-3-workers-branch-R1.md |
| @@ -0,0 +1,32 @@ |
| +# Review brief: whole branch rootfs-apps-3-workers (Plan 3 Group W), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-apps-3-workers`, commit b7953789ad94140dea4c07ed3642d416e4a0e72a, worktree /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3w. |
| +Under review: the diff `origin/main...b7953789ad94140dea4c07ed3642d416e4a0e72a` (merge base cca7c9c3): rootfs apps Plan 3 Group W, workers. A rootfs app's declared worker processes (up to 4) run beside its web under its lease, are restarted with the co-spawn backoff when they exit, never take web down, stop first and are proven gone before the lease goes, stop at once at lease loss, are handed over in an overlap swap (old set proven gone before the new is registered), and are reported per host in the rollout report. |
| +Authorities on main: docs/superpowers/specs/2026-10-24-rootfs-apps-design.md §5.2, §5.2.1, §5.4, §5.6; docs/superpowers/plans/2026-10-24-rootfs-apps-3-lifecycle.md (Group W, its invariants and Review Focus); AGENTS.md "Stopping rules". Preflight rulings: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3w/.superpowers/sdd/2026-10-28-rootfs-apps-3-workers/preflight-W.md. Task briefs and reports in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3w/.superpowers/sdd/2026-10-28-rootfs-apps-3-workers. Every security task was reviewed on its own (W1 over W1a+W1b: three rounds, READY AFTER FIXES in round 3, P2s applied in 01eb5532; W2: READY in round 2); W3 had no per-task review (AGENTS.md rule 3). This review looks at what crosses tasks, and at W1's round-3 P2 fix diff (a8ea6162..01eb5532), which changed termination behaviour after its last review. |
| + |
| +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. Read-only. |
| + |
| +## Fixed: do not re-argue |
| +- Paul's rulings R1-R11 (spec), Group A's rulings (7de0f081), Group R's (5e6ed964). |
| +- **Paul's ruling 2026-10-28 (stopping rule 2 on W1, C7 in two rounds): no worker is launched anywhere except from the 2 s tick on an awake entry whose lease watch is present, through workerGate. doWake and swap step 8 only register workers as pending. Cost accepted: up to ~2 s with no workers after a wake or an overlap swap.** |
| +- Controller rulings in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3w/.superpowers/sdd/2026-10-28-rootfs-apps-3-workers/progress.md (lines starting "Ruling:" and "Paul"), e.g. C09's status for a signal death is 128 + signal; no root kill for a worker; the 82 s headroom gate before a worker start. |
| +- Per-task findings already resolved in their commits. Raise one again only with new evidence. |
| + |
| +## What to check |
| +1. C7 end to end: across W1-W3, can any path (lease loss, failed wake, abandoned or second swap, config attempt, hold swap, Shutdown, agent restart, fence, move, purge, layout pass, release record) give the lease back or let another box acquire while a worker of this instance may still run, or start a worker without its gate? |
| +2. Never two sets and the W1.17 listener rule, across the tick restart, the handover and the stop: one handle per name at a time, a log socket never reused while an earlier handle may unlink it. |
| +3. INV-2 and strays: no worker's files, stray entry or pin dropped before its proof; a pending (never-started) declaration needs none; strays retried by the sweep and Shutdown; no unbounded growth. |
| +4. Web is never taken down by a worker path; binary rows, static sites and rootfs apps without workers unchanged (INV-6 goldens; the rollout report adds no `workers` key for them). |
| +5. Mixed versions: a box on v0.30.x (Group R, no W) receiving a release that declares workers; this box with an older console; the rollout report's new `workers` field read by an older CLI. |
| +6. Nothing slow under a.mu. |
| + |
| +## 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. |