carlos / platform Public

census: account subdomains final fix round 2

Write census: AttachAccountNamespace and putNamespace re-pinned (each
also stamps Claim.Revision); no class or kind changes. Header updated
to name memberBackups2aWriteCensusInventory and the 2a merge (Fable
minor).

Root-read overlay re-proposed with make census-propose: one new unit,
internal/domains/namespace.go:newNamespaceRevision (+file:Read, the
crypto/rand.Read of 16 bytes; its claim line is in the local census
claims file under .superpowers, which is not tracked), and the internal/domains
envelope. Seal b130b2d6 -> bc306a42. Not yet approved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 31e74850098686a6c43e9990bddcef8f0fcf21ea parent b47061f
4 files changed, +32 −12
  • docs/superpowers/notes/census-proposal-account-subdomains.md +3 −2
  • internal/provision/account_subdomains_census_test.go +24 −7
  • internal/provision/testdata/plan14-root-reads-account-subdomains.tsv +4 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1

CI cancelled — superseded by a newer push — run details

Intent

Attributed to this commit: 8.64 g CO₂e (1,105,126 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-account-name-hosts, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-account-subdomains.md b/docs/superpowers/notes/census-proposal-account-subdomains.md
index 8dfa030c0..1dc4e4c16 100644
--- a/docs/superpowers/notes/census-proposal-account-subdomains.md
+++ b/docs/superpowers/notes/census-proposal-account-subdomains.md
@@ -1,6 +1,6 @@
# Census approval: account-subdomains
-Ruling `census-ruling-account-subdomains`. The independent reviewer approves or rejects every change below, 8 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-account-subdomains`. The independent reviewer approves or rejects every change below, 9 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -30,6 +30,7 @@ Recorded dispositions, which each change must still satisfy:
New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+- new `internal/domains/namespace.go:newNamespaceRevision`: reads +file:Read; written legacy, accepted-legacy, frozen
- new `internal/domains/namespacealiases.go:deriveNamespaceAliases`: reads +registry:Account ×2, +registry:Alias, +registry:App ×3, +registry:DNSStatus, +registry:HA, +registry:Host ×6, +registry:Platform, +registry:Provisioned, +registry:Replica, +whole:Route ×13, +whole:RouteAlias ×5; written legacy, accepted-legacy, frozen
- new `internal/domains/namespacealiases.go:isNamespaceDerived`: reads +registry:Account, +registry:Alias, +registry:Host; written legacy, accepted-legacy, frozen
- new `internal/domains/namespacealiases.go:keepNamespaceAliases`: reads +registry:Alias ×5, +whole:Route, +whole:RouteAlias ×2; written legacy, accepted-legacy, frozen
@@ -39,6 +40,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
- reads `internal/registry/remote_dispatch.go:Registry.dispatchRemote`: +registry:Names, +registry:StringMap; keeps hint, task E2
-Seal: `b130b2d616e6476f056f4bd3dd5a5f64dd77aca49e95718ad6419ed0fd37f2d5` → `165bf116cccdee8beebf0c163f33c5fc44f293a89596ef73c5057fbb0ace7e21`.
+Seal: `b130b2d616e6476f056f4bd3dd5a5f64dd77aca49e95718ad6419ed0fd37f2d5` → `bc306a42e5d5c2c03d38c1e574a30b98e9cae71e209eec241bc33da0ae851314`.
Overlay: `internal/provision/testdata/plan14-root-reads-account-subdomains.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/account_subdomains_census_test.go b/internal/provision/account_subdomains_census_test.go
index fc44cfedc..214c7c29e 100644
--- a/internal/provision/account_subdomains_census_test.go
+++ b/internal/provision/account_subdomains_census_test.go
@@ -2,10 +2,14 @@ package provision
// accountSubdomainsWriteCensusInventory is the account subdomains review of
// the record-write census (spec 2026-11-11-account-subdomains-design.md),
-// layered on memberBackups1WriteCensusInventory (main's tip at the merge of
-// main into this branch; it was first written on
-// linkedDeploymentsSlice1WriteCensusInventory). Later tasks of the plan add
-// their re-pins and new units here.
+// layered on memberBackups2aWriteCensusInventory (main's tip at the second
+// merge of main into this branch, 178dcfe5, member backups slice 2a). It
+// was first written on linkedDeploymentsSlice1WriteCensusInventory, then
+// layered on memberBackups1WriteCensusInventory at the first merge. The
+// 2a merge needed no re-pin here: slice 2a's units (dbverify Publish,
+// PublishOver and RemoveHost, moves.OfflineManifest) and this inventory's
+// do not overlap. Later tasks of the plan add their re-pins and new units
+// here.
//
// Task 2 (the namespace claim in internal/domains) adds one unit; no record
// write is added and no existing unit changes:
@@ -121,7 +125,8 @@ package provision
// its own write (Astra P2-3). nonrecord / sel:Put, as before.
// - putNamespace (new): the one Put of the four new namespace writers
// (RetireAccountNamespace, UnretireAccountNamespace,
-// ReplaceRetiredAccountNamespace, RestoreRetiredAccountNamespace), at
+// ReplaceRetiredAccountNamespace, and, until round 2 removed it,
+// RestoreRetiredAccountNamespace), at
// the same claim key, always conditional on the ETag of the revision
// the writer read and judged (never create-only, never unconditional);
// a lost CAS writes nothing. A domains/ claim key, never a record key or
@@ -132,6 +137,18 @@ package provision
// P2-5). Display only; the listing and the instances-literal sites are
// unchanged. key-site / lit:instances, as before.
//
+// Final fix round 2 (Astra final re-review, Important 2) re-digests the two
+// namespace Put units; no class or kind changes:
+// - AttachAccountNamespace and putNamespace (re-pinned): each write now
+// also stamps Claim.Revision, 128 random bits in hex, so no two
+// namespace writes have the same bytes or the same ETag. The same Put
+// at the same claim key, create-only and ETag-conditional
+// respectively, as before. nonrecord / sel:Put, as before.
+// RestoreRetiredAccountNamespace is gone (it reached the store only
+// through putNamespace, so it was never a unit): the set door's rollback
+// of an unretire or a replace now retires through
+// RetireAccountNamespace at the door's clock (Important 1).
+//
// The create, import and seed doors answer through publicRecordView too;
// the census does not count those functions as units, so they need no pin.
func accountSubdomainsWriteCensusInventory() []censusEntry {
@@ -180,8 +197,8 @@ func accountSubdomainsWriteCensusInventory() []censusEntry {
}
}
return append(entries,
- censusEntry{"internal/domains/namespace.go", "AttachAccountNamespace", "nonrecord", "sel:Put", "c405dc149245152972435cdc60936088f1b4d1bbe3bbb12526cdbf2d0e1ba10a"},
- censusEntry{"internal/domains/namespace.go", "putNamespace", "nonrecord", "sel:Put", "4c78aa1db56b33c61478bd28dcdc582108c0d802343a959588faf19827765606"},
+ censusEntry{"internal/domains/namespace.go", "AttachAccountNamespace", "nonrecord", "sel:Put", "93653b4a10e6135e457ae12242d57b1e93a3bcbc3c27d2c4fa2aee19560d4c4f"},
+ censusEntry{"internal/domains/namespace.go", "putNamespace", "nonrecord", "sel:Put", "de037943b54b6a95519f21d677bebd28dc8fa0e78c019408507e3f2ef3482b28"},
censusEntry{"internal/provision/recordhost.go", "declaredRecordKeys", "key-site", "lit:instances", "f396f0bd46328f209ff9f0d966d735a9c25fc3f691298e8815cd29e2ee47c2cf"},
censusEntry{"internal/provision/recordhost.go", "RecordHostDeclaredUnder", "key-site", "key:ParseRecordKey", "d465d7382b20167ed49b28f4c9c59f45bfe3debea6882aefb4233a443fc9f162"},
censusEntry{"internal/console/subdomains.go", "pinnedClaimStore.Put", "nonrecord", "def:Put,sel:Put", "a7d301a0ea7fd1f7b48bfa8cd2687a000b38f311715d3458acba4fc35e6500b2"},
diff --git a/internal/provision/testdata/plan14-root-reads-account-subdomains.tsv b/internal/provision/testdata/plan14-root-reads-account-subdomains.tsv
index 55f44c80d..bbaaee3c1 100644
--- a/internal/provision/testdata/plan14-root-reads-account-subdomains.tsv
+++ b/internal/provision/testdata/plan14-root-reads-account-subdomains.tsv
@@ -1,9 +1,10 @@
# Census overlay account-subdomains, written by census-propose (#369). census-ruling-account-subdomains, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-account-subdomains.md.
# 3 body, 5 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 8 new dispositions: 1 reads re-frozen at their disposition with the claim, 6 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+# 9 new dispositions: 1 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 ba7631ab091aeb9074ce874bc504dbab9714a6db83d21e087ea256517decca90 deploy.go runDeploy legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets and --no-assets, refuses both together and bad folders before anything runs (deployAssets), reads the folders saved in .carlos/config for the session's console through configAssets (the config walk the CLI already makes), and saves a new list there as it saves the other deploy settings; read site unchanged (1), none added;rev3=census-ruling-gated-deploy-watch-164;basis=the static-deploy branch passes its watch targets through passGatedTargets (a console POST for a gate pass per gated host) and passes the gated-host set to watchDeployed; no new local read, read site unchanged (1), none added;rev3=census-ruling-region-labels;basis=builds a host-to-label map (hostPlaces) from the instance list it already read and passes it to the static watch targets and watchDeployed, so the watch lines say where; no read added;rev3=census-ruling-first-deploy-493;basis=Sequences existing console APIs for confirmed-missing app and first instance creation, with repeatable environment values; local artifact preflight before these new writes. Existing config artifact stat read retained.;rev3=census-ruling-account-subdomains;basis=builds its watch targets with watchTargetsFor (host, watchOrigin(host), the instance list's public_host as Display, place, probe) from the instance list it already read, and passes them to watchDeployed; deployingLine prints the public host from that same list; the watch still dials and matches host; no read added, read site unchanged (1); fix round 1: a first static deploy keeps the create answer mintPlatformHost now returns (the whole record, not its host) and carries its public_host into the record it appends, for printing only; mintPlatformHost makes the same two console requests as before file:Stat@9052 272076ae95f6342e8bcba1d8e8a968b96c608ec0ec09650c7ecc57674438de3a
@legacy 44c3c50f4bcda5c032356b159d9e5f4a15fdb66c82cbeca1989f1d1a247bac21 internal/edge/wildcard.go newWildcardFromEnv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-agent-start-demo-1;basis=Includes the configured demo domain in the existing wildcard manager's explicit parent input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W2a: on a gated box (issuer gate armed: store and mirror exist) with no DNS provider, builds a serve-only wildcard manager that loads and serves wildcard PEMs from the existing local cache/mirror and never orders (dns nil never reaches obtain). Ungated boxes still get nil. Same parent inputs; no new path or provider credential read.;rev3=census-ruling-account-subdomains;basis=with PLATFORM_APPS_DOMAIN set, also gives the wildcard manager a names reader: the edge's own registry handle's ListAccountNamespaces (the box's own registry database, as carlos, as ListWildcardDomains beside it), keeping the last good names on a read error; refresh() inverts them to sqid -> name and parentsFor adds <name>.<apps-domain> as a parent only beside a sqid parent it already derives from a route host, and only for a name in the subdomain shape; no apps domain, no reader; same read sites (body change only); no file, path, command or bucket read added registry:Host@6617,whole:WildcardDomain@6564,whole:WildcardDomain@6590 3fd6037048f31fdf43704ab87f43ab45a8aa8ad1a73b92bc656eeae367b4b225
@legacy 25840eb4a2ba81e4108851318ad48bc9d7bdccc6a824c7a8ca372306428913bb internal/host/agent.go aliasPassReportingComplete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Extract the existing serialized alias pass, add cancellable locking and routing-only alias/regional publication from its completeness report; existing deployment/claim/registry reads retained, new in-memory Route/RegionalDomain passes.;rev3=census-ruling-fix-incomplete-domains-pass;basis=gains a startup bool parameter that it copies into domains.AliasReport.StartupNoRemoval; runHAIngressStartup passes true, aliasPassReporting (the ordinary agent pass) passes false; same reads and calls, body change only; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=sets AliasReport.AppsDomain from PLATFORM_APPS_DOMAIN (trimmed), the variable domainsTickConfig reads; same reads and calls otherwise; body change only whole:RegionalDomain@1778,whole:Route@1856,whole:Route@957,whole:Route@979,whole:Route@998 8a439cd701910b91d9bf8c39e96a56141c20c063f590dc26f557eb5337884ad6
+@legacy 8cfcde7fc3ea4c0abd6f3acd60f47b7bd7fe47c604c6897bdefbc09d9aa9f586 internal/domains/namespace.go newNamespaceRevision legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: 16 bytes from crypto/rand.Read (the kernel CSPRNG through getrandom; the +file:Read is that call, no file path, tenant input or bucket object), hex-encoded into Claim.Revision by the console's namespace writers; never run by root, never a decision file:Read@76 bb5b8155d227dd57daa3141f7ef95cd0684277f8abbc2de94dd4d2f87d420558
@legacy 6640a6d2ced4baaf78c77b55c524e0cdf0392c0d028319922700db419e9a5c57 internal/domains/namespacealiases.go deriveNamespaceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: derives <prefix>.<name>.<apps> -> <prefix>.<sqid>.<apps> alias rows from the routes, alias rows and claim listing the pass already read (Provisioned or Platform, not sidecar or replica, of the name's account), writes them "pointing" (fix round 1) with UpsertAlias, and SetAliasDNSStatus("pointing") for an existing one that is not, to the box's own registry, and HA names into the in-memory AliasIngress report; no file, path or bucket read registry:Account@1666,registry:Account@2867,registry:Alias@760,registry:App@1687,registry:App@1696,registry:App@1812,registry:DNSStatus@2137,registry:HA@2758,registry:Host@1238,registry:Host@1645,registry:Host@1655,registry:Host@1783,registry:Host@2740,registry:Host@2849,registry:Platform@1062,registry:Provisioned@1044,registry:Replica@1096,whole:Route@1028,whole:Route@1156,whole:Route@2412,whole:Route@2494,whole:Route@2532,whole:Route@2714,whole:Route@2769,whole:Route@3107,whole:Route@3172,whole:Route@3246,whole:Route@3302,whole:Route@3326,whole:Route@919,whole:RouteAlias@1617,whole:RouteAlias@712,whole:RouteAlias@742,whole:RouteAlias@755,whole:RouteAlias@771 c100c0ab8340ac352b4ccce7c6db7c572d5d54d4ba8924214d1cc097a7e39f21
@legacy bfff2db67ed66e28eac929243b4893d7d29c6753020540e504a1eba8d66e2f3d internal/domains/namespacealiases.go isNamespaceDerived legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: pure predicate over one alias row and the held-name map; no read registry:Account@220,registry:Alias@133,registry:Host@241 c647beeb6870d420d9748a891d9889a264757b22f141f08925157e7ac0f2628d
@legacy e8451b20617a4257e7f9a03a40a1dd1ba4319cfcb42a8baeda9dc3b657f708f6 internal/domains/namespacealiases.go keepNamespaceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: marks already-read alias rows of an unread namespace name as desired for this pass; no read, no write registry:Alias@372,registry:Alias@392,registry:Alias@421,registry:Alias@472,registry:Alias@762,whole:Route@465,whole:RouteAlias@285,whole:RouteAlias@321 57298aa31f68e53ee4637b28d912e0ec150f93d36f551044a6f8ae7c925c31ac
@@ -18,6 +19,7 @@
deploy.go runDeploy legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets and --no-assets, refuses both together and bad folders before anything runs (deployAssets), reads the folders saved in .carlos/config for the session's console through configAssets (the config walk the CLI already makes), and saves a new list there as it saves the other deploy settings; read site unchanged (1), none added;rev3=census-ruling-gated-deploy-watch-164;basis=the static-deploy branch passes its watch targets through passGatedTargets (a console POST for a gate pass per gated host) and passes the gated-host set to watchDeployed; no new local read, read site unchanged (1), none added;rev3=census-ruling-region-labels;basis=builds a host-to-label map (hostPlaces) from the instance list it already read and passes it to the static watch targets and watchDeployed, so the watch lines say where; no read added;rev3=census-ruling-first-deploy-493;basis=Sequences existing console APIs for confirmed-missing app and first instance creation, with repeatable environment values; local artifact preflight before these new writes. Existing config artifact stat read retained.;rev3=census-ruling-account-subdomains;basis=builds its watch targets with watchTargetsFor (host, watchOrigin(host), the instance list's public_host as Display, place, probe) from the instance list it already read, and passes them to watchDeployed; deployingLine prints the public host from that same list; the watch still dials and matches host; no read added, read site unchanged (1); fix round 1: a first static deploy keeps the create answer mintPlatformHost now returns (the whole record, not its host) and carries its public_host into the record it appends, for printing only; mintPlatformHost makes the same two console requests as before file:Stat@9052 272076ae95f6342e8bcba1d8e8a968b96c608ec0ec09650c7ecc57674438de3a
internal/edge/wildcard.go newWildcardFromEnv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-agent-start-demo-1;basis=Includes the configured demo domain in the existing wildcard manager's explicit parent input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W2a: on a gated box (issuer gate armed: store and mirror exist) with no DNS provider, builds a serve-only wildcard manager that loads and serves wildcard PEMs from the existing local cache/mirror and never orders (dns nil never reaches obtain). Ungated boxes still get nil. Same parent inputs; no new path or provider credential read.;rev3=census-ruling-account-subdomains;basis=with PLATFORM_APPS_DOMAIN set, also gives the wildcard manager a names reader: the edge's own registry handle's ListAccountNamespaces (the box's own registry database, as carlos, as ListWildcardDomains beside it), keeping the last good names on a read error; refresh() inverts them to sqid -> name and parentsFor adds <name>.<apps-domain> as a parent only beside a sqid parent it already derives from a route host, and only for a name in the subdomain shape; no apps domain, no reader; same read sites (body change only); no file, path, command or bucket read added registry:Host@6617,whole:WildcardDomain@6564,whole:WildcardDomain@6590 3fd6037048f31fdf43704ab87f43ab45a8aa8ad1a73b92bc656eeae367b4b225
internal/host/agent.go aliasPassReportingComplete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Extract the existing serialized alias pass, add cancellable locking and routing-only alias/regional publication from its completeness report; existing deployment/claim/registry reads retained, new in-memory Route/RegionalDomain passes.;rev3=census-ruling-fix-incomplete-domains-pass;basis=gains a startup bool parameter that it copies into domains.AliasReport.StartupNoRemoval; runHAIngressStartup passes true, aliasPassReporting (the ordinary agent pass) passes false; same reads and calls, body change only; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=sets AliasReport.AppsDomain from PLATFORM_APPS_DOMAIN (trimmed), the variable domainsTickConfig reads; same reads and calls otherwise; body change only whole:RegionalDomain@1778,whole:Route@1856,whole:Route@957,whole:Route@979,whole:Route@998 8a439cd701910b91d9bf8c39e96a56141c20c063f590dc26f557eb5337884ad6
+internal/domains/namespace.go newNamespaceRevision legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: 16 bytes from crypto/rand.Read (the kernel CSPRNG through getrandom; the +file:Read is that call, no file path, tenant input or bucket object), hex-encoded into Claim.Revision by the console's namespace writers; never run by root, never a decision file:Read@76 bb5b8155d227dd57daa3141f7ef95cd0684277f8abbc2de94dd4d2f87d420558
internal/domains/namespacealiases.go deriveNamespaceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: derives <prefix>.<name>.<apps> -> <prefix>.<sqid>.<apps> alias rows from the routes, alias rows and claim listing the pass already read (Provisioned or Platform, not sidecar or replica, of the name's account), writes them "pointing" (fix round 1) with UpsertAlias, and SetAliasDNSStatus("pointing") for an existing one that is not, to the box's own registry, and HA names into the in-memory AliasIngress report; no file, path or bucket read registry:Account@1666,registry:Account@2867,registry:Alias@760,registry:App@1687,registry:App@1696,registry:App@1812,registry:DNSStatus@2137,registry:HA@2758,registry:Host@1238,registry:Host@1645,registry:Host@1655,registry:Host@1783,registry:Host@2740,registry:Host@2849,registry:Platform@1062,registry:Provisioned@1044,registry:Replica@1096,whole:Route@1028,whole:Route@1156,whole:Route@2412,whole:Route@2494,whole:Route@2532,whole:Route@2714,whole:Route@2769,whole:Route@3107,whole:Route@3172,whole:Route@3246,whole:Route@3302,whole:Route@3326,whole:Route@919,whole:RouteAlias@1617,whole:RouteAlias@712,whole:RouteAlias@742,whole:RouteAlias@755,whole:RouteAlias@771 c100c0ab8340ac352b4ccce7c6db7c572d5d54d4ba8924214d1cc097a7e39f21
internal/domains/namespacealiases.go isNamespaceDerived legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: pure predicate over one alias row and the held-name map; no read registry:Account@220,registry:Alias@133,registry:Host@241 c647beeb6870d420d9748a891d9889a264757b22f141f08925157e7ac0f2628d
internal/domains/namespacealiases.go keepNamespaceAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-account-subdomains;basis=new: marks already-read alias rows of an unread namespace name as desired for this pass; no read, no write registry:Alias@372,registry:Alias@392,registry:Alias@421,registry:Alias@472,registry:Alias@762,whole:Route@465,whole:RouteAlias@285,whole:RouteAlias@321 57298aa31f68e53ee4637b28d912e0ec150f93d36f551044a6f8ae7c925c31ac
@@ -31,7 +33,7 @@ internal/domains/reconcile.go StampHealth legacy accepted-legacy accepted-legacy
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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): review R1 finding 1: the routes SELECT also reads host, kind, account, app, platform and fingerprintForwardInert (one CASE over the ForwardForbidden columns), and every row folds host, kind, account and app (tagged, quoted), platform when set, and forward_inert=0 for a forward row that is not inert, so a rowid reused by another hostname, an in-place account or app rewrite, or a stray forbidden column moves the edge's change poll. Same one SELECT per table on the same fresh connection to the box's own registry database, as carlos; no table, file or bucket read added; a digest, never a decision.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5): the SELECT also reads fleet_label and, only when it is set, hashes "fleet_label=<q>" into the digest, so labelling a row moves the edge's reload fingerprint. Read sites unchanged (33). Registry side, not root; an unlabelled registry's digest is byte-identical.;rev3=census-ruling-stateless-replicas-1;basis=Read the additive stateless projection in the existing registry SELECT and hash only when set; no new read source.;rev3=census-ruling-agent-start-demo-1;basis=Existing SELECT reads four more demo columns; only a marked row adds them to the hash, so ordinary hashes remain unchanged.;rev3=census-ruling-stateless-replicas-2;basis=Four additive projection columns join the existing routes SELECT and hash only when nonzero; no new query or file read. merge of origin/main 6be08467: Union main demo identity and expiry with replica columns in the same SELECT and hash; merge-only body change.;rev3=census-ruling-agent-start-demo-3;basis=Hash moved-notice wire bytes so notice-only changes invalidate an edge route snapshot. Census read-site delta: +file:QueryRow.;rev3=census-ruling-edge-page-cache-1;basis=selects the new pages_off column with the rest and folds "pages_off=1" into the hash only when set, as assets_off, so a registry that never sets it fingerprints as before; same routes SELECT, no new table; read sites unchanged (34); no read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: hashes link_channels (link_id, account, token_hash, status, generation; connected, seen_at, seq and created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no links digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision; linked deployments slice 1 Task 7: also folds home_link (id, serving_url, tunnel_url, the token's sha256 never the token, account, apps_domain, box_label, conn_gen; state and created_at not) and home_link_apps (name, home_account, home_app, home_host) through fingerprintHomeLink over the same fresh connection, each section marker written only when a row exists, so a registry with no link digests as before; no file path read; a digest, never a decision;rev3=census-ruling-account-subdomains;basis=hashes account_namespaces (name, account) over the same fresh connection, with a section marker written only when a row exists, so a registry with no held names digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision file:Exec@284,file:Open@188,file:Query@10785,file:Query@11707,file:Query@12810,file:Query@368,file:Query@6655,file:Query@7134,file:Query@8120,file:Query@8816,file:Query@9728,file:QueryRow@13727,registry:ClaimIncarnation@1729,registry:ClaimIncarnation@5563,registry:ClaimIncarnation@5640,registry:ClaimOwner@1773,registry:ClaimOwner@5764,registry:ClaimOwner@5829,registry:ClaimRowID@1792,registry:ClaimRowID@5856,registry:ClaimRowID@5922,registry:ClaimStamp@1754,registry:ClaimStamp@5673,registry:ClaimStamp@5737,registry:Incarnation@1848,registry:Incarnation@6143,registry:Incarnation@6207,registry:ServingSeq@1867,registry:ServingSeq@6234,registry:ServingSeq@6297,registry:Text@158,registry:path@207,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 a52e0bc25d555bbf22f35655c54c0fa3aca6cedec5f0b6b80157d9d95f921a29
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;rev3=census-ruling-region-ha-p1b3b-t;basis=Create local HA duty/replay tables and revision triggers in the existing registry connection; no new database path.;rev3=census-ruling-agent-start-demo-3;basis=Create moved-notice storage as a single (id, wire) row; fingerprints include the stored wire bytes. Census read-site delta: +file:Exec, +registry:sql.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: calls migrateLinks after migrateHADuties (one CREATE TABLE IF NOT EXISTS link_channels, an in-binary literal); additive, no existing statement changed; linked deployments slice 1 Task 7: also runs migrateHomeLink (CREATE TABLE IF NOT EXISTS home_link and home_link_apps) after migrateLinks; additive, the box's own registry database, as carlos;rev3=census-ruling-account-subdomains;basis=one more CREATE TABLE IF NOT EXISTS account_namespaces (name TEXT PRIMARY KEY, account TEXT NOT NULL), an in-binary literal (+file:Exec, +registry:sql); additive, no existing statement changed file:Exec@1124,file:Exec@1855,file:Exec@212,file:Exec@2409,file:Exec@3057,file:Exec@3822,file:Exec@4101,file:Exec@4964,file:Exec@51,file:Exec@5140,file:Exec@761,registry:Claim@686,registry:sql@1124,registry:sql@1855,registry:sql@212,registry:sql@2409,registry:sql@3057,registry:sql@3822,registry:sql@4101,registry:sql@4964,registry:sql@51,registry:sql@5140,registry:sql@761,whole:addedColumn@661 0c5fdaf1215e8f81c156a1fc1576cb075c2a52238bde75fc8320d49472fd117d
@coverage . d6ae7a91a51bf9a28f5d8979e3150816eb8b9e943e796ae8a5192b4773df4a41
-@coverage internal/domains 71a6098db9d7817644ef75d9674ca22b6524e7f3c30f2cb31de55f0b61126c57
+@coverage internal/domains d2c7a0dc9c164bb764dc65a5e004c8cc12ce575e2413204a1040f0c1ba228a12
@coverage internal/edge 2f9527a8be433bf2d560cd1293ea04e8e357898ed7241a5854bc403a79cd9aad
@coverage internal/host 9388ccee0b3287e82898e47c0b6da2991fe9a20ff3c0c600e59dbf2ed89210d3
@coverage internal/provision 8b7747ecb67234457618a5ab9f2454823520065ddac23360be60fd93d26ec131
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index a829ef3cd..1fccd8a79 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -177,4 +177,4 @@ plan14-root-reads-member-backups-1.tsv b3d35a0bd7c0500c74efbe5e8f566adb623696d31
plan14-root-reads-gvisor-empty-execstart.tsv 44b11f63c98595a70e62124034bdf5185c5a58561e99e3e269141557cf13880f
plan14-root-reads-demo-referrer-same-origin.tsv 44b11f63c98595a70e62124034bdf5185c5a58561e99e3e269141557cf13880f
plan14-root-reads-member-backups-2a.tsv b130b2d616e6476f056f4bd3dd5a5f64dd77aca49e95718ad6419ed0fd37f2d5
-plan14-root-reads-account-subdomains.tsv 165bf116cccdee8beebf0c163f33c5fc44f293a89596ef73c5057fbb0ace7e21
+plan14-root-reads-account-subdomains.tsv bc306a42e5d5c2c03d38c1e574a30b98e9cae71e209eec241bc33da0ae851314