carlos / platform Public

C2 review brief, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 038beb9592cc833dcd06d83929d9e3384d38a268 parent 1a2e87a
1 file changed, +35 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rebase-c2.md +35 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>adb26e432a86a6f7c</task-id> <tool-use-id>toolu_0111fRLvnCon76aB2Q2qvHp6</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/3cfbfd3d-6105-4ba1-a4a5-b83cf07f69a7/tasks/adb26e432a86a6f7c.output</output-file> <status>completed</status> <summary>Agent "Build C2: census re-base to root code" 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>The census re-base (C2) is built on `census-rebase-c2`: the census now covers only code root runs. The tip is `1a2e87a9` and CI passed on it with no flakes. It is not merged and no review has been requested. All six amadan tasks (775–780) are Done. **Scope.** Root's verbs come from the units in `internal/host/units` with no `User=` and no `DynamicUser=`: `adopt` and its three modes, `instance-control`, and `system apply`, `guard-exec`, `floor-allows-prev` and `join`. I added the verbs user_data runs as root at boot by hand: `bootstrap`, `system install-channel` and `system host-env`. J4's graph walks from these for linux only, plus `init` code. Files under `infra/` stay in scope; `scripts/` drops out. **Counts.** | | Before | After | |---|---|---| | Units | 4,135 | 2,269 | | Envelopes | 145 | 106 | | Frozen declarations | 2,331 | 749 | | J4 rows checked | all | 1,395 (268 reported as out of scope) | **Old chain.** The old base, its overlays (119 with main's two latest) and their manifest moved to `testdata/archive`. J4 and a new migration test still read them, which checks every base row byte for byte. The new seal is `4dabdc10`. After merging main, its 69-file console branch left the base unchanged. **Proofs, on fixture trees through the real scanner:** (a) console, template and agent-only edits pass; (b) a root unit's changed reads, a new root unit and a unit-file edit all fail; (c) a read moved into a root path fails as a decision; (d) a deletion passes through R0's path. **Runtime, warm cache:** census 5.2 s → 7.5 s; J4 4.0 s → 8.5 s; both together 6.6 s → 8.5 s. **For Paul, three choices I made inside ruling 2:** - Envelopes now hash only the code root reaches in a directory, not whole files. - There is a new approval class, `left`, for code root stops reaching. - The edge's request path stays in scope only because a claim wrapper in `instance-control` calls the HTTP handler interface; it drops out when that wrapper is deleted. AGENTS.md now points the census reviewer at the review template and the round budget.</result> <usage><subagent_tokens>364567</subagent_tokens><tool_uses>6</tool_uses><duration_ms>218072</duration_ms></usage> </task-notification>

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rebase-c2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rebase-c2.md
new file mode 100644
index 000000000..a0d73aa02
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-rebase-c2.md
@@ -0,0 +1,35 @@
+# Review brief: census re-base C2 (branch census-rebase-c2), round 1 of 3
+
+Repo carlos/platform, branch `census-rebase-c2`, commit 1a2e87a9ffa80c1124857a168d0332c2defba5d1.
+Under review: the diff `ed03ca7ddc4567b07bb6caf6e5b5eca1f2937f1e..1a2e87a9ffa80c1124857a168d0332c2defba5d1`.
+Authorities: AGENTS.md on main ("The census", "Stopping rules"); the census tests in internal/provision on main; R0 (merged 6bead9d).
+
+You are an independent reviewer. Read the diff, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's ruling 2 on amadan #280 (2026-10-25) and his go on #404 (2026-10-26): the census covers only code ROOT runs; agent-only, console-only and template edits stop needing census cards; root code keeps the independent reviewer; the old overlay chain is archived behind one new base with a new seal. Paul has said there are far too many needless census approvals. Report only mechanisms that fail to honour the ruling or let a root-read change through unreviewed.
+- Claim code stays in the tree (deletion has stopped as a project).
+
+## What to check
+
+1. Scope: are root's entry points complete? The author derives them from internal/host/units with no User= and no DynamicUser= (adopt and its three modes, instance-control, system apply, guard-exec, floor-allows-prev, join) and adds by hand the verbs user_data runs as root at boot (bootstrap, system install-channel, system host-env). Is any root-run code missed: other units, timers, ExecStartPre/Post lines, scripts root runs, infra user_data, cron, anything run via sudo or systemd-run, code root reaches through interface dispatch or callbacks? A missed entry point is a P1.
+2. The graph: J4's reference graph walked for linux only, plus init code. Can a root-reachable function be missed (build tags, function values stored in structs or maps, reflection, plugin registries, goroutines started in init)? Is the scan still conservative in the direction that matters?
+3. The three choices made inside ruling 2: (a) envelopes now hash only the code root reaches in a directory, not whole files; can a change that root reaches slip past? (b) the new approval class for code root stops reaching: can it be abused to move a read out of scope while keeping it reachable? (c) the edge request path stays in scope only through a claim wrapper in instance-control: correct, and what happens when the wrapper goes?
+4. Migration: the new base is generated from the effective inventory filtered to scope, dispositions unchanged, checked row by row by a migration test; the old base, 119 overlays and manifest archived under testdata/archive and still read by J4 and the migration test. Is any disposition lost or weakened? Does the seal chain stay append-only from here?
+5. The four proofs on fixture trees through the real scanner: (a) console, template and agent-only edits pass; (b) a root unit's changed reads, a new root unit and a unit-file edit fail; (c) a read moved into a root path fails as a decision; (d) a deletion passes through R0's path. Are they real (would they fail on a regression)?
+6. AGENTS.md's rewritten census section: accurate, complete enough that an agent knows without running the tool whether its change is in scope, consistent with "Stopping rules".
+
+## 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 section, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks. End with exactly one verdict: READY (no P1, no P2), READY AFTER FIXES (no P1; listed P2s fixed without another round), or NOT READY (P1s listed).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites (internal/provision's census tests are fine, under nice -n 19).