regional-domains-447
Regional custom-domain placements (#447). A member can now serve one verified custom domain, and optionally its one-label catch-all, from a different instance of the same app in each region. Each region serves it from its own instance. A request for the name is never served from another region and never sent to one.
What a member gets
carlos domains placements --app shop --set ie=shop-ie.example.net --set uk=shop-uk.example.net [--wildcard --catchall] example.comcreates a regional domain. The domain must be new: one that has served as an ordinary alias is refused. Its capabilities are fixed when it is created. To change them, detach it and create it again.carlos domains placements --app shop example.comshows, for each region, which instance serves the name, whether it is ready, and the EIPs of the boxes that serve it, to point latency DNS at (ruling 1).GET/PUT /api/cli/apps/{account}/{app}/domains/{host}/placements. The domain list, the per-host GET and the settings page show a regional state that points at the placements view.
How the invariant holds
- Every box derives a
regional_domainsrow for each regional claim it reads. The apex row and the*.Xrow are written in one transaction per claim (ruling 7). A row names the box's bound target only whenrelease.RegionalTargetpasses: same account and app, the box's region, a local socket-backed instance. - The edge's
regionalGateruns before every arm that could leave the box. A regional entry carries no path map. A regional row beats a real route at its own key. Any failure of the target recheck gives a deny (503), never a dial. - Regional names are never published as dial targets. The schema-2 claim is skipped by old readers.
- A release floor (
release.RegionalDomainsFloor= v0.31.0, modelled on the rootfs floor) keeps old binaries out (ruling 2): - while a regional claim exists, a system channel never moves below it without--allow-below-regional-floor; - the floor judgment and the pointer publication run under one mutex; - the PUT refuses unless every fresh box, and every channel fresh boxes follow, is at or above the floor, with completealiases_readevidence. - Ordinary catch-alls and regional names never overlap. Every catch-all-on write decides under
regionalMuon a fresh read and writes against its ETag (ruling 8). Pending allocations and declared instance records block the PUT.
Limits (stated in spec §10.5, accepted by Paul): a box on an old binary, or one that has not successfully derived the claim, falls outside the guarantee until it does. A region-HA pool whose EIP has moved to the load balancer shows no address.
Design and reviews: spec docs/superpowers/specs/2026-10-28-regional-domains-447-design.md (rev 5.3, rulings 1-9), plan docs/superpowers/plans/2026-10-28-regional-domains-447.md.
- Design rounds: R1 Opus NOT READY; R2, R3 and R4 Astra NOT READY, each followed by a ruling from Paul.
- Per-task Astra reviews: T2+T3 (R2 READY), T4+T5 (R2 READY AFTER FIXES), T6, T7+T8 (R2 READY AFTER FIXES), T10 (R2 READY AFTER FIXES). Whole branch: Astra R1 READY AFTER FIXES. P2s fixed.
- Census
census-ruling-regional-domains-447approved by Astra (#280). - Copy: Luna, three passes plus a single-row pass for RD-46, applied verbatim. The copy gate is
approved_regional_domains_copy_test.go.
Release: the first release cut from a main containing this branch must be v0.31.0, the floor. Not merged, not released.
Regional custom-domain placements (#447): one custom domain served by a different instance per region, never backhauled; release floor v0.31.0. Merge-ready, not merged.
Discussions
- No discussions on this branch yet.
Tasks 15/15 done
- T1 Placements GET and CLI read Done
- T2 Regional claim shape and domains writer rules Done
- T3 Console writer rules, team scope, instance-create recheck Done
- T4 RegionalTarget, regional_domains table, derivation, aliases_read Done
- T5 Edge regional entries and regionalGate (W1 + mutation) Done
Activity
- task updated: Finish: merge main, CI green, describe, handoff
- task updated: Whole-branch Astra review
- claude agent, operated by paul@keymail.dev pushed c5a6d537c Regional domains (#447): Astra census round 2 findings (READY)
- claude agent, operated by paul@keymail.dev pushed c2bcfefbf Regional domains (#447): Astra census brief round 2 (scoped to the fix wave)
- claude agent, operated by paul@keymail.dev pushed 5d7290fcc Regional domains (#447): RD-46 approved by Luna and applied verbatim
- claude agent, operated by paul@keymail.dev pushed 009318422 Regional domains (#447): census card names the floor judge as a claim reader; internal/release envelope re-pinned
- claude agent, operated by paul@keymail.dev pushed 0aae96091 Regional domains (#447): the floor comment says old readers skip the claim; instance create's S3 lock is 52
- claude agent, operated by paul@keymail.dev pushed 95d663090 Regional domains (#447): a regional domain's state says regional, and a wildcard keeps its delegation record
- claude agent, operated by paul@keymail.dev pushed 2b020e9d2 Regional domains (#447): published placements examples put the hostname after every flag
- claude agent, operated by paul@keymail.dev pushed e33311b46 Regional domains (#447): Astra census R1 (approve, 1 P2 card text) and whole-branch R1 (READY AFTER FIXES, 3 P2 1 P3) findings
- task updated: T13 Census (root-read and record-write)
- claude agent, operated by paul@keymail.dev pushed 91b222f31 Regional domains (#447): Astra whole-branch review brief, round 1
- claude agent, operated by paul@keymail.dev pushed f7c3e30d9 Regional domains (#447) Task 13: census overlays and card
- claude agent, operated by paul@keymail.dev pushed 3754f33f6 Regional domains (#447) Task 13: record-write census inventory
- claude agent, operated by paul@keymail.dev pushed e41010fbf Regional domains (#447) Task 13: card context names the release and provision changes exactly
- claude agent, operated by paul@keymail.dev pushed f6906c2d9 Regional domains (#447) Task 13: root-read census overlay, card and CLAIMS
- task updated: T11 Copy deck: Luna pass and CLI page
- claude agent, operated by paul@keymail.dev pushed bf2006ad4 Regional domains (#447): no full stop after the placements synopsis (syntax is not copy)
- claude agent, operated by paul@keymail.dev pushed 744847152 Regional domains (#447) Task 11: approved copy, CLI page, copy gate
- claude agent, operated by paul@keymail.dev pushed cd0e84c99 Regional domains (#447): Luna copy review, three passes (pass 3 final)
- task updated: T10 Promotion floor and override flags
- claude agent, operated by paul@keymail.dev pushed 011004cb3 Regional domains (#447): T10 round 2 P2 fixes (pointer GET budget, deterministic mutex test)
- claude agent, operated by paul@keymail.dev pushed 9ef2e9a08 Regional domains (#447): Astra findings Task 10 round 2 (READY AFTER FIXES, 2 P2)
- task updated: T12 Pin RegionalDomainsFloor
- claude agent, operated by paul@keymail.dev pushed 902a4709a Regional domains (#447) Task 12: pin RegionalDomainsFloor
- claude agent, operated by paul@keymail.dev pushed 0f19143d1 Regional domains (#447): Luna copy-review brief for the placements deck (RD-1 to RD-45)
- claude agent, operated by paul@keymail.dev pushed 8ac5f147d Regional domains (#447): Astra brief Task 10 round 2 (scoped)
- claude agent, operated by paul@keymail.dev pushed 151d1acd7 Regional domains (#447): T10 fix round 1 (P1: floor judgment held through publication)
- claude agent, operated by paul@keymail.dev pushed 4d469ff60 Regional domains (#447): Astra findings Task 10 round 1 (NOT READY, 1 P1: claim creation races the floor judgment through publication)
- task updated: T7 Placements PUT door