carlos / platform Public

regional-domains-447

Written by claude agent, operated by paul@keymail.dev — this branch has no commits of its own to compare against, so how current this is cannot be said

Where it stands

MERGE-READY, not merged. Tip c5a6d537, CI passed (also c2bcfefb). origin/main merged in (merge base 1c5db50e, main not ahead). All 13 plan tasks done; whole-branch Astra R1 READY AFTER FIXES (P2s fixed); census-ruling-regional-domains-447 approved by Astra (#280); copy approved via Luna (gate RD-1..46).

Next

platform-17: squash-merge, read main's CI, cut v0.31.0, roll dev then flagship. The #447 consumer's migration is a separate go from Paul (prerequisites on #447). If main moves before merge: merge it in, re-run make census-propose NAME=regional-domains-447 and restore the card's Branch context section.

Blocked on

Nothing. Merge is platform-17's (amadan branch merge with full args, squash). The release after merge must be v0.31.0 (release.RegionalDomainsFloor).

Already decided

Paul's rulings 1-9 (spec section 2; .superpowers/sdd/2026-10-28-regional-domains-447/progress.md has every controller ruling, parked item and deferred minor). No ruling-9 self-applied fixes were needed.

Recently

Human

<task-notification> <task-id>af17d5e1dbe1fd0b0</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/af17d5e1dbe1fd0b0.output</output-file> <status>completed</status> <summary>Agent "Controller: build regional domains #447" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Regional custom-domain placements (#447) are merge-ready. The branch is at c5a6d537 with CI passing. I haven't merged or released it; that's platform-17's job. **What it does:** one verified custom domain, and optionally its one-label catch-all, is served by a different instance of the same app in each region. A request for it is never served from another region or sent to one. - `carlos domains placements --app APP --set REGION=INSTANCE ... [--wildcard --catchall] HOST` creates the regional domain. - Without `--set`, the same command shows each region's instance, whether it's ready, and the EIPs to point latency DNS at. **Reviews:** - **Design:** four rounds. Round 1 was Opus, rounds 2 to 4 were Astra, and each Astra round that found a problem led to a ruling from Paul. There were nine rulings in all. - **Tasks:** Astra reviewed every task touching security, routing, root or the release floor. Every P1 was fixed and re-reviewed. The three covering-routes P1s were fixed under Paul's rulings 7 and 8 and the Task 10 floor race in an ordinary fix round. No fixes were needed under ruling 9. - **Whole branch:** Astra found no P1, and its P2s are fixed. - **Census:** approved by Astra and recorded on #280. If main moves before the merge, re-run `make census-propose NAME=regional-domains-447` and restore the card's "Branch context" section, which that command drops. - **Copy:** Luna did three passes, plus a single-row pass for RD-46. Each final pass was applied verbatim and is enforced by a copy gate. Paul hasn't seen the copy. **CI:** - The first run had one real failure: instance create now makes 52 S3 requests, one more than its budget, because of the new regional check. I raised the budget to 52 with a note saying why. - Two other tests failed on timing and a busy port, and didn't fail again. - Two failures appear only on this machine: one is a file-permission issue, and the other (a darwin vet error) happens identically on main. **Release:** the first release cut after the merge must be v0.31.0, the new floor. While any regional domain exists, a system channel can't move below v0.31.0 without `--allow-below-regional-floor`. Creating a regional domain is refused until every live box runs v0.31.0 or later. **Before Woodstar can move** (a separate go from Paul, posted on #447): 1. v0.31.0 rolled to every box. 2. One ordinary socket instance per region (ie, uk, us, au) for the relay, which means lifting ruling H24 for it. 3. `woodstar.app` detached and created again as a regional domain, with `--wildcard --catchall` set at creation. An existing domain can't be converted in place, and those two settings can't change later, so expect a short gap. 4. The wildcard's `_acme-challenge` CNAME in place first, and no ordinary catch-all covering the name. 5. Woodstar's latency DNS records pointed at each region's EIPs, only once that region shows ready. The full finish report, including every ruling I made with its cost if wrong, went to the root session. The amadan tasks are all done, the branch is described, the handoff is written and #447 has the result. Nothing of mine is still running, and my scratch directory is removed. The ledger stays at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/regional-domains-447/.superpowers/sdd/2026-10-28-regional-domains-447/progress.md`. It isn't tracked by git and can be deleted after the merge.</result> <usage><subagent_tokens>437411</subagent_tokens><tool_uses>28</tool_uses><duration_ms>3460713</duration_ms></usage> </task-notification>

Human

<agent-message from="af17d5e1dbe1fd0b0"> #447 regional custom-domain placements is MERGE-READY: tip c5a6d537, branch-tip CI passed (c2bcfefb, code-identical, also passed). Not merged, not released. What a member gets: - One verified custom domain, plus its one-label catch-all if they want it, served by a different instance of the same app in each region. A request for it is never served from another region or sent to one. - `carlos domains placements --app APP --set REGION=INSTANCE ... [--wildcard --catchall] HOST` creates it. - Without --set, the command shows each region's instance, its readiness and the EIPs to point latency DNS at. - API: GET/PUT .../domains/{host}/placements. The domains list, the per-host GET and the settings page show the domain's state as "regional". State: - origin/main is merged in (merge base 1c5db50e); main was not ahead at the finish. - All 13 plan tasks are done. - Branch described on amadan, handoff written, #447 replied with the result and the migration prerequisites, and the census verdict recorded on #280. - amadan tasks 963-977 are all Done. Review history: - Design: - R1 Opus NOT READY. - R2 Astra NOT READY (stopping rule 2) -> ruling 4. - R3 NOT READY -> ruling 5. - R4 NOT READY -> ruling 6, which made the edge-task review stand in for a design re-check. - T1 and T9: Sonnet task reviews, clean. - T2+T3 (Astra): R1 1 P1 (team scope race, fixed with an ETag-conditional detach), R2 READY. - T4+T5 (Astra): R1 1 covering-routes P1 (partial row write) -> ruling 7; R2 READY AFTER FIXES. - T6 (Astra): READY AFTER FIXES. - T7+T8 (Astra): R1 1 covering-routes P1 (stale capability decision) -> ruling 8; R2 READY AFTER FIXES. - T10 floor (Astra): R1 1 P1 (claim creation racing the floor judgment through publication); fixed by running judge and publish under regionalMu, with the PUT refusing while a followed channel is below the floor. R2 READY AFTER FIXES. - Whole branch (Astra): R1 READY AFTER FIXES, no P1. Its 3 P2s and 1 P3 are fixed: CLI example argument order, regional state in place of "checking", the _acme-challenge delegation record kept, the floor comment. All P2s in every round are fixed. - Census: census-ruling-regional-domains-447 approved by Astra. R1 approved every unit with 1 P2 on the card text, fixed; R2, scoped to the final fix wave, READY. - Record-write inventory: internal/provision/regional_domains_447_census_test.go. - If main moves before you merge: merge it in, re-run `make census-propose NAME=regional-domains-447`, then restore the card's Branch context section (census-propose drops it). Self-applied covering-routes fixes under ruling 9: none. No covering-routes P1 came up after ruling 9. Copy: Luna, three passes over RD-1..45 with pass 3 applied verbatim, plus a single-row pass for RD-46. Gate: approved_regional_domains_copy_test.go. Rows 40-46 were added after the deck was first drafted and are all approved. CI: the first run at 91b222f3 failed: - TestPerfWriteRoutesMeetTheBudget: real. Instance create now makes 52 S3 requests against a lock of 51 because of the regional recheck's claim GET. I raised the lock to 52, with a note. - Two flakes that did not recur: TestReleaseLeaseLossUnprovenLeavesTheHold (missed its deadline by under a microsecond) and TestProbedHoldSurvivesReload (port already in use). Local-only failures that are not this branch: TestPlan14GenerationPinsPrivateMount (this host's /usr/bin permissions), and `GOOS=darwin go vet ./internal/host` in hawake_wiring_test.go, which fails identically on origin/main. Release floor: release.RegionalDomainsFloor = v0.31.0 (latest tag v0.30.3), so the first release cut from a main that contains this must be v0.31.0. While any regional claim exists: - a channel never moves below the floor without --allow-below-regional-floor; - the PUT refuses unless every fresh box, and every channel fresh boxes follow, is at v0.31.0 or later, with complete aliases_read evidence. Roll dev first. Note: a downgrade refused after its reservation leaves the reservation held; clear it with `carlos system cancel-activation`. Woodstar migration prerequisites (Paul's separate go): 1. v0.31.0 rolled to every box, so every fresh box reports aliases_read. 2. One ordinary socket instance per region (ie, uk, us, au) of woodstar-relay. This means lifting H24 for it; TCP-addr targets are refused. 3. No live conversion (ruling 4). Detach woodstar.app (and *.woodstar.app) as an ordinary claim, wait until no box holds the old alias rows, then create it regional with --wildcard --catchall set at creation (ruling 6: they can't change later). Expect a short gap. 4. The wildcard's _acme-challenge CNAME delegation in place first, and no ordinary catch-all covering the name. 5. Woodstar's Route 53 latency records point at the per-region EIPs, but only once the GET shows that region ready. 6. A region-HA pool whose EIP has moved to the load balancer shows no address. Rulings I made (cost if wrong in brackets; full text in the ledger): - Per-task Astra review for T2+T3, T4+T5, T6, T7+T8 and T10; Sonnet task reviews for T1, T9, T11 and T12; Astra, not Fable, for the whole branch, as the brief says. [weaker per-task review on T1 and T9] - T11 Luna-only, with no Paul copy review. [Paul hasn't seen the copy] - Dropped the full stop Luna put after `<hostname>` in the usage synopsis: syntax is not copy. [one character differs from Luna] - The GET's floor applies to regional claims only. [a single-mode GET can list a below-floor box] - GET box entries carry `counted`; the CLI lists counted EIPs only. - On a placements update, Route is the first region's bound host in sorted code order. - The host-claim attach path stays without regionalMu: in that mode regional claims can't exist. [a literal reading of ruling 8 is unmet in that shelved mode] - T10's fix design: judge and publish under regionalMu, plus the PUT's channel-pointer check. [PUTs wait behind a publication] - Perf lock for instance create raised from 51 to 52. [one extra S3 GET per create] - New member-visible state word "regional": app clients will see it, and `carlos deploy` no longer prints a misleading "Create:" line for these domains. - The rest are plan-conflict rulings: test-call-site updates, golden testdata from the real writer, the shared refusal sentinel, not running whole suites locally, and the like. Deferred minors, left as follow-ups per the whole-branch review: - RD-16 also shows for a wrong --app; - "each of 1 regions"; - the GET says no-serving-box when no box is fresh; - Fprintln(Sprintf) style nits; - no test ties the console's real 409 verify body to the CLI's parsing. Process notes: - The scratch directory under ~/.cache/tmp vanished mid-run; I didn't delete it, and moved scratch to ~/.cache/rd447, now removed. - One fix agent resumed late and ran alongside a duplicate. The duplicate backed out with zero net change. - The ledger stays at .superpowers/sdd/2026-10-28-regional-domains-447/progress.md (git-ignored); delete it after merge if you like. - Nothing of mine is still running. </agent-message>

Human

<task-notification> <task-id>af17d5e1dbe1fd0b0</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/af17d5e1dbe1fd0b0.output</output-file> <status>completed</status> <summary>Agent "Controller: build regional domains #447" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>CI is still running on the final tip. I'll write the handoff, reply on #447 and send the finish report once it passes.</result> <usage><subagent_tokens>427109</subagent_tokens><tool_uses>23</tool_uses><duration_ms>3151189</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>af17d5e1dbe1fd0b0</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/af17d5e1dbe1fd0b0.output</output-file> <status>completed</status> <summary>Agent "Controller: build regional domains #447" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>The census round 2 check and CI are running. I'll check both when the waiter reports back.</result> <usage><subagent_tokens>420137</subagent_tokens><tool_uses>15</tool_uses><duration_ms>2830142</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>af17d5e1dbe1fd0b0</task-id> <tool-use-id>toolu_01HCaduVEm9DpXQqb6NRRViz</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/af17d5e1dbe1fd0b0.output</output-file> <status>completed</status> <summary>Agent "Controller: build regional domains #447" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>The census and whole-branch Astra reviews are running in parallel, and CI is running on 91b222f3. I'll pick up their results when the waiter reports back.</result> <usage><subagent_tokens>396257</subagent_tokens><tool_uses>6</tool_uses><duration_ms>637281</duration_ms></usage> </task-notification>

Human

continue

Human

<task-notification> <task-id>af17d5e1dbe1fd0b0</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/af17d5e1dbe1fd0b0.output</output-file> <status>failed</status> <summary>Agent "Controller: build regional domains #447" failed: Agent terminated early due to an API error: You've hit your session limit · resets 5:20pm (Europe/Dublin) (error type rate_limit, HTTP 429, request id req_011CgWqpKHSd9tnB3q7GT7o4, model sent to the API: claude-opus-5-5)</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once. This agent's work so far is saved. The limit resets at 5:20pm (Europe/Dublin). Once its requests are accepted again, send the agent a message (SendMessage) to let it continue from where it stopped instead of starting a new agent.</note> <result>Main hasn't moved, so I'll start Task 13, the census.</result> </task-notification>