reviews: P2a whole-branch review brief, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+46
−0
docs/superpowers/reviews/REVIEW-BRIEF-region-ha-p2a-branch.md+46 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-region-ha-p2a-branch.md b/docs/superpowers/reviews/REVIEW-BRIEF-region-ha-p2a-branch.md| new file mode 100644 |
| index 000000000..0fb4183d0 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-region-ha-p2a-branch.md |
| @@ -0,0 +1,46 @@ |
| +# Review brief: region HA P2a branch (console DNS ingress guidance and HA create, move and import refusals), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `region-ha-p2-console`, commit a991263c589aa9d31ec7e43c37309fa918eae664. |
| +Under review: the diff `b0b4164a..a991263c` (b0b4164a is the merge of main into the branch; the four task commits follow it: 08e3f9d8 Task 1, bf1a0da8 Task 2, a7668cd5 Task 3, a991263c Task 4). |
| +Authorities: `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (rev 6.1, merged), the plan `docs/superpowers/plans/2026-11-01-region-ha-p2-console.md` rev 4 (its review is closed), AGENTS.md, and Paul's rulings N-HA1 to N-HA13 on discussion #421 (`amadan discuss show carlos/platform 421`). Do not review against unmerged branches (P1b-3a on region-ha-p1b3-placement is not an input). |
| + |
| +You are an independent reviewer. Read the plan's Tasks 1-4, Global constraints and Review focus, then the diff, and check every claim against the code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- N-HA13: the HA display is cut from P2a. Main's HA display, rollout, health, retry and deploy watch are unchanged on purpose. |
| +- F4 dropped: standalone sidecars and first-domain static creates keep main's behaviour in HA regions. |
| +- Static records are exempt from the new active-HA-region move refusal (not from an immutable `rec.HA` flag or other rails). |
| +- Non-home and pooled HA data creates get F5/409 for G3. |
| +- Copy: every new user-facing string comes verbatim from the Luna pass in `.superpowers/sdd/2026-11-01-region-ha-p2a/copy-final.md` (approved by delegation). Report wording only if a string is factually wrong or breaks the no-em-dash rule. |
| +- F1 (non-hibernating binary socket refusal) is not reachable over HTTP today because the create API has no hibernate field; it is defence in depth, tested at the predicate and by a source-ordering guard. Accepted in Task 2's review. |
| +- Controller rulings and deferred P3s are in `.superpowers/sdd/2026-11-01-region-ha-p2a/progress.md`. Triage the deferred minors: say which, if any, must be fixed before merge. |
| + |
| +## What to check |
| + |
| +1. Ingress never widens proxy trust (`trustsProxy`, `authcli.go` EdgeIPs) and never advertises HA group member addresses through domain guidance, the domain list/detail/settings sinks or the placements door in configured mode. CONSOLE_REGION_INGRESS parsing fails startup on any invalid entry and never falls back to member addresses. |
| +2. Placements door: 409/I6 for configured HA regional or single-mode HA targets, no `placements`/member payload or readiness verdict; 503/I7 only for actual read errors, never `ErrNotExist`; PUT checks only the proposed target set and reveals nothing about another owner's pending claim; refusal precedes any claim, index or serial write. |
| +3. Creates: F1, F5, F3, F2 all run after the door's duplicate and read-failure answers and before any record, lifetime, claim, env, store-grant, provision, serial, index or staging write. The whole-prefix proof is one bounded LIST (limit 1) and only a fixed class leaves the server. Non-HA and sidecar callers keep both original leftover prefixes. |
| +4. Moves, place and imports: `haTransferRegion` order (immutable flag, no-op, static, source, destination); every initiation door refuses before writes; already-started operations can still finish or clean up; `placeAppTarget` skips SetRecordRegion only for proven no-ops present in the preflight, so the shared CAS still refuses a newly appeared HA record. No change to `provision.SetRecordRegion` or the activator. |
| +5. Security gate order on every touched door: session, CSRF, owner/member byte-identical 404, fresh auth last; no host, bucket, key or box detail before authorization. |
| +6. Witnesses go through production wiring (`NewServer`, real router and store wrappers), not a re-implemented algorithm, and each gate's omission fails a test (AGENTS.md "production-wired witnesses"). |
| +7. Request budget (C6): no new box polling; console reads are request-driven and bounded. |
| +8. Cross-compile: nothing Linux-only in packages the CLI links. |
| + |
| +## 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. |
| + |
| +Do not edit files. Do not spawn reviewers or subagents of your own. Do not run the full test suites. |