Regional domains (#447): Astra findings Task 10 round 1 (NOT READY, 1 P1: claim creation races the floor judgment through publication)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+32
−0
docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T10-R1.md+32 −0
Intent
Attributed to this commit: 36.4 g CO₂e (756,553 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-T10-R1.md b/docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T10-R1.md| new file mode 100644 |
| index 000000000..d89f37b8b |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/regional-domains-447/CODEX-FINDINGS-T10-R1.md |
| @@ -0,0 +1,32 @@ |
| +Reviewed Task 10, diff `f7f3a00c..962d3193`, at worktree HEAD `142d1528`. Round 1 of 3. No files changed. |
| + |
| +**P1 — Claim creation can invalidate the floor decision before publication** |
| + |
| +**Location:** [hostactivation.go:245](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/hostactivation.go:245), with the initial decision at [regionalfloor.go:57](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/regionalfloor.go:57). |
| + |
| +**Problem and verified evidence:** The regional judge allows a downgrade when its listing contains no regional claims. That decision is not protected through publication. Claim creation holds `regionalMu`, but promotion and rollback do not participate in that exclusion. A held rollback checks the signed override flags and immediately publishes at `hostactivation.go:248`, bypassing the regional judge entirely. Publication conditionally writes only the system pointer’s ETag at [systempublication.go:38](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/release/systempublication.go:38); creating a claim does not change that ETag. |
| + |
| +**Failure scenario:** |
| + |
| +1. Stable runs `v0.31.0`, with `v0.30.2` in history and no regional claims. |
| +2. Rollback without either override reserves its publication, but the pointer write fails before committing. |
| +3. A member creates a regional claim. Boxes still run `v0.31.0`, so the heartbeat barrier at [apiplacements.go:599](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/internal/console/apiplacements.go:599) permits it. |
| +4. Retrying rollback with both flags false publishes the held `v0.30.2` pointer. Stable crosses below the floor while a regional claim exists, without an explicit override. |
| + |
| +A fresh promotion or rollback has the same failure if claim creation completes between the claims listing and pointer publication. |
| + |
| +This exceeds the rootfs floor’s accepted shape: its predicate depends on the pointer snapshot, which the ETag protects. Regional claim existence can change independently while that snapshot remains unchanged. The implementer’s concern is therefore a real bypass of ruling 2. |
| + |
| +**Fix:** Coordinate claim creation with downgrade judgment through publication, and rejudge unpublished held rollbacks under that coordination. Preserve idempotent responses for publications already committed. Add deterministic tests for both claim insertion after judgment and claim creation between failed rollback publication and retry; merely adding another listing leaves a race. |
| + |
| +**Fault family:** Regional-claim existence must remain valid through the downgrade’s conditional pointer write. |
| + |
| +**P2:** None. |
| + |
| +**P3:** None. |
| + |
| +The remaining wiring is consistent: both judges share the initial pointer snapshot; unread claims count as regional; listing errors stop publication; true overrides are signed and included in reservation identity; `omitempty` preserves the previous false-override digest; boxes do not consult the new field. Fresh-path listing counts match §11. |
| + |
| +Targeted console and release tests could not start because the read-only sandbox prevented Go from creating its work directory. `GOCACHE` remained unset. The finding above is verified by source tracing, not an executed reproduction. |
| + |
| +NOT READY |
| \ No newline at end of file |