carlos / platform Public

Regional domains (#447): Astra findings Tasks 7+8 R1 (NOT READY, 1 P1 covering routes: stale capability request restores a catch-all above a regional name; work stops per ruling 7)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 04464e34bfe5b679f08b8b86ad863ef94c4bdb78 parent b892cd4
1 file changed, +49 −0
  • docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T7T8-R1.md +49 −0

CI failed — run details

Intent

Attributed to this commit: 39.2 g CO₂e (1,125,634 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-FINDINGS-T7T8-R1.md b/docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T7T8-R1.md
new file mode 100644
index 000000000..0ec6ea282
--- /dev/null
+++ b/docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T7T8-R1.md
@@ -0,0 +1,49 @@
+Reviewed `bd8b6795cf66ddaaf1beb5fa7369783815544732`, Tasks 7+8, round 1 of 3. Found one P1 and two P2s. Evidence below is verified by source inspection. No files changed.
+
+1. **P1 — A stale capability request can restore a catch-all above a regional name.**
+
+ **Location:** [apidomains.go:710](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/apidomains.go:710).
+
+ **Problem and evidence:** The capability door reads the claim at line 675, but takes `regionalMu` and scans descendants only when that earlier read says `Catchall` was false. The subsequent writer independently rereads the claim, applies the requested values, and retries conflicts; it does not require the revision used for the transition check ([claims.go:998](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/domains/claims.go:998)).
+
+ **Failure scenario:**
+ - Request A reads an ordinary parent with `Wildcard=true, Catchall=true`, intending to resend those values. It pauses before the writer.
+ - Request B disables its catch-all.
+ - A PUT creates a regional child. The parent now has `Catchall=false`; if the catch-all had not yet been derived, the edges and heartbeat checks also pass.
+ - A resumes, skips the mutex and scan because its earlier read had `Catchall=true`, and the writer restores `Catchall=true` on the current parent.
+
+ Both claims now coexist despite the explicit prohibition. A box without the regional entry can encounter the ordinary covering route. The existing concurrent tests exercise instance creation, not this capability-disable/re-enable sequence.
+
+ **Fix:** Serialize capability state reads, transition decisions, and writes with the regional PUT, including disabling and apparently unchanged requests. Alternatively, bind the write to the checked revision and repeat admission after conflicts. Add a deterministic test for this sequence.
+
+ **Fault family: covering routes.** This triggers the controller’s stop-and-report rule. No fix or further review round was undertaken.
+
+2. **P2 — The PUT accepts TCP-backed instance targets.**
+
+ **Location:** [apiplacements.go:583](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/apiplacements.go:583).
+
+ **Problem and evidence:** Binding validation checks region, kind, role, and fleet placement, but never checks `Addr` or `Addrs`. An ordinary instance record may validly contain TCP upstreams; `ValidateShape` permits that combination ([provision.go:695](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/provision/provision.go:695)).
+
+ **Failure scenario:** A valid record with `Kind="instance"`, the requested region, and `Addr="127.0.0.1:8080"` passes the PUT. Its route has no derived socket, so `RegionalTarget` rejects it and the placement cannot serve. The downstream gate fails closed, but the admission door accepts a target the brief explicitly requires it to refuse.
+
+ **Fix:** Reject records with nonempty `AddrsOrDefault()` using the existing neutral target-refusal response. Cover both legacy `Addr` and `Addrs` in the target-refusal test.
+
+ **Fault family:** regional target eligibility.
+
+3. **P2 — Resending only an unchanged `catchall:true` incorrectly returns 422.**
+
+ **Location:** [apiplacements.go:352](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/apiplacements.go:352).
+
+ **Problem and evidence:** Before reading the existing claim, the handler treats an omitted `wildcard` as false and rejects `catchall:true`. Its later update logic correctly treats omitted capabilities as unchanged, but this request never reaches it.
+
+ **Failure scenario:** An existing regional claim has both capabilities enabled. A PUT containing its unchanged placements and `"catchall":true`, with `wildcard` omitted, returns `ErrCatchallNeedsWildcard` instead of accepting the unchanged value without writes, audit, or serial bump. W14 tests both true fields together and misses this partial-body case.
+
+ **Fix:** Apply creation defaults when creating a claim; on updates, evaluate omitted fields against the stored capabilities. Add the unchanged catch-all-only request to W14.
+
+ **Fault family:** fixed-capability update semantics.
+
+No P3 findings. The reported plan-cap ordering and parent-ownership precheck are justified by neutral-refusal requirements.
+
+The targeted console test command could not start: the read-only sandbox denied creation of Go’s temporary build directory. `GOCACHE` remained unset; no full suites or mutation checks were run. Census failures and the Task 9 response view were excluded as instructed.
+
+**NOT READY**
\ No newline at end of file