Regional domains (#447): Astra review brief for spec rev 4, round 4 (final, narrow)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+102
−0
docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R4.md+102 −0
CI passed — run details
Intent
Attributed to this commit: 2.70 g CO₂e (355,004 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on regional-domains-447, 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/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R4.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R4.md| new file mode 100644 |
| index 000000000..98af25bf1 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R4.md |
| @@ -0,0 +1,102 @@ |
| +# Review brief: regional custom-domain placements (#447) spec rev 4, round 4 (final, narrow) |
| + |
| +Repo carlos/platform, branch `regional-domains-447`, commit f809b79e (the spec); |
| +this brief is committed on top of it. |
| +Under review: **only the diff `1db58695..f809b79e`** of |
| +`docs/superpowers/specs/2026-10-28-regional-domains-447-design.md` (rev 3 to |
| +rev 4; every changed passage is marked "(rev 4)" and the header lists the |
| +sections). Read the rest of the spec for context only. |
| +Authorities: the code on this branch (main plus documents; no runtime code yet). |
| +Do not review against unmerged branches. |
| + |
| +You are an independent reviewer. Read AGENTS.md "Stopping rules" first: they |
| +bind you. **This is the final design round, approved by Paul as a narrow |
| +fourth round. There will be no fifth.** A P1 stops the work. |
| + |
| +## Scope: only these |
| + |
| +1. Ruling 5 (a): the heartbeat states whether its alias read succeeded |
| + (`aliases_read`); a failed or missing read is incomplete evidence at the |
| + PUT and the GET (spec §6.2, §8, §10.3, W13). |
| +2. Ruling 5 (b): a regional row beats a real route at its own key, apex and |
| + star alike; Reload gives a deny entry and logs it (§7.3, §7.4, §6.7, §10.5, |
| + W1 leg (i)); `carlos add` refuses a host a regional claim holds when it can |
| + read the claim (§7.3, W12). |
| +3. The fixes for round 3's four P2s (`CODEX-FINDINGS-regional-domains-447-R3.md`): |
| + P2-1 declared instance ownership and create/admission serialisation (§6.2, |
| + §6.3, W5, W11); P2-2 `heldElsewhere` removed and the budget recounted |
| + (§6.2, §11); P2-3 the W1 path-map mutation; P2-4 the `*.X` check for a |
| + two-label apex (§6.7, W5). |
| + |
| +Do not raise findings on anything outside the rev 4 diff unless a rev 4 |
| +change breaks it; then cite the change. |
| + |
| +## Fixed: do not re-argue |
| + |
| +Paul's rulings 1-5 (spec §2; amadan discussion #447). Ruling 4 accepted the |
| +stale-box / old-binary gap as a stated limit (§10.5); do not raise it. You may |
| +judge whether a case rev 4 places under that limit belongs there (for example |
| +§10.5's bucket-unreadable class), with evidence. |
| + |
| +## What to check |
| + |
| +1. Does `aliases_read` exist end to end as specified (`internal/host/agent.go` |
| + status tick, `internal/status` CollectBox and heartbeat JSON), and does a |
| + missing field (old binary) read as incomplete? Is placing the refusal in the |
| + barrier after the floor test (so an old box gets the 409 naming it) sound? |
| +2. With the regional deny over a real route at the same key, can any request |
| + for a regional apex or `*.<apex>` child still reach an unmarked upstream on a |
| + current binary? Does the deny break anything rev 3 relied on (the target's |
| + own route, platform hosts, ACME, certificates)? |
| +3. `carlos add`: does `deploymentReadSeam` exist and return the store the spec |
| + says; is proceeding on an unreadable claim safe given the Reload deny? |
| +4. P2-1: is `provision.RecordHostDeclared` (a walk of every account's record |
| + keys) implementable from existing listing code, and is its cost stated |
| + honestly in §11? Do the lock changes (PUT always holds `lockAppHost`; |
| + instance create rechecks under the host lock; `createRecordMarked` takes |
| + `lockHostname`) close the race without a lock-order inversion |
| + (`internal/console/lifetimes.go` lock table)? |
| +5. P2-2, P2-3, P2-4 as stated in round 3. |
| + |
| +## Round 4 |
| + |
| +Earlier rounds: R1 `docs/superpowers/reviews/OPUS-REVIEW-regional-domains-447-R1.md` |
| +(Opus, NOT READY); R2 `docs/superpowers/specs/CODEX-FINDINGS-regional-domains-447-R2.md` |
| +(NOT READY, 4 P1, stopping rule 2, ruling 4); R3 |
| +`docs/superpowers/specs/CODEX-FINDINGS-regional-domains-447-R3.md` (NOT READY, |
| +2 P1, 4 P2, ruling 5). |
| + |
| +First give one line per P1 and P2 from round 3: resolved, partly, or not. |
| +Carry every unresolved or partly resolved finding forward at its current |
| +severity, then add new findings within scope. The verdict covers everything |
| +outstanding. |
| + |
| +## 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, 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. Also say whether they share one |
| + cause, and whether refusing the case up front or cutting a feature (name it) |
| + 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. |