HA P1a #433: review brief, round 1 (code + census)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+30
−0
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-ha-p1a-433-R1.md+30 −0
CI passed — run details
diff --git a/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-ha-p1a-433-R1.md b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-ha-p1a-433-R1.md| new file mode 100644 |
| index 000000000..ca15574ae |
| --- /dev/null |
| +++ b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-ha-p1a-433-R1.md |
| @@ -0,0 +1,30 @@ |
| +# Review brief: HA P1a #433 fixes and the shared-pool token (code + census), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `ha-p1a-dev-pair-433`, the commit named in the reviewer's prompt. |
| +Under review: the diff `fc30b421..<that commit>` (code, tests) AND its census proposal (`docs/superpowers/notes/census-proposal-ha-p1a-433.md`, overlay `internal/provision/testdata/plan14-root-reads-ha-p1a-433.tsv`, claims `docs/superpowers/notes/census-ha-p1a-433-claims.md`). |
| +Authorities: main's code; the approved spec `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (rev 6.1); AGENTS.md "The census: the reviewer decides". Problem statement: amadan discussion #433. |
| + |
| +You are the independent reviewer (Astra; the author is Claude) for both the code and the census. You decide every census class. |
| + |
| +## Fixed: do not re-argue |
| +- Paul's rulings: fix #433; add a reserved token so a box can serve the shared pool plus a named pool (dev HA pair "hapair" on two IE dev boxes, ordinary instances stay one-box). |
| + |
| +## What to check |
| +1. Root peer check (`internal/instancectl/peer_edge.go`, `peer_linux.go`): the re-read of systemd's MainPID on a mismatch accepts ONLY a peer whose pid equals the fresh MainPID; nothing wider; rate limit sound; no TOCTOU that lets another process in. |
| +2. Agent startup sweep retry (`internal/host/layoutleg.go` `startActivator`): bounded; strictly before recovery and any wake; never a sweep after wakes may start; unswept fallback unchanged. |
| +3. Registry read-only column tolerance (`Registry.readCols`, `List`, `Get`): root reads every migration-added column as its default when absent; the agent's read-write path unchanged; no SQL built from untrusted input. |
| +4. `provision.ParseBoxPools` and `@shared`: one parser for both call sites; `@shared` can never be a pool name; a typo can never widen a box to the shared pool; serves_shared_pool consistent. |
| +5. Census: for every unit and envelope on the card, a verdict citing the lines read; reject if root can now open, run, query or follow anything new from a path or input a tenant, an app or a box agent can create, write or name, or if a check root relies on is weakened. |
| + |
| +## Severity |
| +- **P1**: unsafe (for root, single writer, or tenancy), would not compile, a test fails, or it would not work. Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity. Follow-up list only. |
| + |
| +## Output |
| +Findings ranked P1, P2, P3 (area, problem, evidence file:line, failure scenario, fix, fault family), then the census table (unit, class, APPROVE/REJECT, lines read). End with exactly one verdict: |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1; listed P2s 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. Leave GOCACHE unset. |