carlos / platform Public

census: keep check as a closure inside ReconcileAliasesReport

One recorded unit instead of a new one; census overlay re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ccc7dac1395542d6060a084aa3158214ebf251ed parent f6f0978
4 files changed, +44 −45
  • docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md +2 −2
  • internal/domains/aliases.go +38 −39
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv +3 −3

CI failed — 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 62eb07a86..6395eaf7a 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 ×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 |
+| `internal/domains/aliases.go` `ReconcileAliasesReport` | sites | +registry:Account, +registry:Alias ×7, +registry:App ×2, +registry:Host ×2, +whole:Route ×3, +whole:RouteAlias | scope cut after census rounds 1-3: keeps ONLY an exact-name route_aliases row whose own claim is listed but not read this pass (relevantDropped hosts, so a complete pass keeps nothing), via keepUnreadAlias, and only while every refusal the plain derivation makes without the claim body still passes on rows this pass read: target route local with the row account and app, no local route owns the name, deploymentRoutes does not name it, normalised name, no sidecar suffix on either end; catch-all, instance, wildcard_domains and route_paths removal unchanged from main; 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` → `c9d4c217f5e7780323f8d83dcb6ae4c99aa56e8509f527b0a7590bef51db566c`.
+Seal: `3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b` → `81706f79eb98c0dc502bd88ab767430e8013e015cd2c11fd07c578a505a81b5a`.
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 4a2338dee..c168b9119 100644
--- a/internal/domains/aliases.go
+++ b/internal/domains/aliases.go
@@ -778,9 +778,46 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
}, reg, now) {
incomplete = true
}
+ // keepUnreadAlias reports whether an exact-name alias row whose own claim
+ // was listed but not read this pass is kept as it is, box stamps included,
+ // instead of deleted.
+ //
+ // Deleting it is the 2026-11-07 flagship shrink: an edge restart's first
+ // alias pass ran under the startup HA ingress deadline with a cold claim
+ // cache, 75 claim GETs timed out, and every custom domain's row went. The
+ // next pass re-inserted them with a blank dns_status, which the edges file
+ // withholds until the DNS sweep comes round again, so the other edges
+ // answered 404 for those names for about a minute.
+ //
+ // Only the plain alias, the row named exactly by its unread claim, is kept,
+ // and only while every refusal the plain derivation makes without the
+ // claim's body still passes on what this pass did read: the target route
+ // is local and still the row's account and app, no local route owns the
+ // name, no other box serves it as a route, the name is normalised, and
+ // neither end is under the reserved sidecar suffix. Catch-all, instance,
+ // wildcard-parent and path rows each rest on further authority the row
+ // cannot show (a parent claim, the fleet arm, a path target), so they are
+ // still removed as before. A claim that has left the listing is a detach
+ // and is not in unreadAlias.
+ keepUnreadAlias := func(a registry.RouteAlias) bool {
+ if !unreadAlias[a.Alias] || strings.HasPrefix(a.Alias, "*.") {
+ return false
+ }
+ if strings.HasSuffix(a.Alias, sidecarSuffix) || strings.HasSuffix(a.Host, sidecarSuffix) {
+ return false
+ }
+ if n, ok := NormalizeAliasHost(a.Alias); !ok || n != a.Alias {
+ return false
+ }
+ if _, taken := byHost[a.Alias]; taken || deploymentRoutes[a.Alias] {
+ return false
+ }
+ rt, ok := byHost[a.Host]
+ return ok && rt.App == a.App && release.RouteAccount(rt) == a.Account
+ }
for _, a := range existing {
if !desired[a.Alias] {
- if keepUnreadAlias(a, unreadAlias, byHost, deploymentRoutes) {
+ if keepUnreadAlias(a) {
continue
}
if err := reg.DeleteAlias(a.Alias); err != nil {
@@ -1045,41 +1082,3 @@ func deriveHAIngressAliases(c Claim, local map[string]registry.Route, deployment
add("*." + c.Host)
}
}
-
-// keepUnreadAlias reports whether an exact-name alias row whose own claim
-// was listed but not read this pass is kept as it is, box stamps included,
-// instead of deleted.
-//
-// Deleting it is the 2026-11-07 flagship shrink: an edge restart's first
-// alias pass ran under the startup HA ingress deadline with a cold claim
-// cache, 75 claim GETs timed out, and every custom domain's row went. The
-// next pass re-inserted them with a blank dns_status, which the edges file
-// withholds until the DNS sweep comes round again, so the other edges
-// answered 404 for those names for about a minute.
-//
-// Only the plain alias, the row named exactly by its unread claim, is kept,
-// and only while every refusal the plain derivation makes without the
-// claim's body still passes on what this pass did read: the target route
-// is local and still the row's account and app, no local route owns the
-// name, no other box serves it as a route, the name is normalised, and
-// neither end is under the reserved sidecar suffix. Catch-all, instance,
-// wildcard-parent and path rows each rest on further authority the row
-// cannot show (a parent claim, the fleet arm, a path target), so they are
-// still removed as before. A claim that has left the listing is a detach
-// and is not in unread.
-func keepUnreadAlias(a registry.RouteAlias, unread map[string]bool, byHost map[string]registry.Route, deploymentRoutes map[string]bool) bool {
- if !unread[a.Alias] || strings.HasPrefix(a.Alias, "*.") {
- return false
- }
- if strings.HasSuffix(a.Alias, sidecarSuffix) || strings.HasSuffix(a.Host, sidecarSuffix) {
- return false
- }
- if n, ok := NormalizeAliasHost(a.Alias); !ok || n != a.Alias {
- return false
- }
- if _, taken := byHost[a.Alias]; taken || deploymentRoutes[a.Alias] {
- return false
- }
- rt, ok := byHost[a.Host]
- return ok && rt.App == a.App && release.RouteAccount(rt) == a.Account
-}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 83a915e84..24d48022f 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 c9d4c217f5e7780323f8d83dcb6ae4c99aa56e8509f527b0a7590bef51db566c
+plan14-root-reads-fix-incomplete-domains-pass.tsv 81706f79eb98c0dc502bd88ab767430e8013e015cd2c11fd07c578a505a81b5a
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 979da5c53..c2e9cc4cc 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 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
+@legacy 50e6359a5a1c4d457755439dd4f888b2ae7849179294384a0b6a2720d853a54e 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=scope cut after census rounds 1-3: keeps ONLY an exact-name route_aliases row whose own claim is listed but not read this pass (relevantDropped hosts, so a complete pass keeps nothing), via keepUnreadAlias, and only while every refusal the plain derivation makes without the claim body still passes on rows this pass read: target route local with the row account and app, no local route owns the name, deploymentRoutes does not name it, normalised name, no sidecar suffix on either end; catch-all, instance, wildcard_domains and route_paths removal unchanged from main; no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@19568,registry:Account@21583,registry:Account@21598,registry:Account@21716,registry:Account@22068,registry:Account@22081,registry:Alias@19123,registry:Alias@19153,registry:Alias@19213,registry:Alias@19336,registry:Alias@19358,registry:Alias@19412,registry:Alias@19448,registry:Alias@19625,registry:Alias@19710,registry:Alias@19780,registry:App@14459,registry:App@14659,registry:App@14815,registry:App@15016,registry:App@19521,registry:App@19531,registry:App@21611,registry:App@21622,registry:App@21729,registry:App@22094,registry:App@22103,registry:App@4510,registry:App@4706,registry:App@8330,registry:App@8529,registry:Host@15382,registry:Host@19258,registry:Host@19498,registry:Host@21393,registry:Host@21468,registry:Host@21491,registry:Host@21543,registry:Host@21877,registry:Host@21949,registry:Host@22053,registry:Host@22364,registry:Host@22417,registry:Host@22489,registry:Host@23023,registry:Host@23136,registry:Host@23195,registry:Host@23276,registry:Host@834,registry:Prefix@23031,registry:Prefix@23150,registry:Prefix@23203,registry:Prefix@23284,registry:Region@21738,registry:Status@11193,registry:Target@21563,registry:Target@21668,whole:RegionalDomain@20357,whole:RegionalDomain@20375,whole:RegionalDomain@21321,whole:RegionalDomain@21359,whole:RegionalDomain@21380,whole:RegionalDomain@21403,whole:RegionalDomain@21530,whole:RegionalDomain@276,whole:RegionalDomain@2961,whole:RegionalDomain@3162,whole:Route@1045,whole:Route@10523,whole:Route@10975,whole:Route@11137,whole:Route@14428,whole:Route@14503,whole:Route@14650,whole:Route@1470,whole:Route@14712,whole:Route@14855,whole:Route@15011,whole:Route@16264,whole:Route@17359,whole:Route@17367,whole:Route@19405,whole:Route@19491,whole:Route@19561,whole:Route@21661,whole:Route@21712,whole:Route@3143,whole:Route@337,whole:Route@3562,whole:Route@3853,whole:Route@4550,whole:Route@4701,whole:Route@4757,whole:Route@7676,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8374,whole:Route@845,whole:Route@8520,whole:RouteAlias@1478,whole:RouteAlias@17375,whole:RouteAlias@19600,whole:RouteAlias@19658,whole:RoutePath@12720,whole:RoutePath@22916,whole:RoutePath@22958,whole:RoutePath@23093,whole:RoutePath@23123,whole:WildcardDomain@15578,whole:WildcardDomain@21427,whole:WildcardDomain@21456,whole:WildcardDomain@21937,whole:WildcardDomain@21959,whole:WildcardDomain@21983,whole:WildcardDomain@22032,whole:WildcardDomain@22195,whole:WildcardDomain@22323,whole:WildcardDomain@22352,whole:WildcardDomain@3376 c08fd2ead16dfbe8c280f09bd8d580c2e1d94add8ae4f18f611ad8160095c0af
+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=scope cut after census rounds 1-3: keeps ONLY an exact-name route_aliases row whose own claim is listed but not read this pass (relevantDropped hosts, so a complete pass keeps nothing), via keepUnreadAlias, and only while every refusal the plain derivation makes without the claim body still passes on rows this pass read: target route local with the row account and app, no local route owns the name, deploymentRoutes does not name it, normalised name, no sidecar suffix on either end; catch-all, instance, wildcard_domains and route_paths removal unchanged from main; no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@19568,registry:Account@21583,registry:Account@21598,registry:Account@21716,registry:Account@22068,registry:Account@22081,registry:Alias@19123,registry:Alias@19153,registry:Alias@19213,registry:Alias@19336,registry:Alias@19358,registry:Alias@19412,registry:Alias@19448,registry:Alias@19625,registry:Alias@19710,registry:Alias@19780,registry:App@14459,registry:App@14659,registry:App@14815,registry:App@15016,registry:App@19521,registry:App@19531,registry:App@21611,registry:App@21622,registry:App@21729,registry:App@22094,registry:App@22103,registry:App@4510,registry:App@4706,registry:App@8330,registry:App@8529,registry:Host@15382,registry:Host@19258,registry:Host@19498,registry:Host@21393,registry:Host@21468,registry:Host@21491,registry:Host@21543,registry:Host@21877,registry:Host@21949,registry:Host@22053,registry:Host@22364,registry:Host@22417,registry:Host@22489,registry:Host@23023,registry:Host@23136,registry:Host@23195,registry:Host@23276,registry:Host@834,registry:Prefix@23031,registry:Prefix@23150,registry:Prefix@23203,registry:Prefix@23284,registry:Region@21738,registry:Status@11193,registry:Target@21563,registry:Target@21668,whole:RegionalDomain@20357,whole:RegionalDomain@20375,whole:RegionalDomain@21321,whole:RegionalDomain@21359,whole:RegionalDomain@21380,whole:RegionalDomain@21403,whole:RegionalDomain@21530,whole:RegionalDomain@276,whole:RegionalDomain@2961,whole:RegionalDomain@3162,whole:Route@1045,whole:Route@10523,whole:Route@10975,whole:Route@11137,whole:Route@14428,whole:Route@14503,whole:Route@14650,whole:Route@1470,whole:Route@14712,whole:Route@14855,whole:Route@15011,whole:Route@16264,whole:Route@17359,whole:Route@17367,whole:Route@19405,whole:Route@19491,whole:Route@19561,whole:Route@21661,whole:Route@21712,whole:Route@3143,whole:Route@337,whole:Route@3562,whole:Route@3853,whole:Route@4550,whole:Route@4701,whole:Route@4757,whole:Route@7676,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@8374,whole:Route@845,whole:Route@8520,whole:RouteAlias@1478,whole:RouteAlias@17375,whole:RouteAlias@19600,whole:RouteAlias@19658,whole:RoutePath@12720,whole:RoutePath@22916,whole:RoutePath@22958,whole:RoutePath@23093,whole:RoutePath@23123,whole:WildcardDomain@15578,whole:WildcardDomain@21427,whole:WildcardDomain@21456,whole:WildcardDomain@21937,whole:WildcardDomain@21959,whole:WildcardDomain@21983,whole:WildcardDomain@22032,whole:WildcardDomain@22195,whole:WildcardDomain@22323,whole:WildcardDomain@22352,whole:WildcardDomain@3376 c08fd2ead16dfbe8c280f09bd8d580c2e1d94add8ae4f18f611ad8160095c0af
+@coverage internal/domains 6f3e7804be3d20121919542e89d96529e51cda401345c74e307a9f1be54698e9