Regional domains (#447): Astra review brief for Tasks 2+3, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+80
−0
docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T2T3-R1.md+80 −0
Intent
Attributed to this commit: 2.71 g CO₂e (361,940 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/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T2T3-R1.md b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T2T3-R1.md| new file mode 100644 |
| index 000000000..04a01baa1 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/regional-domains-447/CODEX-REVIEW-BRIEF-T2T3-R1.md |
| @@ -0,0 +1,80 @@ |
| +# Review brief: regional domains (#447) Tasks 2+3 (claim shape, writer rules, team scope, instance-create recheck), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `regional-domains-447`, commit 0c3f6d5c. |
| +Under review: the diff `fb65398a..0c3f6d5c` (Task 2 commit 89a8104b, |
| +internal/domains; Task 3 commit 0c3f6d5c, internal/console). |
| +Authorities: the design `docs/superpowers/specs/2026-10-28-regional-domains-447-design.md` |
| +(rev 5; §6.1, §6.3, §6.4, §2 rulings 1-6) and the task text in |
| +`docs/superpowers/plans/2026-10-28-regional-domains-447.md` (Task 2 and Task 3) |
| +as amended by the controller rulings in |
| +`.superpowers/sdd/2026-10-28-regional-domains-447/progress.md` ("Pre-flight scan" |
| +block). The implementers' reports: `.superpowers/sdd/2026-10-28-regional-domains-447/task-2-report.md` |
| +and `task-3-report.md`. Do not review against other unmerged branches. |
| + |
| +You are an independent reviewer. This task touches a security gate (who may |
| +write a claim, tenancy of bindings, team credential scope), so it gets its own |
| +review. Read AGENTS.md "Stopping rules" first; they bind you. |
| + |
| +## Fixed: do not re-argue |
| + |
| +Paul's rulings 1-6 (spec §2). In particular ruling 6: a regional claim's |
| +wildcard and catch-all capabilities are fixed at creation; changes are refused; |
| +changing them means detach and recreate. Report only mechanisms that fail to |
| +honour them. The census tests (TestPlan14RootReadCensus, the record-write |
| +census) are expected to fail until Task 13: not a finding. |
| + |
| +## What to check |
| + |
| +1. Claim shape (`internal/domains/claims.go`): `Placements`, `Regional()`, |
| + `ValidPlacements`; schema 2 only when regional and valid; a schema-1 body |
| + with placements refused; above 2 refused; every converge round-trips the |
| + list. Does a reader on main's rule skip a schema-2 body? |
| +2. The reader audit (Task 2's commit message lists 31 files): does any reader |
| + that predates the change misuse `Route` or ignore `Placements` in a way that |
| + serves, publishes or derives an ordinary alias for a regional claim? |
| +3. Writer rules: `SetClaimPlacements` (CAS, journaling via the existing |
| + mutation wrapper, schema 2, sorted, unchanged bytes write nothing); |
| + `AttachClaimProven` on a regional claim; `SetClaimPaths`; |
| + `SetClaimCapabilities` (ruling 6: changes refused, same values a no-write); |
| + detach deletes the claim only. |
| +4. Console (Task 3): team scope out of scope for regional claims on every door |
| + (get, list, detach, attach, the placements GET); neutral refusal bytes (a |
| + team or foreign caller learns nothing it could not before); the |
| + instance-create recheck under the host lock BEFORE `BeginAllocation` in both |
| + create paths, so no refused create leaves a pending allocation; lock order |
| + against the lock table in `internal/console/lifetimes.go`. |
| +5. Can any path bind another tenant's instance, keep a foreign owner's |
| + bindings across detach/reacquire, or let a team credential detach or |
| + rewrite a regional claim? |
| +6. Tests: do they go through the real writers and the real console server, and |
| + would each fail if its guard were removed? |
| + |
| +## 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 location, 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. |
| + |
| +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). |