carlos / platform Public

domains: a kept path prefix rechecks its target's account

Census round 2 (Astra): a path kept for an unread claim checked only
its host's route, so a target host reassigned to another account would
keep receiving the prefix's traffic. Keep it only while the target is a
local ready route of the row's account, the derivation's own rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 853cf5caa13ab1f78c616c1d83b86342bd098990 parent ace19b2
5 files changed, +36 −7
  • docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md +2 −2
  • internal/domains/aliases.go +7 −1
  • internal/domains/aliases_unread_keep_test.go +23 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv +3 −3

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md b/docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md
index 5a8086a40..62eb07a86 100644
--- a/docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md
+++ b/docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md
@@ -4,7 +4,7 @@ Ruling `census-ruling-fix-incomplete-domains-pass`. The independent reviewer app
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/domains/aliases.go` `ReconcileAliasesReport` | sites | +registry:Account ×3, +registry:Alias, +registry:App ×6, +registry:Host ×9, +whole:RegionalDomain, +whole:Route ×6, +whole:WildcardDomain ×4 | keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app; only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision |
+| `internal/domains/aliases.go` `ReconcileAliasesReport` | sites | +registry:Account ×4, +registry:Alias, +registry:App ×6, +registry:Host ×9, +registry:Status, +registry:Target, +whole:RegionalDomain, +whole:Route ×8, +whole:WildcardDomain ×4 | keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app and the target is a local ready route of the row account (the derivation tenancy rule); only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision |
Envelopes re-pinned: `internal/domains`.
@@ -14,6 +14,6 @@ Recorded dispositions, which each change must still satisfy:
- `internal/domains/aliases.go` `ReconcileAliasesReport`: legacy, task accepted-legacy. Basis: 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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.
-Seal: `3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b` → `63b3795aab5e4aaf1ffec8fc3d4f6c8870be567aa2e5eafc2fcc59a9600f7a97`.
+Seal: `3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b` → `c9d4c217f5e7780323f8d83dcb6ae4c99aa56e8509f527b0a7590bef51db566c`.
Overlay: `internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/domains/aliases.go b/internal/domains/aliases.go
index 257b36067..c6ff6dfff 100644
--- a/internal/domains/aliases.go
+++ b/internal/domains/aliases.go
@@ -927,7 +927,13 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
}
for _, p := range existingPaths {
if _, ok := desiredPaths[p.Host+"\x00"+p.Prefix]; !ok {
- if rt, ok := byHost[p.Host]; ok && keep[p.Host] && rt.App == p.App && release.RouteAccount(rt) == p.Account {
+ // Kept only while it would still derive: the host's route is the
+ // row's account and app, and the target is a local READY route
+ // of the same account (the derivation's tenancy rule above).
+ rt, ok := byHost[p.Host]
+ tgt, tok := byHost[p.Target]
+ if ok && tok && keep[p.Host] && rt.App == p.App && release.RouteAccount(rt) == p.Account &&
+ tgt.Status == "ready" && release.RouteAccount(tgt) == p.Account {
continue // its claim was not read this pass: kept as it is
}
if err := reg.DeletePath(p.Host, p.Prefix); err != nil {
diff --git a/internal/domains/aliases_unread_keep_test.go b/internal/domains/aliases_unread_keep_test.go
index 27648e12f..076c326f1 100644
--- a/internal/domains/aliases_unread_keep_test.go
+++ b/internal/domains/aliases_unread_keep_test.go
@@ -207,3 +207,26 @@ func TestUnreadCatchallDoesNotShieldAListedSibling(t *testing.T) {
t.Fatal("the unread catch-all's own instance name was dropped")
}
}
+
+// TestUnreadClaimKeptPathRechecksItsTarget: a kept path prefix must still
+// name a target of its own account. If the target host now belongs to
+// another account, the prefix goes even though its claim was not read.
+func TestUnreadClaimKeptPathRechecksItsTarget(t *testing.T) {
+ e := newAliasEnv(t)
+ addRoute(t, e.reg, "shop.example.com", "abc", "shop")
+ addRoute(t, e.reg, "api.example.com", "abc", "api")
+ putClaim(t, e.store, Claim{Host: "shop.example.com", Account: "abc", App: "shop", Paths: map[string]string{"api": "api.example.com"}})
+ e.mustPass()
+ addRoute(t, e.reg, "api.example.com", "xyz", "api") // target reused
+ unread := unreadKeysStore{e.store, map[string]bool{ClaimKey("shop.example.com"): true}}
+ if _, err := e.pass(unread, known(), nil); err != nil {
+ t.Fatal(err)
+ }
+ paths, err := e.reg.ListPaths()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if len(paths) != 0 {
+ t.Fatalf("a kept prefix now sends traffic to another account: %+v", paths)
+ }
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 47e1b3b57..83a915e84 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -110,4 +110,4 @@ plan14-root-reads-demo-api-claim-paths.tsv ebeaa693941f5592cd7bc3458effc2a333a8d
plan14-root-reads-demo-moved-capability.tsv ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939
plan14-root-reads-demo-snapshot-unit-check.tsv 1e83ce23d7d1306e3963f802fecf8c914a2624726255e3bc30382104e568adde
plan14-root-reads-region-ha-g2-fixes.tsv 3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b
-plan14-root-reads-fix-incomplete-domains-pass.tsv 63b3795aab5e4aaf1ffec8fc3d4f6c8870be567aa2e5eafc2fcc59a9600f7a97
+plan14-root-reads-fix-incomplete-domains-pass.tsv c9d4c217f5e7780323f8d83dcb6ae4c99aa56e8509f527b0a7590bef51db566c
diff --git a/internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv b/internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv
index a6bfc3f94..979da5c53 100644
--- a/internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv
+++ b/internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv
@@ -1,5 +1,5 @@
# Census overlay fix-incomplete-domains-pass, written by census-propose (#369). census-ruling-fix-incomplete-domains-pass, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md.
# 0 body, 1 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-@legacy 53089e3204fd7d3e94d96097d116b8101b75b7a2ecbee924b88095ccface216b 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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app; only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@18833,registry:Account@20556,registry:Account@20571,registry:Account@20689,registry:Account@21768,registry:Account@22222,registry:Account@22235,registry:Account@23422,registry:Alias@18737,registry:Alias@18867,registry:Alias@18939,registry:Alias@19009,registry:App@14416,registry:App@14616,registry:App@14772,registry:App@14973,registry:App@18786,registry:App@18796,registry:App@20584,registry:App@20595,registry:App@20702,registry:App@21721,registry:App@21731,registry:App@22248,registry:App@22257,registry:App@23375,registry:App@23385,registry:App@4467,registry:App@4663,registry:App@8287,registry:App@8486,registry:Host@15339,registry:Host@18771,registry:Host@20366,registry:Host@20441,registry:Host@20464,registry:Host@20516,registry:Host@20850,registry:Host@20922,registry:Host@21499,registry:Host@21520,registry:Host@21579,registry:Host@21840,registry:Host@22031,registry:Host@22103,registry:Host@22207,registry:Host@22518,registry:Host@22571,registry:Host@22643,registry:Host@23177,registry:Host@23290,registry:Host@23344,registry:Host@23364,registry:Host@23531,registry:Host@23612,registry:Host@834,registry:Prefix@23185,registry:Prefix@23304,registry:Prefix@23539,registry:Prefix@23620,registry:Region@20711,registry:Status@11150,registry:Target@20536,registry:Target@20641,whole:RegionalDomain@19330,whole:RegionalDomain@19348,whole:RegionalDomain@20294,whole:RegionalDomain@20332,whole:RegionalDomain@20353,whole:RegionalDomain@20376,whole:RegionalDomain@20503,whole:RegionalDomain@21566,whole:RegionalDomain@276,whole:RegionalDomain@2918,whole:RegionalDomain@3119,whole:Route@1045,whole:Route@10480,whole:Route@10932,whole:Route@11094,whole:Route@1434,whole:Route@14385,whole:Route@14460,whole:Route@14607,whole:Route@14669,whole:Route@14812,whole:Route@14968,whole:Route@16221,whole:Route@17316,whole:Route@17324,whole:Route@18764,whole:Route@18826,whole:Route@20634,whole:Route@20685,whole:Route@21706,whole:Route@21761,whole:Route@23337,whole:Route@23415,whole:Route@3100,whole:Route@337,whole:Route@3519,whole:Route@3810,whole:Route@4507,whole:Route@4658,whole:Route@4714,whole:Route@7633,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8331,whole:Route@845,whole:Route@8477,whole:RouteAlias@1442,whole:RouteAlias@17332,whole:RouteAlias@18712,whole:RoutePath@12677,whole:RoutePath@23070,whole:RoutePath@23112,whole:RoutePath@23247,whole:RoutePath@23277,whole:WildcardDomain@15535,whole:WildcardDomain@20400,whole:WildcardDomain@20429,whole:WildcardDomain@20910,whole:WildcardDomain@20932,whole:WildcardDomain@21458,whole:WildcardDomain@21487,whole:WildcardDomain@22091,whole:WildcardDomain@22113,whole:WildcardDomain@22137,whole:WildcardDomain@22186,whole:WildcardDomain@22349,whole:WildcardDomain@22477,whole:WildcardDomain@22506,whole:WildcardDomain@3333 1243c0523cd9373cfc2aa418533dcc6df37b359668465b3f6d66e288a902ad5a
-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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app; only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@18833,registry:Account@20556,registry:Account@20571,registry:Account@20689,registry:Account@21768,registry:Account@22222,registry:Account@22235,registry:Account@23422,registry:Alias@18737,registry:Alias@18867,registry:Alias@18939,registry:Alias@19009,registry:App@14416,registry:App@14616,registry:App@14772,registry:App@14973,registry:App@18786,registry:App@18796,registry:App@20584,registry:App@20595,registry:App@20702,registry:App@21721,registry:App@21731,registry:App@22248,registry:App@22257,registry:App@23375,registry:App@23385,registry:App@4467,registry:App@4663,registry:App@8287,registry:App@8486,registry:Host@15339,registry:Host@18771,registry:Host@20366,registry:Host@20441,registry:Host@20464,registry:Host@20516,registry:Host@20850,registry:Host@20922,registry:Host@21499,registry:Host@21520,registry:Host@21579,registry:Host@21840,registry:Host@22031,registry:Host@22103,registry:Host@22207,registry:Host@22518,registry:Host@22571,registry:Host@22643,registry:Host@23177,registry:Host@23290,registry:Host@23344,registry:Host@23364,registry:Host@23531,registry:Host@23612,registry:Host@834,registry:Prefix@23185,registry:Prefix@23304,registry:Prefix@23539,registry:Prefix@23620,registry:Region@20711,registry:Status@11150,registry:Target@20536,registry:Target@20641,whole:RegionalDomain@19330,whole:RegionalDomain@19348,whole:RegionalDomain@20294,whole:RegionalDomain@20332,whole:RegionalDomain@20353,whole:RegionalDomain@20376,whole:RegionalDomain@20503,whole:RegionalDomain@21566,whole:RegionalDomain@276,whole:RegionalDomain@2918,whole:RegionalDomain@3119,whole:Route@1045,whole:Route@10480,whole:Route@10932,whole:Route@11094,whole:Route@1434,whole:Route@14385,whole:Route@14460,whole:Route@14607,whole:Route@14669,whole:Route@14812,whole:Route@14968,whole:Route@16221,whole:Route@17316,whole:Route@17324,whole:Route@18764,whole:Route@18826,whole:Route@20634,whole:Route@20685,whole:Route@21706,whole:Route@21761,whole:Route@23337,whole:Route@23415,whole:Route@3100,whole:Route@337,whole:Route@3519,whole:Route@3810,whole:Route@4507,whole:Route@4658,whole:Route@4714,whole:Route@7633,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8331,whole:Route@845,whole:Route@8477,whole:RouteAlias@1442,whole:RouteAlias@17332,whole:RouteAlias@18712,whole:RoutePath@12677,whole:RoutePath@23070,whole:RoutePath@23112,whole:RoutePath@23247,whole:RoutePath@23277,whole:WildcardDomain@15535,whole:WildcardDomain@20400,whole:WildcardDomain@20429,whole:WildcardDomain@20910,whole:WildcardDomain@20932,whole:WildcardDomain@21458,whole:WildcardDomain@21487,whole:WildcardDomain@22091,whole:WildcardDomain@22113,whole:WildcardDomain@22137,whole:WildcardDomain@22186,whole:WildcardDomain@22349,whole:WildcardDomain@22477,whole:WildcardDomain@22506,whole:WildcardDomain@3333 1243c0523cd9373cfc2aa418533dcc6df37b359668465b3f6d66e288a902ad5a
-@coverage internal/domains 68b42a5387b976d202c462fe58f868e80b67afd73429bdeaa3cf00c9755d4e3e
+@legacy ebf060f3fdbedda4f31c29804a1a478e7794571dea0ac4089649a74be4f9bbf5 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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app and the target is a local ready route of the row account (the derivation tenancy rule); only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@18833,registry:Account@20556,registry:Account@20571,registry:Account@20689,registry:Account@21768,registry:Account@22222,registry:Account@22235,registry:Account@23664,registry:Account@23735,registry:Alias@18737,registry:Alias@18867,registry:Alias@18939,registry:Alias@19009,registry:App@14416,registry:App@14616,registry:App@14772,registry:App@14973,registry:App@18786,registry:App@18796,registry:App@20584,registry:App@20595,registry:App@20702,registry:App@21721,registry:App@21731,registry:App@22248,registry:App@22257,registry:App@23617,registry:App@23627,registry:App@4467,registry:App@4663,registry:App@8287,registry:App@8486,registry:Host@15339,registry:Host@18771,registry:Host@20366,registry:Host@20441,registry:Host@20464,registry:Host@20516,registry:Host@20850,registry:Host@20922,registry:Host@21499,registry:Host@21520,registry:Host@21579,registry:Host@21840,registry:Host@22031,registry:Host@22103,registry:Host@22207,registry:Host@22518,registry:Host@22571,registry:Host@22643,registry:Host@23177,registry:Host@23290,registry:Host@23542,registry:Host@23606,registry:Host@23844,registry:Host@23925,registry:Host@834,registry:Prefix@23185,registry:Prefix@23304,registry:Prefix@23852,registry:Prefix@23933,registry:Region@20711,registry:Status@11150,registry:Status@23681,registry:Target@20536,registry:Target@20641,registry:Target@23572,whole:RegionalDomain@19330,whole:RegionalDomain@19348,whole:RegionalDomain@20294,whole:RegionalDomain@20332,whole:RegionalDomain@20353,whole:RegionalDomain@20376,whole:RegionalDomain@20503,whole:RegionalDomain@21566,whole:RegionalDomain@276,whole:RegionalDomain@2918,whole:RegionalDomain@3119,whole:Route@1045,whole:Route@10480,whole:Route@10932,whole:Route@11094,whole:Route@1434,whole:Route@14385,whole:Route@14460,whole:Route@14607,whole:Route@14669,whole:Route@14812,whole:Route@14968,whole:Route@16221,whole:Route@17316,whole:Route@17324,whole:Route@18764,whole:Route@18826,whole:Route@20634,whole:Route@20685,whole:Route@21706,whole:Route@21761,whole:Route@23535,whole:Route@23565,whole:Route@23657,whole:Route@23727,whole:Route@3100,whole:Route@337,whole:Route@3519,whole:Route@3810,whole:Route@4507,whole:Route@4658,whole:Route@4714,whole:Route@7633,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8331,whole:Route@845,whole:Route@8477,whole:RouteAlias@1442,whole:RouteAlias@17332,whole:RouteAlias@18712,whole:RoutePath@12677,whole:RoutePath@23070,whole:RoutePath@23112,whole:RoutePath@23247,whole:RoutePath@23277,whole:WildcardDomain@15535,whole:WildcardDomain@20400,whole:WildcardDomain@20429,whole:WildcardDomain@20910,whole:WildcardDomain@20932,whole:WildcardDomain@21458,whole:WildcardDomain@21487,whole:WildcardDomain@22091,whole:WildcardDomain@22113,whole:WildcardDomain@22137,whole:WildcardDomain@22186,whole:WildcardDomain@22349,whole:WildcardDomain@22477,whole:WildcardDomain@22506,whole:WildcardDomain@3333 9225fc943058f8610269c79653fa68e066d0fceab1303da726f3dfa351c42c66
+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;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=keeps rows tied to a claim listed but not read this pass (relevantDropped hosts only, so a complete pass keeps nothing) instead of deleting them: route_aliases while the row target route here still has the row account and app (aliasClaimUnread on the row name; a name with its own listed claim is decided by that claim alone), wildcard_domains within the per-box cap while the row account and app hold a local route and none of their local routes is fleet-refused (the fleet-public-routes refusal still removes the parent), route_paths while the host route still has the row account and app and the target is a local ready route of the row account (the derivation tenancy rule); only fields of rows the pass already read (routes, existing aliases, wildcard rows, paths, the listing and dropped hosts); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@18833,registry:Account@20556,registry:Account@20571,registry:Account@20689,registry:Account@21768,registry:Account@22222,registry:Account@22235,registry:Account@23664,registry:Account@23735,registry:Alias@18737,registry:Alias@18867,registry:Alias@18939,registry:Alias@19009,registry:App@14416,registry:App@14616,registry:App@14772,registry:App@14973,registry:App@18786,registry:App@18796,registry:App@20584,registry:App@20595,registry:App@20702,registry:App@21721,registry:App@21731,registry:App@22248,registry:App@22257,registry:App@23617,registry:App@23627,registry:App@4467,registry:App@4663,registry:App@8287,registry:App@8486,registry:Host@15339,registry:Host@18771,registry:Host@20366,registry:Host@20441,registry:Host@20464,registry:Host@20516,registry:Host@20850,registry:Host@20922,registry:Host@21499,registry:Host@21520,registry:Host@21579,registry:Host@21840,registry:Host@22031,registry:Host@22103,registry:Host@22207,registry:Host@22518,registry:Host@22571,registry:Host@22643,registry:Host@23177,registry:Host@23290,registry:Host@23542,registry:Host@23606,registry:Host@23844,registry:Host@23925,registry:Host@834,registry:Prefix@23185,registry:Prefix@23304,registry:Prefix@23852,registry:Prefix@23933,registry:Region@20711,registry:Status@11150,registry:Status@23681,registry:Target@20536,registry:Target@20641,registry:Target@23572,whole:RegionalDomain@19330,whole:RegionalDomain@19348,whole:RegionalDomain@20294,whole:RegionalDomain@20332,whole:RegionalDomain@20353,whole:RegionalDomain@20376,whole:RegionalDomain@20503,whole:RegionalDomain@21566,whole:RegionalDomain@276,whole:RegionalDomain@2918,whole:RegionalDomain@3119,whole:Route@1045,whole:Route@10480,whole:Route@10932,whole:Route@11094,whole:Route@1434,whole:Route@14385,whole:Route@14460,whole:Route@14607,whole:Route@14669,whole:Route@14812,whole:Route@14968,whole:Route@16221,whole:Route@17316,whole:Route@17324,whole:Route@18764,whole:Route@18826,whole:Route@20634,whole:Route@20685,whole:Route@21706,whole:Route@21761,whole:Route@23535,whole:Route@23565,whole:Route@23657,whole:Route@23727,whole:Route@3100,whole:Route@337,whole:Route@3519,whole:Route@3810,whole:Route@4507,whole:Route@4658,whole:Route@4714,whole:Route@7633,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8331,whole:Route@845,whole:Route@8477,whole:RouteAlias@1442,whole:RouteAlias@17332,whole:RouteAlias@18712,whole:RoutePath@12677,whole:RoutePath@23070,whole:RoutePath@23112,whole:RoutePath@23247,whole:RoutePath@23277,whole:WildcardDomain@15535,whole:WildcardDomain@20400,whole:WildcardDomain@20429,whole:WildcardDomain@20910,whole:WildcardDomain@20932,whole:WildcardDomain@21458,whole:WildcardDomain@21487,whole:WildcardDomain@22091,whole:WildcardDomain@22113,whole:WildcardDomain@22137,whole:WildcardDomain@22186,whole:WildcardDomain@22349,whole:WildcardDomain@22477,whole:WildcardDomain@22506,whole:WildcardDomain@3333 9225fc943058f8610269c79653fa68e066d0fceab1303da726f3dfa351c42c66
+@coverage internal/domains ccf4beaffa0e0466de38453da54bc7348c85ec79ace2312be536f39b8846ab9d