carlos / platform Public

region HA P3a: whole-branch review brief, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev c9eb235a1e13f325d10b38c8084c5a3b5daa3b42 parent 2c67ce5
1 file changed, +61 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.md +61 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>bz91ztt6a</task-id> <tool-use-id>toolu_012jZg1qQoQ3wa6xse3ihHsT</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6cb8c43c-d494-478a-8f04-1067486903df/tasks/bz91ztt6a.output</output-file> <status>completed</status> <summary>Background command "W=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3/.superpowers/sdd/2026-11-03-region-ha-p3a; sleep 30; while true; do if [ -s $W/task-census-astra-a.md ]; then cat $W/task-census-astra-a.md; exit 0; fi; if ! pgrep -f "task-census-astra-a.md" &gt;/dev/null; then echo DEAD; tail -c 400 $W/task-census-astra-a.log; exit 1; fi; sleep 60; done" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 8.78 g CO₂e (1,098,361 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p3-group, 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/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.md b/docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.md
new file mode 100644
index 000000000..4173bd88d
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.md
@@ -0,0 +1,61 @@
+# Review brief: region HA P3a branch (whole-branch review + census), round 1 of 3
+
+Repo carlos/platform, branch `region-ha-p3-group`, commit 2c67ce564c7ee7b73e72c9ac72b280a578748f67.
+Under review: the diff `origin/main..2c67ce564c7ee7b73e72c9ac72b280a578748f67` (merge base with main is the latest origin/main merged into the branch).
+Authorities: spec `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (rev 6.1) and plan
+`docs/superpowers/plans/2026-11-01-region-ha-p3-group.md` (rev 3, review closed), both merged or on this branch as
+planning documents; discussion #421 rulings N-HA8 to N-HA17. P1b-3a and P1b-3b T are merged on main.
+
+You are an independent reviewer (Opus; the implementer was Astra). Read the diff, then the code it touches, and check every
+claim against that code. You are also the census reviewer (AGENTS.md "The census"): read
+`docs/superpowers/notes/census-proposal-region-ha-p3a.md` and give a verdict for every unit and envelope it lists, citing
+the lines you read.
+
+## Fixed: do not re-argue
+
+- P3a scope: the controller ruled P3a builds the ingress child module, JSON plan gate, box roles, fixed-box opt-in
+ admission and P3a alarms only. Group ASG, launch template, group IAM, boot, hairpin, the lifecycle-completion adapter,
+ the receipt, the group marker and the maintenance guard are P3b. Rulings: `.superpowers/sdd/2026-11-03-region-ha-p3a/progress.md`.
+- Paul's delegated rulings (2026-11-04, #421): namespace withdrawal for closed boxes was CUT under stopping rule 2;
+ booting publications keep the legacy route and alias rows; a closed box's names stay its own (an exact held entry stops
+ the wildcard fallback, 503 + Retry-After); H4 home election and cold-wake exclusion stay. Do not ask for withdrawal back.
+- N-HA14 (Standby rolls) applies to P3b only. Hairpin cut from P3a.
+- Task reviews already closed (findings files `task-{1,2,3}-review-opus.md` in the ledger directory). Raise a closed
+ finding again only with new evidence. P3 follow-ups listed there are known.
+
+## What to check
+
+1. I4/A1: on an opted-in box no tenant acquire/start/restore/key mint/holder header before admission on any path; health
+ 200 only when admitted and the six conditions hold; Close before shutdown; the four facts from real success
+ (TerminationStarted from hadeparture.Lifecycle.Started).
+2. Switch-off (flagship) boxes: byte-identical edges files, PutMetricData input, restart behaviour, no chronyc, no new reads.
+3. R1/B1: role reader precedence, unknown never Serve, ReadGate backstop, two GETs, no new polling loop.
+4. H4: booting/not-admitted/drain/platform never win home election or a cold-wake choice; the closed box's names never
+ resolve to another account (route, alias, catch-all, wildcard parent); an admitted box's own catch-all still serves.
+5. E1/S1: the JSON plan gate refuses every change touching a fixed identity except target-group attachments, protected
+ EIPs, ASG decreases, unknowns on guarded resources; the ingress module contract; alarms do not name fixed instance ids.
+6. The merge from main: activator doWakeOnce runs both the admission refusal and main's demoWakeRefusal; nothing in
+ main's new code (demo wakes, managed fleets 2a, region HA follow-ups) bypasses the admission gate on an opted-in box.
+7. Cross-compile and provider boundary: internal/groupadmission and internal/boxroles import no AWS SDK.
+8. Copy: user-facing strings match `.superpowers/sdd/2026-11-03-region-ha-p3a/copy-approved.md`; no em/en dashes.
+
+## 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. (The census, and review of any newly changed security,
+ root, termination or production-storage behaviour, still check the fix; see AGENTS.md, "Stopping rules".)
+- **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). Then the census verdict per unit and
+envelope (APPROVE or REJECT with reason). 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 other than your findings file. Do not spawn reviewers or subagents. Do not run the full test suites.