carlos / platform Public

Regional domains (#447): the floor comment says old readers skip the claim; instance create's S3 lock is 52

Whole-branch R1 P3: RegionalDomainsFloor's comment said a box below the
floor serves a regional claim as an ordinary alias. Schema 2 is what
prevents that: older readers refuse the claim (pinned by
TestTodaysReaderRuleSkipsSchema2), and the barrier creates a regional
claim only when every box and followed channel is at the floor.

CI: TestPerfWriteRoutesMeetTheBudget's instance-create lock goes from 51
to 52 (controller ruling). The extra request is the regional recheck's
claim read under the record lock (Task 3, spec §6.3), named in the lock
table's notes and its sequential-request count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 0aae96091aa4b325d9312068d098be69e063c200 parent 95d6630
2 files changed, +18 −5
  • internal/console/perfwrites_test.go +7 −1
  • internal/release/layoutintent.go +11 −4
diff --git a/internal/console/perfwrites_test.go b/internal/console/perfwrites_test.go
index bb9e4ae8f..fc706b6f8 100644
--- a/internal/console/perfwrites_test.go
+++ b/internal/console/perfwrites_test.go
@@ -318,10 +318,16 @@ type perfWriteLimit struct {
// (the version's manifest and the pipeline are read at once).
// - config put (10, about 320 ms) and instances-manifest put (6, about
// 195 ms): unchanged, every request a write or the read its CAS needs.
+//
+// Regional domains (#447, 2026-10-29) raised instance create from 51 to 52:
+// the regional recheck (Task 3, spec §6.3) reads the new hostname's claim
+// once more under the record lock and the hostname exclusion, so a regional
+// domain written since the door's first check refuses the create. About
+// 580 ms, inside the door's budget.
func perfWriteLimits() map[string]perfWriteLimit {
return map[string]perfWriteLimit{
"ship": {Calls: 32, Budget: perfWriteBudget},
- "instance create": {Calls: 51, Budget: 700 * time.Millisecond, Over: "23 requests one after another: the manifest, the host holder (record then slot), the channel head (pointer then manifest), the plan cap's listings, then under the record lock the app's tombstone, this key's record and slot, every other app's, three writes in the lifetime protocol's order, the change index and the serial"},
+ "instance create": {Calls: 52, Budget: 700 * time.Millisecond, Over: "24 requests one after another: the manifest, the host holder (record then slot), the channel head (pointer then manifest), the plan cap's listings, then under the record lock the regional recheck's claim read (#447), the app's tombstone, this key's record and slot, every other app's, three writes in the lifetime protocol's order, the change index and the serial"},
"app create": {Calls: 50, Budget: perfWriteBudget},
"promote": {Calls: 18, Budget: 600 * time.Millisecond, Over: "the signed promote's own reads and writes, one after another, inside release.PromoteOnLadder: on flagship 470 ms before this branch, one read fewer after it"},
"config put": {Calls: 10, Budget: perfWriteBudget},
diff --git a/internal/release/layoutintent.go b/internal/release/layoutintent.go
index f25611d67..1e40aa652 100644
--- a/internal/release/layoutintent.go
+++ b/internal/release/layoutintent.go
@@ -247,10 +247,17 @@ var RootfsLifecycleFloor = SemVer{Major: 0, Minor: 29, Patch: 0}
var TeamEnvironmentFloor = SemVer{Major: 0, Minor: 30, Patch: 0}
// RegionalDomainsFloor is the first platform release that reads a regional
-// custom-domain claim (#447): a box below it serves such a claim as an
-// ordinary alias of its route, so the placements GET counts a box toward a
-// regional claim's readiness only at or above it (console/apiplacements.go,
-// boxAtRegionalFloor). Single-mode claims ignore it. The latest tag at the
+// custom-domain claim (#447). A box below it skips the claim entirely: a
+// regional claim is stamped schema 2, and every older reader refuses a
+// schema above 1 (TestTodaysReaderRuleSkipsSchema2 pins that), so the box
+// serves nothing for the name rather than an ordinary alias of its route.
+// Hence the barrier: the placements PUT creates a regional claim only when
+// every fresh box and every followed system channel is at or above the
+// floor (console/apiplacements.go, regionalReadyRefusal), the placements
+// GET counts a box toward a region's readiness only at or above it
+// (boxAtRegionalFloor), and while a regional claim exists a channel is not
+// moved below it without the override (console/regionalfloor.go).
+// Single-mode claims ignore it. The latest tag at the
// time of writing is v0.30.3 and no v0.31.x exists, so this names the next
// minor: the first release cut from a main that contains regional domains
// MUST be v0.31.0, and no release without it may be numbered v0.31.0 or