carlos / platform Public

Regional domains (#447): Astra brief Tasks 7+8 round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev bd8b6795cf66ddaaf1beb5fa7369783815544732 parent cdf906a
1 file changed, +86 −0
  • docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T7T8-R1.md +86 −0
diff --git a/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T7T8-R1.md b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T7T8-R1.md
new file mode 100644
index 000000000..89cc271cc
--- /dev/null
+++ b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T7T8-R1.md
@@ -0,0 +1,86 @@
+# Review brief: regional domains (#447) Tasks 7+8 (placements PUT, reverse doors, interleavings, fixed capabilities), round 1 of 3
+
+Repo carlos/platform, branch `regional-domains-447`, commit: this brief's commit.
+Under review:
+- Task 7, commit 63f904b2 (diff `782a301d..63f904b2`): the placements PUT door.
+- Task 8, commit 0cd1abde (diff `e856dc31..0cd1abde`): reverse doors (capability
+ door, instance catch-all door, instance create), interleavings (W11) and fixed
+ capabilities (W14).
+Authorities: `docs/superpowers/specs/2026-10-28-regional-domains-447-design.md`
+(rev 5.2; §2 rulings 1-7, §6.2, §6.3, §6.7, §10.3, §11, §13 W5, W7 barrier
+half, W11, W14); the task text in
+`docs/superpowers/plans/2026-10-28-regional-domains-447.md` (Tasks 7, 8) as
+amended by the controller rulings in
+`.superpowers/sdd/2026-10-28-regional-domains-447/progress.md`. Reports:
+`.superpowers/sdd/2026-10-28-regional-domains-447/task-7-report.md` and
+`task-8-report.md` (each lists its departures from the brief; judge them).
+
+You are an independent reviewer. This change is a security gate: who may make
+a domain regional, what it may bind, and when the platform admits it. Read
+AGENTS.md "Stopping rules" first; they bind you.
+
+## Fixed: do not re-argue
+
+Paul's rulings 1-7 (spec §2), among them: never-served (no live conversion;
+verified ordinary claims refused), overlap with ordinary catch-alls refused in
+both directions, capabilities fixed at creation (ruling 6), the PUT refuses
+while `PendingForHost(host, "")` > 0 under the host lock, `aliases_read`
+missing or false is incomplete evidence, the release floor barrier (ruling 2).
+The stale-box / old-binary limit (§10.5) is accepted. Census tests red until
+Task 13: not a finding. The regional GET view and CLI write are Task 9.
+
+## What to check
+
+1. The PUT's order and every refusal: gate, person-only, temporary/control
+ plane, platform hostnames, plan cap, claim state (none / own pending /
+ takeable pending / own regional; every verified ordinary claim refused),
+ proof of control on create, tenancy and region of every target (unknown
+ and foreign targets give identical bytes), collision (one complete
+ snapshot, no owner exemption, apex and star, declared instance records),
+ overlap, never-served evidence (edges files and heartbeat alias rows),
+ pending allocations, the barrier (floor, incomplete evidence, no fresh
+ box), the CAS write. Can any request bind another tenant's instance, a
+ replica, fleet, static, sidecar or TCP target, or convert a name that has
+ served as an ordinary alias?
+2. Reverse doors: can an ordinary catch-all be created above a regional name,
+ or a regional name under one, through any console door, including
+ instance catch-alls and instance create? Incomplete evidence refuses?
+3. Interleavings: is every race between the PUT and instance create, the
+ capability door and the catch-all doors closed by the locks the code
+ holds (lock order against `internal/console/lifetimes.go`'s lock table;
+ `regionalMu`), including a failed record write then recovery?
+4. Fixed capabilities: refused at every writer; same-values accepted with no
+ write, no serial bump, no audit.
+5. Neutral refusal bytes: does any new answer tell a caller who holds a name,
+ or that a regional name exists under a parent it does not hold?
+6. Request budget (§11): one edges read and one heartbeat load per PUT
+ shared by every check; the record walk's cost as stated.
+7. Tests: real console server and real writers; would each fail with its
+ guard removed (the reports list mutation checks)?
+
+Say explicitly when a finding is in the "covering routes" family.
+
+## 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 with location, problem, evidence
+(file:line, verified), failure scenario, fix, and fault family. End with
+exactly one verdict: **READY**, **READY AFTER FIXES** (no P1; listed P2s fixed
+without another round), or **NOT READY** (P1s listed).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your
+own. Do not run the full test suites (targeted `go test -run` is fine; leave
+GOCACHE unset).