P1a plan review brief, round 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+45
−0
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md+45 −0
CI failed — run details
diff --git a/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md| new file mode 100644 |
| index 000000000..eec789b9a |
| --- /dev/null |
| +++ b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md |
| @@ -0,0 +1,45 @@ |
| +# Review brief: region HA P1a implementation plan, round 2 of 3 |
| + |
| +Repo carlos/platform, branch `design-region-ha-no-claims`, the commit named in the reviewer's prompt. |
| +Under review: `docs/superpowers/plans/2026-10-26-region-ha-p1a-first-slice.md`. |
| +Authorities: the code on this branch (origin/main at ddf3b929) and the APPROVED spec `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` rev 6 on this branch (approved by Paul 2026-10-26; the spec has had its three review rounds and is not under review). Do not review against other unmerged branches; if the plan needs one, say so as a P1 and stop. |
| + |
| +You are an independent reviewer. Read the plan, then the code it names, and check every claim against that code. You may build and run targeted tests (`nice -n 19 go test ./internal/<pkg>/ -run X`); leave GOCACHE unset; do not run full suites. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- The spec's rulings (§2.1, H1 to N-HA6) and its approved design. Report only plan steps that fail to implement it, or spec text the plan cannot implement as written. |
| +- The plan's "Spec gaps" section records choices the author made where the spec was silent; challenge one only if it breaks an invariant (I1 single writer, I2 no stale serving). |
| + |
| +## What to check |
| + |
| +1. Each task compiles against the real code: signatures, packages, file:line anchors, and the Interfaces blocks agree across tasks. |
| +2. I1: no path in Tasks 5-10, 13, 14 lets a second box, or a restarted agent, acquire or write a host while another may run it (the acquire table, `;ha=1`, marker takeover CAS, owed-marker retry, same-box cgroup proof). |
| +3. I2: the keep decision is the only reuse path; restores land in a clean tree; migration publishes a baseline only from a provably current, unique copy. |
| +4. P0 deletions (Tasks 1-4) remove nothing a claims-off box still uses, and the root-run census rows are complete. |
| +5. The slice can switch on per host on dev's two IE boxes alone, and Task 18's drills prove what it claims; nothing touches dev before Paul's go. |
| +6. Tests: each [own review] task's tests would fail without its code; the simulation's mutation checks would catch a broken invariant. |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: `docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r1.md`. The plan carries a disposition table. |
| + |
| +First give one line per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved or partly resolved finding forward at its current severity, then add new findings. The verdict covers everything outstanding, earlier rounds included. Note: rev 2 makes HA-on sticky per host (plan spec gap 8): every box applies the HA acquire and keep rules to an HA-on host whatever CARLOS_REGION_HA says, and the switch only gates new migrations. Check that this is safe and consistent; it is the rollback model. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks the build. |
| +- **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 task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (its fault family). End with exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are 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. |