region HA P3b plan: Opus R2 review brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+132
−0
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md+132 −0
CI passed — run details
Intent
Human
<task-notification> <task-id>bxpgtspbo</task-id> <tool-use-id>toolu_01DEXekaHS2e79hEERJiomja</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/bxpgtspbo.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/.cache/tmp/p3b-plan; until [ -f $D/rev2.done ]; do sleep 30; done; cat $D/rev2-report.md; cd /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-plan && git log --oneline -2 && git status --short" completed (exit code 0)</summary> </task-notification>
diff --git a/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md b/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md| new file mode 100644 |
| index 000000000..4843cda58 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3B-R2.md |
| @@ -0,0 +1,132 @@ |
| +# Review brief: region HA P3b plan (group mode), round 2 of 3 |
| + |
| +Repo carlos/platform, branch `region-ha-p3b-plan`. Read the commit named |
| +in your prompt. |
| + |
| +**Under review:** `docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md` |
| +(rev 2, Astra), and the spec edit in commit cac62f37 (§12.1, rev 6.2: |
| +the N-HA14 maintenance exception). Its section "Integration still waiting |
| +on main" is an outline; flag it only where it would force an executable |
| +task to change, or where it hides a dependency an executable task needs. |
| + |
| +**Authorities**, all merged on main at `016599d5` (P3a): |
| +- `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` |
| + (rev 6.1 before this commit); |
| +- `docs/superpowers/plans/2026-11-01-region-ha-p3-group.md` (rev 3, final; |
| + its review is CLOSED at R2, and P3b replaces its outline rows); |
| +- `docs/superpowers/plans/2026-11-03-region-ha-p1b3b-duties.md` (slice T |
| + merged as 9b8b2c50); |
| +- discussion #421, rulings N-HA1 to N-HA17 and the controller rulings made |
| + under Paul's delegation (R7; the P3a namespace-withdrawal cut). An export |
| + is at `/home/paulca/.cache/tmp/d421.txt`; |
| +- the code and infra at `016599d5`. |
| + |
| +**Not on main:** P2b (role writer, drain, platform role door, verified |
| +capacity/readiness observation). Branch `region-ha-p2b-plan` is NOT an |
| +authority. If an executable P3b task depends on P2b or any other unmerged |
| +work, that is a P1 (AGENTS.md stopping rule 4). |
| + |
| +You are an independent reviewer. Read the plan, then the code and tofu it |
| +cites, and check every claim and file:line. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- The spec's rulings; #421's N-HA1 to N-HA17; R7; the P3a cut (a closed box |
| + keeps its names and answers 503 + Retry-After). |
| +- N-HA14: group boxes roll only through an operator-run ASG Standby step, |
| + one at a time, never self-update unattended; the §12.1 exception text is |
| + approved verbatim (check only that the spec edit is that text and nothing |
| + else changed). |
| +- N-HA9 (no early takeover; recovery waits the remaining lease), N-HA11 |
| + (one SQS consumer per box), §9.5 (S3 loss never auto-replaces a live box). |
| +- Finish line G3, end goal G5. AGENTS.md stopping rules. No new per-box |
| + polling. Provider-neutral core; AWS is an adapter. |
| + |
| +## What to check |
| + |
| +1. **Admission before service (A1, §10).** Can a fresh group box serve, |
| + publish names that route to it, take a lease or complete its lifecycle |
| + hook before the full six-condition predicate holds? Task 1's "retain |
| + every name while admission is closed" invariant: is it one rule in one |
| + place, does its guard test cover every name class, and does it avoid the |
| + two P3a P1s (R2-1 a closed box's real routes stop counting so another |
| + account's alias takes them; R2-2 a closed peer's held `*.parent` makes an |
| + admitted box 503 every child of its own catch-all)? Is the rollout gate |
| + (every box on the new reader before any group box opts in) enforced, not |
| + just stated? |
| +2. **Restart authority (T1/I4).** Can any path — self-update, unit repair, |
| + systemd restart, root system-apply, a stale queued request, hook timeout, |
| + ASG health — terminate or replace a box because of a restart, a roll or |
| + an S3/SSM blip? Is the root permit checked in one place before every |
| + restart-capable mutation? Does the Standby transaction recover from an |
| + operator disconnect without auto-exit? |
| +3. **Lifecycle hook and receipt.** ABANDON on failed boot; no Pending |
| + accumulation; duplicate completion suppressed by the receipt without |
| + granting anything else; SDK retries bounded as budgeted. |
| +4. **Hairpin and client address (N1/E1).** Does the own-region redirect |
| + work for agent, tenant and sidecar under client-IP preservation, and is |
| + the "verified public client address" checked where the edge trusts it, |
| + with no trust-proxy expansion and IMDS/egress denial intact? Can a |
| + tenant spoof a client address or reach the redirect for another region? |
| +5. **Infra and IAM (E1/S1/H5).** Least authority for the group role; the |
| + JSON plan gate extended correctly; fixed boxes and the existing EIP |
| + untouched; no instance refresh, AZRebalance suspended; cleanup of |
| + protected disposable EIPs as P3 Task 6 Step 6. |
| +6. **Rule 4 and rule 6.** Does any executable task need P2b or unmerged |
| + code? Is the first slice something Paul can see on dev, with a named |
| + observation, and is there a dated switch-on gate (rule 5)? |
| +7. **Budget and cost.** Every new S3/AWS call path counted with retries; |
| + no new per-box polling; cost lines plausible and sourced. |
| +8. **G2 drill card.** Terminate, hang, hang after first service via direct |
| + backhaul, S3 loss and the T1/I4 restart witness: is each defined with a |
| + measurable pass condition and safe cleanup? |
| +9. **Open decisions D1-D4.** Is anything that cuts user-visible capability |
| + or changes a spec ruling decided silently instead of listed? |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: round 1, `docs/superpowers/plans/REVIEW-REGION-HA-P3B-R1.md` |
| +(Opus, NOT READY: 1 P1, 6 P2, 7 P3). The plan's "Round 1 dispositions" |
| +section answers each. On P1-1, rev 2 cites AWS documentation that Standby |
| +transitions do not invoke lifecycle hooks |
| +(https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html): |
| +verify that quote and that rev 2 stays safe whichever way AWS behaves. |
| + |
| +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, round 1 included. Do not raise new P3s that round 1 did not |
| +raise unless they are cheap and real. |
| + |
| +## 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 section or task, the problem, |
| +the evidence (file:line, verified), the failure scenario, a concrete |
| +fix and the invariant or trust boundary it breaks (that is 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. |
| + |
| +In round 3, a NOT READY also says whether the P1s share one cause, and |
| +whether refusing the case up front or cutting the feature would remove |
| +them. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |