carlos / platform Public

Regional domains (#447): Astra brief Tasks 4+5 round 2 (scoped to ruling 7 fix)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 10a8db2a8ff275c264d373fbc69bb4f574d2b2dd parent 27b5fec
1 file changed, +62 −0
  • docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T4T5-R2.md +62 −0
diff --git a/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T4T5-R2.md b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T4T5-R2.md
new file mode 100644
index 000000000..55db7103d
--- /dev/null
+++ b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T4T5-R2.md
@@ -0,0 +1,62 @@
+# Review brief: regional domains (#447) Tasks 4+5, round 2 of 3 (scoped re-review)
+
+Repo carlos/platform, branch `regional-domains-447`, commit: this brief's commit.
+Under review: the fix diff `a44a4cff..27b5fec2` (fix round 1). Context: the
+round 1 brief `CODEX-REVIEW-BRIEF-T4T5-R1.md` and findings
+`CODEX-FINDINGS-T4T5-R1.md` in `docs/superpowers/reviews/regional-domains-447/`
+(NOT READY: P1 partial regional row write, covering routes; P2-1 wildcard
+certificate parent on an unread pass; P2-2 §10.5 recovery bound). The fix
+report is the last section of
+`.superpowers/sdd/2026-10-28-regional-domains-447/task-5-report.md`.
+
+Read AGENTS.md "Stopping rules" first. This is round 2 of at most 3.
+
+## Fixed: do not re-argue
+
+Paul's rulings 1-7. Ruling 7 (2026-10-29): each regional claim's apex and
+`*.X` rows are written in one SQLite transaction, local and remote registry,
+so a failure writes neither; a box with neither row is in §10.5's accepted
+"has not derived the claim" class (including a box that read the claim but
+could not save it). Do not raise that class itself. Census tests red until
+Task 13: not a finding.
+
+## What to check
+
+First give one line per round 1 finding (P1, P2-1, P2-2): resolved, partly,
+or not. Then report only new P1/P2 findings in the fix diff, or in existing
+behaviour the fix changes:
+1. Is `ReplaceRegionalSet` really atomic on the local SQLite path and on the
+ remote registry RPC path (one request, one transaction on the serving
+ side)? Is it the table's only writer? Any reader that can observe half a
+ set?
+2. Does `writeRegional` keep a claim's previous rows exactly on a failed set
+ write, and delete a claim's rows only as a set?
+3. Does the guard test (pair or nothing, under randomized fault injection)
+ check the property for every read regional claim, and would it fail for a
+ per-row writer? Does the hand-route witness go through production wiring
+ with a restart?
+4. P2-1: the retained wildcard parent keeps tenancy and the per-box cap.
+5. The §7.2 and §10.5 (rev 5.1) spec text matches the code.
+
+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.
+- **P3**: clarity or polish. Follow-up list only.
+
+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).