carlos / platform Public

census: cert-import-1429 after round 3 (#1429)

census-propose rerun with the claims rewritten to what the code does
now: reconcileLocalImport (Lstat, os.Remove of a non-regular entry,
then the cache Put, no read of the entry), ReadImportedCert and its two
openers (one no-follow, non-blocking open, Fstat regular, 64 KiB cap,
everything validated from those bytes), edgesFileWriteClaims through
importBoundTo's single ReadImportedCert call, and RunWithActivatorReady
with the wildcard pass-down and the reconcile cursor. importBoundTo and
UsableImportedCert read nothing themselves now and are retired from the
census. The record-write entry for reconcileLocalImport is re-pinned.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b54e4177fff82ad84aa31aef0b03007d2e08ca2b parent e24276a
4 files changed, +28 −23
  • docs/superpowers/notes/census-proposal-cert-import-1429.md +7 −6
  • internal/provision/cert_import_1429_census_test.go +5 −3
  • internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv +15 −13
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
diff --git a/docs/superpowers/notes/census-proposal-cert-import-1429.md b/docs/superpowers/notes/census-proposal-cert-import-1429.md
index d8dc0a12f..5b2c33d79 100644
--- a/docs/superpowers/notes/census-proposal-cert-import-1429.md
+++ b/docs/superpowers/notes/census-proposal-cert-import-1429.md
@@ -1,12 +1,12 @@
# Census approval: cert-import-1429
-Ruling `census-ruling-cert-import-1429`. The independent reviewer approves or rejects every change below, 5 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-cert-import-1429`. The independent reviewer approves or rejects every change below, 6 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
| `internal/edge/certsync.go` `certMirror.backfill` | body | unchanged (2) | #1429: skips cache entries whose name ends in +import (an imported certificate is the console's to write and the issuer reconcile's to delete, never republished from a box's disk). Publishes less, never more; no read added, same 2 sites. |
-| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | #1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory returns chooseCert's answer: a supported CARLOS entry, else the import; every other name unchanged), and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. |
-| `internal/host/edgesfile.go` `edgesFileWriteClaims` | sites | +registry:Account, +registry:Alias, +registry:App | #1429: the box agent writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when importBoundTo finds a usable <AcmeDir>/<alias>+import whose binding's account AND app equal the alias row's (+registry:Account, +registry:Alias, +registry:App on rows the pass already lists). The read is importBoundTo's (new unit): the name must pass validHostShape, Lstat first, only a regular file under 64 KiB is opened (no symlink followed), the bytes are parsed by pem/tls.X509KeyPair and reduced to a boolean, never executed, followed or written; the directory is the edge's cert cache (written by carlos-edge, user carlos) that the agent already reads in hostCertExpiry and UsablePerHostCert. Publishes more only for an operator-imported name bound to the alias's own account and app; the issuer's HostPolicy refuses to order for it until pointing. |
+| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | #1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory, for a deployment host, returns chooseCert's answer over the wildcard covering the name, the <host> and <host>+rsa entries and the import: a supported CARLOS certificate first, else the import; every other name unchanged); the wildcard wrap becomes wrapGetCertificateImports, which passes exactly those imported names down instead of answering with the wildcard (in-memory predicates only: deploymentHost and the mirror snapshot); and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter rotated by a cursor across passes, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. |
+| `internal/host/edgesfile.go` `edgesFileWriteClaims` | sites | +registry:Account, +registry:Alias, +registry:App | #1429: the box agent writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when importBoundTo finds a usable <AcmeDir>/<alias>+import whose binding's account AND app equal the alias row's (+registry:Account, +registry:Alias, +registry:App on rows the pass already lists). The read is domains.ReadImportedCert's, called once by importBoundTo: one no-follow, non-blocking open (O_NOFOLLOW|O_NONBLOCK on linux and darwin), Fstat a regular file of at most 64 KiB, the binding, key, name and dates validated from those same bytes and reduced to a boolean, never executed, followed or written; the directory is the edge's cert cache (written by carlos-edge, user carlos) that the agent already reads in hostCertExpiry and UsablePerHostCert. Publishes more only for an operator-imported name bound to the alias's own account and app; the issuer's HostPolicy refuses to order for it until pointing. |
Envelopes re-pinned: `.`, `internal/domains`, `internal/edge`, `internal/host`.
@@ -21,11 +21,12 @@ Recorded dispositions, which each change must still satisfy:
New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
- new `domains_cert_cli.go:readCertFile`: reads +file:Open, +file:ReadAll; written legacy, accepted-legacy, frozen
-- new `internal/domains/certimport.go:UsableImportedCert`: reads +file:Lstat, +file:Open, +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/domains/certimport_read.go:ReadImportedCert`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/domains/certimport_read.go:openImportEntryPortable`: reads +file:Lstat, +file:Open, +file:Stat; written legacy, accepted-legacy, frozen
+- new `internal/domains/certimport_read_nofollow.go:openImportEntry`: reads +file:Open, +file:Stat; written legacy, accepted-legacy, frozen
- new `internal/edge/certimport.go:certMirror.pruneLocalImports`: reads +file:ReadDir; written legacy, accepted-legacy, frozen
- new `internal/edge/certimport.go:certMirror.reconcileLocalImport`: reads +file:Lstat; written legacy, accepted-legacy, frozen
-- new `internal/host/edgesfile_import.go:importBoundTo`: reads +file:Lstat, +file:Open, +file:ReadAll, +file:Stat; written legacy, accepted-legacy, frozen
-Seal: `0d02e63b6a67aab196e13324393148ab8faccbd4331af3eadb1ab52ff5b42bb1` → `47295f402cc5ca691305382cffcd4deb1db8985615d02980cf66dd3e3956527e`.
+Seal: `0d02e63b6a67aab196e13324393148ab8faccbd4331af3eadb1ab52ff5b42bb1` → `aac62dd4a123188fcb422f8219a940e7257773362c861a8fc72d56d36183a775`.
Overlay: `internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/cert_import_1429_census_test.go b/internal/provision/cert_import_1429_census_test.go
index 0f6aeb00f..815091a98 100644
--- a/internal/provision/cert_import_1429_census_test.go
+++ b/internal/provision/cert_import_1429_census_test.go
@@ -11,8 +11,10 @@ package provision
// record key.
// - certMirror.reconcileLocalImport (internal/edge/certimport.go) writes
// the edge's local autocert cache file for an imported certificate, the
-// way certMirror.reconcileLocal does for an issued one. The Put it
-// calls is the cache's, not a store record write.
+// way certMirror.reconcileLocal does for an issued one: it removes a
+// non-regular entry under the import's name and writes the bucket's
+// bytes, never reading the entry. The Put it calls is the cache's, not
+// a store record write.
//
// Two key-site tables are re-pinned, class and kinds unchanged: var
// routeDecls (routedecls.go) and var linkedPolicies (linkedpolicy.go) gained
@@ -40,6 +42,6 @@ func certImport1429WriteCensusInventory() []censusEntry {
}
return append(entries,
censusEntry{"internal/domains/certimport_invariant.go", "WriteImport", "nonrecord", "sel:Put", "c9eddf29ba4b5949eed2b1de6dfedfdee7b0d4124fbb7c0100c3d39a601966e8"},
- censusEntry{"internal/edge/certimport.go", "certMirror.reconcileLocalImport", "nonrecord", "sel:Put", "75389fc8111a3d299a0b87861136af4f0284fb5b43edcdaf05548f1a768e9f3e"},
+ censusEntry{"internal/edge/certimport.go", "certMirror.reconcileLocalImport", "nonrecord", "sel:Put", "44f9e6d6fa1ca0e4d681ea6bfcff385050a9cbeb169de00fe8261ca3882aae52"},
)
}
diff --git a/internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv b/internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv
index 7da871b47..7724c95d6 100644
--- a/internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv
+++ b/internal/provision/testdata/plan14-root-reads-cert-import-1429.tsv
@@ -1,22 +1,24 @@
# Census overlay cert-import-1429, written by census-propose (#369). census-ruling-cert-import-1429, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-cert-import-1429.md.
# 2 body, 1 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 5 new dispositions: 0 reads re-frozen at their disposition with the claim, 5 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 6 new dispositions: 0 reads re-frozen at their disposition with the claim, 6 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy 5e2c501ab3ebfdc3cce687d3af1d1ed7b03ab0a0aa45675438d49e6a31095254 internal/edge/certsync.go certMirror.backfill legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-cert-import-1429;basis=#1429: skips cache entries whose name ends in +import (an imported certificate is the console's to write and the issuer reconcile's to delete, never republished from a box's disk). Publishes less, never more; no read added, same 2 sites. file:ReadDir@402,file:ReadFile@1805 8e370214bd191cdfb86349a307d151371d7b1bdc743ed3533b67ae1e9657b6d5
-@legacy e3c8a1dffa7b3c05c53fe762d10f9ad332c7980e313ceca6d23be9beb08690d2 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 keeps a failure record while any box publishes the exact name (the home map DeployedHosts: every box's file, own included, pointing or not, the same in-memory snapshot) or the name is a regional route-table name, and prunes it only once no box publishes it. That retention set has no apps-domain or wildcard filter (those stay on candidacy only), so a name published not pointing, or one a wildcard parent starts covering, keeps the record that explains its backoff; the set is never a source of candidates. No read site added in this unit, same 5 sites.;rev3=census-ruling-w6-ingress-drain;basis=the two public servers are built by e.publicServers (internal/edge/ingressdrain.go): :443 as before (same handler, TLS config and ReadHeaderTimeout 10 s), :80 now wrapped by plainTracked so the ingress drain can count and close its requests (its barrier is never §25's); Serve's error test is listenerFailed(err) = err != nil && !errors.Is(err, http.ErrServerClosed) (was err != ErrServerClosed), so a graceful Shutdown by the drain is not fatal. New Edge.plain connDrain field. Same flags, addresses and listeners; read sites unchanged (5); no read added.;rev3=census-ruling-edge-ppv2;basis=Edge process (uid carlos), not root. Edge gains the proxy atomic.Pointer. Outside dev mode, before either public listener binds and before the ready hook hands the Edge to the agent, calls e.loadProxyIngress(os.Getenv, dataDir): CARLOS_INGRESS_PROXY_SOURCES from the edge's own environment (carlos-edge.service loads the root-owned 0600 host.env) through hostenv.ParseProxySources; blank leaves the edge unarmed with nothing read; a non-empty list arms it and Lstats <dataDir>/edge/trust-barrier (armProxyIngress); a value that does not parse is log.Fatal. After the hairpin configuration, wrapProxyIngress wraps both public listeners outermost (returns them untouched when unarmed); when armed it logs the armed line and starts runProxyJournal (counters to the journal, no reads). The existing 5 read sites are unchanged.;rev3=census-ruling-audit-request-path;basis=the dev-mode http.Server gains IdleTimeout: publicIdleTimeout (120 s) beside its ReadHeaderTimeout; comment updated. Same 5 read sites, no read added.;rev3=census-ruling-precert-dns01-1293;basis=the edge process (carlos-edge.service, user carlos), not root: after the cert warm starts, calls e.newPreIssuerFromEnv(certCache, mirror, wm) and, when it returns non-nil, starts its loop and logs one line. newPreIssuerFromEnv (precert.go) reads CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the edge environment (the root-owned host.env); either unset or invalid = nil, nothing else read. Only claims of the named accounts qualify. Armed, the loop runs only while this box holds the issuer gate: it lists domains/ claims in the deployment bucket through a ClaimCache, and for proven claims under the listed zones orders a certificate over DNS-01 through the existing DNS provider seam (dnsProviderFromEnv, same IAM-scoped _acme-challenge TXT writes the wildcard manager already makes), writing the result through the existing publishing cache (local acme dir + control/certs/<host>). No root read; the existing 5 read sites are unchanged.;rev3=census-ruling-alias-publish-precert-1293;basis=the edge process (carlos-edge.service, user carlos), not root: the pre-issuer start log now reads its zones from p.scope.Zones (the zones and accounts moved into the shared edge.DNS01Scope); no behaviour change, no read added, the existing 5 read sites unchanged.;rev3=census-ruling-cert-import-1429;basis=#1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory returns chooseCert's answer: a supported CARLOS entry, else the import; every other name unchanged), and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 43965c238c9b6943138198aedaedfc4ba248315b636349b6f18c8eb84dba06a0
+@legacy 992b8781c2669a00d5b0a7775251140bc7d3c707ad398eccde590024dbf7d3a3 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 keeps a failure record while any box publishes the exact name (the home map DeployedHosts: every box's file, own included, pointing or not, the same in-memory snapshot) or the name is a regional route-table name, and prunes it only once no box publishes it. That retention set has no apps-domain or wildcard filter (those stay on candidacy only), so a name published not pointing, or one a wildcard parent starts covering, keeps the record that explains its backoff; the set is never a source of candidates. No read site added in this unit, same 5 sites.;rev3=census-ruling-w6-ingress-drain;basis=the two public servers are built by e.publicServers (internal/edge/ingressdrain.go): :443 as before (same handler, TLS config and ReadHeaderTimeout 10 s), :80 now wrapped by plainTracked so the ingress drain can count and close its requests (its barrier is never §25's); Serve's error test is listenerFailed(err) = err != nil && !errors.Is(err, http.ErrServerClosed) (was err != ErrServerClosed), so a graceful Shutdown by the drain is not fatal. New Edge.plain connDrain field. Same flags, addresses and listeners; read sites unchanged (5); no read added.;rev3=census-ruling-edge-ppv2;basis=Edge process (uid carlos), not root. Edge gains the proxy atomic.Pointer. Outside dev mode, before either public listener binds and before the ready hook hands the Edge to the agent, calls e.loadProxyIngress(os.Getenv, dataDir): CARLOS_INGRESS_PROXY_SOURCES from the edge's own environment (carlos-edge.service loads the root-owned 0600 host.env) through hostenv.ParseProxySources; blank leaves the edge unarmed with nothing read; a non-empty list arms it and Lstats <dataDir>/edge/trust-barrier (armProxyIngress); a value that does not parse is log.Fatal. After the hairpin configuration, wrapProxyIngress wraps both public listeners outermost (returns them untouched when unarmed); when armed it logs the armed line and starts runProxyJournal (counters to the journal, no reads). The existing 5 read sites are unchanged.;rev3=census-ruling-audit-request-path;basis=the dev-mode http.Server gains IdleTimeout: publicIdleTimeout (120 s) beside its ReadHeaderTimeout; comment updated. Same 5 read sites, no read added.;rev3=census-ruling-precert-dns01-1293;basis=the edge process (carlos-edge.service, user carlos), not root: after the cert warm starts, calls e.newPreIssuerFromEnv(certCache, mirror, wm) and, when it returns non-nil, starts its loop and logs one line. newPreIssuerFromEnv (precert.go) reads CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the edge environment (the root-owned host.env); either unset or invalid = nil, nothing else read. Only claims of the named accounts qualify. Armed, the loop runs only while this box holds the issuer gate: it lists domains/ claims in the deployment bucket through a ClaimCache, and for proven claims under the listed zones orders a certificate over DNS-01 through the existing DNS provider seam (dnsProviderFromEnv, same IAM-scoped _acme-challenge TXT writes the wildcard manager already makes), writing the result through the existing publishing cache (local acme dir + control/certs/<host>). No root read; the existing 5 read sites are unchanged.;rev3=census-ruling-alias-publish-precert-1293;basis=the edge process (carlos-edge.service, user carlos), not root: the pre-issuer start log now reads its zones from p.scope.Zones (the zones and accounts moved into the shared edge.DNS01Scope); no behaviour change, no read added, the existing 5 read sites unchanged.;rev3=census-ruling-cert-import-1429;basis=#1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory, for a deployment host, returns chooseCert's answer over the wildcard covering the name, the <host> and <host>+rsa entries and the import: a supported CARLOS certificate first, else the import; every other name unchanged); the wildcard wrap becomes wrapGetCertificateImports, which passes exactly those imported names down instead of answering with the wildcard (in-memory predicates only: deploymentHost and the mirror snapshot); and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter rotated by a cursor across passes, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 3cbb0fc582dd1c8703bb3b3549ca66ccf80284dae139a8e7d1d75c0e2aaae676
@legacy 0fe4545748df674a3eaa4e5d3fb7f94aca93be6c2ea348219b530ab5078eb958 domains_cert_cli.go readCertFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the carlos CLI on the operator's own machine reads the --cert/--key files the operator names (Open, ReadAll capped at 64 KiB) to send them to the console over HTTPS; not a root path on a box. file:Open@70,file:ReadAll@194 060973fd2e67dac557a69bfde974dd15220b74716eda83c6eaf84f5e11761cc4
-@legacy bc85f81e761903f55b6620371a718e4800cebc792d30b350c09e8a78b227f758 internal/domains/certimport.go UsableImportedCert legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: readiness test for an imported certificate: <acmeDir>/<host>+import, host must pass validHostShape (one file directly under acmeDir), Lstat first, only a regular file under 64 KiB opened (no symlink), parsed and reduced to a boolean; the edge's cert cache the agent already reads. file:Lstat@216,file:Open@328,file:ReadAll@404 d3adf26165d6137552fff94137bbb3f1ae88a3a159f9029318307bbc99c90d1a
+@legacy 1196384d744fbc1bc5aa4b8b0daa4c8bd52d3d3d386cc8f78599d1ddf6a607de internal/domains/certimport_read.go ReadImportedCert legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: one bounded read of a cached import: <acmeDir>/<host>+import with host passing validHostShape (one file directly under acmeDir), opened once through openImportEntry (no symlink followed, no blocking on a FIFO, the descriptor Fstat'd as a regular file of at most 64 KiB), ReadAll capped at 64 KiB+1 and refused over 64 KiB; the binding, key pair, name and dates are validated from those same bytes (ParseImport, ImportUsable) and returned; never executed, followed or written. Callers: the agent's edges-file writer (importBoundTo, UsableImportedCert) over the edge's cert cache (written by carlos-edge, user carlos). file:ReadAll@334 2f391db58b070ba79a4212ce23cbfc97394baafd6ff676b67e01af73a5955204
+@legacy 61fbf7d477f5c121c146e18c1472dab4ea03a939fcd293e007376e42bd0890c1 internal/domains/certimport_read.go openImportEntryPortable legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429 (systems without O_NOFOLLOW, not linux or darwin): Lstat (a regular file of at most 64 KiB), Open, Fstat, and os.SameFile between the Lstat and the descriptor; a symlink or another file swapped in between is refused. Not compiled into the linux box binaries. file:Lstat@77,file:Open@227,file:Stat@296 92663ac43893dfcc46464aaa3667c1995395be1c5c663da05e7de378cb793e02
+@legacy 7839735bbd6df795c56ddf0af114c12e5f2cce855275708d72ce30a521be8abc internal/domains/certimport_read_nofollow.go openImportEntry legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429 (linux, darwin): a single syscall.Open of the path with O_RDONLY|O_NOFOLLOW|O_NONBLOCK|O_CLOEXEC (a symlink at the last component is refused, a FIFO does not block the open), then Fstat on that descriptor: a regular file of at most 64 KiB, else closed and refused. file:Open@65,file:Stat@249 6e5ffb0ecf4591f3832f0a3dc5e899ede6e11c709d429d5f9a91eb3268a5bfeb
@legacy e81c6cb7e09d530a91fa04bde019e71aa2cba5dbf80ad4f79f415ee5a2278b88 internal/edge/certimport.go certMirror.pruneLocalImports legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos) lists its own cert cache directory and deletes regular files ending in +import whose key a successful control/certs listing did not return; touches only its own cache dir, nothing on a failed listing. file:ReadDir@144 c3a2466d1313f810d82e43dba35f29f2babbdc0e13d15a0000b6ff378a8df398
-@legacy 5dfe25cf894305573781fdcf9ddbb15de248b565fbda9b779afaf10b6453ed0b internal/edge/certimport.go certMirror.reconcileLocalImport legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos) Lstats its own cache entry <host>+import before rewriting it by identity through the cache Put (0600); no symlink followed. file:Lstat@179 75389fc8111a3d299a0b87861136af4f0284fb5b43edcdaf05548f1a768e9f3e
-@legacy 148c1bec1de1c4c7b864fa8e219bd38f93ac64dfe92fca5dd2d5de265693636c internal/host/edgesfile_import.go importBoundTo legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the agent's account-and-app check for an early-published import: calls domains.UsableImportedCert, then Lstat/Open/Stat/ReadAll (64 KiB cap) of the same <AcmeDir>/<alias>+import, refuses if the file changed between the reads (Stat identity), parses the binding; regular file only, no symlink, bytes never executed or written. file:Lstat@245,file:Open@333,file:ReadAll@501,file:Stat@415 000f0309c28e07bd8933a0fac04e217fbdab744cf68601eb2f57bffe0ab8cc9f
+@legacy a514e95669a88ae22370b0dbbe8f55010189e6d1b64b67a03651bf46106009aa internal/edge/certimport.go certMirror.reconcileLocalImport legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos), its own cert cache only: Lstats <host>+import; a non-regular entry (symlink, FIFO) is removed with os.Remove, which takes the entry itself and never follows it; then the bucket's bytes are written through the cache's Put (autocert.DirCache: a 0600 temp file renamed over the name). The entry is never opened or read: no symlink followed, no FIFO opened. Called only for bucket bytes this process has not yet reconciled. file:Lstat@202 44f9e6d6fa1ca0e4d681ea6bfcff385050a9cbeb169de00fe8261ca3882aae52
internal/edge/certsync.go certMirror.backfill legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-cert-import-1429;basis=#1429: skips cache entries whose name ends in +import (an imported certificate is the console's to write and the issuer reconcile's to delete, never republished from a box's disk). Publishes less, never more; no read added, same 2 sites. file:ReadDir@402,file:ReadFile@1805 8e370214bd191cdfb86349a307d151371d7b1bdc743ed3533b67ae1e9657b6d5
-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 keeps a failure record while any box publishes the exact name (the home map DeployedHosts: every box's file, own included, pointing or not, the same in-memory snapshot) or the name is a regional route-table name, and prunes it only once no box publishes it. That retention set has no apps-domain or wildcard filter (those stay on candidacy only), so a name published not pointing, or one a wildcard parent starts covering, keeps the record that explains its backoff; the set is never a source of candidates. No read site added in this unit, same 5 sites.;rev3=census-ruling-w6-ingress-drain;basis=the two public servers are built by e.publicServers (internal/edge/ingressdrain.go): :443 as before (same handler, TLS config and ReadHeaderTimeout 10 s), :80 now wrapped by plainTracked so the ingress drain can count and close its requests (its barrier is never §25's); Serve's error test is listenerFailed(err) = err != nil && !errors.Is(err, http.ErrServerClosed) (was err != ErrServerClosed), so a graceful Shutdown by the drain is not fatal. New Edge.plain connDrain field. Same flags, addresses and listeners; read sites unchanged (5); no read added.;rev3=census-ruling-edge-ppv2;basis=Edge process (uid carlos), not root. Edge gains the proxy atomic.Pointer. Outside dev mode, before either public listener binds and before the ready hook hands the Edge to the agent, calls e.loadProxyIngress(os.Getenv, dataDir): CARLOS_INGRESS_PROXY_SOURCES from the edge's own environment (carlos-edge.service loads the root-owned 0600 host.env) through hostenv.ParseProxySources; blank leaves the edge unarmed with nothing read; a non-empty list arms it and Lstats <dataDir>/edge/trust-barrier (armProxyIngress); a value that does not parse is log.Fatal. After the hairpin configuration, wrapProxyIngress wraps both public listeners outermost (returns them untouched when unarmed); when armed it logs the armed line and starts runProxyJournal (counters to the journal, no reads). The existing 5 read sites are unchanged.;rev3=census-ruling-audit-request-path;basis=the dev-mode http.Server gains IdleTimeout: publicIdleTimeout (120 s) beside its ReadHeaderTimeout; comment updated. Same 5 read sites, no read added.;rev3=census-ruling-precert-dns01-1293;basis=the edge process (carlos-edge.service, user carlos), not root: after the cert warm starts, calls e.newPreIssuerFromEnv(certCache, mirror, wm) and, when it returns non-nil, starts its loop and logs one line. newPreIssuerFromEnv (precert.go) reads CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the edge environment (the root-owned host.env); either unset or invalid = nil, nothing else read. Only claims of the named accounts qualify. Armed, the loop runs only while this box holds the issuer gate: it lists domains/ claims in the deployment bucket through a ClaimCache, and for proven claims under the listed zones orders a certificate over DNS-01 through the existing DNS provider seam (dnsProviderFromEnv, same IAM-scoped _acme-challenge TXT writes the wildcard manager already makes), writing the result through the existing publishing cache (local acme dir + control/certs/<host>). No root read; the existing 5 read sites are unchanged.;rev3=census-ruling-alias-publish-precert-1293;basis=the edge process (carlos-edge.service, user carlos), not root: the pre-issuer start log now reads its zones from p.scope.Zones (the zones and accounts moved into the shared edge.DNS01Scope); no behaviour change, no read added, the existing 5 read sites unchanged.;rev3=census-ruling-cert-import-1429;basis=#1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory returns chooseCert's answer: a supported CARLOS entry, else the import; every other name unchanged), and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 43965c238c9b6943138198aedaedfc4ba248315b636349b6f18c8eb84dba06a0
+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 keeps a failure record while any box publishes the exact name (the home map DeployedHosts: every box's file, own included, pointing or not, the same in-memory snapshot) or the name is a regional route-table name, and prunes it only once no box publishes it. That retention set has no apps-domain or wildcard filter (those stay on candidacy only), so a name published not pointing, or one a wildcard parent starts covering, keeps the record that explains its backoff; the set is never a source of candidates. No read site added in this unit, same 5 sites.;rev3=census-ruling-w6-ingress-drain;basis=the two public servers are built by e.publicServers (internal/edge/ingressdrain.go): :443 as before (same handler, TLS config and ReadHeaderTimeout 10 s), :80 now wrapped by plainTracked so the ingress drain can count and close its requests (its barrier is never §25's); Serve's error test is listenerFailed(err) = err != nil && !errors.Is(err, http.ErrServerClosed) (was err != ErrServerClosed), so a graceful Shutdown by the drain is not fatal. New Edge.plain connDrain field. Same flags, addresses and listeners; read sites unchanged (5); no read added.;rev3=census-ruling-edge-ppv2;basis=Edge process (uid carlos), not root. Edge gains the proxy atomic.Pointer. Outside dev mode, before either public listener binds and before the ready hook hands the Edge to the agent, calls e.loadProxyIngress(os.Getenv, dataDir): CARLOS_INGRESS_PROXY_SOURCES from the edge's own environment (carlos-edge.service loads the root-owned 0600 host.env) through hostenv.ParseProxySources; blank leaves the edge unarmed with nothing read; a non-empty list arms it and Lstats <dataDir>/edge/trust-barrier (armProxyIngress); a value that does not parse is log.Fatal. After the hairpin configuration, wrapProxyIngress wraps both public listeners outermost (returns them untouched when unarmed); when armed it logs the armed line and starts runProxyJournal (counters to the journal, no reads). The existing 5 read sites are unchanged.;rev3=census-ruling-audit-request-path;basis=the dev-mode http.Server gains IdleTimeout: publicIdleTimeout (120 s) beside its ReadHeaderTimeout; comment updated. Same 5 read sites, no read added.;rev3=census-ruling-precert-dns01-1293;basis=the edge process (carlos-edge.service, user carlos), not root: after the cert warm starts, calls e.newPreIssuerFromEnv(certCache, mirror, wm) and, when it returns non-nil, starts its loop and logs one line. newPreIssuerFromEnv (precert.go) reads CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the edge environment (the root-owned host.env); either unset or invalid = nil, nothing else read. Only claims of the named accounts qualify. Armed, the loop runs only while this box holds the issuer gate: it lists domains/ claims in the deployment bucket through a ClaimCache, and for proven claims under the listed zones orders a certificate over DNS-01 through the existing DNS provider seam (dnsProviderFromEnv, same IAM-scoped _acme-challenge TXT writes the wildcard manager already makes), writing the result through the existing publishing cache (local acme dir + control/certs/<host>). No root read; the existing 5 read sites are unchanged.;rev3=census-ruling-alias-publish-precert-1293;basis=the edge process (carlos-edge.service, user carlos), not root: the pre-issuer start log now reads its zones from p.scope.Zones (the zones and accounts moved into the shared edge.DNS01Scope); no behaviour change, no read added, the existing 5 read sites unchanged.;rev3=census-ruling-cert-import-1429;basis=#1429: the edge process (carlos-edge.service, user carlos), not root: inserts mirror.wrapImported between perHostCert's capture and the wildcard wrap (a handshake for a name with a usable imported certificate in the mirror's memory, for a deployment host, returns chooseCert's answer over the wildcard covering the name, the <host> and <host>+rsa entries and the import: a supported CARLOS certificate first, else the import; every other name unchanged); the wildcard wrap becomes wrapGetCertificateImports, which passes exactly those imported names down instead of answering with the wildcard (in-memory predicates only: deploymentHost and the mirror snapshot); and starts the issuer-only import reconcile beside the pre-issuer (a ClaimCache.ListWithUnread prefilter rotated by a cursor across passes, then domains.ReconcileImport per host: entry revision, then claim, then DeleteIfMatch on control/certs/<host>+import only, at most 5 a pass, nothing on a failed listing). No root read; the existing 5 read sites unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 3cbb0fc582dd1c8703bb3b3549ca66ccf80284dae139a8e7d1d75c0e2aaae676
domains_cert_cli.go readCertFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the carlos CLI on the operator's own machine reads the --cert/--key files the operator names (Open, ReadAll capped at 64 KiB) to send them to the console over HTTPS; not a root path on a box. file:Open@70,file:ReadAll@194 060973fd2e67dac557a69bfde974dd15220b74716eda83c6eaf84f5e11761cc4
-internal/domains/certimport.go UsableImportedCert legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: readiness test for an imported certificate: <acmeDir>/<host>+import, host must pass validHostShape (one file directly under acmeDir), Lstat first, only a regular file under 64 KiB opened (no symlink), parsed and reduced to a boolean; the edge's cert cache the agent already reads. file:Lstat@216,file:Open@328,file:ReadAll@404 d3adf26165d6137552fff94137bbb3f1ae88a3a159f9029318307bbc99c90d1a
+internal/domains/certimport_read.go ReadImportedCert legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: one bounded read of a cached import: <acmeDir>/<host>+import with host passing validHostShape (one file directly under acmeDir), opened once through openImportEntry (no symlink followed, no blocking on a FIFO, the descriptor Fstat'd as a regular file of at most 64 KiB), ReadAll capped at 64 KiB+1 and refused over 64 KiB; the binding, key pair, name and dates are validated from those same bytes (ParseImport, ImportUsable) and returned; never executed, followed or written. Callers: the agent's edges-file writer (importBoundTo, UsableImportedCert) over the edge's cert cache (written by carlos-edge, user carlos). file:ReadAll@334 2f391db58b070ba79a4212ce23cbfc97394baafd6ff676b67e01af73a5955204
+internal/domains/certimport_read.go openImportEntryPortable legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429 (systems without O_NOFOLLOW, not linux or darwin): Lstat (a regular file of at most 64 KiB), Open, Fstat, and os.SameFile between the Lstat and the descriptor; a symlink or another file swapped in between is refused. Not compiled into the linux box binaries. file:Lstat@77,file:Open@227,file:Stat@296 92663ac43893dfcc46464aaa3667c1995395be1c5c663da05e7de378cb793e02
+internal/domains/certimport_read_nofollow.go openImportEntry legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429 (linux, darwin): a single syscall.Open of the path with O_RDONLY|O_NOFOLLOW|O_NONBLOCK|O_CLOEXEC (a symlink at the last component is refused, a FIFO does not block the open), then Fstat on that descriptor: a regular file of at most 64 KiB, else closed and refused. file:Open@65,file:Stat@249 6e5ffb0ecf4591f3832f0a3dc5e899ede6e11c709d429d5f9a91eb3268a5bfeb
internal/edge/certimport.go certMirror.pruneLocalImports legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos) lists its own cert cache directory and deletes regular files ending in +import whose key a successful control/certs listing did not return; touches only its own cache dir, nothing on a failed listing. file:ReadDir@144 c3a2466d1313f810d82e43dba35f29f2babbdc0e13d15a0000b6ff378a8df398
-internal/edge/certimport.go certMirror.reconcileLocalImport legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos) Lstats its own cache entry <host>+import before rewriting it by identity through the cache Put (0600); no symlink followed. file:Lstat@179 75389fc8111a3d299a0b87861136af4f0284fb5b43edcdaf05548f1a768e9f3e
-internal/host/edgesfile_import.go importBoundTo legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the agent's account-and-app check for an early-published import: calls domains.UsableImportedCert, then Lstat/Open/Stat/ReadAll (64 KiB cap) of the same <AcmeDir>/<alias>+import, refuses if the file changed between the reads (Stat identity), parses the binding; regular file only, no symlink, bytes never executed or written. file:Lstat@245,file:Open@333,file:ReadAll@501,file:Stat@415 000f0309c28e07bd8933a0fac04e217fbdab744cf68601eb2f57bffe0ab8cc9f
-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.;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.9, agent manager 8a3d302, 2026-11-10): sets the constant ha_handover=1 on the box's own edges file on every pass, whatever its capabilities (this build understands the held-requests headers and the drain acknowledgement); the group roll floor reads it. Not from config or any read; ha_take unchanged; a report other tools read, not a root decision; no read added; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: fleetArmInputs now returns edge.ForwardOwners (this box's fleets table and its active links, registry LinkOwners, read only where tunnels are on), passed to edge.FleetArmVerdict as before, so the hub's eligible link-placed forward rows are published for backhaul like fleet rows; same listing and verdict, no read added in the unit;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 5.1: publishes route_account, route_app, path_front, path_target (registry.PathFront/PathTarget over the route row) on exact real route rows only (never a platform alias or a '*.' row); additive omitempty fields read from the registry route rows already loaded; adds reads of Route.Host and Route.App;rev3=census-ruling-alias-publish-precert-1293;basis=the box agent (root) writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when edge.DNS01Scope allows its name and account and domains.UsablePerHostCert finds a usable per-host certificate for it. New inputs: CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the agent environment (root-owned host.env, operator-only), and ident.AcmeDir, set once at arm by runAgent from edgeAcmeDir (the agent's own -acme-cache flag, else $CARLOS_DATA_DIR/acme, the same derivation the domains sweep uses); empty publishes nothing early. New read, via domains.UsablePerHostCert: <AcmeDir>/<alias> for an alias inside the operator scope only, where the name must pass validHostShape (lowercase DNS labels, so one file directly under acme/, no separators or dot segments); Lstat first and only a regular file under 64 KiB is opened (a symlink is not followed); the bytes are only parsed by tls.X509KeyPair and reduced to a boolean, never executed, followed or written. That directory is the edge cache (written by carlos-edge, user carlos) the agent already reads as root in domains hostCertExpiry; same read sites otherwise.;rev3=census-ruling-cert-import-1429;basis=#1429: the box agent writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when importBoundTo finds a usable <AcmeDir>/<alias>+import whose binding's account AND app equal the alias row's (+registry:Account, +registry:Alias, +registry:App on rows the pass already lists). The read is importBoundTo's (new unit): the name must pass validHostShape, Lstat first, only a regular file under 64 KiB is opened (no symlink followed), the bytes are parsed by pem/tls.X509KeyPair and reduced to a boolean, never executed, followed or written; the directory is the edge's cert cache (written by carlos-edge, user carlos) that the agent already reads in hostCertExpiry and UsablePerHostCert. Publishes more only for an operator-imported name bound to the alias's own account and app; the issuer's HostPolicy refuses to order for it until pointing. registry:Account@11918,registry:Account@12020,registry:Account@19145,registry:Alias@11292,registry:Alias@11311,registry:Alias@11410,registry:Alias@11689,registry:Alias@11724,registry:Alias@11786,registry:Alias@11909,registry:Alias@11967,registry:Alias@12011,registry:Alias@12372,registry:Alias@12529,registry:Alias@12599,registry:Alias@12631,registry:Alias@13535,registry:Alias@13626,registry:Alias@16618,registry:Alias@16668,registry:App@12031,registry:App@19157,registry:App@6228,registry:DNSStatus@11840,registry:DNSStatus@12538,registry:DNSStatus@5744,registry:Host@11337,registry:Host@11385,registry:Host@16521,registry:Host@16541,registry:Host@16806,registry:Host@16886,registry:Host@16921,registry:Host@16970,registry:Host@17432,registry:Host@17467,registry:Host@18575,registry:Host@4189,registry:Host@4292,registry:Host@4338,registry:Host@4397,registry:Host@5736,registry:Host@6155,registry:Host@6323,registry:Host@7293,registry:Incarnation@5943,registry:Platform@5251,registry:Pool@4252,registry:Provisioned@5265,registry:Replica@5289,registry:ServingSeq@5958,registry:Status@2953,whole:Route@1026,whole:Route@1839,whole:Route@20615,whole:Route@21440,whole:Route@21615,whole:Route@2323,whole:Route@6224,whole:Route@6284,whole:Route@6308,whole:Route@7378,whole:Route@750,whole:RouteAlias@11175,whole:RouteAlias@11257,whole:RouteAlias@11674,whole:RouteAlias@16572,whole:RouteAlias@20637,whole:RouteAlias@21630,whole:RoutePath@20630,whole:RoutePath@21623,whole:RoutePath@7162,whole:RoutePath@7194,whole:RoutePath@7241,whole:RoutePath@7269,whole:RoutePath@7307,whole:RoutePath@7327,whole:RoutePath@7339,whole:RoutePath@7393,whole:WildcardDomain@16499,whole:WildcardDomain@16875 6a48f1b5a95a0fabed37c265926f3cf6f80f8ecd54fada6cbf2c0777b36e0577
+internal/edge/certimport.go certMirror.reconcileLocalImport legacy accepted-legacy accepted-legacy;rev3=census-ruling-cert-import-1429;basis=#1429: the edge (user carlos), its own cert cache only: Lstats <host>+import; a non-regular entry (symlink, FIFO) is removed with os.Remove, which takes the entry itself and never follows it; then the bucket's bytes are written through the cache's Put (autocert.DirCache: a 0600 temp file renamed over the name). The entry is never opened or read: no symlink followed, no FIFO opened. Called only for bucket bytes this process has not yet reconciled. file:Lstat@202 44f9e6d6fa1ca0e4d681ea6bfcff385050a9cbeb169de00fe8261ca3882aae52
+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.;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.9, agent manager 8a3d302, 2026-11-10): sets the constant ha_handover=1 on the box's own edges file on every pass, whatever its capabilities (this build understands the held-requests headers and the drain acknowledgement); the group roll floor reads it. Not from config or any read; ha_take unchanged; a report other tools read, not a root decision; no read added; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: fleetArmInputs now returns edge.ForwardOwners (this box's fleets table and its active links, registry LinkOwners, read only where tunnels are on), passed to edge.FleetArmVerdict as before, so the hub's eligible link-placed forward rows are published for backhaul like fleet rows; same listing and verdict, no read added in the unit;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 5.1: publishes route_account, route_app, path_front, path_target (registry.PathFront/PathTarget over the route row) on exact real route rows only (never a platform alias or a '*.' row); additive omitempty fields read from the registry route rows already loaded; adds reads of Route.Host and Route.App;rev3=census-ruling-alias-publish-precert-1293;basis=the box agent (root) writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when edge.DNS01Scope allows its name and account and domains.UsablePerHostCert finds a usable per-host certificate for it. New inputs: CARLOS_DNS01_ZONES and CARLOS_DNS01_ACCOUNTS from the agent environment (root-owned host.env, operator-only), and ident.AcmeDir, set once at arm by runAgent from edgeAcmeDir (the agent's own -acme-cache flag, else $CARLOS_DATA_DIR/acme, the same derivation the domains sweep uses); empty publishes nothing early. New read, via domains.UsablePerHostCert: <AcmeDir>/<alias> for an alias inside the operator scope only, where the name must pass validHostShape (lowercase DNS labels, so one file directly under acme/, no separators or dot segments); Lstat first and only a regular file under 64 KiB is opened (a symlink is not followed); the bytes are only parsed by tls.X509KeyPair and reduced to a boolean, never executed, followed or written. That directory is the edge cache (written by carlos-edge, user carlos) the agent already reads as root in domains hostCertExpiry; same read sites otherwise.;rev3=census-ruling-cert-import-1429;basis=#1429: the box agent writing its own control/edges/<box>.json: an alias not yet stamped pointing is also published (marked dns_pointing false) when importBoundTo finds a usable <AcmeDir>/<alias>+import whose binding's account AND app equal the alias row's (+registry:Account, +registry:Alias, +registry:App on rows the pass already lists). The read is domains.ReadImportedCert's, called once by importBoundTo: one no-follow, non-blocking open (O_NOFOLLOW|O_NONBLOCK on linux and darwin), Fstat a regular file of at most 64 KiB, the binding, key, name and dates validated from those same bytes and reduced to a boolean, never executed, followed or written; the directory is the edge's cert cache (written by carlos-edge, user carlos) that the agent already reads in hostCertExpiry and UsablePerHostCert. Publishes more only for an operator-imported name bound to the alias's own account and app; the issuer's HostPolicy refuses to order for it until pointing. registry:Account@11918,registry:Account@12020,registry:Account@19145,registry:Alias@11292,registry:Alias@11311,registry:Alias@11410,registry:Alias@11689,registry:Alias@11724,registry:Alias@11786,registry:Alias@11909,registry:Alias@11967,registry:Alias@12011,registry:Alias@12372,registry:Alias@12529,registry:Alias@12599,registry:Alias@12631,registry:Alias@13535,registry:Alias@13626,registry:Alias@16618,registry:Alias@16668,registry:App@12031,registry:App@19157,registry:App@6228,registry:DNSStatus@11840,registry:DNSStatus@12538,registry:DNSStatus@5744,registry:Host@11337,registry:Host@11385,registry:Host@16521,registry:Host@16541,registry:Host@16806,registry:Host@16886,registry:Host@16921,registry:Host@16970,registry:Host@17432,registry:Host@17467,registry:Host@18575,registry:Host@4189,registry:Host@4292,registry:Host@4338,registry:Host@4397,registry:Host@5736,registry:Host@6155,registry:Host@6323,registry:Host@7293,registry:Incarnation@5943,registry:Platform@5251,registry:Pool@4252,registry:Provisioned@5265,registry:Replica@5289,registry:ServingSeq@5958,registry:Status@2953,whole:Route@1026,whole:Route@1839,whole:Route@20615,whole:Route@21440,whole:Route@21615,whole:Route@2323,whole:Route@6224,whole:Route@6284,whole:Route@6308,whole:Route@7378,whole:Route@750,whole:RouteAlias@11175,whole:RouteAlias@11257,whole:RouteAlias@11674,whole:RouteAlias@16572,whole:RouteAlias@20637,whole:RouteAlias@21630,whole:RoutePath@20630,whole:RoutePath@21623,whole:RoutePath@7162,whole:RoutePath@7194,whole:RoutePath@7241,whole:RoutePath@7269,whole:RoutePath@7307,whole:RoutePath@7327,whole:RoutePath@7339,whole:RoutePath@7393,whole:WildcardDomain@16499,whole:WildcardDomain@16875 6a48f1b5a95a0fabed37c265926f3cf6f80f8ecd54fada6cbf2c0777b36e0577
@coverage . 1acba188f1992e34b967f6f171f94fa525749adcf369a7955edd5dfbad805364
-@coverage internal/domains 307533095df475401d7531a4599fe0d8e919ccd34b670be23d2e49d3d3ad3118
-@coverage internal/edge 57faef9402dc7d1714f2932b31f1c066cb2b9aef6cdfd00ea5a7bd8bec6f943a
-@coverage internal/host 65dfe0f4c2a95eedb043c97ea55edb9cac10450d9651b9d047632e84e0430eb6
+@coverage internal/domains 6a8593e52f6cc3ca6aaee39351b9ae2587f6319eea2f6a18d5ee2a134e04bc6d
+@coverage internal/edge 87d558aa452df6e6b357afc5b3ff8e5d4611c0a514282dfc9169722e7b7274f7
+@coverage internal/host d34419988573237f081339b6a2845513a6c6046afc296f03ed7392fe30449112
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index d1346150a..25ec3ec13 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -295,4 +295,4 @@ plan14-root-reads-rootfs-etc-hosts-1349.tsv 892cf87db700600490e3ec9e944f9dbe7151
plan14-root-reads-managed-fleets-2b2.tsv 4bb3547d064b71134612e74b3b8269e16356d2832a8e579ace150349e55c6a27
plan14-root-reads-store-write-credential.tsv 8b8e269938a575bfaeb8f0c9a5be508b4b22a10b7b5bd19d74fa511e5f15a302
plan14-root-reads-rootfs-netlink-route-1419.tsv 0d02e63b6a67aab196e13324393148ab8faccbd4331af3eadb1ab52ff5b42bb1
-plan14-root-reads-cert-import-1429.tsv 47295f402cc5ca691305382cffcd4deb1db8985615d02980cf66dd3e3956527e
+plan14-root-reads-cert-import-1429.tsv aac62dd4a123188fcb422f8219a940e7257773362c861a8fc72d56d36183a775