certwarm: keep a failure record while its name is still deployed
A name whose home box publishes it not pointing leaves the warm set, but its retry backoff (nextAttempt) stays in force. The record prune ran against the warm set, so it cleared that name's failure record as "detached": when the name pointed again the wait still applied, with no record to explain it and the attempt count gone (#724, review round 3). The prune now runs against the names still deployed: every exact home name some box publishes, pointing or not (homeMap.DeployedHosts, built from the same snapshot as the served sets), plus the regional names, through the warm set's filters. A name no box publishes is pruned as before. The deployed set is read only by the prune; DNS-miss retirement and candidacy stay on the pointing set. Census overlay regenerated: same two units, envelopes re-pinned.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
6 files changed,
+166
−20
docs/superpowers/notes/census-proposal-warm-set-published-724.md+2 −2internal/edge/certwarm.go+50 −11internal/edge/certwarm_test.go+64 −2internal/edge/homemap.go+46 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv+3 −3
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-warm-set-published-724.md b/docs/superpowers/notes/census-proposal-warm-set-published-724.md| index 935b58cbe..7449eee12 100644 |
| --- a/docs/superpowers/notes/census-proposal-warm-set-published-724.md |
| +++ b/docs/superpowers/notes/census-proposal-warm-set-published-724.md |
| @@ -4,7 +4,7 @@ Ruling `census-ruling-warm-set-published-724`. The independent reviewer approves |
| | unit | change | read sites | what changed | |
| |---|---|---|---| |
| -| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | #724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. No read site added in this unit, same 5 sites. | |
| +| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | #724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. It prunes a failure record only once no box publishes the name (the home map DeployedHosts, the same in-memory snapshot, plus regional names), so a name published not pointing keeps the record that explains its backoff; that set is never a source of candidates. No read site added in this unit, same 5 sites. | |
| | `internal/host/edgesfile.go` `edgesFileWriteClaims` | sites | +registry:Alias, +registry:DNSStatus, +registry:Host | #724: the agent as carlos: reads PLATFORM_APPS_DOMAIN from the environment once per pass (the variable domainsLoop already reads) and sets an additive dns_pointing mark on each published custom name through dnsPointingMark: true on a published alias (registry:Alias, already published only when its dns_status is pointing), and on a route with a hostname outside the apps domain whether its registry:DNSStatus is pointing (registry:Host, registry:DNSStatus on rows the pass already lists). No mark under the apps domain, on a wildcard row, or with no apps domain set. A report the issuer cert warm reads to leave a not-yet-pointing custom name out of its set, not a root decision; it publishes the same names as before. No record, /data, release or claim read added; no new registry query; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once on a box homing a custom name. | |
| Envelopes re-pinned: `internal/edge`, `internal/edgesfile`, `internal/host`. |
| @@ -16,6 +16,6 @@ Recorded dispositions, which each change must still satisfy: |
| - `internal/edge/edge.go` `RunWithActivatorReady`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Wrap dev, HTTP and HTTPS listeners through ConfigureGroupHairpin before serving. Indirectly read protected root boot identity and group-ingress.json; kernel local/peer addresses mark local ingress, never HTTP headers. Agent edge uses verified public source for accounting; direct read sites unchanged and absent marker keeps original listeners. CI fix removes interface enumeration: local peer must match snapshot primary IPv4, an ingress IPv4 installed locally by root, or loopback; kernel destination must still be an ingress EIP on port 80/443. Merge 45cebde4 retains deferred stopReplicaProbes alongside group listener wrapping and shutdown admission closure.;rev3=census-ruling-demo-api-site-route;basis=Change the startup failure context from load routes to initialize because origin validation now runs during construction. Existing five read sites unchanged; no new read or runtime authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Invoke the agent shutdown timestamp hook synchronously at SIGTERM/SIGINT receipt before closing admission in dev and TLS paths. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: registers the https and http servers with the connection drain (conns.serve) so a drain can close idle keep-alive connections; no read added |
| - `internal/host/edgesfile.go` `edgesFileWriteClaims`: authority, task F,J1. Basis: rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.;rev3=census-ruling-edge-page-cache-1;basis=prunes the manifest cache through the new atomic pointer (assets.manifests.Load().prune(...), nil-safe); nothing else changes; read sites unchanged (67); no read added;rev3=census-ruling-region-ha-held-build;basis=writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added. held-requests Task 4: sets the constant ha_take=1 on the box's own file when its in-memory capabilities include region-ha-1 (this build's edge answers take requests); not from config or any read; a report other edges read, not a root decision; no read added |
| -Seal: `499c08fd29787c5de2aa0197c05f82f6db0ab7760eb7d980bb24211e289e4c24` → `52f4ec108856f2c6ee4e43d4bd9f1030f01fa466223a73036c2c749e74e6988c`. |
| +Seal: `499c08fd29787c5de2aa0197c05f82f6db0ab7760eb7d980bb24211e289e4c24` → `68146239fd4fcea3300f1633d938c0ca28d76b4a068e26861dc4bb0c4bc468a4`. |
| Overlay: `internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/edge/certwarm.go b/internal/edge/certwarm.go| index 384cb6497..0542d821f 100644 |
| --- a/internal/edge/certwarm.go |
| +++ b/internal/edge/certwarm.go |
| @@ -125,6 +125,12 @@ type certWarm struct { |
| // not under the apps domain and not covered by a wildcard. See |
| // Edge.warmSet. |
| hosts func() []string |
| + // deployed, when set, lists the names still attached to this deployment |
| + // whether or not they are warm candidates (Edge.warmDeployed). Only the |
| + // record prune reads it: a failure record outlives its name leaving the |
| + // warm set for as long as the name is still deployed. Nil means the warm |
| + // set is all there is. |
| + deployed func() []string |
| // getCert is autocert's per-host path (NOT the wildcard-wrapped one — a |
| // wrapped call would be answered by the wildcard and order nothing). |
| getCert func(*tls.ClientHelloInfo) (*tls.Certificate, error) |
| @@ -582,7 +588,7 @@ func (c *certWarm) pass() time.Duration { |
| delete(records, h) |
| } |
| } |
| - c.prune(ctx, records, inSet) |
| + c.prune(ctx, records, c.stillDeployed(inSet)) |
| c.retireDNSMisses(inSet) |
| owed, isOwed := c.owedWait(inSet) |
| // Housekeeping last: it is the least urgent thing this pass does, and |
| @@ -755,6 +761,22 @@ func warmHello(host string) *tls.ClientHelloInfo { |
| // test would warm every app of a new account per-host during exactly the |
| // window before their wildcard lands. |
| func (e *Edge) warmSet(appsDomain string, parents func() []string) []string { |
| + homes := e.homes.Load() |
| + return e.warmNames(appsDomain, parents, homes.OwnServedHosts(), homes.ServedHosts()) |
| +} |
| + |
| +// warmDeployed is the names still attached to this deployment that the warm |
| +// set's filters would admit, whether or not their home box has seen them |
| +// pointing: the same regional names, and every name some box publishes |
| +// (homeMap.DeployedHosts). The warm prunes failure records against it and |
| +// uses it for nothing else; it is never a source of candidates. |
| +func (e *Edge) warmDeployed(appsDomain string, parents func() []string) []string { |
| + return e.warmNames(appsDomain, parents, e.homes.Load().DeployedHosts()) |
| +} |
| + |
| +// warmNames applies warmSet's filters to the regional names in the route |
| +// table and to the published name lists given. |
| +func (e *Edge) warmNames(appsDomain string, parents func() []string, published ...[]string) []string { |
| appsDomain = strings.ToLower(strings.TrimSpace(appsDomain)) |
| covered := wildcardCoverer(parents) |
| seen := map[string]bool{} |
| @@ -778,12 +800,10 @@ func (e *Edge) warmSet(appsDomain string, parents func() []string) []string { |
| consider(h) |
| } |
| } |
| - homes := e.homes.Load() |
| - for _, h := range homes.OwnServedHosts() { |
| - consider(h) |
| - } |
| - for _, h := range homes.ServedHosts() { |
| - consider(h) |
| + for _, list := range published { |
| + for _, h := range list { |
| + consider(h) |
| + } |
| } |
| sort.Strings(out) |
| return out |
| @@ -803,6 +823,7 @@ func (e *Edge) newIssuerWarm(appsDomain string, parents func() []string, getCert |
| e.issuerGate, |
| store, |
| ) |
| + warm.deployed = func() []string { return e.warmDeployed(appsDomain, parents) } |
| // Woken when its set may have grown (#386), so a custom domain is |
| // ordered seconds after it is published rather than at the next hourly |
| // pass: a change in the names this box or another publishes (#724), or a |
| @@ -1003,8 +1024,26 @@ func (c *certWarm) clearRecord(ctx context.Context, host, why string) { |
| log.Printf("edge: cert warm: cleared the outcome record for %s (%s)", host, why) |
| } |
| -// prune drops records for hosts that are no longer in the warm set — a |
| -// detached custom domain, or one whose route went away. |
| +// stillDeployed is the set prune keeps records for: the warm set plus every |
| +// name still deployed (c.deployed). An in-memory read, like the set itself. |
| +func (c *certWarm) stillDeployed(inSet map[string]bool) map[string]bool { |
| + if c.deployed == nil { |
| + return inSet |
| + } |
| + keep := hostSet(c.deployed()) |
| + for h := range inSet { |
| + keep[h] = true |
| + } |
| + return keep |
| +} |
| + |
| +// prune drops records for hosts that are no longer deployed: a detached |
| +// custom domain, or one whose route went away. keep is stillDeployed's |
| +// answer, not the warm set. A name its home box publishes not pointing has |
| +// left the warm set but is still attached, and its backoff (nextAttempt) |
| +// outlives its time out of the set; dropping the record there would leave |
| +// the wait in force with nothing to explain it, and lose the attempt count |
| +// (#724). |
| // |
| // This deliberately DOES delete on the strength of an inference ("not in the |
| // set"), which §3f forbids for certificates. The distinction is ownership, |
| @@ -1014,12 +1053,12 @@ func (c *certWarm) clearRecord(ctx context.Context, host, why string) { |
| // the next failure rebuilds. The prune is also fenced by pass()'s early |
| // return on an empty set, so the one case that would delete EVERYTHING — |
| // a warm set that briefly folds to nothing — never reaches here. |
| -func (c *certWarm) prune(ctx context.Context, records map[string]certwarm.Record, inSet map[string]bool) { |
| +func (c *certWarm) prune(ctx context.Context, records map[string]certwarm.Record, keep map[string]bool) { |
| if c.store == nil || len(records) == 0 { |
| return |
| } |
| for host := range records { |
| - if inSet[host] { |
| + if keep[host] { |
| continue |
| } |
| c.clearRecord(ctx, host, "detached") |
diff --git a/internal/edge/certwarm_test.go b/internal/edge/certwarm_test.go| index f50d33496..1f2a5cae8 100644 |
| --- a/internal/edge/certwarm_test.go |
| +++ b/internal/edge/certwarm_test.go |
| @@ -150,17 +150,29 @@ type issuerWarmFixture struct { |
| // away is the hosts the fake resolver answers with an address outside |
| // the edge set, so the DNS gate stays shut for them. |
| away map[string]bool |
| + // refuse is the hosts the fake getCert answers with the given error. |
| + refuse map[string]error |
| } |
| func newIssuerWarmFixture(t *testing.T, ownHosts string) *issuerWarmFixture { |
| t.Helper() |
| - f := &issuerWarmFixture{lookups: map[string]int{}, orders: map[string]int{}, away: map[string]bool{}} |
| + return newRecordingIssuerWarmFixture(t, ownHosts, nil) |
| +} |
| + |
| +// newRecordingIssuerWarmFixture is newIssuerWarmFixture with a store for |
| +// the warm's failure records (nil records nothing). |
| +func newRecordingIssuerWarmFixture(t *testing.T, ownHosts string, records release.Store) *issuerWarmFixture { |
| + t.Helper() |
| + f := &issuerWarmFixture{lookups: map[string]int{}, orders: map[string]int{}, away: map[string]bool{}, refuse: map[string]error{}} |
| f.e, f.m, f.s = publishedEdge(t, ownHosts) |
| f.w = f.e.newIssuerWarm("oncarlos.test", nil, |
| func(h *tls.ClientHelloInfo) (*tls.Certificate, error) { |
| f.mu.Lock() |
| defer f.mu.Unlock() |
| f.orders[h.ServerName]++ |
| + if err := f.refuse[h.ServerName]; err != nil { |
| + return nil, err |
| + } |
| return &tls.Certificate{}, nil |
| }, |
| func(host string) ([]string, error) { |
| @@ -173,7 +185,7 @@ func newIssuerWarmFixture(t *testing.T, ownHosts string) *issuerWarmFixture { |
| return []string{"203.0.113.7"}, nil |
| }, |
| func() []string { return []string{"203.0.113.7"} }, |
| - nil, |
| + records, |
| ) |
| return f |
| } |
| @@ -316,6 +328,56 @@ func TestIssuerWarmLeavesAWarmedNameAloneWhileItIsNotPointing(t *testing.T) { |
| } |
| } |
| +// A failure record belongs to the attachment, not to the name's turn in the |
| +// warm set. A rate-limited name whose home box then publishes it not |
| +// pointing has left the set, but its twelve-hour backoff stays in force: |
| +// the record that explains the wait, and its attempt count, must stay too. |
| +// Only a name no box publishes any more is pruned as detached. |
| +func TestIssuerWarmKeepsAFailureRecordWhileTheNameIsStillDeployed(t *testing.T) { |
| + const name, gone, other = "shop.example.com", "old.example.org", "store.example.net" |
| + row := func(h, pointing string) string { |
| + return `"` + h + `":{"role":"home","platform":false,"dns_pointing":` + pointing + `}` |
| + } |
| + records := release.NewDirStore(t.TempDir()) |
| + f := newRecordingIssuerWarmFixture(t, `{`+row(name, "true")+`,`+row(gone, "true")+`,`+row(other, "true")+`}`, records) |
| + limited := &acme.Error{ProblemType: "urn:ietf:params:acme:error:rateLimited"} |
| + f.refuse[name], f.refuse[gone] = limited, limited |
| + f.w.pass() |
| + for _, h := range []string{name, gone} { |
| + if rec, ok := warmRecordIn(t, records, h); !ok || rec.Class != certwarm.ClassRateLimited || rec.Attempts != 1 { |
| + t.Fatalf("setup: record for %s = %+v ok=%v, want one rate-limited attempt", h, rec, ok) |
| + } |
| + } |
| + before, _ := warmRecordIn(t, records, name) |
| + until := f.w.nextAttempt[name] |
| + if left := time.Until(until); left < warmRateLimitBackoff-time.Minute { |
| + t.Fatalf("setup: backoff of %s, want about %s", left, warmRateLimitBackoff) |
| + } |
| + |
| + // The name stops pointing and the other failing name is detached |
| + // outright, while a third name keeps the set from being empty. |
| + f.publish(t, "annie", `{`+row(name, "false")+`,`+row(other, "true")+`}`) |
| + f.w.pass() |
| + if rec, ok := warmRecordIn(t, records, name); !ok || rec != before { |
| + t.Fatalf("not pointing but still published: record = %+v ok=%v, want %+v kept", rec, ok, before) |
| + } |
| + if got := f.w.nextAttempt[name]; !got.Equal(until) { |
| + t.Fatalf("the backoff moved from %s to %s while the name was not pointing", until, got) |
| + } |
| + if rec, ok := warmRecordIn(t, records, gone); ok { |
| + t.Fatalf("record %+v for a name no box publishes survived the prune", rec) |
| + } |
| + |
| + f.publish(t, "annie", `{`+row(name, "true")+`,`+row(other, "true")+`}`) |
| + f.w.pass() |
| + if lookups, asks := f.counts(name); lookups != 1 || asks != 1 { |
| + t.Fatalf("pointing again inside the backoff: %d lookup(s), %d getCert call(s); want still 1 and 1", lookups, asks) |
| + } |
| + if rec, ok := warmRecordIn(t, records, name); !ok || rec != before { |
| + t.Fatalf("pointing again: record = %+v ok=%v, want %+v intact", rec, ok, before) |
| + } |
| +} |
| + |
| // The wake agrees with the pass: a name is a new host only once its home |
| // box publishes it pointing, and stops being one when that is withdrawn. |
| func TestIssuerWarmNewHostFollowsPointing(t *testing.T) { |
diff --git a/internal/edge/homemap.go b/internal/edge/homemap.go| index b846964ea..247777093 100644 |
| --- a/internal/edge/homemap.go |
| +++ b/internal/edge/homemap.go |
| @@ -308,6 +308,10 @@ type homeSnapshot struct { |
| // home names whose DNS it has seen pointing. Sorted, never written after |
| // the snapshot is published. |
| ownServed []string |
| + // deployed is DeployedHosts' answer: every exact home name any box's |
| + // file publishes, this box's included, whatever its DNS mark. Sorted, |
| + // never written after the snapshot is published. |
| + deployed []string |
| // read is set once the snapshot comes from a successful hosts refresh: |
| // the empty snapshot a restart starts from is not an answer (AssetsFor). |
| read bool |
| @@ -652,7 +656,7 @@ func (m *homeMap) refreshHosts(ctx context.Context) error { |
| // deterministic; say so once a refresh. |
| log.Printf("edge: home map: %d host(s) published by two boxes at the same installation stamp, e.g. %s", len(tied), tied[0]) |
| } |
| - snap := &homeSnapshot{groupObserved: m.snapshot().groupObserved, files: next, hosts: hosts, ownServed: ownServedHosts(next, m.self), read: true, departureComplete: failed == 0, readerComplete: failed == 0 && !readerMissing} |
| + snap := &homeSnapshot{groupObserved: m.snapshot().groupObserved, files: next, hosts: hosts, ownServed: ownServedHosts(next, m.self), deployed: deployedHosts(next, m.self), read: true, departureComplete: failed == 0, readerComplete: failed == 0 && !readerMissing} |
| m.mu.Lock() |
| m.snap = snap |
| wake := m.hostsWake |
| @@ -888,6 +892,47 @@ func (m *homeMap) OwnServedHosts() []string { |
| return slices.Clone(m.snapshot().ownServed) |
| } |
| +// deployedHosts is DeployedHosts' answer for one poll's files: the exact |
| +// names any box's file publishes as home, this box's own included, with no |
| +// regard for the DNS mark. Sorted; nil for an unlabelled box. |
| +func deployedHosts(files map[string]edgesFileView, self string) []string { |
| + if self == "" { |
| + return nil |
| + } |
| + seen := map[string]bool{} |
| + var out []string |
| + for _, f := range files { |
| + for host, h := range f.Hosts { |
| + if host == "" || seen[host] || strings.HasPrefix(host, "*.") || h.Role != edgeRoleHome { |
| + continue |
| + } |
| + seen[host] = true |
| + out = append(out, host) |
| + } |
| + } |
| + slices.Sort(out) |
| + return out |
| +} |
| + |
| +// DeployedHosts lists every exact name some box in this deployment still |
| +// publishes as home, this box included, pointing or not. It answers a |
| +// different question from ServedHosts and OwnServedHosts: not "may the cert |
| +// warm order this name?" but "is this name still attached anywhere?". The |
| +// cert warm keeps a name's failure record for as long as the name is listed |
| +// here, so a name whose DNS is withdrawn for a while does not lose the |
| +// record that explains its retry backoff (#724). It is never a source of |
| +// warm candidates: nothing listed here is looked up or ordered for being |
| +// listed. |
| +// |
| +// The same snapshot as the two served sets, so no extra read. Sorted, |
| +// nil-safe, and nothing for an unlabelled box. |
| +func (m *homeMap) DeployedHosts() []string { |
| + if m == nil || m.self == "" { |
| + return nil |
| + } |
| + return slices.Clone(m.snapshot().deployed) |
| +} |
| + |
| // setHostsWake installs the callback a changed host set fires (Refresh). |
| // Under the map's own lock: run() is already polling when the wildcard |
| // manager is wired in after it. |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 826240802..fe437849f 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -148,4 +148,4 @@ plan14-root-reads-billing-dashboard-1.tsv 8924fafc5b6083858a72f45c764081abe3bcad |
| plan14-root-reads-billing-dash-3-cost.tsv 8924fafc5b6083858a72f45c764081abe3bcad6a6de71901470586c076c64bb6 |
| plan14-root-reads-no-negative-prime-724.tsv ab10145ee873e26b87a653f728cd0c9737592fefe94b659ac5988201c195cb7a |
| plan14-root-reads-gvisor-probe-retry.tsv 499c08fd29787c5de2aa0197c05f82f6db0ab7760eb7d980bb24211e289e4c24 |
| -plan14-root-reads-warm-set-published-724.tsv 52f4ec108856f2c6ee4e43d4bd9f1030f01fa466223a73036c2c749e74e6988c |
| +plan14-root-reads-warm-set-published-724.tsv 68146239fd4fcea3300f1633d938c0ca28d76b4a068e26861dc4bb0c4bc468a4 |
diff --git a/internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv b/internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv| index ca45ae8f6..8bb2b72b0 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-warm-set-published-724.tsv |
| @@ -1,8 +1,8 @@ |
| # Census overlay warm-set-published-724, written by census-propose (#369). census-ruling-warm-set-published-724, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-warm-set-published-724.md. |
| # 1 body, 1 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -@legacy 10058a8a917d510989e7a95be9a9f22007d0ae3f96cce61a14954336edab9ff0 internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Wrap dev, HTTP and HTTPS listeners through ConfigureGroupHairpin before serving. Indirectly read protected root boot identity and group-ingress.json; kernel local/peer addresses mark local ingress, never HTTP headers. Agent edge uses verified public source for accounting; direct read sites unchanged and absent marker keeps original listeners. CI fix removes interface enumeration: local peer must match snapshot primary IPv4, an ingress IPv4 installed locally by root, or loopback; kernel destination must still be an ingress EIP on port 80/443. Merge 45cebde4 retains deferred stopReplicaProbes alongside group listener wrapping and shutdown admission closure.;rev3=census-ruling-demo-api-site-route;basis=Change the startup failure context from load routes to initialize because origin validation now runs during construction. Existing five read sites unchanged; no new read or runtime authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Invoke the agent shutdown timestamp hook synchronously at SIGTERM/SIGINT receipt before closing admission in dev and TLS paths. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: registers the https and http servers with the connection drain (conns.serve) so a drain can close idle keep-alive connections; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. No read site added in this unit, same 5 sites. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 2dc64b1405b94ea073dcef2714368eb00a0b3e6738c319847f59aecb24e159cd |
| -internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Wrap dev, HTTP and HTTPS listeners through ConfigureGroupHairpin before serving. Indirectly read protected root boot identity and group-ingress.json; kernel local/peer addresses mark local ingress, never HTTP headers. Agent edge uses verified public source for accounting; direct read sites unchanged and absent marker keeps original listeners. CI fix removes interface enumeration: local peer must match snapshot primary IPv4, an ingress IPv4 installed locally by root, or loopback; kernel destination must still be an ingress EIP on port 80/443. Merge 45cebde4 retains deferred stopReplicaProbes alongside group listener wrapping and shutdown admission closure.;rev3=census-ruling-demo-api-site-route;basis=Change the startup failure context from load routes to initialize because origin validation now runs during construction. Existing five read sites unchanged; no new read or runtime authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Invoke the agent shutdown timestamp hook synchronously at SIGTERM/SIGINT receipt before closing admission in dev and TLS paths. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: registers the https and http servers with the connection drain (conns.serve) so a drain can close idle keep-alive connections; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. No read site added in this unit, same 5 sites. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 2dc64b1405b94ea073dcef2714368eb00a0b3e6738c319847f59aecb24e159cd |
| +@legacy a68f1edfa2a2f6f227b22ad59969bbc480d8b6428d611234d635c89c00055fef internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Wrap dev, HTTP and HTTPS listeners through ConfigureGroupHairpin before serving. Indirectly read protected root boot identity and group-ingress.json; kernel local/peer addresses mark local ingress, never HTTP headers. Agent edge uses verified public source for accounting; direct read sites unchanged and absent marker keeps original listeners. CI fix removes interface enumeration: local peer must match snapshot primary IPv4, an ingress IPv4 installed locally by root, or loopback; kernel destination must still be an ingress EIP on port 80/443. Merge 45cebde4 retains deferred stopReplicaProbes alongside group listener wrapping and shutdown admission closure.;rev3=census-ruling-demo-api-site-route;basis=Change the startup failure context from load routes to initialize because origin validation now runs during construction. Existing five read sites unchanged; no new read or runtime authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Invoke the agent shutdown timestamp hook synchronously at SIGTERM/SIGINT receipt before closing admission in dev and TLS paths. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: registers the https and http servers with the connection drain (conns.serve) so a drain can close idle keep-alive connections; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. It prunes a failure record only once no box publishes the name (the home map DeployedHosts, the same in-memory snapshot, plus regional names), so a name published not pointing keeps the record that explains its backoff; that set is never a source of candidates. No read site added in this unit, same 5 sites. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 2dc64b1405b94ea073dcef2714368eb00a0b3e6738c319847f59aecb24e159cd |
| +internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Wrap dev, HTTP and HTTPS listeners through ConfigureGroupHairpin before serving. Indirectly read protected root boot identity and group-ingress.json; kernel local/peer addresses mark local ingress, never HTTP headers. Agent edge uses verified public source for accounting; direct read sites unchanged and absent marker keeps original listeners. CI fix removes interface enumeration: local peer must match snapshot primary IPv4, an ingress IPv4 installed locally by root, or loopback; kernel destination must still be an ingress EIP on port 80/443. Merge 45cebde4 retains deferred stopReplicaProbes alongside group listener wrapping and shutdown admission closure.;rev3=census-ruling-demo-api-site-route;basis=Change the startup failure context from load routes to initialize because origin validation now runs during construction. Existing five read sites unchanged; no new read or runtime authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Invoke the agent shutdown timestamp hook synchronously at SIGTERM/SIGINT receipt before closing admission in dev and TLS paths. No read added.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5: registers the https and http servers with the connection drain (conns.serve) so a drain can close idle keep-alive connections; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the inline cert warm construction (newCertWarm over warmSet and dnsGate, then OnReload and setServedWake registering warm.nudge) moves unchanged into the new Edge.newIssuerWarm in certwarm.go and is called here with the same apps domain, parents, perHostCert, warmResolver, edgeIPs and store; the loop still starts here. The warm set it wires now reads the published edges files through the home map (OwnServedHosts and ServedHosts, both already polled) instead of the local route table, regional names aside. It is a different source, not a subset: an attached name not yet published as pointing is no longer listed, while a name the route table has already dropped stays listed until this box's next edges file write and the home map's next poll catch up (HostPolicy still refuses an order for a name the registry no longer holds). A name published not pointing is not a warm candidate at all, whether or not its certificate is cached: the warm neither looks it up, orders it nor re-arms its renewal until its home box publishes it pointing again (a cached certificate keeps serving and re-arms on a handshake at the issuer). The warm reads the set only after the issuer gate, and the read is in memory (route table and the home map's last snapshot); it also drops a DNS-miss entry for a name that has left the set before probing it. It prunes a failure record only once no box publishes the name (the home map DeployedHosts, the same in-memory snapshot, plus regional names), so a name published not pointing keeps the record that explains its backoff; that set is never a source of candidates. No read site added in this unit, same 5 sites. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 2dc64b1405b94ea073dcef2714368eb00a0b3e6738c319847f59aecb24e159cd |
| internal/host/edgesfile.go edgesFileWriteClaims authority F,J1 rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.;rev3=census-ruling-edge-page-cache-1;basis=prunes the manifest cache through the new atomic pointer (assets.manifests.Load().prune(...), nil-safe); nothing else changes; read sites unchanged (67); no read added;rev3=census-ruling-region-ha-held-build;basis=writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added. held-requests Task 4: sets the constant ha_take=1 on the box's own file when its in-memory capabilities include region-ha-1 (this build's edge answers take requests); not from config or any read; a report other edges read, not a root decision; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the agent as carlos: reads PLATFORM_APPS_DOMAIN from the environment once per pass (the variable domainsLoop already reads) and sets an additive dns_pointing mark on each published custom name through dnsPointingMark: true on a published alias (registry:Alias, already published only when its dns_status is pointing), and on a route with a hostname outside the apps domain whether its registry:DNSStatus is pointing (registry:Host, registry:DNSStatus on rows the pass already lists). No mark under the apps domain, on a wildcard row, or with no apps domain set. A report the issuer cert warm reads to leave a not-yet-pointing custom name out of its set, not a root decision; it publishes the same names as before. No record, /data, release or claim read added; no new registry query; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once on a box homing a custom name. registry:Account@16743,registry:Alias@10183,registry:Alias@10340,registry:Alias@10410,registry:Alias@10442,registry:Alias@11186,registry:Alias@11396,registry:Alias@14216,registry:Alias@14266,registry:Alias@9544,registry:Alias@9563,registry:Alias@9662,registry:Alias@9716,registry:Alias@9751,registry:Alias@9813,registry:App@16755,registry:DNSStatus@10349,registry:DNSStatus@5731,registry:DNSStatus@9858,registry:Host@14119,registry:Host@14139,registry:Host@14404,registry:Host@14484,registry:Host@14519,registry:Host@14568,registry:Host@15030,registry:Host@15065,registry:Host@16173,registry:Host@4188,registry:Host@4279,registry:Host@4325,registry:Host@4384,registry:Host@5723,registry:Host@5970,registry:Host@6940,registry:Host@9589,registry:Host@9637,registry:Incarnation@5930,registry:Platform@5238,registry:Pool@4239,registry:Provisioned@5252,registry:Replica@5276,registry:ServingSeq@5945,registry:Status@2957,whole:Route@1026,whole:Route@18213,whole:Route@1841,whole:Route@19038,whole:Route@19213,whole:Route@2327,whole:Route@7025,whole:Route@750,whole:RouteAlias@14170,whole:RouteAlias@18235,whole:RouteAlias@19228,whole:RouteAlias@9427,whole:RouteAlias@9509,whole:RouteAlias@9701,whole:RoutePath@18228,whole:RoutePath@19221,whole:RoutePath@6809,whole:RoutePath@6841,whole:RoutePath@6888,whole:RoutePath@6916,whole:RoutePath@6954,whole:RoutePath@6974,whole:RoutePath@6986,whole:RoutePath@7040,whole:WildcardDomain@14097,whole:WildcardDomain@14473 5b2180cec383f62ccb24a32a8eff30ab462eaab4d13f4b7b0503fc639a0c6b49 |
| -@coverage internal/edge ef0e5280ce45cabc1551f4c671f9d7520c8402e8fc6179f57403f9c217d47208 |
| +@coverage internal/edge eae3a85f819b1598cbf9e6a055b20de2a267018146d526777e3833513f1d2c60 |
| @coverage internal/edgesfile 55e261de1c2527dade77aefaefd3515595bfccb7c6bbaeec246c5ab1308047dc |
| @coverage internal/host 6e65359f159ffa837e000c1506df6545f7f47857a0e29f73338c0b0338d50201 |