carlos / platform Public

domains: kept rows recheck tenancy and the fleet refusal

Review fixes on the unread-claim keep. Astra (census): an unread
wildcard parent was kept even when its primary is now fleet-refused;
keep it only while its account and app hold a local route and none is
refused. Opus: a kept alias or path is kept only while its target route
still has the row's account and app; a name with its own listed claim
is decided by that claim, not shielded by an unread instance catch-all;
only relevantDropped hosts are kept, so a complete pass keeps nothing.
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 ace19b2ab5fe2b3c70a6c5e498b133c83488ec9b parent 5404669
5 files changed, +128 −18
  • docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md +2 −2
  • internal/domains/aliases.go +41 −12
  • internal/domains/aliases_unread_keep_test.go +81 −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 4b4317c02..5a8086a40 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:Alias, +registry:Host ×6, +whole:RegionalDomain, +whole:WildcardDomain ×4 | keeps rows tied to a claim listed but not read this pass (route_aliases via aliasClaimUnread on the row name, wildcard_domains within the per-box cap, route_paths by host) instead of deleting them; only fields of rows the pass already read (existing aliases, wildcard rows, paths, the dropped hosts from the same listing); 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 ×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 |
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` → `2bca7bdeba25a8e9ecf9ccbb70e09e9f8d6446188f6550a7f5e370ae0f64240c`.
+Seal: `3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b` → `63b3795aab5e4aaf1ffec8fc3d4f6c8870be567aa2e5eafc2fcc59a9600f7a97`.
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 012a1cd0c..257b36067 100644
--- a/internal/domains/aliases.go
+++ b/internal/domains/aliases.go
@@ -429,9 +429,16 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
if err != nil {
return err
}
+ // keep is the claims whose rows this pass keeps as they are (below):
+ // exactly the unread claims that make it incomplete, so a complete pass
+ // never kept anything.
+ keep := map[string]bool{}
if h := relevantDropped(dropped, routes, existing); len(h) > 0 {
log.Printf("domains: %d claim(s) listed but unreadable this pass (e.g. %s) — the pass is incomplete", len(h), h[0])
incomplete = true
+ for _, host := range h {
+ keep[host] = true
+ }
}
desired := map[string]bool{}
desiredWild := map[string]registry.WildcardDomain{}
@@ -772,10 +779,12 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
incomplete = true
}
// A row whose claim the listing shows but whose body this pass did not
- // read (a failed GET, an unparseable body, a not-found) was not decided
- // on, so it is kept exactly as it is, box stamps included, in every
- // pass-owned table below; relevantDropped above has already made the
- // pass incomplete for it. Deleting it instead is the 2026-11-07 flagship
+ // read (a failed GET, an unparseable body, a not-found that
+ // relevantDropped counts) was not decided on, so it is kept exactly as
+ // it is, box stamps included, in every pass-owned table below, while
+ // its target route here still belongs to the row's account and app
+ // (Reload serves an alias with its target's entry, so a reused host
+ // must not inherit the name). The pass is already incomplete for it. Deleting it instead is the 2026-11-07 flagship
// shrink: an edge restart's first pass ran out of time on 75 claim GETs,
// dropped every custom domain's row, and the next pass re-inserted them
// with a blank dns_status, which the edges file withholds until the DNS
@@ -787,7 +796,8 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
}
for _, a := range existing {
if !desired[a.Alias] {
- if aliasClaimUnread(a.Alias, unread) {
+ if rt, ok := byHost[a.Host]; ok && rt.App == a.App && release.RouteAccount(rt) == a.Account &&
+ aliasClaimUnread(a.Alias, keep, listed) {
continue
}
if err := reg.DeleteAlias(a.Alias); err != nil {
@@ -843,14 +853,32 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
desiredWild[w.Host] = w
}
// Any other unread claim's wildcard parent is kept as it is (the alias
- // loop's rule), within the same per-box cap.
+ // loop's rule), within the same per-box cap, while its account and app
+ // still hold a local route here and NONE of their local routes is
+ // fleet-refused. The row does not name its primary, but the primary is
+ // one of those routes, so the fleet-arm refusal above still removes a
+ // parent whose primary it refuses: a refused route must not drive a
+ // certificate order on the strength of a claim this pass did not read.
for _, w := range existingWild {
- if _, ok := desiredWild[w.Host]; ok || !unread[w.Host] {
+ if _, ok := desiredWild[w.Host]; ok || !keep[w.Host] {
continue
}
if _, regional := keptRegional[w.Host]; regional {
continue // decided by the regional rule above
}
+ held, refused := false, false
+ for _, rt := range routes {
+ if rt.App != w.App || release.RouteAccount(rt) != w.Account {
+ continue
+ }
+ held = true
+ if _, r := fleetRefused[rt.Host]; r {
+ refused = true
+ }
+ }
+ if !held || refused {
+ continue
+ }
if wildCount >= maxWildcardDomains {
log.Printf("domains: wildcard %s dropped: per-box cap %d reached", w.Host, maxWildcardDomains)
continue
@@ -899,7 +927,7 @@ func ReconcileAliasesReport(ctx context.Context, s release.Store, reg *registry.
}
for _, p := range existingPaths {
if _, ok := desiredPaths[p.Host+"\x00"+p.Prefix]; !ok {
- if unread[p.Host] {
+ if rt, ok := byHost[p.Host]; ok && keep[p.Host] && rt.App == p.App && release.RouteAccount(rt) == p.Account {
continue // its claim was not read this pass: kept as it is
}
if err := reg.DeletePath(p.Host, p.Prefix); err != nil {
@@ -1070,13 +1098,14 @@ func deriveHAIngressAliases(c Claim, local map[string]registry.Route, deployment
// unread (listed this pass, body not read). A row's claim is found from its
// name alone: a plain alias is its claim's host, a catch-all "*.<host>" row
// is <host>'s Wildcard claim, and an instance name "<label>.<parent>" is the
-// "*.<parent>" instance catch-all claim's.
-func aliasClaimUnread(alias string, unread map[string]bool) bool {
+// "*.<parent>" instance catch-all claim's, unless the name has a listed
+// claim of its own, which then decides alone.
+func aliasClaimUnread(alias string, unread, listed map[string]bool) bool {
if len(unread) == 0 {
return false
}
- if unread[alias] {
- return true
+ if unread[alias] || listed[alias] {
+ return unread[alias]
}
if host, ok := strings.CutPrefix(alias, "*."); ok {
return unread[host]
diff --git a/internal/domains/aliases_unread_keep_test.go b/internal/domains/aliases_unread_keep_test.go
index 03e83bde7..27648e12f 100644
--- a/internal/domains/aliases_unread_keep_test.go
+++ b/internal/domains/aliases_unread_keep_test.go
@@ -4,6 +4,7 @@ import (
"context"
"testing"
+ "github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/release"
)
@@ -126,3 +127,83 @@ func TestUnreadClaimsKeepTheirRows(t *testing.T) {
t.Fatal("the unread claim's alias was dropped alongside the detach")
}
}
+
+// TestUnreadWildcardParentStillFollowsTheFleetRefusal: keeping an unread
+// claim's wildcard parent must not outlive the fleet-arm refusal. Once the
+// primary is refused, the parent goes on the same pass even though its claim
+// was not read, because that table is the wildcard manager's order source.
+func TestUnreadWildcardParentStillFollowsTheFleetRefusal(t *testing.T) {
+ e := newAliasEnv(t)
+ addRoute(t, e.reg, "shop.example.com", "abc", "shop")
+ putClaim(t, e.store, Claim{Host: "wild.example.org", Account: "abc", App: "shop", Route: "shop.example.com", Wildcard: true})
+ e.mustPass()
+ unread := unreadKeysStore{e.store, map[string]bool{ClaimKey("wild.example.org"): true}}
+ for _, refuse := range []bool{false, true} {
+ rep := AliasReport{Complete: true, FleetRefused: func([]registry.Route) map[string]string {
+ if refuse {
+ return map[string]string{"shop.example.com": "fleet closed"}
+ }
+ return nil
+ }}
+ if err := ReconcileAliasesReport(context.Background(), unread, e.reg, aliasNow(), known(), nil, &rep); err != nil {
+ t.Fatal(err)
+ }
+ wds, err := e.reg.ListWildcardDomains()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if kept := len(wds) == 1; kept == refuse {
+ t.Fatalf("refused=%v: wildcard rows %+v", refuse, wds)
+ }
+ }
+}
+
+// TestUnreadClaimKeepRechecksTenancy: a kept row must still name a target
+// its own account and app hold here. If the target host now belongs to
+// someone else, the row goes even though its claim was not read, because
+// Reload would serve the name with the new owner's app.
+func TestUnreadClaimKeepRechecksTenancy(t *testing.T) {
+ e := newAliasEnv(t)
+ addRoute(t, e.reg, "shop.example.com", "abc", "shop")
+ putClaim(t, e.store, Claim{Host: "www.example.com", Account: "abc", App: "shop", Route: "shop.example.com"})
+ e.mustPass()
+ addRoute(t, e.reg, "shop.example.com", "xyz", "other") // host reused
+ unread := unreadKeysStore{e.store, map[string]bool{ClaimKey("www.example.com"): true}}
+ if _, err := e.pass(unread, known(), nil); err != nil {
+ t.Fatal(err)
+ }
+ if _, ok := aliasMap(t, e.reg)["www.example.com"]; ok {
+ t.Fatal("a kept alias now points at another tenant's route")
+ }
+}
+
+// TestUnreadCatchallDoesNotShieldAListedSibling: a name under an instance
+// catch-all that has a listed claim of its own is decided by that claim. An
+// unread catch-all must not keep it after its own claim is detached.
+func TestUnreadCatchallDoesNotShieldAListedSibling(t *testing.T) {
+ e := newAliasEnv(t)
+ putClaim(t, e.store, Claim{Host: "example.net", Account: "abc", App: "shop-site"})
+ putClaim(t, e.store, Claim{Host: "*.example.net", Account: "abc", App: "shop", Instances: true})
+ addInstance(t, e.reg, "acme.abc.carlos.example.net", "acme", "abc", "shop")
+ addRoute(t, e.reg, "shop.example.com", "abc", "shop")
+ putClaim(t, e.store, Claim{Host: "www.example.net", Account: "abc", App: "shop", Route: "shop.example.com"})
+ e.mustPass()
+ if _, ok := aliasMap(t, e.reg)["www.example.net"]; !ok {
+ t.Fatal("setup: www.example.net not derived")
+ }
+ // Its own claim now reads as a refusal (another app), while the
+ // catch-all's read times out.
+ deleteClaim(t, e.store, "www.example.net")
+ putClaim(t, e.store, Claim{Host: "www.example.net", Account: "abc", App: "nope", Route: "shop.example.com"})
+ unread := unreadKeysStore{e.store, map[string]bool{ClaimKey("*.example.net"): true}}
+ if _, err := e.pass(unread, known(), nil); err != nil {
+ t.Fatal(err)
+ }
+ got := aliasMap(t, e.reg)
+ if _, ok := got["www.example.net"]; ok {
+ t.Fatal("an unread catch-all kept a sibling its own claim refused")
+ }
+ if _, ok := got["acme.example.net"]; !ok {
+ t.Fatal("the unread catch-all's own instance name was dropped")
+ }
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 2f9bbb480..47e1b3b57 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 2bca7bdeba25a8e9ecf9ccbb70e09e9f8d6446188f6550a7f5e370ae0f64240c
+plan14-root-reads-fix-incomplete-domains-pass.tsv 63b3795aab5e4aaf1ffec8fc3d4f6c8870be567aa2e5eafc2fcc59a9600f7a97
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 e9e011957..a6bfc3f94 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 162a91a2f3c3dfee3f8d14f573a67718ca2ce3165136e1ab782385bc03d7eb3e 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 (route_aliases via aliasClaimUnread on the row name, wildcard_domains within the per-box cap, route_paths by host) instead of deleting them; only fields of rows the pass already read (existing aliases, wildcard rows, paths, the dropped hosts from the same listing); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@20032,registry:Account@20047,registry:Account@20165,registry:Account@21049,registry:Account@21062,registry:Alias@18315,registry:Alias@18349,registry:Alias@18415,registry:Alias@18485,registry:App@14167,registry:App@14367,registry:App@14523,registry:App@14724,registry:App@20060,registry:App@20071,registry:App@20178,registry:App@21075,registry:App@21084,registry:App@4218,registry:App@4414,registry:App@8038,registry:App@8237,registry:Host@15090,registry:Host@19842,registry:Host@19917,registry:Host@19940,registry:Host@19992,registry:Host@20326,registry:Host@20398,registry:Host@20593,registry:Host@20616,registry:Host@20675,registry:Host@20858,registry:Host@20930,registry:Host@21034,registry:Host@21345,registry:Host@21398,registry:Host@21470,registry:Host@22004,registry:Host@22117,registry:Host@22161,registry:Host@22268,registry:Host@22349,registry:Host@834,registry:Prefix@22012,registry:Prefix@22131,registry:Prefix@22276,registry:Prefix@22357,registry:Region@20187,registry:Status@10901,registry:Target@20012,registry:Target@20117,whole:RegionalDomain@18806,whole:RegionalDomain@18824,whole:RegionalDomain@19770,whole:RegionalDomain@19808,whole:RegionalDomain@19829,whole:RegionalDomain@19852,whole:RegionalDomain@19979,whole:RegionalDomain@20662,whole:RegionalDomain@2669,whole:RegionalDomain@276,whole:RegionalDomain@2870,whole:Route@10231,whole:Route@1045,whole:Route@10683,whole:Route@10845,whole:Route@1237,whole:Route@14136,whole:Route@14211,whole:Route@14358,whole:Route@14420,whole:Route@14563,whole:Route@14719,whole:Route@15972,whole:Route@17067,whole:Route@17075,whole:Route@20110,whole:Route@20161,whole:Route@2851,whole:Route@3270,whole:Route@337,whole:Route@3561,whole:Route@4258,whole:Route@4409,whole:Route@4465,whole:Route@7384,whole:Route@787,whole:Route@8082,whole:Route@816,whole:Route@8228,whole:Route@827,whole:Route@845,whole:RouteAlias@1245,whole:RouteAlias@17083,whole:RouteAlias@18290,whole:RoutePath@12428,whole:RoutePath@21897,whole:RoutePath@21939,whole:RoutePath@22074,whole:RoutePath@22104,whole:WildcardDomain@15286,whole:WildcardDomain@19876,whole:WildcardDomain@19905,whole:WildcardDomain@20386,whole:WildcardDomain@20408,whole:WildcardDomain@20552,whole:WildcardDomain@20581,whole:WildcardDomain@20918,whole:WildcardDomain@20940,whole:WildcardDomain@20964,whole:WildcardDomain@21013,whole:WildcardDomain@21176,whole:WildcardDomain@21304,whole:WildcardDomain@21333,whole:WildcardDomain@3084 4ce5452a1c760fffec9aa62409651b42ce852f1483941c00cec6ca6624639e13
-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 (route_aliases via aliasClaimUnread on the row name, wildcard_domains within the per-box cap, route_paths by host) instead of deleting them; only fields of rows the pass already read (existing aliases, wildcard rows, paths, the dropped hosts from the same listing); no new registry, file or bucket read; deletes less, never more; no root pass calls it; no root decision registry:Account@20032,registry:Account@20047,registry:Account@20165,registry:Account@21049,registry:Account@21062,registry:Alias@18315,registry:Alias@18349,registry:Alias@18415,registry:Alias@18485,registry:App@14167,registry:App@14367,registry:App@14523,registry:App@14724,registry:App@20060,registry:App@20071,registry:App@20178,registry:App@21075,registry:App@21084,registry:App@4218,registry:App@4414,registry:App@8038,registry:App@8237,registry:Host@15090,registry:Host@19842,registry:Host@19917,registry:Host@19940,registry:Host@19992,registry:Host@20326,registry:Host@20398,registry:Host@20593,registry:Host@20616,registry:Host@20675,registry:Host@20858,registry:Host@20930,registry:Host@21034,registry:Host@21345,registry:Host@21398,registry:Host@21470,registry:Host@22004,registry:Host@22117,registry:Host@22161,registry:Host@22268,registry:Host@22349,registry:Host@834,registry:Prefix@22012,registry:Prefix@22131,registry:Prefix@22276,registry:Prefix@22357,registry:Region@20187,registry:Status@10901,registry:Target@20012,registry:Target@20117,whole:RegionalDomain@18806,whole:RegionalDomain@18824,whole:RegionalDomain@19770,whole:RegionalDomain@19808,whole:RegionalDomain@19829,whole:RegionalDomain@19852,whole:RegionalDomain@19979,whole:RegionalDomain@20662,whole:RegionalDomain@2669,whole:RegionalDomain@276,whole:RegionalDomain@2870,whole:Route@10231,whole:Route@1045,whole:Route@10683,whole:Route@10845,whole:Route@1237,whole:Route@14136,whole:Route@14211,whole:Route@14358,whole:Route@14420,whole:Route@14563,whole:Route@14719,whole:Route@15972,whole:Route@17067,whole:Route@17075,whole:Route@20110,whole:Route@20161,whole:Route@2851,whole:Route@3270,whole:Route@337,whole:Route@3561,whole:Route@4258,whole:Route@4409,whole:Route@4465,whole:Route@7384,whole:Route@787,whole:Route@8082,whole:Route@816,whole:Route@8228,whole:Route@827,whole:Route@845,whole:RouteAlias@1245,whole:RouteAlias@17083,whole:RouteAlias@18290,whole:RoutePath@12428,whole:RoutePath@21897,whole:RoutePath@21939,whole:RoutePath@22074,whole:RoutePath@22104,whole:WildcardDomain@15286,whole:WildcardDomain@19876,whole:WildcardDomain@19905,whole:WildcardDomain@20386,whole:WildcardDomain@20408,whole:WildcardDomain@20552,whole:WildcardDomain@20581,whole:WildcardDomain@20918,whole:WildcardDomain@20940,whole:WildcardDomain@20964,whole:WildcardDomain@21013,whole:WildcardDomain@21176,whole:WildcardDomain@21304,whole:WildcardDomain@21333,whole:WildcardDomain@3084 4ce5452a1c760fffec9aa62409651b42ce852f1483941c00cec6ca6624639e13
-@coverage internal/domains 00a6ddcd42dd9bcf757e1eafc7b3960a0af7a985dca8de8a708817e87b0ab4c2
+@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