carlos / platform Public

census: edge-asset-cache-3 re-sealed after main 6ddb3333; checked-mark approvals (asset cache plan 3 fix wave 2)

Decisions overlay: no row changed; loaded after rootfs-root-image, seal
8888345f -> b285a74b.

census-propose NAME=edge-asset-cache-3, last in the chain: seven units
(observeRecords added; ServeHTTP and serveAssetFar claims extended for
the checked mark) and five envelopes; seal b285a74b -> ef4aab5c. No new
decision: the census card showed body changes only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev a12cc68da181d8f38ec4e2d59a06aa10ffe4dc1a parent 12fef91
4 files changed, +16 −12
  • docs/superpowers/notes/census-proposal-edge-asset-cache-3.md +5 −3
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −2
  • internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv +8 −6

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md b/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md
index 53f3d3acf..f37a9fbf7 100644
--- a/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md
+++ b/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md
@@ -6,10 +6,11 @@ Ruling `census-ruling-edge-asset-cache-3`. Every change below keeps the disposit
|---|---|---|---|
| `internal/edge/cookiescope.go` `Edge.responseModifier` | body | unchanged (2) | the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added |
| `internal/edge/edge.go` `Edge.Reload` | body | unchanged (57) | each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added |
-| `internal/edge/edge.go` `Edge.ServeHTTP` | body | unchanged (25) | 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 |
+| `internal/edge/edge.go` `Edge.ServeHTTP` | body | unchanged (25) | 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; and the hard and probe checks are skipped for a verified hop carrying a far edge's checked mark (hopCheckedFrom, set by acceptHop only beside a verified hop whose X-Carlos-Hop-Checked verifies under the mesh key in its own MAC domain), as for a tunnel delivery: the sending edge's checks matched and it records the request (fix wave 2); one more context read, no read added |
+| `internal/edge/reqrecords.go` `Edge.observeRecords` | body | unchanged (1) | returns early, as for a tunnel delivery, for a verified hop carrying a far edge's checked mark (hopCheckedFrom): that edge's checks matched the request and it files the one record itself (serveAssetFar, fix wave 2); one more context read; read site unchanged (1); no read added |
| `internal/host/edgesfile.go` `edgesFileLoop` | body | unchanged (1) | takes the box's one asset policy from runAgent (drift D12) instead of building it from the serving-build hook, binds this loop's manifest cache to it before the first pass (bindManifests), and each tick works with assets.active(), nil until the ready hook has opened the asset store, for the change key, the rewrite-due check and the edgesFileWriteClaims pass; the lifetimes switch is handed on as before; read site unchanged (1); no read added |
| `internal/host/edgesfile.go` `edgesFileWriteClaims` | body | unchanged (44) | 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 |
-| `internal/edge/assetcatch.go` `Edge.serveAssetFar` | sites | +whole:Route | 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 this edge answered itself (hit, block or throttle refusal) is recorded through observeRecords(rt, false, r, ...): the one added site is that pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read |
+| `internal/edge/assetcatch.go` `Edge.serveAssetFar` | sites | +whole:Route | 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 once through observeRecords(rt, viaHome, r, ...) however it was answered (hit, block, throttle refusal, fill or re-forward), and every hop sent for it (the fill, a re-forward) carries the checked mark signHopChecked(key, host, now), an HMAC with the mesh key it already holds, so the home neither checks nor records it again (fix wave 2); forwards and the backhaul refusal now write through the metering writer cw, which bills nothing it did not before; the one added site is the observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read |
Envelopes re-pinned: `.`, `internal/console`, `internal/edge`, `internal/edgesfile`, `internal/host`.
@@ -20,10 +21,11 @@ Recorded dispositions, which each change must still satisfy:
- `internal/edge/cookiescope.go` `Edge.responseModifier`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route
- `internal/edge/edge.go` `Edge.Reload`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main)
- `internal/edge/edge.go` `Edge.ServeHTTP`: legacy, task accepted-legacy. Basis: 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
+- `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/host/edgesfile.go` `edgesFileLoop`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census-ruling-moves-offline's body, which also takes the box's lifetimes switch (runAgent's boxJudge != nil) and hands it to every edgesFileWriteClaims pass; read site unchanged, offset moved; a report, not a decision; self-serve moves 1 Task 8
- `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
- `internal/edge/assetcatch.go` `Edge.serveAssetFar`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=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
-Seal: `8888345fbad35a1cd6c0b26b4e84380c0e9939d16174cec1f3f4d11fcc32eda7` → `e0143bb979d4e12ec7ae2ffeac0e42e2e04594098647c06ae7f34783d69a4566`.
+Seal: `b285a74b249bcbc834b4b91aa16081396f325a1d8e09a1fa0faef6abdc9e0698` → `ef4aab5c2fcc9268a7fb34a1702bec1a6c52147e45c705c041f3743964ca711c`.
Overlay: `internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index b68b422e0..409b1232b 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -49,5 +49,5 @@ plan14-root-reads-plans-6a-units.tsv 9b27c8b855ca32a3f12119da92a7571542d2b0c4be4
plan14-root-reads-plans-6-checkout.tsv c6a920b27d3206e85ac923b308bdf287931954776681732937f7445dd88ec11b
plan14-root-reads-rootfs-root-image.tsv eedd10a4727f2a562495cfd8ed7cffe23c568658858198ec7c8309b5f202ab5a
# edge-asset-cache-3-decisions (edge asset cache plan 3): hand-written decisions (seven new units, runAgent re-frozen with file:Statfs, assetPolicy.decide re-frozen with whole:Route), ruled by the census owner on #280; census-propose's edge-asset-cache-3 overlay follows it, last.
-plan14-root-reads-edge-asset-cache-3-decisions.tsv 8888345fbad35a1cd6c0b26b4e84380c0e9939d16174cec1f3f4d11fcc32eda7
-plan14-root-reads-edge-asset-cache-3.tsv e0143bb979d4e12ec7ae2ffeac0e42e2e04594098647c06ae7f34783d69a4566
+plan14-root-reads-edge-asset-cache-3-decisions.tsv b285a74b249bcbc834b4b91aa16081396f325a1d8e09a1fa0faef6abdc9e0698
+plan14-root-reads-edge-asset-cache-3.tsv ef4aab5c2fcc9268a7fb34a1702bec1a6c52147e45c705c041f3743964ca711c
diff --git a/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv b/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv
index 7db7c5d2b..500a46b24 100644
--- a/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv
+++ b/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv
@@ -1,4 +1,4 @@
-# Census overlay edge-asset-cache-3-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-edge-asset-cache-3 (branch edge-asset-cache-3, plan 3 of docs/superpowers/specs/2026-10-24-edge-asset-cache-design.md: serve declared asset paths from the disk store on the home box and on far edges; plan docs/superpowers/plans/2026-10-24-edge-asset-cache-plan-3-serve.md): seven new units and two units re-frozen with a new kind of read. Loaded from the chain manifest after plans-6-checkout (main's last at the merge of origin/main 7f79385e) and before plan14-root-reads-edge-asset-cache-3.tsv, which census-propose wrote for the approvals. Asked of the census owner on #280 with the card docs/superpowers/notes/census-proposal-edge-asset-cache-3.md; rows carry the ruling from the start (#369).
+# Census overlay edge-asset-cache-3-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-edge-asset-cache-3 (branch edge-asset-cache-3, plan 3 of docs/superpowers/specs/2026-10-24-edge-asset-cache-design.md: serve declared asset paths from the disk store on the home box and on far edges; plan docs/superpowers/plans/2026-10-24-edge-asset-cache-plan-3-serve.md): seven new units and two units re-frozen with a new kind of read. Loaded from the chain manifest after rootfs-root-image (main's last at the merge of origin/main 6ddb3333) and before plan14-root-reads-edge-asset-cache-3.tsv, which census-propose wrote for the approvals. Asked of the census owner on #280 with the card docs/superpowers/notes/census-proposal-edge-asset-cache-3.md; rows carry the ruling from the start (#369).
# No root read is added. Every new unit runs in the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): six in its edge, which reads only the route row it already resolved, a synthetic row built from the home's published owner, and its own asset store under $CARLOS_DATA_DIR/asset-cache through internal/assetcache (accepted legacy at census-ruling-edge-asset-cache-2); one in its ready hook, which opens that store. Seven frozen declarations are added, so the seal moves.
# NEW: the edge's asset catch, fill and answer (internal/edge assetcatch.go, assetserve.go) and the agent's arming (internal/host assetarm.go). Accepted legacy, the class of Edge.ServeHTTP and of the asset store's own units.
@legacy 5cf2772dbc71e6ad920994db7f2654c5edddbe7e834e6547f9334863c89fbfb1 internal/edge/assetcatch.go Edge.assetForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=new (asset cache plan 3 Task 5): the asset cache's uncached fallback. It forwards the request as the ordinary path does, through rateAdmit (drift D7), and for a hibernating route hands the route row the edge already resolved (up.route) to the activator, as ServeHTTP's own hibernating branch does; the response is marked Carlos-Cache: bypass. Its one site is that pass of the resolved row; no file, store or other row read; serving only; no root decision; the class of Edge.ServeHTTP (accepted legacy) whole:Route@444 4f7e2875878cd838bc5870d2d7852df05de82d9c201deb4bb36badbb11fa9802
diff --git a/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv b/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv
index 640bd9745..75eb3ec60 100644
--- a/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv
+++ b/internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv
@@ -1,18 +1,20 @@
# Census overlay edge-asset-cache-3, written by census-propose (#369). census-ruling-edge-asset-cache-3, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-edge-asset-cache-3.md.
-# 5 body, 1 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 6 body, 1 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
@legacy 3ec2939ac0000492d6d392a6998d66453b3ac92b3c572c2fe4a9b44dcc1ba155 internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added whole:Route@106,whole:Route@293 c518c13f4d87362d61940a54b51542aeccc9913c16e086efdf55088595ae1f33
@legacy 5c86046462d54f0b0dfac981d98952a8da9705ca20ceb03e001955f5246b0e27 internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added registry:Account@18679,registry:Alias@16988,registry:Alias@17075,registry:Alias@17171,registry:FleetBox@5526,registry:Health@7689,registry:Health@7807,registry:Hibernate@13017,registry:Hibernate@14927,registry:Hibernate@6049,registry:Host@13065,registry:Host@14989,registry:Host@15297,registry:Host@15324,registry:Host@16125,registry:Host@16391,registry:Host@17114,registry:Host@6098,registry:Host@8290,registry:Host@8385,registry:Host@8665,registry:Host@8691,registry:Host@8743,registry:Kind@11542,registry:Kind@11564,registry:Kind@12993,registry:Kind@14903,registry:Kind@6025,registry:Kind@8831,registry:Kind@8891,registry:Name@18669,registry:Prefix@16366,registry:Region@2252,registry:Socket@15305,registry:Socket@5633,registry:Socket@6162,registry:Status@1835,registry:Target@16378,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11523,registry:Version@11625,whole:Fleet@18619,whole:Fleet@18648,whole:Route@130,whole:Route@15357,whole:Route@15364,whole:Route@15460,whole:Route@4692,whole:Route@5590,whole:Route@6218,whole:Route@648,whole:Route@8808,whole:Route@8881,whole:Route@8941,whole:RouteAlias@16959,whole:RoutePath@16103 326c264e8fd24fba1072917f730ba6b35ba185140d3b28a375a8e59bd86c61b8
-@legacy 30b23ea2c27b7cd3265fb69acff01718a42f0f0ca5e6358d2e39145b4fad46eb 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 registry:Gate@17527,registry:Gate@17587,registry:Gate@17645,registry:Host@17630,registry:ImportGate@22425,registry:Kind@13190,registry:Kind@15660,registry:Kind@22396,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14496,whole:Route@14591,whole:Route@14667,whole:Route@14711,whole:Route@15663,whole:Route@17530,whole:Route@17590,whole:Route@17633,whole:Route@17648,whole:Route@19281,whole:Route@22399,whole:Route@22428,whole:Route@24260 c8fd474cba1834352e2cc8ed33565b8ec0a6c327fcd98af58f0be03df728204e
+@legacy 641af0b653b4cdea255ef72d7931d6f0a8bbfee945f0326cba89f180b3901fc9 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; and the hard and probe checks are skipped for a verified hop carrying a far edge's checked mark (hopCheckedFrom, set by acceptHop only beside a verified hop whose X-Carlos-Hop-Checked verifies under the mesh key in its own MAC domain), as for a tunnel delivery: the sending edge's checks matched and it records the request (fix wave 2); one more context read, no read added registry:Gate@17737,registry:Gate@17797,registry:Gate@17855,registry:Host@17840,registry:ImportGate@22635,registry:Kind@13190,registry:Kind@15870,registry:Kind@22606,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14706,whole:Route@14801,whole:Route@14877,whole:Route@14921,whole:Route@15873,whole:Route@17740,whole:Route@17800,whole:Route@17843,whole:Route@17858,whole:Route@19491,whole:Route@22609,whole:Route@22638,whole:Route@24470 1b48193c9142c8df54a5087cabb931b671f2d0194dd9cdb1f45fc8df0a5e1223
+@legacy 4c17766c965a5ecc228477e8c7b5c56e89b72d3ddb08ec8d347704f1a8caea60 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-edge-asset-cache-3;basis=returns early, as for a tunnel delivery, for a verified hop carrying a far edge's checked mark (hopCheckedFrom): that edge's checks matched the request and it files the one record itself (serveAssetFar, fix wave 2); one more context read; read site unchanged (1); no read added whole:Route@644 5e7ce3000f6fbb73e31545b3220709c051aef6df82c17eea55083948c80bb4ba
@legacy 0cd4f3b910d1cec8aba707a265850a315e19608e909422b373306493761dc2e0 internal/host/edgesfile.go edgesFileLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census-ruling-moves-offline's body, which also takes the box's lifetimes switch (runAgent's boxJudge != nil) and hands it to every edgesFileWriteClaims pass; read site unchanged, offset moved; a report, not a decision; self-serve moves 1 Task 8;rev3=census-ruling-edge-asset-cache-3;basis=takes the box's one asset policy from runAgent (drift D12) instead of building it from the serving-build hook, binds this loop's manifest cache to it before the first pass (bindManifests), and each tick works with assets.active(), nil until the ready hook has opened the asset store, for the change key, the rewrite-due check and the edgesFileWriteClaims pass; the lifetimes switch is handed on as before; read site unchanged (1); no read added file:Read@3085 7b728dc9dfea9a81c46046bd0b26e8be6260185fc118019ce7cc7dd549c110ec
-@legacy 71b5719715b504f664299d33b3ef1625f323a70a71a2dc5cd592cb13d6b796d7 internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=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;rev3=census-ruling-edge-asset-cache-3;basis=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 this edge answered itself (hit, block or throttle refusal) is recorded through observeRecords(rt, false, r, ...): the one added site is that pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read whole:Route@1027,whole:Route@1796,whole:Route@1803,whole:Route@624 734b55a4477b0f5e7cfb56e763fb6c4c2a263a600534a332250ba1c13ba4d00d
+@legacy e75d82b760836436cdbd520eff07db7dd13f1e0bf67e553bc6d9e116f7d62934 internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=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;rev3=census-ruling-edge-asset-cache-3;basis=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 once through observeRecords(rt, viaHome, r, ...) however it was answered (hit, block, throttle refusal, fill or re-forward), and every hop sent for it (the fill, a re-forward) carries the checked mark signHopChecked(key, host, now), an HMAC with the mesh key it already holds, so the home neither checks nor records it again (fix wave 2); forwards and the backhaul refusal now write through the metering writer cw, which bills nothing it did not before; the one added site is the observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read whole:Route@1091,whole:Route@2534,whole:Route@2541,whole:Route@633 3db9da91b479429bc5122f3ca6eab17960df2708bdfcb47fa32812d5310124b1
internal/edge/cookiescope.go Edge.responseModifier legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-3;basis=the ModifyResponse hook now also strips any asset cache header or trailer the app set (stripAssetResponseHeaders, stripAssetTrailers: X-Carlos-Asset-Fill, X-Carlos-Asset-Fill-Ack, X-Carlos-Asset-Expires, Carlos-Cache) between the purge channel and the cookie scoping; it deletes response headers only; read sites unchanged (2); no read added whole:Route@106,whole:Route@293 c518c13f4d87362d61940a54b51542aeccc9913c16e086efdf55088595ae1f33
internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added registry:Account@18679,registry:Alias@16988,registry:Alias@17075,registry:Alias@17171,registry:FleetBox@5526,registry:Health@7689,registry:Health@7807,registry:Hibernate@13017,registry:Hibernate@14927,registry:Hibernate@6049,registry:Host@13065,registry:Host@14989,registry:Host@15297,registry:Host@15324,registry:Host@16125,registry:Host@16391,registry:Host@17114,registry:Host@6098,registry:Host@8290,registry:Host@8385,registry:Host@8665,registry:Host@8691,registry:Host@8743,registry:Kind@11542,registry:Kind@11564,registry:Kind@12993,registry:Kind@14903,registry:Kind@6025,registry:Kind@8831,registry:Kind@8891,registry:Name@18669,registry:Prefix@16366,registry:Region@2252,registry:Socket@15305,registry:Socket@5633,registry:Socket@6162,registry:Status@1835,registry:Target@16378,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11523,registry:Version@11625,whole:Fleet@18619,whole:Fleet@18648,whole:Route@130,whole:Route@15357,whole:Route@15364,whole:Route@15460,whole:Route@4692,whole:Route@5590,whole:Route@6218,whole:Route@648,whole:Route@8808,whole:Route@8881,whole:Route@8941,whole:RouteAlias@16959,whole:RoutePath@16103 326c264e8fd24fba1072917f730ba6b35ba185140d3b28a375a8e59bd86c61b8
-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 registry:Gate@17527,registry:Gate@17587,registry:Gate@17645,registry:Host@17630,registry:ImportGate@22425,registry:Kind@13190,registry:Kind@15660,registry:Kind@22396,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14496,whole:Route@14591,whole:Route@14667,whole:Route@14711,whole:Route@15663,whole:Route@17530,whole:Route@17590,whole:Route@17633,whole:Route@17648,whole:Route@19281,whole:Route@22399,whole:Route@22428,whole:Route@24260 c8fd474cba1834352e2cc8ed33565b8ec0a6c327fcd98af58f0be03df728204e
+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; and the hard and probe checks are skipped for a verified hop carrying a far edge's checked mark (hopCheckedFrom, set by acceptHop only beside a verified hop whose X-Carlos-Hop-Checked verifies under the mesh key in its own MAC domain), as for a tunnel delivery: the sending edge's checks matched and it records the request (fix wave 2); one more context read, no read added registry:Gate@17737,registry:Gate@17797,registry:Gate@17855,registry:Host@17840,registry:ImportGate@22635,registry:Kind@13190,registry:Kind@15870,registry:Kind@22606,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14706,whole:Route@14801,whole:Route@14877,whole:Route@14921,whole:Route@15873,whole:Route@17740,whole:Route@17800,whole:Route@17843,whole:Route@17858,whole:Route@19491,whole:Route@22609,whole:Route@22638,whole:Route@24470 1b48193c9142c8df54a5087cabb931b671f2d0194dd9cdb1f45fc8df0a5e1223
+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-edge-asset-cache-3;basis=returns early, as for a tunnel delivery, for a verified hop carrying a far edge's checked mark (hopCheckedFrom): that edge's checks matched the request and it files the one record itself (serveAssetFar, fix wave 2); one more context read; read site unchanged (1); no read added whole:Route@644 5e7ce3000f6fbb73e31545b3220709c051aef6df82c17eea55083948c80bb4ba
internal/host/edgesfile.go edgesFileLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census-ruling-moves-offline's body, which also takes the box's lifetimes switch (runAgent's boxJudge != nil) and hands it to every edgesFileWriteClaims pass; read site unchanged, offset moved; a report, not a decision; self-serve moves 1 Task 8;rev3=census-ruling-edge-asset-cache-3;basis=takes the box's one asset policy from runAgent (drift D12) instead of building it from the serving-build hook, binds this loop's manifest cache to it before the first pass (bindManifests), and each tick works with assets.active(), nil until the ready hook has opened the asset store, for the change key, the rewrite-due check and the edgesFileWriteClaims pass; the lifetimes switch is handed on as before; read site unchanged (1); no read added file:Read@3085 7b728dc9dfea9a81c46046bd0b26e8be6260185fc118019ce7cc7dd549c110ec
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-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 registry:Account@12023,registry:Alias@5971,registry:Alias@6006,registry:Alias@6428,registry:Alias@6585,registry:Alias@6655,registry:Alias@6687,registry:Alias@7360,registry:Alias@9715,registry:App@12035,registry:DNSStatus@6103,registry:DNSStatus@6594,registry:Host@11453,registry:Host@3555,registry:Host@6063,registry:Host@6908,registry:Host@7344,registry:Host@7517,registry:Host@9762,registry:Host@9809,registry:Host@9859,registry:Host@9894,registry:Host@9943,registry:Incarnation@3515,registry:Platform@3294,registry:Provisioned@3308,registry:Replica@3332,registry:ServingSeq@3530,registry:Status@1261,whole:Route@13146,whole:Route@13572,whole:Route@13747,whole:Route@3809,whole:Route@4179,whole:Route@707,whole:Route@735,whole:RouteAlias@13168,whole:RouteAlias@13762,whole:RouteAlias@5956,whole:RouteAlias@9668,whole:RoutePath@13161,whole:RoutePath@13755,whole:RoutePath@4194,whole:WildcardDomain@9848 59474c6ca4f61d797958af47a3afa5513167edc5bf8d4b8b82b9b0dbc4d6727c
-internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=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;rev3=census-ruling-edge-asset-cache-3;basis=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 this edge answered itself (hit, block or throttle refusal) is recorded through observeRecords(rt, false, r, ...): the one added site is that pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read whole:Route@1027,whole:Route@1796,whole:Route@1803,whole:Route@624 734b55a4477b0f5e7cfb56e763fb6c4c2a263a600534a332250ba1c13ba4d00d
+internal/edge/assetcatch.go Edge.serveAssetFar legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-asset-cache-3;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=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;rev3=census-ruling-edge-asset-cache-3;basis=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 once through observeRecords(rt, viaHome, r, ...) however it was answered (hit, block, throttle refusal, fill or re-forward), and every hop sent for it (the fill, a re-forward) carries the checked mark signHopChecked(key, host, now), an HMAC with the mesh key it already holds, so the home neither checks nor records it again (fix wave 2); forwards and the backhaul refusal now write through the metering writer cw, which bills nothing it did not before; the one added site is the observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read whole:Route@1091,whole:Route@2534,whole:Route@2541,whole:Route@633 3db9da91b479429bc5122f3ca6eab17960df2708bdfcb47fa32812d5310124b1
@coverage . 778e847985cd703d91149c8fb42ec0dfb23333964b0df00e9a991f4be1400b89
@coverage internal/console b2e110edb22cbe72a7d9366d60c5ec74147c73c9613baac584974364e16f6143
-@coverage internal/edge 06dfc4dbfd7c90e13edab86a85fe3283268fcb4ea66d6b01ab9ebb0884b69b0b
+@coverage internal/edge babb2213405052476aafe3940870962dde6f3739a21f1a228cf0d0cdee36fca0
@coverage internal/edgesfile ea0152ad8b89404f12f3bae5c45d0f4c3b3bfeec8fcd989be2b1982601d58b79
@coverage internal/host cdc2ad20fb969ac1a53c1be32524f8b8633808af853a3f01bc2d5e9c1a3a30c1