census: edge-asset-cache-3 re-sealed after main 5bba4bc1 (asset cache plan 3, before merge)
Decisions overlay: no row changed; loaded after console-remote-instances, seal f2e73d04. census-propose NAME=edge-asset-cache-3, last, same CLAIMS: the same six units and five envelopes; seal f2e73d04 -> a144f0c2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed,
+5
−5
docs/superpowers/notes/census-proposal-edge-asset-cache-3.md+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+2 −2internal/provision/testdata/plan14-root-reads-edge-asset-cache-3-decisions.tsv+1 −1internal/provision/testdata/plan14-root-reads-edge-asset-cache-3.tsv+1 −1
CI failed — 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 cb8084a84..7cbb09b21 100644 |
| --- a/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md |
| +++ b/docs/superpowers/notes/census-proposal-edge-asset-cache-3.md |
| @@ -24,6 +24,6 @@ Recorded dispositions, which each change must still satisfy: |
| - `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: `f1e0c2468cc4d756ca820ae1c1bc3224c13f25ac704219947540d9bb80e0836b` → `fc75c6e7a4c247f8da8fc62f8d3890215bcdc9306212ed60813f6fb7dde67f30`. |
| +Seal: `f2e73d04c2bc0983c08dfcd84c07392a9998b4c60eee0fc44b58b4c5e6f646f4` → `a144f0c222463be95777b75dfdd7d12109ea942a76852847202626d1e03de9a1`. |
| 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 84fcfaa8b..1c8d9b87f 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -52,5 +52,5 @@ plan14-root-reads-console-perf-1-decisions.tsv 96e1346c6555cde41545ac52913171ec4 |
| plan14-root-reads-console-perf-1.tsv da85f1ae6035c36915225c78195aac28ca6f7263d21e1dc6d20c10cfb78fc600 |
| plan14-root-reads-console-remote-instances.tsv 129e42ead28394976233059b786097bbd42654afee5caa54f24ed17621181fe3 |
| # 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 f1e0c2468cc4d756ca820ae1c1bc3224c13f25ac704219947540d9bb80e0836b |
| -plan14-root-reads-edge-asset-cache-3.tsv fc75c6e7a4c247f8da8fc62f8d3890215bcdc9306212ed60813f6fb7dde67f30 |
| +plan14-root-reads-edge-asset-cache-3-decisions.tsv f2e73d04c2bc0983c08dfcd84c07392a9998b4c60eee0fc44b58b4c5e6f646f4 |
| +plan14-root-reads-edge-asset-cache-3.tsv a144f0c222463be95777b75dfdd7d12109ea942a76852847202626d1e03de9a1 |
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 3bd96b2fa..e10b1f0ea 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 console-perf-1 (main's last at the merge of origin/main ddf3b929) 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 console-remote-instances (main's last at the merge of origin/main 5bba4bc1) 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 fa5a23536..156eb0199 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 |
| @@ -12,7 +12,7 @@ internal/host/edgesfile.go edgesFileLoop legacy accepted-legacy accepted-legacy; |
| 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 through observeRecords(rt, false, r, ...) whenever this edge wrote the answer itself: a hit, the block page, a throttle refusal, or any answer written before a hop reached the home (a backhaul refusal, the no-key 503, a failed dial's 502; arrival is seen by an httptrace WroteHeaders hook on the request's context, a callback that reads nothing); a request a hop delivered to the home is judged and recorded there under the home's own mode, as for any backhauled request (fix waves 4 and 5: ordinary-backhaul parity); refusals and forwards write through the counting writer so the record carries the client's status; the one added site is that observeRecords pass of the same synthetic registry.Route{Host, Account, App, Kind: instance} (+whole:Route); no new kind of read whole:Route@1500,whole:Route@2763,whole:Route@2770,whole:Route@896 ccc109233f155183839ac36e067fca7b09ab66fd684ffdd48a83a17294c016ec |
| @coverage . 778e847985cd703d91149c8fb42ec0dfb23333964b0df00e9a991f4be1400b89 |
| -@coverage internal/console a589ab1f82e194963076472cdf2e61f7f303ece2c12f58c38b7c8b6e73a123cd |
| +@coverage internal/console d2167a9344372f739523a01536a3aad326920bb7d5a0a6c409e546d8a4b3ebe0 |
| @coverage internal/edge 767b198ffedcc38fef692bd63a30328dab3ff14ea88ed3a0c98db798007025b9 |
| @coverage internal/edgesfile ea0152ad8b89404f12f3bae5c45d0f4c3b3bfeec8fcd989be2b1982601d58b79 |
| @coverage internal/host cdc2ad20fb969ac1a53c1be32524f8b8633808af853a3f01bc2d5e9c1a3a30c1 |