Regional domains (#447): Astra review brief for spec rev 3, round 3 of 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+132
−0
docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R3.md+132 −0
CI passed — run details
Intent
Attributed to this commit: 2.65 g CO₂e (349,715 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-R3.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R3.md| new file mode 100644 |
| index 000000000..4d5f6d720 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-regional-domains-447-R3.md |
| @@ -0,0 +1,132 @@ |
| +# Review brief: regional custom-domain placements (#447) spec rev 3, round 3 of 3 |
| + |
| +Repo carlos/platform, branch `regional-domains-447`, commit 7d830bea (the spec); |
| +this brief is committed on top of it. origin/main is merged into the branch |
| +(c6a5ba51). |
| +Under review: `docs/superpowers/specs/2026-10-28-regional-domains-447-design.md` |
| +(rev 3). |
| +Authorities: the code on this branch, which is main plus documents only. No |
| +runtime code has changed yet. Do not review against unmerged branches (in |
| +particular not `custom-domain-placements-447`); if this work needs one, say so |
| +as a P1 and stop. |
| + |
| +You are an independent reviewer. Read the document, then the code it names, |
| +and check every claim against that code. Read AGENTS.md "Stopping rules" |
| +first: they bind you. **This is the last design round.** A P1 here stops the |
| +work; there will be no round 4 without Paul. |
| + |
| +## Fixed: do not re-argue |
| + |
| +Paul's rulings, recorded on amadan discussion #447 and in spec §2. Report only |
| +mechanisms that fail to honour them. |
| + |
| +1. The stable per-region address is each box's EIP as published in its edges |
| + file. The placements GET reports, per region, the EIPs of the boxes that |
| + actually serve the bound target. |
| +2. Old binaries are kept out by a release floor modelled on the rootfs floor |
| + (`internal/console/rootfsfloor.go`, `rootfsReadyRefusal` in |
| + `internal/console/rootfs.go`). |
| +3. Scope is the platform capability only; the #447 consumer's migration is a |
| + later, separate go. Do not raise its absence. |
| +4. (2026-10-29, after round 2 stopped on stopping rule 2) Option A plus two |
| + local fixes: |
| + - no live conversion: regional mode only for a domain that has never served |
| + as an ordinary alias; |
| + - overlap with ordinary catch-alls refused in both directions; |
| + - regional entries carry no path map; |
| + - Reload rechecks each target with the derivation's own test; |
| + - **the stale-box / old-binary gap is a stated limit, accepted by Paul** |
| + (spec §10.5). Do not raise it as a finding. You may judge whether a case |
| + the spec places under that limit really belongs there (for example the |
| + root `carlos add '*.<parent>'` hand route in §6.7): if it does not, say |
| + why, with evidence. |
| + |
| +Also fixed: simplification is wanted. A cut listed in spec §4 is not a finding |
| +unless the core invariant or a security boundary needs what was cut; then say |
| +which and why (file:line). |
| + |
| +## The core invariant |
| + |
| +A regional name is never served from, or backhauled to, another region, |
| +including after a restart, an unreadable claim, or a rollback (spec §1), within |
| +the limit of §10.5. |
| + |
| +## What to check |
| + |
| +1. **Ruling 4 mechanisms.** Do §6.2 (who may write regional mode: no claim, a |
| + pending claim, the caller's own regional claim; every verified ordinary |
| + claim refused) and its edges-file and heartbeat evidence actually make |
| + "never served as an ordinary alias" hold? Do the heartbeat fields it relies |
| + on exist and carry what the spec says (every alias row a box holds)? Is |
| + proof of control still enforced on the create path? Does any first-route |
| + branch keyed on an empty `Route` become reachable? |
| +2. **Overlap (§6.7).** Is "covers" right for `lookupIn` (`internal/edge/edge.go`) |
| + and `lookupHome` (`internal/edge/homemap.go`)? Is every writer that can |
| + create an ordinary catch-all above a regional name, or a regional name under |
| + one, refused, with incomplete evidence refusing? Instance catch-alls, claim |
| + capabilities, attach with wildcard plus catch-all, instance create, browser |
| + doors. |
| +3. **No path map and the gate (§7.3).** With `paths = nil` and the early return |
| + in `lookupUpstreamPath`, can any request for a regional name reach an |
| + upstream without the regional marker, or any arm that leaves the box, |
| + before `regionalGate`? Include login re-resolution, upgrades, signed hops |
| + with prefixes, the asset cache. |
| +4. **Shared predicate (§7.2, §7.3).** Is `release.RegionalTarget` applied to the |
| + same route snapshot `Reload` builds from, so a replaced, foreign-owned, |
| + tunnel-backed, fleet-placed, replica or other-region target gives a deny |
| + entry? Any import cycle? |
| +5. **R2 P2s.** The collision check (no owner exemption, one complete snapshot, |
| + incomplete evidence refuses) and the request budget (§11): verify both |
| + against the helpers in `internal/edgesfile/fold.go` and |
| + `internal/domains/claimcache.go`. |
| +6. **Floor and barrier (§10).** Unchanged in substance from rev 2, which round 2 |
| + did not fault; check only what rev 3 changed. |
| +7. **Witnesses (§13).** Can W1 (with its new prefix and hop-with-prefix legs) |
| + and W10 detect the faults they target, through production wiring? |
| +8. **Build order (§15).** Is each step buildable on the previous ones? |
| + |
| +## Round 3 |
| + |
| +Earlier rounds: |
| +- Round 1: the independent Opus read of rev 1, |
| + `docs/superpowers/reviews/OPUS-REVIEW-regional-domains-447-R1.md` (NOT READY, |
| + 2 P1, 7 P2, 8 P3). |
| +- Round 2: Astra on rev 2, |
| + `docs/superpowers/specs/CODEX-FINDINGS-regional-domains-447-R2.md` (NOT READY, |
| + 4 P1, 2 P2, 1 P3). Stopping rule 2 triggered; Paul's ruling 4 followed. |
| + |
| +First give one line per P1 and P2 from round 2: 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, |
| +earlier rounds included. |
| + |
| +## 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 (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. Since this is round 3, also say |
| + 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. |