plans: P1b-3b review brief, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+27
−0
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P1B3B-R1.md+27 −0
diff --git a/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P1B3B-R1.md b/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P1B3B-R1.md| new file mode 100644 |
| index 000000000..bc5b8df49 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P1B3B-R1.md |
| @@ -0,0 +1,27 @@ |
| +# Review brief: region HA P1b-3b plan (duties, departure scan, SQS consumer), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `region-ha-p1b3b-plan`, plan commit bc7eeb04. |
| + |
| +**Under review:** `docs/superpowers/plans/2026-11-03-region-ha-p1b3b-duties.md`, rev 1 (Astra draft). Slice T (Tasks B1-B5) is the priority: P3a's admission latch depends on its consumer start/cancel acknowledgment. Slice S (B6 native sidecars) and 5B: review for soundness, flag what forces T to change. |
| + |
| +**Authorities**, on main (now c6304f2d): |
| +- `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (rev 6.1, §19 finish line); |
| +- `docs/superpowers/plans/2026-11-01-region-ha-p1b3-placement.md`, its "P1b-3b outline" and Task 5B, which carry Opus R1/R2 review history; |
| +- the P3 plan's needs from 3b: `git show origin/region-ha-p3-group:docs/superpowers/plans/2026-11-01-region-ha-p3-group.md` (line ~27 and the "Termination-start latch / I3,A1" row); |
| +- the code at main. You are an independent reviewer: check every claim and file:line against the code. |
| + |
| +## Fixed: do not re-argue |
| +- N-HA9 (no takeover before the dead owner's lock expires; storage fencing is separate), N-HA11 (one SQS consumer on the existing EC2 termination queue, ~180 receives/hour/box, view-age fallback, no new S3 polling), N-HA12, N-HA14. No duty-file transfer (cut in spec rev 6). |
| +- AGENTS.md stopping rules. S3 requests cost money. |
| + |
| +## What to check |
| +1. **I3 duty coverage.** Is every durable duty (timers, next_due, wake state, sidecars) of a terminated box delivered exactly by one adoptHost path, with only the unsynced final ~1 s lost and no pre-expiry take (N-HA9)? Scanner death, duplicate delivery, redelivery, lost events and partial scans. |
| +2. **Evidence before scan / scan before deletion.** Can an event, a missing file or a dial failure ever be taken as termination? Can edges/lock state be deleted before every match is imported? |
| +3. **The start acknowledgment.** Is the interface provider-neutral, honest (empty queue allowed; construction failure not "started"), independent of any drain producer, and exactly what P3a's TerminationStarted fact needs? |
| +4. **One writer (I1/I2).** Does adoptHost or the duty gate ever start a tenant, restore a DB or grant authority outside lease.AcquireHA? |
| +5. **Home placement.** On 2026-11-03 P1b-3a was found to refuse the empty home placement (fixed in c6304f2d). Every identity/scope comparison in this plan must treat the empty placement (CARLOS_REGION unset, records region "") as a real scope; the drill must not need CARLOS_REGION changed. |
| +6. **Budget.** Exact S3/SQS/EC2 counts per event, pass and quiet; no new per-box S3 polling. |
| +7. **Testability.** Production-wired witnesses (not fixtures only), simulation I6 mutations, root-runner needs, census notes. |
| + |
| +## Output |
| +Findings P1 (invariant violation or unbuildable), P2 (must fix before build), P3 (cheap improvements), each with file:line and the invariant. Verdict READY | READY AFTER FIXES | NOT READY. Write to `docs/superpowers/plans/REVIEW-REGION-HA-P1B3B-R1.md` and commit it on the branch ("plans: P1b-3b Opus review round 1 (<verdict>)", trailer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>). Do not edit the plan. Do not push. |