carlos / platform Public

Regional domains (#447) Task 13: root-read census overlay, card and CLAIMS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev f6906c2d9b917b482e055295265eb835eb26b62d parent bf2006a
4 files changed, +181 −0
  • docs/superpowers/notes/census-proposal-regional-domains-447.md +111 −0
  • docs/superpowers/notes/census-regional-domains-447-claims.md +22 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-regional-domains-447.tsv +47 −0

Intent

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>

Human

continue

diff --git a/docs/superpowers/notes/census-proposal-regional-domains-447.md b/docs/superpowers/notes/census-proposal-regional-domains-447.md
new file mode 100644
index 000000000..46e924734
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-regional-domains-447.md
@@ -0,0 +1,111 @@
+# Census approval: regional-domains-447
+
+Ruling `census-ruling-regional-domains-447`. The independent reviewer approves or rejects every change below, 11 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `cli.go` `runAdd` | body | unchanged (21) | #447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21) |
+| `internal/domains/aliases.go` `deriveInstanceAliases` | body | unchanged (28) | #447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added |
+| `internal/edge/assetcatch.go` `Edge.serveAssetFar` | body | unchanged (4) | #447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed |
+| `internal/edge/edge.go` `Edge.ServeHTTP` | body | unchanged (25) | #447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25) |
+| `internal/host/agent.go` `statusTick` | body | unchanged (4) | #447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added |
+| `internal/status/snapshot.go` `CollectBox` | body | unchanged (28) | #447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added |
+| `internal/registry/registry.go` `Registry.Fingerprint` | sites | +file:Query | #447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read |
+| `internal/registry/registry.go` `Registry.migrate` | sites | +file:Exec, +registry:sql | #447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed |
+
+Envelopes re-pinned: `.`, `internal/domains`, `internal/edge`, `internal/host`, `internal/provision`, `internal/registry`, `internal/release`, `internal/status`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `cli.go` `runAdd`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only
+- `internal/domains/aliases.go` `deriveInstanceAliases`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=root-route; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): rev3=J1's body; a stale body under a retired lifetime no longer makes a label shared, and a label with a record that cannot be judged keeps its existing alias row of the catch-all's own account and app (reading that row's Account and App) only once the derived name has passed every precedence check a derived name answers to (validity, an exact claim, a local real route, a deployment route, the per-box cap), and derives no new one; a report-only conservative keep, never a new route
+- `internal/edge/assetcatch.go` `Edge.serveAssetFar`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read
+- `internal/edge/edge.go` `Edge.ServeHTTP`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added
+- `internal/host/agent.go` `statusTick`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added
+- `internal/status/snapshot.go` `CollectBox`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display)
+- `internal/registry/registry.go` `Registry.Fingerprint`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user); the remote arm, unchanged, in the process that holds a remote handle: census-ruling-seeded-instances's body with the row's lifetime pair (incarnation, serving_seq) folded into the edge's change poll, each only when non-zero, so a registry with no pair digests as before; self-serve moves 1 Task 7
+- `internal/registry/registry.go` `Registry.migrate`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/domains/aliases.go:deriveRegional`: reads +whole:RegionalDomain, +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/domains/aliases.go:regionalSetEqual`: reads +registry:Account ×2, +registry:App ×2, +registry:Host ×2, +registry:Region ×2, +registry:Target ×2, +whole:RegionalDomain ×8; written legacy, accepted-legacy, frozen
+- new `internal/domains/aliases.go:writeRegional`: reads +registry:Host ×6, +whole:RegionalDomain ×21; written legacy, accepted-legacy, frozen
+- new `internal/edge/regional.go:Edge.foldRegional`: reads +registry:Account, +registry:App, +registry:Host ×11, +registry:Region, +registry:Target ×3, +whole:RegionalDomain ×2, +whole:Route ×6; written legacy, accepted-legacy, frozen
+- new `internal/registry/registry.go:Registry.ListRegional`: reads +file:Query, +registry:Account, +registry:App, +registry:CreatedAt, +registry:Host, +registry:Region, +registry:Regional, +registry:Target, +registry:remote ×2, +registry:sql, +whole:RegionalDomain ×5, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/registry.go:Registry.ReplaceRegionalSet`: reads +file:Exec ×2, +registry:Account, +registry:App, +registry:CreatedAt, +registry:Host ×7, +registry:Region, +registry:Target, +registry:remote ×2, +registry:sql, +whole:RegionalDomain ×4, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/release/regionaltarget.go:RegionalTarget`: reads +registry:App, +registry:Kind ×2, +registry:Provisioned, +registry:Region ×2, +registry:Replica, +registry:Socket, +registry:Status, +registry:Tunnel, +whole:Route; written legacy, accepted-legacy, frozen
+- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
+- reads `internal/domains/aliases.go:ReconcileAliasesReport`: +registry:Account ×3, +registry:App ×3, +registry:Host ×6, +registry:Region, +registry:Target ×2, +whole:RegionalDomain ×8, +whole:Route ×3, +whole:WildcardDomain ×5; keeps legacy, task accepted-legacy
+- reads `internal/edge/edge.go:Edge.Reload`: +whole:RegionalDomain, +whole:Route; keeps legacy, task accepted-legacy
+- reads `internal/registry/remote_dispatch.go:Registry.dispatchRemote`: +registry:Host, +registry:RDs, +registry:Regional, +whole:RegionalDomain ×2; keeps hint, task E2
+
+Seal: `e085917e271ee26877974461133f393ccc5d63add91d7aad2afe10b30977914e` → `1de834976c615fed28567ca0a9ae7526eaa35341e07898feb112f4e1b0ddee8d`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-regional-domains-447.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
+
+## Branch context
+
+Branch `regional-domains-447` adds regional custom-domain placements
+(#447; design `docs/superpowers/specs/2026-10-28-regional-domains-447-design.md`).
+A regional claim names, per region, the instance that serves the domain
+there, and a regional name is never served from, or backhauled to, another
+region. The console writes the claims (the PUT placements door, the
+capability and catch-all doors, the floor judge); `internal/console` is out
+of the census's scope. The CLAIMS this card was written from are committed
+beside it: `docs/superpowers/notes/census-regional-domains-447-claims.md`.
+
+Where the new reads are, and who runs them:
+
+- The box agent's alias pass (`/opt/carlos/carlos agent`,
+ `carlos-edge.service`, user carlos), not root. `ReconcileAliasesReport`
+ reads the claims exactly as before (the listing and one GET per claim it
+ already does), and for a regional claim derives `regional_domains` rows
+ for this box's region (`deriveRegional`, with `release.RegionalTarget`, a
+ pure predicate over the routes the pass already holds) and writes each
+ claim's apex and star rows as one set in one SQLite transaction
+ (`writeRegional`, `Registry.ReplaceRegionalSet`, ruling 7). The new read
+ is the box's own `regional_domains` rows (`Registry.ListRegional`). The
+ region comes from the agent's own config (`aliasPassReporting`'s new
+ `region` argument, `cfg.Region`).
+- The edge, inside the same agent. `Edge.Reload` reads `regional_domains`
+ (`ListRegional`) and folds each row into a serve or deny entry
+ (`foldRegional`), judging the target again with `RegionalTarget` against
+ the routes the same reload read. `ServeHTTP` calls `regionalGate` right
+ after the lookup: a hop or a deny entry gets a 503 before any arm that
+ can leave the box. These are refusals on the route map the edge already
+ holds.
+- The registry (`migrate`, `Fingerprint`, `dispatchRemote`): one new table
+ created by an in-binary literal, hashed into the edge's change poll, and
+ two more methods on the existing remote transport.
+- `carlos add` (`runAdd`, `addRegionalCheck`): one `domains.GetClaim` of
+ `domains/<host>.json` by key (for `*.Y` it is Y's claim), through the
+ store `deploymentReadSeam` already returns to this verb (the deployment
+ bucket, or the DirStore under `CARLOS_DEPLOYMENT_DIR`, whose key check
+ refuses empty, `.` and `..` segments). It reads only, lists nothing, and
+ the answer can only refuse the add; no store or a failed read proceeds as
+ before. The host is the operator's own argument.
+- `statusTick` and `CollectBox` carry one boolean, `aliases_read`, that says
+ the existing alias read succeeded; no read added.
+- Other in-scope changes the scanner sees no read in (covered by the
+ re-pinned envelopes): `internal/domains/claims.go` (the claim shape and
+ its writers), `internal/provision/recordhost.go` (`RecordHostDeclared`),
+ `internal/release` (the regional floor, `SystemPointer`,
+ `SystemPromoteOptions`, layout intent), `apimode.go`, `domains_cli.go`
+ and `system.go` (CLI verbs that talk to the console API), and the edge's
+ `homemap.go`, `assetcatch.go` and `backhaulTo` test-hook calls
+ (`observeRegional`, a nil atomic pointer in production).
+
+Why no unit lets root open, run, query or follow anything new from a path a
+tenant, an app or a box agent can create: the new reads above run in the
+agent as carlos, not as root, and touch only the box's own registry
+database and the claims the agent already read. The one read in a verb
+root may run, `carlos add`, is a key read in the deployment store the verb
+already used, keyed by the operator's argument, and it can only add a
+refusal. No unit gains an exec, a file path from data, or a weakened check.
+
+The reviewer decides every class on this card (body, sites, reads, new and
+the registry schema), per AGENTS.md "The census" and Paul's #280 ruling of
+2026-10-26; nothing escalates to Paul.
diff --git a/docs/superpowers/notes/census-regional-domains-447-claims.md b/docs/superpowers/notes/census-regional-domains-447-claims.md
new file mode 100644
index 000000000..6c6e61c06
--- /dev/null
+++ b/docs/superpowers/notes/census-regional-domains-447-claims.md
@@ -0,0 +1,22 @@
+# CLAIMS for the root-read census, branch regional-domains-447 (#447 regional custom-domain placements, Task 13).
+# Format (AGENTS.md "The census"): <file>:<unit><TAB><what changed>. Lines starting with # are ignored.
+# Base: origin/main merged; branch tip bf2006ad when written.
+
+cli.go:runAdd #447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21)
+internal/domains/aliases.go:deriveInstanceAliases #447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added
+internal/edge/assetcatch.go:Edge.serveAssetFar #447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed
+internal/edge/edge.go:Edge.ServeHTTP #447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25)
+internal/host/agent.go:statusTick #447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added
+internal/status/snapshot.go:CollectBox #447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added
+internal/registry/registry.go:Registry.Fingerprint #447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read
+internal/registry/registry.go:Registry.migrate #447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed
+internal/domains/aliases.go:deriveRegional #447 Task 4: new, in the alias pass inside the agent (carlos-edge.service, user carlos): for one regional claim already read by the pass, the desired regional_domains rows for this box's region (the claim host, and *.host with Wildcard and Catchall), each naming the claim's placement for the region when that route is on this box and release.RegionalTarget accepts it, else empty (deny); a claim host that is not normalised or is under the sidecar suffix derives nothing; reads only the claim and the routes the pass already holds, writes into a map; no store, file or registry read
+internal/domains/aliases.go:regionalSetEqual #447 Task 4 (ruling 7): new, a pure comparison of two sets of one claim's regional rows (key, target, account, app, region); no read
+internal/domains/aliases.go:writeRegional #447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read
+internal/edge/regional.go:Edge.foldRegional #447 Task 5: new, in the edge inside the agent: in Reload after the alias fold, turns each regional_domains row into a deny entry (the key over a real route, an empty target, a target not in this reload's routes, release.RegionalTarget false, or a target entry that is an alias, platform alias or tunnelled) or a serve entry (a copy of the target's own entry with no path map); reads the rows and routes Reload already read; no file, store or registry read of its own
+internal/registry/registry.go:Registry.ListRegional #447 Task 4: new, every regional_domains row ordered by host, from the box's own registry SQLite as carlos (agent, registry child), or over the existing remote transport (remoteClient); no file path read
+internal/registry/registry.go:Registry.ReplaceRegionalSet #447 Task 4 (ruling 7): new, the only writer of regional_domains: validates that rows hold only host and *.host each at most once (host non-empty, not a star), then upserts them and deletes the claim's other key in one SQLite transaction, or one remote request applied by the same transaction on the serving side; writes only, the Exec sites are its upsert and delete; no read of a file path
+internal/release/regionaltarget.go:RegionalTarget #447 Task 4: new, a pure predicate over a registry.Route the caller already holds: true only for a ready, provisioned instance route of the given account and app, on a local unix socket, not a sidecar, replica, fleet placement or tunnel, whose region is the box's; reads no file, store or registry
+internal/domains/aliases.go:ReconcileAliasesReport #447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds
+internal/edge/edge.go:Edge.Reload #447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read
+internal/registry/remote_dispatch.go:Registry.dispatchRemote #447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 40c536406..b7a7fc247 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -29,3 +29,4 @@ plan14-root-reads-console-slow-writes.tsv fe61ef9b2ecbb7d3d2049b8e6c9746ee08d3ea
plan14-root-reads-rootfs-apps-3-workers.tsv 862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab
plan14-root-reads-fresh-box-446.tsv 862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab
plan14-root-reads-rootfs-apps-4.tsv e085917e271ee26877974461133f393ccc5d63add91d7aad2afe10b30977914e
+plan14-root-reads-regional-domains-447.tsv 1de834976c615fed28567ca0a9ae7526eaa35341e07898feb112f4e1b0ddee8d
diff --git a/internal/provision/testdata/plan14-root-reads-regional-domains-447.tsv b/internal/provision/testdata/plan14-root-reads-regional-domains-447.tsv
new file mode 100644
index 000000000..07cba8206
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-regional-domains-447.tsv
@@ -0,0 +1,47 @@
+# Census overlay regional-domains-447, written by census-propose (#369). census-ruling-regional-domains-447, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-regional-domains-447.md.
+# 6 body, 2 sites, 8 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 11 new dispositions: 3 reads re-frozen at their disposition with the claim, 7 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+@legacy 233c80493fb6551214ae14b09db82b1f9aebc8bcf5ecc80c24ca60983b2b9f11 cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-regional-domains-447;basis=#447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21) file:Open@5540,file:Open@8642,registry:Addr@11606,registry:Addr@11619,registry:Addrs@11143,registry:Addrs@11490,registry:Addrs@11524,registry:Addrs@11552,registry:Health@11537,registry:Health@11568,registry:Replicas@12838,registry:Replicas@12855,registry:Steering@12057,registry:Steering@12074,whole:Route@12959,whole:Route@13004,whole:Route@5577,whole:Route@5694,whole:Route@9306,whole:Route@9390,whole:Route@9725 5f9f24487aa44c143a59e458d24c735df8a46e910e545e78a1ff9ce1fa2731e2
+@legacy faabe354876fef6d2805758803d41597815fb71e9789574c76edb382d1ff1d1a internal/domains/aliases.go deriveInstanceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=root-route; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): rev3=J1's body; a stale body under a retired lifetime no longer makes a label shared, and a label with a record that cannot be judged keeps its existing alias row of the catch-all's own account and app (reading that row's Account and App) only once the derived name has passed every precedence check a derived name answers to (validity, an exact claim, a local real route, a deployment route, the per-box cap), and derives no new one; a report-only conservative keep, never a new route;rev3=census-ruling-regional-domains-447;basis=#447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added registry:Account@2488,registry:Account@3806,registry:Account@4639,registry:Alias@2550,registry:Alias@2618,registry:Alias@2662,registry:Alias@575,registry:App@1988,registry:App@2514,registry:App@3832,registry:App@4665,registry:Host@2145,registry:Host@4618,registry:Host@4628,registry:Host@4824,registry:Provisioned@1938,registry:Replica@1974,registry:Slug@2077,whole:Route@1922,whole:Route@2028,whole:Route@3348,whole:RouteAlias@2468,whole:RouteAlias@3788,whole:RouteAlias@4600,whole:RouteAlias@527,whole:RouteAlias@557,whole:RouteAlias@570,whole:RouteAlias@586 924827c76c985db082da6a175079c614e8ddcf348a4554e9361c96887e08071c
+@legacy 9b53a898d39796904025a4d9534c41b846b6ada23d145a9239ffb5f4a2e2ba28 internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed whole:Route@1063,whole:Route@1667,whole:Route@2930,whole:Route@2937 ce52c004c7d52d7073478a50410b2db8be337d991b92194f62fc4021e8986bbf
+@legacy 121bfb45d4257c8b6ecbff8426f62968c7a6af7837f1adfd4b1ba6980c16d552 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25) registry:Gate@18331,registry:Gate@18391,registry:Gate@18449,registry:Host@18434,registry:ImportGate@23229,registry:Kind@13994,registry:Kind@16464,registry:Kind@23200,whole:Route@11802,whole:Route@12014,whole:Route@12206,whole:Route@13997,whole:Route@15300,whole:Route@15395,whole:Route@15471,whole:Route@15515,whole:Route@16467,whole:Route@18334,whole:Route@18394,whole:Route@18437,whole:Route@18452,whole:Route@20085,whole:Route@23203,whole:Route@23232,whole:Route@25064 d8a6bb026836809038bb327617edcee7633f0d6826a24217949da2c5e172d6d5
+@legacy 8d9692b054356bef165eea91fbbf729f5c2b5fd9d59237a679493fb7325aace9 internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added whole:Route@1029,whole:Route@1553,whole:RouteAlias@958,whole:RouteAlias@968 3ef6723f6d5f585d3caffa0ae0cf0e44fca01b91e27e385aa6d609bde6ad7605
+@legacy f00e033a69ae6abe044deeb2df6e789a874fa95dedb9bb5fb94f19b7fa0d9f73 internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 a4487e9ff6bf66a9635832eb3b0b12dad318158e08e8709a7b8e7a2d1e0a2b64
+@legacy 914f1ef937e25ca791a960549801310130065714cc50b6b8c24f1792cee86446 internal/domains/aliases.go deriveRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, in the alias pass inside the agent (carlos-edge.service, user carlos): for one regional claim already read by the pass, the desired regional_domains rows for this box's region (the claim host, and *.host with Wildcard and Catchall), each naming the claim's placement for the region when that route is on this box and release.RegionalTarget accepts it, else empty (deny); a claim host that is not normalised or is under the sidecar suffix derives nothing; reads only the claim and the routes the pass already holds, writes into a map; no store, file or registry read whole:RegionalDomain@635,whole:Route@412,whole:Route@465 79fd7c432e6b0a9ffd945312851e52af2c450769416ef44ff9a4bea681b44cde
+@legacy 53ca63ba263129aef2ce3192f2fba2f5aeaece2729bb0093f04becd38dcf3986 internal/domains/aliases.go regionalSetEqual legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, a pure comparison of two sets of one claim's regional rows (key, target, account, app, region); no read registry:Account@294,registry:Account@307,registry:App@320,registry:App@329,registry:Host@194,registry:Host@250,registry:Region@338,registry:Region@350,registry:Target@270,registry:Target@282,whole:RegionalDomain@158,whole:RegionalDomain@181,whole:RegionalDomain@187,whole:RegionalDomain@204,whole:RegionalDomain@228,whole:RegionalDomain@243,whole:RegionalDomain@69,whole:RegionalDomain@79 ee53ff5659845a7ce35a478cd6128ffb821329a88dba81747ee347554fedbd4f
+@legacy 327c18871720b331925bc919b041c59f78df982cdedc27469b80e332b58ae86c internal/domains/aliases.go writeRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read registry:Host@1053,registry:Host@1068,registry:Host@337,registry:Host@368,registry:Host@476,registry:Host@507,whole:RegionalDomain@1018,whole:RegionalDomain@1053,whole:RegionalDomain@1068,whole:RegionalDomain@1122,whole:RegionalDomain@1241,whole:RegionalDomain@311,whole:RegionalDomain@324,whole:RegionalDomain@355,whole:RegionalDomain@378,whole:RegionalDomain@451,whole:RegionalDomain@463,whole:RegionalDomain@494,whole:RegionalDomain@517,whole:RegionalDomain@556,whole:RegionalDomain@566,whole:RegionalDomain@589,whole:RegionalDomain@644,whole:RegionalDomain@665,whole:RegionalDomain@790,whole:RegionalDomain@934,whole:RegionalDomain@943 be28072b371446c9baa2974929517acb06d8258c177be220367f7b132cc0dcbf
+@legacy 29aed02c7c81d6caf7d7333ff8450f2c3cf0c6423d46c14a3b9a413736c9b74c internal/edge/regional.go Edge.foldRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: new, in the edge inside the agent: in Reload after the alias fold, turns each regional_domains row into a deny entry (the key over a real route, an empty target, a target not in this reload's routes, release.RegionalTarget false, or a target entry that is an alias, platform alias or tunnelled) or a serve entry (a copy of the target's own entry with no path map); reads the rows and routes Reload already read; no file, store or registry read of its own registry:Account@802,registry:App@815,registry:Host@1116,registry:Host@1129,registry:Host@237,registry:Host@351,registry:Host@384,registry:Host@460,registry:Host@614,registry:Host@630,registry:Host@692,registry:Host@843,registry:Host@976,registry:Region@824,registry:Target@668,registry:Target@747,registry:Target@895,whole:RegionalDomain@118,whole:RegionalDomain@275,whole:Route@190,whole:Route@219,whole:Route@230,whole:Route@248,whole:Route@740,whole:Route@798 b413fad6a8e17530ce0e99c79c521e0a6782b82c04d61d256442b8defe6a427b
+@legacy ddcbab70d83bb94f1379af3ba34fd9fbf23bf2684b03c834422cd0291f1a279b internal/registry/registry.go Registry.ListRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, every regional_domains row ordered by host, from the box's own registry SQLite as carlos (agent, registry child), or over the existing remote transport (remoteClient); no file path read file:Query@206,registry:Account@480,registry:App@492,registry:CreatedAt@511,registry:Host@460,registry:Region@500,registry:Regional@170,registry:Target@469,registry:remote@66,registry:remote@98,registry:sql@206,whole:RegionalDomain@174,whole:RegionalDomain@563,whole:RegionalDomain@576,whole:RegionalDomain@581,whole:RegionalDomain@595,whole:remoteClient@100,whole:remoteClient@68 3661e82de753496064a5ef0e6ed96dfe242d2409a7490bc50e7437bae71f14f9
+@legacy 1626cf9d955cafc654c084101e639819749e51f74c9f30d658af0b6bd20f1193 internal/registry/registry.go Registry.ReplaceRegionalSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, the only writer of regional_domains: validates that rows hold only host and *.host each at most once (host non-empty, not a star), then upserts them and deletes the claim's other key in one SQLite transaction, or one remote request applied by the same transaction on the serving side; writes only, the Exec sites are its upsert and delete; no read of a file path file:Exec@1222,file:Exec@798,registry:Account@1058,registry:App@1069,registry:CreatedAt@1086,registry:Host@1040,registry:Host@287,registry:Host@305,registry:Host@399,registry:Host@421,registry:Host@497,registry:Host@516,registry:Region@1076,registry:Target@1048,registry:remote@538,registry:remote@568,registry:sql@689,whole:RegionalDomain@275,whole:RegionalDomain@643,whole:RegionalDomain@648,whole:RegionalDomain@776,whole:remoteClient@540,whole:remoteClient@570 a1ed7ad0574e9495fe2d679106ccc3f6855b1f31bb0f1da42d9f741f11f038df
+@legacy 99f14b45ae16feacd317b0f6996935ab3805d73b7b99e582c1ebcf857cef2e41 internal/release/regionaltarget.go RegionalTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, a pure predicate over a registry.Route the caller already holds: true only for a ready, provisioned instance route of the given account and app, on a local unix socket, not a sidecar, replica, fleet placement or tunnel, whose region is the box's; reads no file, store or registry registry:App@155,registry:Kind@193,registry:Kind@210,registry:Provisioned@257,registry:Region@364,registry:Region@469,registry:Replica@293,registry:Socket@425,registry:Status@79,registry:Tunnel@406,whole:Route@137 37a9d320b3a046cb35fea1758880965da2c3c86a1129a0d2997b874ff420a7b0
+@legacy e3773ea48869c2c6d79d012794c69ccebc6987cfd1d1475ffe37e6f1bfc86fc5 internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds registry:Account@18232,registry:Account@18247,registry:Account@18365,registry:Account@18717,registry:Account@18730,registry:Alias@16319,registry:Alias@16359,registry:Alias@16429,registry:App@13356,registry:App@13556,registry:App@13712,registry:App@13913,registry:App@18260,registry:App@18271,registry:App@18378,registry:App@18743,registry:App@18752,registry:App@3407,registry:App@3603,registry:App@7227,registry:App@7426,registry:Host@18042,registry:Host@18117,registry:Host@18140,registry:Host@18192,registry:Host@18526,registry:Host@18598,registry:Host@18702,registry:Host@19013,registry:Host@19066,registry:Host@19138,registry:Host@19672,registry:Host@19785,registry:Host@19844,registry:Host@19925,registry:Host@724,registry:Prefix@19680,registry:Prefix@19799,registry:Prefix@19852,registry:Prefix@19933,registry:Region@18387,registry:Status@10090,registry:Target@18212,registry:Target@18317,whole:RegionalDomain@17006,whole:RegionalDomain@17024,whole:RegionalDomain@17970,whole:RegionalDomain@18008,whole:RegionalDomain@18029,whole:RegionalDomain@18052,whole:RegionalDomain@18179,whole:RegionalDomain@2118,whole:Route@10034,whole:Route@13325,whole:Route@13400,whole:Route@13547,whole:Route@13609,whole:Route@13752,whole:Route@13908,whole:Route@14804,whole:Route@15899,whole:Route@15907,whole:Route@18310,whole:Route@18361,whole:Route@2099,whole:Route@2750,whole:Route@3447,whole:Route@3598,whole:Route@3654,whole:Route@6573,whole:Route@677,whole:Route@706,whole:Route@717,whole:Route@7271,whole:Route@735,whole:Route@7417,whole:Route@922,whole:Route@9420,whole:Route@9872,whole:RouteAlias@15915,whole:RouteAlias@16294,whole:RouteAlias@930,whole:RoutePath@11617,whole:RoutePath@19565,whole:RoutePath@19607,whole:RoutePath@19742,whole:RoutePath@19772,whole:WildcardDomain@14124,whole:WildcardDomain@18076,whole:WildcardDomain@18105,whole:WildcardDomain@18586,whole:WildcardDomain@18608,whole:WildcardDomain@18632,whole:WildcardDomain@18681,whole:WildcardDomain@18844,whole:WildcardDomain@18972,whole:WildcardDomain@19001,whole:WildcardDomain@2332 c4b95a4bde3f5ac451d235f700c64f605696db606dd79d6734fa82abc65a4a5c
+@legacy acb5c7565c265a75b1985d8a7948fd134e127308892c1eef77bfa2c5541866a2 internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read registry:Account@20776,registry:Alias@18478,registry:Alias@18565,registry:Alias@18801,registry:FleetBox@5526,registry:Health@7671,registry:Health@7797,registry:Host@13212,registry:Host@15119,registry:Host@15427,registry:Host@15454,registry:Host@16255,registry:Host@16521,registry:Host@18604,registry:Host@6080,registry:Host@8280,registry:Host@8375,registry:Host@8663,registry:Host@8689,registry:Host@8741,registry:Kind@11548,registry:Kind@11570,registry:Kind@8837,registry:Kind@8897,registry:Name@20766,registry:Prefix@16496,registry:Region@2252,registry:Socket@15435,registry:Socket@5633,registry:Socket@6144,registry:Status@1835,registry:Target@16508,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11529,registry:Version@11631,whole:Fleet@20716,whole:Fleet@20745,whole:RegionalDomain@19271,whole:Route@130,whole:Route@15487,whole:Route@15494,whole:Route@15590,whole:Route@17399,whole:Route@19263,whole:Route@4692,whole:Route@5590,whole:Route@6200,whole:Route@648,whole:Route@8814,whole:Route@8887,whole:Route@8947,whole:RouteAlias@18449,whole:RoutePath@16233 97f470f2c952b3080c40f8ba6f38cc7619f0cab8c6433c4f0a53a420b6924657
+@legacy 56ce3f5844d0e24a939bacea4291a4ff531cec75b486e40e163b7e10691ca5d0 internal/registry/registry.go Registry.Fingerprint legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user); the remote arm, unchanged, in the process that holds a remote handle: census-ruling-seeded-instances's body with the row's lifetime pair (incarnation, serving_seq) folded into the edge's change poll, each only when non-zero, so a registry with no pair digests as before; self-serve moves 1 Task 7;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read file:Exec@284,file:Open@188,file:Query@368,file:Query@4095,file:Query@4574,file:Query@5560,file:Query@6256,file:Query@7168,file:Query@8225,registry:ClaimIncarnation@1256,registry:ClaimIncarnation@3003,registry:ClaimIncarnation@3080,registry:ClaimOwner@1300,registry:ClaimOwner@3204,registry:ClaimOwner@3269,registry:ClaimRowID@1319,registry:ClaimRowID@3296,registry:ClaimRowID@3362,registry:ClaimStamp@1281,registry:ClaimStamp@3113,registry:ClaimStamp@3177,registry:Incarnation@1364,registry:Incarnation@3583,registry:Incarnation@3647,registry:ServingSeq@1383,registry:ServingSeq@3674,registry:ServingSeq@3737,registry:Text@158,registry:path@207,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 f9882e8cf70238043dfe63d4f9a6266b436eddae52b75048997b548de343e626
+@legacy c690590a2e734d94869356e9c29f43db1931bd3e54543d2d45f810f5ef6bf6b3 internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed file:Exec@1694,file:Exec@2248,file:Exec@3186,file:Exec@3465,file:Exec@4328,file:Exec@4504,file:Exec@51,file:Exec@600,file:Exec@963,registry:Claim@525,registry:sql@1694,registry:sql@2248,registry:sql@3186,registry:sql@3465,registry:sql@4328,registry:sql@4504,registry:sql@51,registry:sql@600,registry:sql@963,whole:addedColumn@500 3d56357571a1a6ee368598b8d917a3330838f796d923f2ee422447f237f6cbae
+cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-regional-domains-447;basis=#447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21) file:Open@5540,file:Open@8642,registry:Addr@11606,registry:Addr@11619,registry:Addrs@11143,registry:Addrs@11490,registry:Addrs@11524,registry:Addrs@11552,registry:Health@11537,registry:Health@11568,registry:Replicas@12838,registry:Replicas@12855,registry:Steering@12057,registry:Steering@12074,whole:Route@12959,whole:Route@13004,whole:Route@5577,whole:Route@5694,whole:Route@9306,whole:Route@9390,whole:Route@9725 5f9f24487aa44c143a59e458d24c735df8a46e910e545e78a1ff9ce1fa2731e2
+internal/domains/aliases.go deriveInstanceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=root-route; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): rev3=J1's body; a stale body under a retired lifetime no longer makes a label shared, and a label with a record that cannot be judged keeps its existing alias row of the catch-all's own account and app (reading that row's Account and App) only once the derived name has passed every precedence check a derived name answers to (validity, an exact claim, a local real route, a deployment route, the per-box cap), and derives no new one; a report-only conservative keep, never a new route;rev3=census-ruling-regional-domains-447;basis=#447 Task 2: an instance catch-all whose parent claim is regional is inert (logged once, continue), as one whose parent is not held is; it only narrows what derives; no read added registry:Account@2488,registry:Account@3806,registry:Account@4639,registry:Alias@2550,registry:Alias@2618,registry:Alias@2662,registry:Alias@575,registry:App@1988,registry:App@2514,registry:App@3832,registry:App@4665,registry:Host@2145,registry:Host@4618,registry:Host@4628,registry:Host@4824,registry:Provisioned@1938,registry:Replica@1974,registry:Slug@2077,whole:Route@1922,whole:Route@2028,whole:Route@3348,whole:RouteAlias@2468,whole:RouteAlias@3788,whole:RouteAlias@4600,whole:RouteAlias@527,whole:RouteAlias@557,whole:RouteAlias@570,whole:RouteAlias@586 924827c76c985db082da6a175079c614e8ddcf348a4554e9361c96887e08071c
+internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed whole:Route@1063,whole:Route@1667,whole:Route@2930,whole:Route@2937 ce52c004c7d52d7073478a50410b2db8be337d991b92194f62fc4021e8986bbf
+internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25) registry:Gate@18331,registry:Gate@18391,registry:Gate@18449,registry:Host@18434,registry:ImportGate@23229,registry:Kind@13994,registry:Kind@16464,registry:Kind@23200,whole:Route@11802,whole:Route@12014,whole:Route@12206,whole:Route@13997,whole:Route@15300,whole:Route@15395,whole:Route@15471,whole:Route@15515,whole:Route@16467,whole:Route@18334,whole:Route@18394,whole:Route@18437,whole:Route@18452,whole:Route@20085,whole:Route@23203,whole:Route@23232,whole:Route@25064 d8a6bb026836809038bb327617edcee7633f0d6826a24217949da2c5e172d6d5
+internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added whole:Route@1029,whole:Route@1553,whole:RouteAlias@958,whole:RouteAlias@968 3ef6723f6d5f585d3caffa0ae0cf0e44fca01b91e27e385aa6d609bde6ad7605
+internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 a4487e9ff6bf66a9635832eb3b0b12dad318158e08e8709a7b8e7a2d1e0a2b64
+internal/domains/aliases.go deriveRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, in the alias pass inside the agent (carlos-edge.service, user carlos): for one regional claim already read by the pass, the desired regional_domains rows for this box's region (the claim host, and *.host with Wildcard and Catchall), each naming the claim's placement for the region when that route is on this box and release.RegionalTarget accepts it, else empty (deny); a claim host that is not normalised or is under the sidecar suffix derives nothing; reads only the claim and the routes the pass already holds, writes into a map; no store, file or registry read whole:RegionalDomain@635,whole:Route@412,whole:Route@465 79fd7c432e6b0a9ffd945312851e52af2c450769416ef44ff9a4bea681b44cde
+internal/domains/aliases.go regionalSetEqual legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, a pure comparison of two sets of one claim's regional rows (key, target, account, app, region); no read registry:Account@294,registry:Account@307,registry:App@320,registry:App@329,registry:Host@194,registry:Host@250,registry:Region@338,registry:Region@350,registry:Target@270,registry:Target@282,whole:RegionalDomain@158,whole:RegionalDomain@181,whole:RegionalDomain@187,whole:RegionalDomain@204,whole:RegionalDomain@228,whole:RegionalDomain@243,whole:RegionalDomain@69,whole:RegionalDomain@79 ee53ff5659845a7ce35a478cd6128ffb821329a88dba81747ee347554fedbd4f
+internal/domains/aliases.go writeRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, in the alias pass inside the agent: groups existing and desired regional_domains rows by claim apex and writes each changed claim's set through Registry.ReplaceRegionalSet (one transaction), keeps a set unchanged when its claim was listed but not read, deletes an undesired claim's set; a failure leaves that claim's rows as they were and marks the pass incomplete; registry writes only, no new read registry:Host@1053,registry:Host@1068,registry:Host@337,registry:Host@368,registry:Host@476,registry:Host@507,whole:RegionalDomain@1018,whole:RegionalDomain@1053,whole:RegionalDomain@1068,whole:RegionalDomain@1122,whole:RegionalDomain@1241,whole:RegionalDomain@311,whole:RegionalDomain@324,whole:RegionalDomain@355,whole:RegionalDomain@378,whole:RegionalDomain@451,whole:RegionalDomain@463,whole:RegionalDomain@494,whole:RegionalDomain@517,whole:RegionalDomain@556,whole:RegionalDomain@566,whole:RegionalDomain@589,whole:RegionalDomain@644,whole:RegionalDomain@665,whole:RegionalDomain@790,whole:RegionalDomain@934,whole:RegionalDomain@943 be28072b371446c9baa2974929517acb06d8258c177be220367f7b132cc0dcbf
+internal/edge/regional.go Edge.foldRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: new, in the edge inside the agent: in Reload after the alias fold, turns each regional_domains row into a deny entry (the key over a real route, an empty target, a target not in this reload's routes, release.RegionalTarget false, or a target entry that is an alias, platform alias or tunnelled) or a serve entry (a copy of the target's own entry with no path map); reads the rows and routes Reload already read; no file, store or registry read of its own registry:Account@802,registry:App@815,registry:Host@1116,registry:Host@1129,registry:Host@237,registry:Host@351,registry:Host@384,registry:Host@460,registry:Host@614,registry:Host@630,registry:Host@692,registry:Host@843,registry:Host@976,registry:Region@824,registry:Target@668,registry:Target@747,registry:Target@895,whole:RegionalDomain@118,whole:RegionalDomain@275,whole:Route@190,whole:Route@219,whole:Route@230,whole:Route@248,whole:Route@740,whole:Route@798 b413fad6a8e17530ce0e99c79c521e0a6782b82c04d61d256442b8defe6a427b
+internal/registry/registry.go Registry.ListRegional legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, every regional_domains row ordered by host, from the box's own registry SQLite as carlos (agent, registry child), or over the existing remote transport (remoteClient); no file path read file:Query@206,registry:Account@480,registry:App@492,registry:CreatedAt@511,registry:Host@460,registry:Region@500,registry:Regional@170,registry:Target@469,registry:remote@66,registry:remote@98,registry:sql@206,whole:RegionalDomain@174,whole:RegionalDomain@563,whole:RegionalDomain@576,whole:RegionalDomain@581,whole:RegionalDomain@595,whole:remoteClient@100,whole:remoteClient@68 3661e82de753496064a5ef0e6ed96dfe242d2409a7490bc50e7437bae71f14f9
+internal/registry/registry.go Registry.ReplaceRegionalSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4 (ruling 7): new, the only writer of regional_domains: validates that rows hold only host and *.host each at most once (host non-empty, not a star), then upserts them and deletes the claim's other key in one SQLite transaction, or one remote request applied by the same transaction on the serving side; writes only, the Exec sites are its upsert and delete; no read of a file path file:Exec@1222,file:Exec@798,registry:Account@1058,registry:App@1069,registry:CreatedAt@1086,registry:Host@1040,registry:Host@287,registry:Host@305,registry:Host@399,registry:Host@421,registry:Host@497,registry:Host@516,registry:Region@1076,registry:Target@1048,registry:remote@538,registry:remote@568,registry:sql@689,whole:RegionalDomain@275,whole:RegionalDomain@643,whole:RegionalDomain@648,whole:RegionalDomain@776,whole:remoteClient@540,whole:remoteClient@570 a1ed7ad0574e9495fe2d679106ccc3f6855b1f31bb0f1da42d9f741f11f038df
+internal/release/regionaltarget.go RegionalTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: new, a pure predicate over a registry.Route the caller already holds: true only for a ready, provisioned instance route of the given account and app, on a local unix socket, not a sidecar, replica, fleet placement or tunnel, whose region is the box's; reads no file, store or registry registry:App@155,registry:Kind@193,registry:Kind@210,registry:Provisioned@257,registry:Region@364,registry:Region@469,registry:Replica@293,registry:Socket@425,registry:Status@79,registry:Tunnel@406,whole:Route@137 37a9d320b3a046cb35fea1758880965da2c3c86a1129a0d2997b874ff420a7b0
+internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds registry:Account@18232,registry:Account@18247,registry:Account@18365,registry:Account@18717,registry:Account@18730,registry:Alias@16319,registry:Alias@16359,registry:Alias@16429,registry:App@13356,registry:App@13556,registry:App@13712,registry:App@13913,registry:App@18260,registry:App@18271,registry:App@18378,registry:App@18743,registry:App@18752,registry:App@3407,registry:App@3603,registry:App@7227,registry:App@7426,registry:Host@18042,registry:Host@18117,registry:Host@18140,registry:Host@18192,registry:Host@18526,registry:Host@18598,registry:Host@18702,registry:Host@19013,registry:Host@19066,registry:Host@19138,registry:Host@19672,registry:Host@19785,registry:Host@19844,registry:Host@19925,registry:Host@724,registry:Prefix@19680,registry:Prefix@19799,registry:Prefix@19852,registry:Prefix@19933,registry:Region@18387,registry:Status@10090,registry:Target@18212,registry:Target@18317,whole:RegionalDomain@17006,whole:RegionalDomain@17024,whole:RegionalDomain@17970,whole:RegionalDomain@18008,whole:RegionalDomain@18029,whole:RegionalDomain@18052,whole:RegionalDomain@18179,whole:RegionalDomain@2118,whole:Route@10034,whole:Route@13325,whole:Route@13400,whole:Route@13547,whole:Route@13609,whole:Route@13752,whole:Route@13908,whole:Route@14804,whole:Route@15899,whole:Route@15907,whole:Route@18310,whole:Route@18361,whole:Route@2099,whole:Route@2750,whole:Route@3447,whole:Route@3598,whole:Route@3654,whole:Route@6573,whole:Route@677,whole:Route@706,whole:Route@717,whole:Route@7271,whole:Route@735,whole:Route@7417,whole:Route@922,whole:Route@9420,whole:Route@9872,whole:RouteAlias@15915,whole:RouteAlias@16294,whole:RouteAlias@930,whole:RoutePath@11617,whole:RoutePath@19565,whole:RoutePath@19607,whole:RoutePath@19742,whole:RoutePath@19772,whole:WildcardDomain@14124,whole:WildcardDomain@18076,whole:WildcardDomain@18105,whole:WildcardDomain@18586,whole:WildcardDomain@18608,whole:WildcardDomain@18632,whole:WildcardDomain@18681,whole:WildcardDomain@18844,whole:WildcardDomain@18972,whole:WildcardDomain@19001,whole:WildcardDomain@2332 c4b95a4bde3f5ac451d235f700c64f605696db606dd79d6734fa82abc65a4a5c
+internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read registry:Account@20776,registry:Alias@18478,registry:Alias@18565,registry:Alias@18801,registry:FleetBox@5526,registry:Health@7671,registry:Health@7797,registry:Host@13212,registry:Host@15119,registry:Host@15427,registry:Host@15454,registry:Host@16255,registry:Host@16521,registry:Host@18604,registry:Host@6080,registry:Host@8280,registry:Host@8375,registry:Host@8663,registry:Host@8689,registry:Host@8741,registry:Kind@11548,registry:Kind@11570,registry:Kind@8837,registry:Kind@8897,registry:Name@20766,registry:Prefix@16496,registry:Region@2252,registry:Socket@15435,registry:Socket@5633,registry:Socket@6144,registry:Status@1835,registry:Target@16508,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11529,registry:Version@11631,whole:Fleet@20716,whole:Fleet@20745,whole:RegionalDomain@19271,whole:Route@130,whole:Route@15487,whole:Route@15494,whole:Route@15590,whole:Route@17399,whole:Route@19263,whole:Route@4692,whole:Route@5590,whole:Route@6200,whole:Route@648,whole:Route@8814,whole:Route@8887,whole:Route@8947,whole:RouteAlias@18449,whole:RoutePath@16233 97f470f2c952b3080c40f8ba6f38cc7619f0cab8c6433c4f0a53a420b6924657
+internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read registry:A@7013,registry:Account@4141,registry:Accounts@2803,registry:Addr@4718,registry:Addrs@4726,registry:Alias@7061,registry:Alias@7125,registry:Alias@7213,registry:Aliases@6935,registry:Alive@8888,registry:Args@6637,registry:AssetGen@4868,registry:AssetsOff@4855,registry:At@6009,registry:At@7144,registry:At@7222,registry:At@8636,registry:Attempts@8658,registry:B@2188,registry:Backing@4537,registry:BuildState@5105,registry:Changed@1996,registry:Changed@3226,registry:Changed@3313,registry:Changed@3402,registry:Changed@3473,registry:Changed@3577,registry:Changed@3664,registry:Changed@3757,registry:Changed@3839,registry:Changed@8568,registry:Channel@4201,registry:Channel@5450,registry:Channel@5854,registry:CheckedAt@5935,registry:Class@4656,registry:DoneBefore@8897,registry:Due@6338,registry:Due@6402,registry:Due@8680,registry:EgressAllow@5008,registry:Env@5518,registry:Env@5765,registry:Env@5865,registry:ExcludeHosts@8363,registry:ExcludeHosts@8458,registry:ExpectGood@6134,registry:ExpectOp@3281,registry:ExpectOp@3531,registry:ExpectPair@3711,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2246,registry:Fleet@2328,registry:Fleet@2409,registry:Fleet@2502,registry:FleetBoxes@2463,registry:Fleets@2112,registry:From@4312,registry:From@4373,registry:FromDB@4448,registry:FromOp@3369,registry:FromSock@4458,registry:Hash@5324,registry:Health@4735,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@2987,registry:Host@3028,registry:Host@3181,registry:Host@3257,registry:Host@3343,registry:Host@3435,registry:Host@3507,registry:Host@3613,registry:Host@3703,registry:Host@3791,registry:Host@3883,registry:Host@4133,registry:Host@4193,registry:Host@4251,registry:Host@4304,registry:Host@4365,registry:Host@4440,registry:Host@4529,registry:Host@4583,registry:Host@4648,registry:Host@4710,registry:Host@4788,registry:Host@4847,registry:Host@4935,registry:Host@5000,registry:Host@5097,registry:Host@5162,registry:Host@5223,registry:Host@5273,registry:Host@5316,registry:Host@5377,registry:Host@5510,registry:Host@5564,registry:Host@5625,registry:Host@5687,registry:Host@5917,registry:Host@6001,registry:Host@6058,registry:Host@6126,registry:Host@6215,registry:Host@6275,registry:Host@6330,registry:Host@6394,registry:Host@6578,registry:Host@6629,registry:Host@6696,registry:Host@6771,registry:Host@6834,registry:Host@7431,registry:Host@7557,registry:Host@7711,registry:Host@7999,registry:Host@8063,registry:Host@8122,registry:Host@8205,registry:Host@8288,registry:Host@8519,registry:Host@8604,registry:Host@8736,registry:Host@8817,registry:Host@8980,registry:Hosts@187,registry:Hosts@2866,registry:Hosts@5441,registry:Hosts@5756,registry:Hosts@5845,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2622,registry:Idle@6704,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@8996,registry:Kind@8825,registry:Kind@8988,registry:Label@2255,registry:Label@2337,registry:Label@2418,registry:Label@5633,registry:Limit@8354,registry:Limit@8449,registry:MaxRun@6712,registry:Method@151,registry:Ms@8652,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2641,registry:Name@8071,registry:Name@8130,registry:Name@8213,registry:Name@8527,registry:Name@8612,registry:Name@8744,registry:Next@301,registry:NextAt@8670,registry:NextGood@6148,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@6905,registry:Now@8347,registry:Now@8442,registry:Now@8535,registry:Number64@2729,registry:Number@8785,registry:Number@8856,registry:Number@8941,registry:Observed@365,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@6283,registry:On@6779,registry:On@6842,registry:Op@3199,registry:Op@3275,registry:Op@3443,registry:Op@3525,registry:Op@3621,registry:Op@3799,registry:Op@3891,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@7665,registry:Pair@3543,registry:Pair@3627,registry:Pair@3725,registry:Path@7896,registry:Paths@7593,registry:PolicyExpiresAt@5031,registry:Prefix@7719,registry:Prev@6073,registry:RDs@7565,registry:RateLimit@5385,registry:Regional@7463,registry:Registration@1040,registry:Registration@1151,registry:Registration@8221,registry:Registration@8620,registry:Replica@5231,registry:Replicas@5170,registry:Retirement@1891,registry:Route@2964,registry:Routes@2922,registry:Routes@3917,registry:Routes@6436,registry:Routes@6503,registry:Routes@6872,registry:Rows@8007,registry:Seed@6586,registry:Size@5023,registry:Sqid@2633,registry:Sqid@2696,registry:Sqid@2775,registry:Status@1056,registry:Status@2427,registry:Status@3189,registry:Status@3265,registry:Status@3351,registry:Status@3515,registry:Status@4259,registry:Status@5925,registry:Status@7134,registry:Status@8642,registry:Status@8752,registry:Steering@4796,registry:StringMap@2539,registry:T@757,registry:T@7947,registry:T@851,registry:T@934,registry:TValue@3069,registry:TValue@3136,registry:Tags@2346,registry:Target@5695,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@2743,registry:Text@7752,registry:Text@7815,registry:Timer@709,registry:Timer@8035,registry:Timer@891,registry:Timers@8258,registry:Timers@8317,registry:Timers@8406,registry:Times@9030,registry:To@4320,registry:To@4381,registry:ToDB@4470,registry:ToOp@3361,registry:ToSock@4478,registry:TokenHash@2264,registry:Tunnel@5572,registry:Unit@4591,registry:UpdateSettings@4943,registry:Ver@6066,registry:Ver@6223,registry:W@7365,registry:Wildcards@7259,whole:Account@2807,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2190,whole:FleetBox@2467,whole:GoodBuild@6136,whole:GoodBuild@6150,whole:Pair@3545,whole:Pair@3629,whole:Pair@3713,whole:Pair@3727,whole:RegionalDomain@7467,whole:RegionalDomain@7567,whole:Route@2926,whole:Route@2968,whole:Route@3071,whole:Route@3138,whole:Route@367,whole:Route@3921,whole:Route@4076,whole:Route@4082,whole:Route@6440,whole:Route@6507,whole:Route@6876,whole:RouteAlias@6939,whole:RouteAlias@7015,whole:RoutePath@7597,whole:RoutePath@7667,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@7949,whole:Timer@8009,whole:Timer@8039,whole:Timer@8262,whole:Timer@8321,whole:Timer@8410,whole:Timer@853,whole:Timer@895,whole:Timer@936,whole:WildcardDomain@7263,whole:WildcardDomain@7367 f58bfe53cd10cde6d90a38fa059ea5442728860cd577c6a8fb6c375f2cacc020
+internal/registry/registry.go Registry.Fingerprint legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user); the remote arm, unchanged, in the process that holds a remote handle: census-ruling-seeded-instances's body with the row's lifetime pair (incarnation, serving_seq) folded into the edge's change poll, each only when non-zero, so a registry with no pair digests as before; self-serve moves 1 Task 7;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read file:Exec@284,file:Open@188,file:Query@368,file:Query@4095,file:Query@4574,file:Query@5560,file:Query@6256,file:Query@7168,file:Query@8225,registry:ClaimIncarnation@1256,registry:ClaimIncarnation@3003,registry:ClaimIncarnation@3080,registry:ClaimOwner@1300,registry:ClaimOwner@3204,registry:ClaimOwner@3269,registry:ClaimRowID@1319,registry:ClaimRowID@3296,registry:ClaimRowID@3362,registry:ClaimStamp@1281,registry:ClaimStamp@3113,registry:ClaimStamp@3177,registry:Incarnation@1364,registry:Incarnation@3583,registry:Incarnation@3647,registry:ServingSeq@1383,registry:ServingSeq@3674,registry:ServingSeq@3737,registry:Text@158,registry:path@207,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 f9882e8cf70238043dfe63d4f9a6266b436eddae52b75048997b548de343e626
+internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed file:Exec@1694,file:Exec@2248,file:Exec@3186,file:Exec@3465,file:Exec@4328,file:Exec@4504,file:Exec@51,file:Exec@600,file:Exec@963,registry:Claim@525,registry:sql@1694,registry:sql@2248,registry:sql@3186,registry:sql@3465,registry:sql@4328,registry:sql@4504,registry:sql@51,registry:sql@600,registry:sql@963,whole:addedColumn@500 3d56357571a1a6ee368598b8d917a3330838f796d923f2ee422447f237f6cbae
+@coverage . b54ab95092b066db48fe3a11e0e203efe43da5d6ed8b9efbf5f8d2cca22f2013
+@coverage internal/domains 2d2477d8dea8749ad2a7bb23bb6651a78a7e6226a84fc2d00d936901b029e911
+@coverage internal/edge fdc09f802925eb78e7c48ccf2f096797095d90386e887bbd993be31747c117d2
+@coverage internal/host df133fd5129f6dc9c96c94581aae3c0d86ca44e40d0120900775c7bdec4ff1cd
+@coverage internal/provision b65531c7e08810bd99f0916d9b0ac2c4d4e90350fc6f6fd882d013211ebd14ab
+@coverage internal/registry 6c7d896fca0a841962a6194dcb8c9069a09a36e31e55fa943060ba8d8bbd91d9
+@coverage internal/release 544f7fb24285d1d63cc5be3b400f92a97886455b2489d5449aeee076bcd19415
+@coverage internal/status 089eec9badb0d48c4138e8fe348ffe58d716b1de8f9f850cf99c753641c45719
+@fields A,Account,Accounts,AddedAt,Addr,Addrs,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,At,Attempts,B,Backing,Bucket,BuildState,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Contents,CreatedAt,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,Demand,Digest,DoneBefore,Due,DueAt,EgressAllow,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,F,Failed,FenceGen,Fleet,FleetBox,FleetBoxes,Fleets,From,FromDB,FromOp,FromSock,Gate,GoodDemand,GoodDigest,GoodVersion,HA,Hash,Health,Held,Hibernate,HoldOp,Host,Hosts,ID,Id,IdValue,Idle,IdleSeconds,ImportGate,Incarnation,Journal,Keep,Kind,Label,LastAt,LastError,LastMs,LastStatus,Limit,MaxRun,MaxRunSeconds,Method,Ms,Name,Next,NextAt,NextDue,NextGood,NextValue,Now,Number,Number64,Observed,ObservedValue,Old,On,Op,Original,Owner,Ownership,P,Pair,Path,Paths,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,Provisioned,RDs,RateLimit,RecordKey,Region,Regional,Registration,Replica,Replicas,Replication,Retirement,Route,Routes,Row,Rows,Runtime,Seed,SeedID,SeedSource,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,State,Status,StatusNamed,Steering,StringMap,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Type,Unit,UpdateSettings,Ver,Version,W,WakeIncarnation,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait