| index 75eb3ec60..3f25f93cd 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 |
| @@ -2,19 +2,19 @@ |
| # 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 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 30d87a68a141cd65f2d158040ca49caf6ce759fd3f84c40548d1cbad42c764e5 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; a verified hop carrying a far edge's checked mark (X-Carlos-Hop-Checked) is still checked here under this box's own mode and refused when it blocks (fix wave 3: the mark means already recorded, not already judged; the record is skipped in observeRecords); the guard condition is unchanged from main registry:Gate@17811,registry:Gate@17871,registry:Gate@17929,registry:Host@17914,registry:ImportGate@22709,registry:Kind@13190,registry:Kind@15944,registry:Kind@22680,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14780,whole:Route@14875,whole:Route@14951,whole:Route@14995,whole:Route@15947,whole:Route@17814,whole:Route@17874,whole:Route@17917,whole:Route@17932,whole:Route@19565,whole:Route@22683,whole:Route@22712,whole:Route@24544 198997a4de1ec138ea870ffb7aaa00c45303828f06b50e9b6511d34f69c1850e |
| @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 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 |
| +@legacy 860016a7a8386a44c819f3620d087f4ff50c8cea329bed1acd3e92ea46d27a13 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, which still checks it under its own mode and refuses it when that mode blocks, does not record it again (fix waves 2 and 3); 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@1087,whole:Route@2556,whole:Route@2563,whole:Route@633 6d445abd4455be9b23490276bb1514a670d119e1012072a7966edcb2ddeb6c45 |
| 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; 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/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; a verified hop carrying a far edge's checked mark (X-Carlos-Hop-Checked) is still checked here under this box's own mode and refused when it blocks (fix wave 3: the mark means already recorded, not already judged; the record is skipped in observeRecords); the guard condition is unchanged from main registry:Gate@17811,registry:Gate@17871,registry:Gate@17929,registry:Host@17914,registry:ImportGate@22709,registry:Kind@13190,registry:Kind@15944,registry:Kind@22680,whole:Route@10998,whole:Route@11210,whole:Route@11402,whole:Route@13193,whole:Route@14780,whole:Route@14875,whole:Route@14951,whole:Route@14995,whole:Route@15947,whole:Route@17814,whole:Route@17874,whole:Route@17917,whole:Route@17932,whole:Route@19565,whole:Route@22683,whole:Route@22712,whole:Route@24544 198997a4de1ec138ea870ffb7aaa00c45303828f06b50e9b6511d34f69c1850e |
| 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 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/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, which still checks it under its own mode and refuses it when that mode blocks, does not record it again (fix waves 2 and 3); 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@1087,whole:Route@2556,whole:Route@2563,whole:Route@633 6d445abd4455be9b23490276bb1514a670d119e1012072a7966edcb2ddeb6c45 |
| @coverage . 778e847985cd703d91149c8fb42ec0dfb23333964b0df00e9a991f4be1400b89 |
| -@coverage internal/console b2e110edb22cbe72a7d9366d60c5ec74147c73c9613baac584974364e16f6143 |
| -@coverage internal/edge babb2213405052476aafe3940870962dde6f3739a21f1a228cf0d0cdee36fca0 |
| +@coverage internal/console a589ab1f82e194963076472cdf2e61f7f303ece2c12f58c38b7c8b6e73a123cd |
| +@coverage internal/edge 0baa3913689bee926171bddc70f70e53fcf7c946146562d9ee64492c7187faff |
| @coverage internal/edgesfile ea0152ad8b89404f12f3bae5c45d0f4c3b3bfeec8fcd989be2b1982601d58b79 |
| @coverage internal/host cdc2ad20fb969ac1a53c1be32524f8b8633808af853a3f01bc2d5e9c1a3a30c1 |