carlos / platform Public

Probe burst limit: census proposal (Task 7)

Root-read census: make census-propose NAME=probe-burst-limit on the chain
as of origin/main 5887f944 writes the overlay, its chain line (last, after
main's) and the card. 4 body, 1 sites, 1 reads, 11 new, 1 quiet,
1 removed (telemetrySwitchesResolve, moved into telemetrySettleResolve),
6 envelopes re-pinned. Not approved: the cross-model reviewer decides.

Record-write census (9B8): probeBurstLimitWriteCensusInventory layers on
main's newest and re-pins three key-site units with no class or kinds
change (main, NewServer, Server.registerCLIRoutes: new routes and the
carlos protection dispatch). The card's hand sections say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 96158211bcf8513c193ddb56684fddcf5daec222 parent b284879
5 files changed, +162 −1
  • docs/superpowers/notes/census-proposal-probe-burst-limit.md +64 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/probe_burst_limit_census_test.go +50 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-probe-burst-limit.tsv +46 −0

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-probe-burst-limit.md b/docs/superpowers/notes/census-proposal-probe-burst-limit.md
new file mode 100644
index 000000000..3f000d9e8
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-probe-burst-limit.md
@@ -0,0 +1,64 @@
+# Census approval: probe-burst-limit
+
+Ruling `census-ruling-probe-burst-limit`. The independent reviewer approves or rejects every change below, 13 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/edge/reqrecords.go` `Edge.observeRecords` | body | unchanged (1) | the Match it files also carries the verdict's cool-down start and end (CooldownFrom, CooldownUntil, set only for the burst rule); RequestRecorder gains Trip; still in-memory into the log sink, the same one route site; no new root read or write kind |
+| `internal/edge/static.go` `staticSite.serveTree` | body | unchanged (2) | where the guard already checks the probe tier for a path the tree does not have, it also asks whether the path is in the catalogue (staticBurstHit, the in-memory edgeguard matcher) and, for a client in a probe-burst cool-down, may answer the 429 burst refusal (staticBurstDecide, the in-memory limiter) before a redirect or rewrite; the same index-aware Stat lookups inside the extracted tree; no new root read or write kind |
+| `internal/host/agent.go` `runAgent` | body | unchanged (6) | two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind |
+| `internal/host/edgesfile.go` `edgesFileWriteClaims` | body | unchanged (65) | 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 |
+| `internal/edge/assetcatch.go` `Edge.serveAssetFar` | sites | +whole:Route ×2 | the far catch's guard state is built for the same synthetic registry.Route{Host, Account, App, Kind: instance} (newGuardState(rt), for the owner's record-only switch), and its defer counts the request toward the probe-burst limit (noteBurst(rt, ...), in memory) when this edge answered it or the home acknowledged a fill; an httptrace WroteHeaders hook on an ordinary forward marks the request as the home's to count; the two added sites are that same synthetic route (+whole:Route x2); no new root read or write kind |
+
+Envelopes re-pinned: `.`, `internal/edge`, `internal/edgeguard`, `internal/host`, `internal/reqrec`, `internal/telemetry`.
+
+Removed units: the scan finds neither the declaration nor any of its sites.
+
+| unit | recorded disposition | basis | what changed |
+|---|---|---|---|
+| `internal/host/telemetry_pass.go` `telemetrySwitchesResolve` | legacy, task accepted-legacy | accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=main's telemetrySwitches body, unchanged but for its name, with the same six sites at the same relative offsets (shifted by the longer name); runs only when no change index is armed, through telemetrySwitchesWith over a nil watch, so a disarmed box resolves each app on its own exactly as main | removed: its body moved into telemetrySettleResolve (new on this card), the same two telemetry.json reads per (account, app) plus the record-only switch |
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+A removed unit's recorded disposition and basis are in its table above. For a removed unit or a retired envelope, confirm from the diff that the code is deleted and not moved: a read that moved shows on this card as a change to the unit that took it, and a unit moved whole shows as a new unit, a decision. Reject if a check, refusal or validation that root relies on goes with the deleted code and its callers' changes on this card do not account for that.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/edge/reqrecords.go` `Edge.observeRecords`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-edge-request-records;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=new: called from ServeHTTP's observer defer after observeAnalytics, with the route the defer already holds; returns at once when no recorder is wired or the request arrived over a tunnel (the forwarding box records it); otherwise builds the Response through requestResponse from that route and the request and hands it to the in-memory recorder, which files it into the box's log sink; its one scanned site is the route value passed in; it reads no file, no store and no box state, writes nothing outside the log sink, and makes no serving or root decision; the class of Edge.observeAnalytics (J1 root-route);rev3=census-ruling-edge-protection-2;basis=files one reqrec.Match in place of the Response when the request's outcome carries a guard verdict (kind block or watch, the verdict's rule tier, id, fragment and reference code; a block woke nothing), and the plain Response otherwise; still in-memory, its one scanned site is the route value passed in; no read added
+- `internal/edge/static.go` `staticSite.serveTree`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.;rev3=census-ruling-static-headers;basis=computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added
+- `internal/host/agent.go` `runAgent`: authority, task B,C,D,F. Basis: rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.
+- `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.
+- `internal/edge/assetcatch.go` `Edge.serveAssetFar`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed;rev3=census-ruling-console-protection-tab;basis=the far catch's defer now also calls observeGuardCount(rt, out) for the same synthetic registry.Route{Host, Account, App, Kind: instance} it already hands the meter and observeRecords (+whole:Route), under the same "this edge answered it" condition (billed, or a hop never reached the home), whether or not the guard matched; observeRecords still runs only on a match, as before. A count in memory only; no new kind of read; the guard check, block page and backhaul are unchanged.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/edge/assetcatch.go:Edge.AssetOwners`: reads +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/edge/burst_notice.go:Edge.serveBurstNotice`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/edge/burst_notice.go:openBurstNotice`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/edge/burst_notice.go:sealBurstNotice`: reads +file:Read; written legacy, accepted-legacy, frozen
+- new `internal/edge/guard.go:Edge.newGuardState`: reads +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/guard.go:Edge.noteBurst`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/edge/guard.go:Edge.protectionRecordOnly`: reads +registry:App, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/guard.go:burstAppKey`: reads +registry:App, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/host/telemetry_pass.go:telemetryPass`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/host/telemetry_pass.go:telemetrySettle`: reads +registry:App ×6, +registry:Kind, +whole:Route ×5; written legacy, accepted-legacy, frozen
+- new `internal/host/telemetry_pass.go:telemetrySettleResolve`: reads +file:Read ×3, +registry:App ×6, +registry:Kind, +whole:Route ×4; written legacy, accepted-legacy, frozen
+- quiet `internal/host/telemetry_pass.go:telemetrySwitchesWith`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+- reads `internal/edge/edge.go:Edge.ServeHTTP`: +registry:App, +whole:Route ×5; keeps legacy, task accepted-legacy
+
+Seal: `7a0a3da3d6fe7e3c77abb22676db000af2a276c3d13ccae0f038190f51287ed5` → `28faf6ccfeb397a473fd7ae1d6626f9b1352c9328d2d6d2584a9f03e5a6b6caa`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-probe-burst-limit.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
+
+## Record-write census
+
+Added by hand at Task 7. census-propose does not write this section, so a re-run of census-propose drops it and it has to be added again. `TestPlan9B8RecordWriteCensus` (`internal/provision`) passes with this branch's layer, `probeBurstLimitWriteCensusInventory` (`internal/provision/probe_burst_limit_census_test.go`), on main's newest (`durability3aBranchFix3bWriteCensusInventory`, at 5887f944). It re-pins three key-site units with no class or kinds change and adds none: `main.go` `main` (the `carlos protection` dispatch and its usage line), `internal/console/server.go` `NewServer` (the route for the Protection tab's switch, POST `/a/{sqid}/apps/{app}/protection/setting`, whose handler writes the app's telemetry.json through the existing `updateAppTelemetry`, not an instance or sidecar record), and `internal/console/authcli.go` `Server.registerCLIRoutes` (GET `/api/cli/apps/{account}/{app}/telemetry`, a read under the PUT's own gate). The instances and sidecars literals are unchanged in all three.
+
+## Notes for the reviewer
+
+Added by hand at Task 7, for the same reason as above.
+
+- `telemetrySwitchesResolve` (removed) moved into `telemetrySettleResolve` (new): the same two telemetry.json reads per (account, app), now through `telemetry.Read` rather than `telemetry.Resolve`, plus one app-level read per far-asset owner. `telemetrySwitchesWith` (quiet) is now a wrapper over `telemetrySettle`, which holds its old body.
+- The far-asset owners come from `Edge.AssetOwners`, which lists the (account, app) pairs other boxes publish in their edges files (the home map). The agent then reads `telemetry.AppKey(account, app)` for each, through the same change-index gate. The account passes `release.RouteAccount` (an invalid one becomes the ops account); the app name is used as published, checked only for non-empty. The value read sets only that app's record-only flag in this edge's memory.
+- The scanner's `file:ReadAll`, `file:Open` and `file:Read` sites in `burst_notice.go` are the bounded request body (`io.ReadAll` under `http.MaxBytesReader`), AES-GCM `aead.Open`, and `crypto/rand.Read`. No file is opened.
+- Three merges of origin/main (cbd8a0b5 in a1286ae7, 581e648e in df2b801d, then 5887f944 in b284879e) put main's chain lines first, in main's order, and this branch's overlay last.
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 86c3fa2e1..e24ec464a 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := durability3aBranchFix3bWriteCensusInventory()
+ inventory := probeBurstLimitWriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/probe_burst_limit_census_test.go b/internal/provision/probe_burst_limit_census_test.go
new file mode 100644
index 000000000..c3326ef42
--- /dev/null
+++ b/internal/provision/probe_burst_limit_census_test.go
@@ -0,0 +1,50 @@
+package provision
+
+// Record-write census entries for the probe-burst limit (#491, branch
+// design-probe-burst-491), layered on durability3aBranchFix3bWriteCensusInventory
+// (main's newest at 5887f944). Reviewed by the branch author against the
+// source; the census approval is recorded on #280 with the root-read card
+// (docs/superpowers/notes/census-proposal-probe-burst-limit.md).
+//
+// Three re-pins, no class or kinds change, no unit added:
+// - main.go main (key-site): dispatches the new `carlos protection` verb
+// (case "protection": runProtection(args)) and names it in the usage
+// text; its instances and sidecars literals are unchanged. It writes no
+// record.
+// - internal/console/server.go NewServer (key-site): registers the
+// Protection tab's switch, POST /a/{sqid}/apps/{app}/protection/setting
+// (handleAppProtectionSetting). The handler writes the app's
+// telemetry.json through the existing updateAppTelemetry (telemetry.Update
+// of telemetry.AppKey), as the Analytics tab's switch does; not an
+// instance or sidecar record. The instances literal is unchanged.
+// - internal/console/authcli.go Server.registerCLIRoutes (key-site):
+// registers GET /api/cli/apps/{account}/{app}/telemetry
+// (handleAPITelemetryGet), a read of the app's telemetry.json under the
+// PUT's own gate. It writes nothing. The instances and sidecars literals
+// are unchanged.
+func probeBurstLimitWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), durability3aBranchFix3bWriteCensusInventory()...)
+ repins := []censusEntry{
+ // probe-burst limit: the `carlos protection` dispatch; the same literals.
+ {"main.go", "main", "key-site", "lit:instances,lit:sidecars", "75ce67235056e9f639ae00999d41a095748937cfc5210d3aa92135043d1f342f"},
+ // probe-burst limit: the Protection tab's switch route; the same literal.
+ {"internal/console/server.go", "NewServer", "key-site", "lit:instances", "ce1da6771104c3cbef44283bed3e1d5b3543ddbd83ec78966848da94496d5b63"},
+ // probe-burst limit: the CLI's telemetry GET route; the same literals.
+ {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "705416a19e491a6dfeb5925c5da061a84afeeb7c27909a83f9cc6977a13ab07b"},
+ }
+ for _, r := range repins {
+ found := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ if e.Class != r.Class || e.Kinds != r.Kinds {
+ panic("probe-burst-limit re-pin changes the class or kinds of " + r.File + ":" + r.Unit)
+ }
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ panic("probe-burst-limit re-pin of an unlisted unit " + r.File + ":" + r.Unit)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 46cc5e1f8..6f3cb2753 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -55,3 +55,4 @@ plan14-root-reads-devbox-macos.tsv 67b54b219f990c3dcfe32c6ffb11a80a4ca3898aec060
plan14-root-reads-fix-set-aside-exdev.tsv f9d3016cc6803338f9db19311f3f598e20c37c8a19e111a3dabf4741dabe1b19
plan14-root-reads-durability-3a-escrow.tsv 03a92257beb9b8aac421559e247d191bd69f28a0b26243397a1344a90d59fc2a
plan14-root-reads-rootfs-default-home.tsv 7a0a3da3d6fe7e3c77abb22676db000af2a276c3d13ccae0f038190f51287ed5
+plan14-root-reads-probe-burst-limit.tsv 28faf6ccfeb397a473fd7ae1d6626f9b1352c9328d2d6d2584a9f03e5a6b6caa
diff --git a/internal/provision/testdata/plan14-root-reads-probe-burst-limit.tsv b/internal/provision/testdata/plan14-root-reads-probe-burst-limit.tsv
new file mode 100644
index 000000000..7078cc41b
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-probe-burst-limit.tsv
@@ -0,0 +1,46 @@
+# Census overlay probe-burst-limit, written by census-propose (#369). census-ruling-probe-burst-limit, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-probe-burst-limit.md.
+# 4 body, 1 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 1 removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired.
+# 13 new dispositions: 1 reads re-frozen at their disposition with the claim, 11 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+@legacy 4ec4b5fd290281329504c641647f08d6ed916054e7343824c921858d2b791f54 internal/edge/reqrecords.go Edge.observeRecords legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-request-records;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=new: called from ServeHTTP's observer defer after observeAnalytics, with the route the defer already holds; returns at once when no recorder is wired or the request arrived over a tunnel (the forwarding box records it); otherwise builds the Response through requestResponse from that route and the request and hands it to the in-memory recorder, which files it into the box's log sink; its one scanned site is the route value passed in; it reads no file, no store and no box state, writes nothing outside the log sink, and makes no serving or root decision; the class of Edge.observeAnalytics (J1 root-route);rev3=census-ruling-edge-protection-2;basis=files one reqrec.Match in place of the Response when the request's outcome carries a guard verdict (kind block or watch, the verdict's rule tier, id, fragment and reference code; a block woke nothing), and the plain Response otherwise; still in-memory, its one scanned site is the route value passed in; no read added;rev3=census-ruling-probe-burst-limit;basis=the Match it files also carries the verdict's cool-down start and end (CooldownFrom, CooldownUntil, set only for the burst rule); RequestRecorder gains Trip; still in-memory into the log sink, the same one route site; no new root read or write kind whole:Route@491 94f4ef5ad0d48cd3870a4e5fe11c952ef6f1886eb9e865e55a321ec9595efb0f
+@legacy 304a002ea2564096dee762b94960152b5edb4aba26a8f0597b92f06d38a46d05 internal/edge/static.go staticSite.serveTree legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.;rev3=census-ruling-static-headers;basis=computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added;rev3=census-ruling-probe-burst-limit;basis=where the guard already checks the probe tier for a path the tree does not have, it also asks whether the path is in the catalogue (staticBurstHit, the in-memory edgeguard matcher) and, for a client in a probe-burst cool-down, may answer the 429 burst refusal (staticBurstDecide, the in-memory limiter) before a redirect or rewrite; the same index-aware Stat lookups inside the extracted tree; no new root read or write kind file:Stat@1301,file:Stat@1415 304909cca39a2f4959323bd12e98281d9a962622b4d9ab909228ec806f8fe9f0
+@legacy 6e099a2de34ecc960121d2892c2943981542bdc6affb3318e9e9947bd22fcec2 internal/edge/assetcatch.go Edge.AssetOwners legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: lists one synthetic registry.Route{Host, Account, App, Kind: instance} per (account, app) with a published asset block in this edge's in-memory home map (other boxes' edges files, already loaded); nil while the asset cache is not armed; reads no file, store or registry itself; the host's telemetry pass uses it to resolve those apps' record-only switch; no new root read or write kind whole:Route@664,whole:Route@677,whole:Route@771 2b9ce5620a6defa16f12cb38d389ac59aa594049d37d84746f0a76419ab05b5f
+@legacy 8bdee25844fe1656e6f73ada443bec64e3be12f7902d2249b6154c49f36cc319 internal/edge/burst_notice.go Edge.serveBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: answers a POST to the notice path carrying X-Carlos-Burst-Auth: io.ReadAll of the request body under http.MaxBytesReader and a read deadline (the file:ReadAll site is the request body, not a file), HMAC over receiver, timestamp and body verified under the in-memory mesh keys, the body opened (AES-GCM), a client prefix checked to /32 or /64, a bounded cool-down applied to the in-memory limiter; 404 on any refusal; reads no file, store or registry; no new root read or write kind file:ReadAll@836 65e1b19f23d94a327a723b6b62fd6ca785261479bcc662eff82bae71f882e4bd
+@legacy bd4e3a251aeb16f34046cefb6492ebb724de432b15d46078611fe003414d29fd internal/edge/burst_notice.go openBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: base64-decodes a notice body and opens it with AES-256-GCM (aead.Open, which the scanner names file:Open; it is not a file open) under an HKDF key from either in-memory mesh key, with receiver and timestamp as associated data; pure, reads nothing; no new root read or write kind file:Open@521 6a22a9a015a68e8d07f8df5cf7cbcec621930e5a31c9dd941379b8c16ebcf589
+@legacy e7370746d0633ad0d1c328d5f19befa7902a3c706ada88c30e78c5948d336858 internal/edge/burst_notice.go sealBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: seals a notice body with AES-256-GCM under an HKDF key from the mesh key with a fresh nonce from crypto/rand (rand.Read, which the scanner names file:Read; it is the system CSPRNG, not a file the code opens); reads nothing else; no new root read or write kind file:Read@225 d616a0c545ce03908f9ec7320115847b836030e7475a0ef976091b77483a64de
+@legacy 2e0e0d8c983b62ec20dc226186be8cc0eb3d7a6da399d067d701c3c6ebf39c44 internal/edge/guard.go Edge.newGuardState legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=takes the request's route and fills the guard state's record-only flag from the in-memory switch map (protectionRecordOnly) and the edge's in-memory burst limiter; the one site is the route value passed in; reads no file, store or registry; no new root read or write kind whole:Route@221 1235fb282f1e2a6d5b2bd70c8008400765df80798ab2e7280b21822e64dc2a78
+@legacy f291c6933bf02f934835d2db4d66610a4a456f9836e55967026a7d95a1398abe internal/edge/guard.go Edge.noteBurst legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: in the observer defer, counts a not-found (a 404, or a hard or probe match) from a non-browser client (no Sec-Fetch-Mode) toward the in-memory probe-burst limiter, keyed by the route's account/app; on a trip mints a reference code, files a Trip record into the in-memory recorder and queues notices to peer edges; the sites are the route value passed in; reads no file, store or registry; no new root read or write kind whole:Route@502,whole:Route@700 9b4a1269fb876f780426f5164002515ca165e32650520cf928be83fe1ebe51cd
+@legacy b1ad2e19e103bb11a890b4d6a7461b6fea665a1a3c7ced8fbaacb1ecf9b3f5d3 internal/edge/guard.go Edge.protectionRecordOnly legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: looks up RouteAccount(rt)/rt.App in the in-memory record-only switch map the telemetry pass pushed; reads nothing else; no new root read or write kind registry:App@170,whole:Route@162 b3e11f2c7ec89c27eb22d8c946996f6e0a9205552d1b2716d693cb5bd8885756
+@legacy 16e7fdfb7c929f28c9080ae30fc34456c90016f95c70fab75602f4f7e7e05901 internal/edge/guard.go burstAppKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: RouteAccount(rt) + "/" + rt.App, the limiter's per-app key; pure; no new root read or write kind registry:App@93,whole:Route@88 86571b5fae4c387b5692f92001d8fda0b5ef43f5dc714c8786fe51c3e997ae57
+@legacy bb22296a2058ecb6b32ea85624eb6d7ab5405ab4a7308722a85fbfdeedbfa70d internal/host/telemetry_pass.go telemetryPass legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=pushes two switch maps from one pass: analytics as before and the record-only map (through recordOnlyLast.settle, so an unread app keeps its last known value) to the edge's SetProtectionRecordOnly; passes the edge's AssetOwners list to telemetrySettle when the protection sink is wired; new to the census because its two sites are that owners list (a []registry.Route the edge built in memory, +whole:Route x2), which it only passes on; reads no file, store or registry itself; no new root read or write kind whole:Route@288,whole:Route@388 dd3949e850d71590214ed62f99825b6ef37281cb5800554fd929be8cd98b6b27
+@legacy 6e8ec92a38f2bd69f51ecc6818a2b4c87ddf2e886b00b6dca0eda91f5b3713e2 internal/host/telemetry_pass.go telemetrySettle legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new name for main's telemetrySwitchesWith body (which is now a one-line wrapper): over the change index watch, the same account and app telemetry.json reads through r.read and the same gate, now taken for both levels before logging, the app level also feeding the record-only switch; adds one app-level telemetry.json read per far-asset owner (AssetOwners) no route already names, behind the same gate, never an account read; the agent (user carlos) reads; no new root read or write kind registry:App@1380,registry:App@1392,registry:App@1507,registry:App@646,registry:App@734,registry:App@921,registry:Kind@623,whole:Route@1314,whole:Route@1354,whole:Route@246,whole:Route@609,whole:Route@708 d221ffca26cb122b6891bcb9f86c2ce3978458f77f203c1f27e782829b106484
+@legacy 3f36749ce74bc1ba746ebf25f29e4903e053eee270a31c84a973dfc47eb27161 internal/host/telemetry_pass.go telemetrySettleResolve legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=moved from telemetrySwitchesResolve (removed on this card): the disarmed pass, which read both telemetry.json levels per (account, app) through telemetry.Resolve, now reads them through telemetry.Read directly (the same two Gets, the file:Read sites) so the app level also feeds the record-only switch; adds one app-level telemetry.json Get per far-asset owner no route names; a nil store answers every default; the agent (user carlos) reads; no new root read or write kind file:Read@1367,file:Read@710,file:Read@781,registry:App@1275,registry:App@1287,registry:App@1413,registry:App@541,registry:App@629,registry:App@827,registry:Kind@518,whole:Route@1209,whole:Route@1249,whole:Route@504,whole:Route@603 752dd23e837acf9c32ae0d5f68efc66d57762bdd60506d3e2c9eb97a006d46ae
+@legacy da46b6f0c4add7104fa1c10066fe6a431ae1160ed57ad7aab77f1bc08d0ec6d7 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind file:ReadAll@13414,registry:App@19056,registry:Gate@12388,registry:Gate@23447,registry:Gate@23507,registry:Gate@23565,registry:Host@23550,registry:ImportGate@29706,registry:Kind@17918,registry:Kind@21356,registry:Kind@29648,registry:Kind@29677,whole:Route@12283,whole:Route@12394,whole:Route@15726,whole:Route@15938,whole:Route@16130,whole:Route@17921,whole:Route@18982,whole:Route@19048,whole:Route@19059,whole:Route@19312,whole:Route@19407,whole:Route@19483,whole:Route@19527,whole:Route@19829,whole:Route@19859,whole:Route@21359,whole:Route@21644,whole:Route@23450,whole:Route@23510,whole:Route@23553,whole:Route@23568,whole:Route@25628,whole:Route@29651,whole:Route@29680,whole:Route@29709,whole:Route@29741,whole:Route@31568 bbd3eea4e4b8893a43c56d0465c98031beb6cd6394d688e93b22b2c3821d6999
+@legacy 3c7f2792edd00d2de039e41ec4810808c306b900335a6dd400ff7bb347a35fe6 internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed;rev3=census-ruling-console-protection-tab;basis=the far catch's defer now also calls observeGuardCount(rt, out) for the same synthetic registry.Route{Host, Account, App, Kind: instance} it already hands the meter and observeRecords (+whole:Route), under the same "this edge answered it" condition (billed, or a hop never reached the home), whether or not the guard matched; observeRecords still runs only on a match, as before. A count in memory only; no new kind of read; the guard check, block page and backhaul are unchanged.;rev3=census-ruling-probe-burst-limit;basis=the far catch's guard state is built for the same synthetic registry.Route{Host, Account, App, Kind: instance} (newGuardState(rt), for the owner's record-only switch), and its defer counts the request toward the probe-burst limit (noteBurst(rt, ...), in memory) when this edge answered it or the home acknowledged a fill; an httptrace WroteHeaders hook on an ordinary forward marks the request as the home's to count; the two added sites are that same synthetic route (+whole:Route x2); no new root read or write kind whole:Route@1345,whole:Route@2110,whole:Route@2161,whole:Route@2874,whole:Route@3478,whole:Route@4451,whole:Route@4458 9633f56a38f4897c8c397e58c0d71fb284b7999a6cb9f1f1e00b91580649e7a2
+internal/edge/reqrecords.go Edge.observeRecords legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-request-records;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=new: called from ServeHTTP's observer defer after observeAnalytics, with the route the defer already holds; returns at once when no recorder is wired or the request arrived over a tunnel (the forwarding box records it); otherwise builds the Response through requestResponse from that route and the request and hands it to the in-memory recorder, which files it into the box's log sink; its one scanned site is the route value passed in; it reads no file, no store and no box state, writes nothing outside the log sink, and makes no serving or root decision; the class of Edge.observeAnalytics (J1 root-route);rev3=census-ruling-edge-protection-2;basis=files one reqrec.Match in place of the Response when the request's outcome carries a guard verdict (kind block or watch, the verdict's rule tier, id, fragment and reference code; a block woke nothing), and the plain Response otherwise; still in-memory, its one scanned site is the route value passed in; no read added;rev3=census-ruling-probe-burst-limit;basis=the Match it files also carries the verdict's cool-down start and end (CooldownFrom, CooldownUntil, set only for the burst rule); RequestRecorder gains Trip; still in-memory into the log sink, the same one route site; no new root read or write kind whole:Route@491 94f4ef5ad0d48cd3870a4e5fe11c952ef6f1886eb9e865e55a321ec9595efb0f
+internal/edge/static.go staticSite.serveTree legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.;rev3=census-ruling-static-headers;basis=computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added;rev3=census-ruling-probe-burst-limit;basis=where the guard already checks the probe tier for a path the tree does not have, it also asks whether the path is in the catalogue (staticBurstHit, the in-memory edgeguard matcher) and, for a client in a probe-burst cool-down, may answer the 429 burst refusal (staticBurstDecide, the in-memory limiter) before a redirect or rewrite; the same index-aware Stat lookups inside the extracted tree; no new root read or write kind file:Stat@1301,file:Stat@1415 304909cca39a2f4959323bd12e98281d9a962622b4d9ab909228ec806f8fe9f0
+internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind file:Exec@17617,file:Open@1150,file:Statfs@44437,registry:App@11372,whole:Route@11364,whole:Route@28405 400bb3d74807969514599e70bd143aa215c25d35941a89e259cb05fcd9dede1f
+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 registry:Account@15753,registry:Alias@10256,registry:Alias@13226,registry:Alias@13276,registry:Alias@8683,registry:Alias@8702,registry:Alias@8801,registry:Alias@8855,registry:Alias@8890,registry:Alias@8952,registry:Alias@9322,registry:Alias@9479,registry:Alias@9549,registry:Alias@9581,registry:App@15765,registry:DNSStatus@8997,registry:DNSStatus@9488,registry:Host@13129,registry:Host@13149,registry:Host@13414,registry:Host@13494,registry:Host@13529,registry:Host@13578,registry:Host@14040,registry:Host@14075,registry:Host@15183,registry:Host@3889,registry:Host@3935,registry:Host@3994,registry:Host@5109,registry:Host@6079,registry:Host@8728,registry:Host@8776,registry:Incarnation@5069,registry:Platform@4848,registry:Provisioned@4862,registry:Replica@4886,registry:ServingSeq@5084,registry:Status@2677,whole:Route@1026,whole:Route@17223,whole:Route@18041,whole:Route@18216,whole:Route@1841,whole:Route@2047,whole:Route@6164,whole:Route@750,whole:RouteAlias@13180,whole:RouteAlias@17245,whole:RouteAlias@18231,whole:RouteAlias@8566,whole:RouteAlias@8648,whole:RouteAlias@8840,whole:RoutePath@17238,whole:RoutePath@18224,whole:RoutePath@5948,whole:RoutePath@5980,whole:RoutePath@6027,whole:RoutePath@6055,whole:RoutePath@6093,whole:RoutePath@6113,whole:RoutePath@6125,whole:RoutePath@6179,whole:WildcardDomain@13107,whole:WildcardDomain@13483 0f6434ccfdb0e2290cc087b1807586d6d91ef8aa78deaf4766add5647eae8912
+internal/edge/assetcatch.go Edge.AssetOwners legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: lists one synthetic registry.Route{Host, Account, App, Kind: instance} per (account, app) with a published asset block in this edge's in-memory home map (other boxes' edges files, already loaded); nil while the asset cache is not armed; reads no file, store or registry itself; the host's telemetry pass uses it to resolve those apps' record-only switch; no new root read or write kind whole:Route@664,whole:Route@677,whole:Route@771 2b9ce5620a6defa16f12cb38d389ac59aa594049d37d84746f0a76419ab05b5f
+internal/edge/burst_notice.go Edge.serveBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: answers a POST to the notice path carrying X-Carlos-Burst-Auth: io.ReadAll of the request body under http.MaxBytesReader and a read deadline (the file:ReadAll site is the request body, not a file), HMAC over receiver, timestamp and body verified under the in-memory mesh keys, the body opened (AES-GCM), a client prefix checked to /32 or /64, a bounded cool-down applied to the in-memory limiter; 404 on any refusal; reads no file, store or registry; no new root read or write kind file:ReadAll@836 65e1b19f23d94a327a723b6b62fd6ca785261479bcc662eff82bae71f882e4bd
+internal/edge/burst_notice.go openBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: base64-decodes a notice body and opens it with AES-256-GCM (aead.Open, which the scanner names file:Open; it is not a file open) under an HKDF key from either in-memory mesh key, with receiver and timestamp as associated data; pure, reads nothing; no new root read or write kind file:Open@521 6a22a9a015a68e8d07f8df5cf7cbcec621930e5a31c9dd941379b8c16ebcf589
+internal/edge/burst_notice.go sealBurstNotice legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: seals a notice body with AES-256-GCM under an HKDF key from the mesh key with a fresh nonce from crypto/rand (rand.Read, which the scanner names file:Read; it is the system CSPRNG, not a file the code opens); reads nothing else; no new root read or write kind file:Read@225 d616a0c545ce03908f9ec7320115847b836030e7475a0ef976091b77483a64de
+internal/edge/guard.go Edge.newGuardState legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=takes the request's route and fills the guard state's record-only flag from the in-memory switch map (protectionRecordOnly) and the edge's in-memory burst limiter; the one site is the route value passed in; reads no file, store or registry; no new root read or write kind whole:Route@221 1235fb282f1e2a6d5b2bd70c8008400765df80798ab2e7280b21822e64dc2a78
+internal/edge/guard.go Edge.noteBurst legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: in the observer defer, counts a not-found (a 404, or a hard or probe match) from a non-browser client (no Sec-Fetch-Mode) toward the in-memory probe-burst limiter, keyed by the route's account/app; on a trip mints a reference code, files a Trip record into the in-memory recorder and queues notices to peer edges; the sites are the route value passed in; reads no file, store or registry; no new root read or write kind whole:Route@502,whole:Route@700 9b4a1269fb876f780426f5164002515ca165e32650520cf928be83fe1ebe51cd
+internal/edge/guard.go Edge.protectionRecordOnly legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: looks up RouteAccount(rt)/rt.App in the in-memory record-only switch map the telemetry pass pushed; reads nothing else; no new root read or write kind registry:App@170,whole:Route@162 b3e11f2c7ec89c27eb22d8c946996f6e0a9205552d1b2716d693cb5bd8885756
+internal/edge/guard.go burstAppKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new: RouteAccount(rt) + "/" + rt.App, the limiter's per-app key; pure; no new root read or write kind registry:App@93,whole:Route@88 86571b5fae4c387b5692f92001d8fda0b5ef43f5dc714c8786fe51c3e997ae57
+internal/host/telemetry_pass.go telemetryPass legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=pushes two switch maps from one pass: analytics as before and the record-only map (through recordOnlyLast.settle, so an unread app keeps its last known value) to the edge's SetProtectionRecordOnly; passes the edge's AssetOwners list to telemetrySettle when the protection sink is wired; new to the census because its two sites are that owners list (a []registry.Route the edge built in memory, +whole:Route x2), which it only passes on; reads no file, store or registry itself; no new root read or write kind whole:Route@288,whole:Route@388 dd3949e850d71590214ed62f99825b6ef37281cb5800554fd929be8cd98b6b27
+internal/host/telemetry_pass.go telemetrySettle legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=new name for main's telemetrySwitchesWith body (which is now a one-line wrapper): over the change index watch, the same account and app telemetry.json reads through r.read and the same gate, now taken for both levels before logging, the app level also feeding the record-only switch; adds one app-level telemetry.json read per far-asset owner (AssetOwners) no route already names, behind the same gate, never an account read; the agent (user carlos) reads; no new root read or write kind registry:App@1380,registry:App@1392,registry:App@1507,registry:App@646,registry:App@734,registry:App@921,registry:Kind@623,whole:Route@1314,whole:Route@1354,whole:Route@246,whole:Route@609,whole:Route@708 d221ffca26cb122b6891bcb9f86c2ce3978458f77f203c1f27e782829b106484
+internal/host/telemetry_pass.go telemetrySettleResolve legacy accepted-legacy accepted-legacy;rev3=census-ruling-probe-burst-limit;basis=moved from telemetrySwitchesResolve (removed on this card): the disarmed pass, which read both telemetry.json levels per (account, app) through telemetry.Resolve, now reads them through telemetry.Read directly (the same two Gets, the file:Read sites) so the app level also feeds the record-only switch; adds one app-level telemetry.json Get per far-asset owner no route names; a nil store answers every default; the agent (user carlos) reads; no new root read or write kind file:Read@1367,file:Read@710,file:Read@781,registry:App@1275,registry:App@1287,registry:App@1413,registry:App@541,registry:App@629,registry:App@827,registry:Kind@518,whole:Route@1209,whole:Route@1249,whole:Route@504,whole:Route@603 752dd23e837acf9c32ae0d5f68efc66d57762bdd60506d3e2c9eb97a006d46ae
+internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind file:ReadAll@13414,registry:App@19056,registry:Gate@12388,registry:Gate@23447,registry:Gate@23507,registry:Gate@23565,registry:Host@23550,registry:ImportGate@29706,registry:Kind@17918,registry:Kind@21356,registry:Kind@29648,registry:Kind@29677,whole:Route@12283,whole:Route@12394,whole:Route@15726,whole:Route@15938,whole:Route@16130,whole:Route@17921,whole:Route@18982,whole:Route@19048,whole:Route@19059,whole:Route@19312,whole:Route@19407,whole:Route@19483,whole:Route@19527,whole:Route@19829,whole:Route@19859,whole:Route@21359,whole:Route@21644,whole:Route@23450,whole:Route@23510,whole:Route@23553,whole:Route@23568,whole:Route@25628,whole:Route@29651,whole:Route@29680,whole:Route@29709,whole:Route@29741,whole:Route@31568 bbd3eea4e4b8893a43c56d0465c98031beb6cd6394d688e93b22b2c3821d6999
+internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;basis=in the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new (asset cache plan 3 Task 6): the far catch on a box with no route row for the host. It answers from this box's asset store, or fills over the backhaul from the home box under a signed fill assertion (carlos-asset-fill-v1) and stores only an acknowledged response. Its three sites are one synthetic row, registry.Route{Host, Account, App, Kind: instance}, built from the request host and the owner the home box's edges file publishes, passed to the usage meter and to the account throttle (planThrottleAdmit), so a far delivery is metered and throttled under the published owner (drift D8). No registry row is read; nothing local is dialled; no root decision. Since then: runs the hard and probe checks before the store is read, as ServeHTTP runs them (final review F1): edgeguard.Check, a pure in-memory matcher on r.URL.Path and RawQuery, through guardDecide, unless protection is off or the request came over a tunnel; a block is answered with the block page and metered under the synthetic row; a matched request is recorded through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: one call to observeRegional("asset-fill", host), a test hook that is a nil atomic pointer in production; no read added, no behaviour changed;rev3=census-ruling-console-protection-tab;basis=the far catch's defer now also calls observeGuardCount(rt, out) for the same synthetic registry.Route{Host, Account, App, Kind: instance} it already hands the meter and observeRecords (+whole:Route), under the same "this edge answered it" condition (billed, or a hop never reached the home), whether or not the guard matched; observeRecords still runs only on a match, as before. A count in memory only; no new kind of read; the guard check, block page and backhaul are unchanged.;rev3=census-ruling-probe-burst-limit;basis=the far catch's guard state is built for the same synthetic registry.Route{Host, Account, App, Kind: instance} (newGuardState(rt), for the owner's record-only switch), and its defer counts the request toward the probe-burst limit (noteBurst(rt, ...), in memory) when this edge answered it or the home acknowledged a fill; an httptrace WroteHeaders hook on an ordinary forward marks the request as the home's to count; the two added sites are that same synthetic route (+whole:Route x2); no new root read or write kind whole:Route@1345,whole:Route@2110,whole:Route@2161,whole:Route@2874,whole:Route@3478,whole:Route@4451,whole:Route@4458 9633f56a38f4897c8c397e58c0d71fb284b7999a6cb9f1f1e00b91580649e7a2
+@remove internal/host/telemetry_pass.go telemetrySwitchesWith
+@removed internal/host/telemetry_pass.go telemetrySwitchesWith H3 census-ruling-probe-burst-limit;basis=now a one-line wrapper over telemetrySettle with no owners, returning the analytics map; reads nothing itself
+@remove internal/host/telemetry_pass.go telemetrySwitchesResolve
+@removed internal/host/telemetry_pass.go telemetrySwitchesResolve H3 census-ruling-probe-burst-limit;absent;basis=removed: its body moved into telemetrySettleResolve (new on this card), the same two telemetry.json reads per (account, app) plus the record-only switch
+@coverage . 70b5646a9b708c517b3f6b95246b998a8394d967a375a106be1bf8332c0db321
+@coverage internal/edge 1bf54a9635e5f8262637443b778ba59a7764543131b9dea0c4788e1eea1c4141
+@coverage internal/edgeguard c1a558e9d904efc89c8d8602cd8583d9c7077fd28867fd0ee3dc40d18a05b0a5
+@coverage internal/host 13f9e9044a2eb5d544cf5fce721eac37ad8b5fb7684a8b35e0304746af200d60
+@coverage internal/reqrec 654c33d53057e24f56f874e82b958390938c93f62c078db3cebaffb2a17b2863
+@coverage internal/telemetry e99cc5da32c2286c7ce2490811a7c330c2be98f1c555fa04905e7656df24f468