carlos / platform Public

census: overlay for the unread-claim keep in ReconcileAliasesReport

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5404669503d168c97bba0d4a702079de641889c3 parent 7a49c31
3 files changed, +25 −0
  • docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md +19 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv +5 −0

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
new file mode 100644
index 000000000..4b4317c02
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-fix-incomplete-domains-pass.md
@@ -0,0 +1,19 @@
+# Census approval: fix-incomplete-domains-pass
+
+Ruling `census-ruling-fix-incomplete-domains-pass`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| 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 |
+
+Envelopes re-pinned: `internal/domains`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `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`.
+
+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/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index f3b8315b8..2f9bbb480 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -110,3 +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
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
new file mode 100644
index 000000000..e9e011957
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-fix-incomplete-domains-pass.tsv
@@ -0,0 +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