| index 7acd79ec0..41175c679 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-edge-protection-2-decisions.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-edge-protection-2-decisions.tsv |
| @@ -1,8 +1,11 @@ |
| -# Census overlay edge-protection-2-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-edge-protection-2 (branch edge-protection-2, Plan 2 of docs/superpowers/specs/2026-10-24-edge-request-protection-design.md: the hard and probe tiers, watch by default; plan docs/superpowers/plans/2026-10-25-edge-protection-2-hard-probe-watch.md): one new unit and one removed. Loaded from the chain manifest before plan14-root-reads-edge-protection-2.tsv, which census-propose wrote for the approvals. Asked of the census owner on #280 with the card docs/superpowers/notes/census-proposal-edge-protection-2.md; rows carry the ruling from the start (#369). |
| -# No root read is added. The catalogue is data compiled into the binary and parsed at init; the edge inside the agent (carlos-edge.service, user carlos) is its only reader, and nothing opens it from disk. One frozen declaration is added, so the seal moves. |
| -# NEW, embedded data (file:external): the protection catalogue. Mirrors the console's embedded templates (internal/console/templates/*.html external, accepted legacy). |
| -@legacy 99d5044258b4fb0ae713b36b32413708ba8ac90858ddb373f84aef381a46c3e0 internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), the one caller of internal/edgeguard;basis=new: the edge protection catalogue, the hard and probe tier rules: embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external) file:external@0 f017cbb0b580fb799dec98930051c816c3ad45ed18a05eb424337fd1bdf3a269 |
| -internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), the one caller of internal/edgeguard;basis=new: the edge protection catalogue, the hard and probe tier rules: embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external) file:external@0 f017cbb0b580fb799dec98930051c816c3ad45ed18a05eb424337fd1bdf3a269 |
| +# Census overlay edge-protection-2-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-edge-protection-2 (branch edge-protection-2, Plan 2 of docs/superpowers/specs/2026-10-24-edge-request-protection-design.md: the hard and probe tiers, watch by default; plan docs/superpowers/plans/2026-10-25-edge-protection-2-hard-probe-watch.md): one new unit, one re-frozen and one removed. Loaded from the chain manifest before plan14-root-reads-edge-protection-2.tsv, which census-propose wrote for the approvals. Asked of the census owner on #280 with the card docs/superpowers/notes/census-proposal-edge-protection-2.md; rows carry the ruling from the start (#369). |
| +# No root read is added. The catalogue is data compiled into the binary and parsed at init. Its consumers are the edge inside the agent (carlos-edge.service, user carlos), which matches requests against it, and the console (console.service, user carlos-console), which names a reference code's rule with edgeguard.RuleByHash; nothing opens it from disk. Two frozen declarations are added (the catalogue, new, and NewRef, re-frozen), so the seal moves. |
| +# NEW, embedded data (file:external): the protection catalogue, each rule's match and mode. Mirrors the console's embedded templates (internal/console/templates/*.html external, accepted legacy). |
| +@legacy 0291888d7f4309afcf563fa8d5e61e9a948363ed26e0a217e211d35674c9dad2 internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=its two consumers: the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), which matches requests against it, and the console (cmd/console serve under console.service, user carlos-console), which names a reference code's rule through edgeguard.RuleByHash (apiedgeref.go);basis=new: the edge protection catalogue, the hard and probe tier rules, each with what it matches and its mode (watch, block or burst): embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches, what the edge does with a match, and which rule a code names; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external) file:external@0 f017cbb0b580fb799dec98930051c816c3ad45ed18a05eb424337fd1bdf3a269 |
| +internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=its two consumers: the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), which matches requests against it, and the console (cmd/console serve under console.service, user carlos-console), which names a reference code's rule through edgeguard.RuleByHash (apiedgeref.go);basis=new: the edge protection catalogue, the hard and probe tier rules, each with what it matches and its mode (watch, block or burst): embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches, what the edge does with a match, and which rule a code names; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external) file:external@0 f017cbb0b580fb799dec98930051c816c3ad45ed18a05eb424337fd1bdf3a269 |
| +# RE-FROZEN, basis only (census review, Astra, 2026-10-25): NewRef's caller is now Edge.mintRef, as Edge.recordMatch is removed below. Same digest, same read, same disposition; the basis says "production caller is Edge.mintRef" in place of "called only by Edge.recordMatch". |
| +@legacy 87090950033303f14d4a6eb0a3f49b62f7f8614bd91657d15e4900dae16bf49c internal/reqrec/ref.go NewRef 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: production caller is Edge.mintRef; one crypto/rand.Read of the code's 8-byte nonce from the kernel's random source (rand.Read, not a file), then an HMAC-SHA256 seal over the code's head with the mesh key the caller passed in, when it passed one; the nonce only makes codes unique, and the code is a reference the owner looks up, never an authorization; no file, no store, no box state, nothing written; the class of mintMeshKey's crypto/rand read (J4 root-input) and dbreads nonce (census-ruling-db-region-forward-1) file:Read@484 a2e27bb0dfd313172d0b43c81f9dceb91c13910c0258f027b720cd59593960c8 |
| +internal/reqrec/ref.go NewRef 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: production caller is Edge.mintRef; one crypto/rand.Read of the code's 8-byte nonce from the kernel's random source (rand.Read, not a file), then an HMAC-SHA256 seal over the code's head with the mesh key the caller passed in, when it passed one; the nonce only makes codes unique, and the code is a reference the owner looks up, never an authorization; no file, no store, no box state, nothing written; the class of mintMeshKey's crypto/rand read (J4 root-input) and dbreads nonce (census-ruling-db-region-forward-1) file:Read@484 a2e27bb0dfd313172d0b43c81f9dceb91c13910c0258f027b720cd59593960c8 |
| # Removed: Edge.recordMatch (frozen by edge-request-records-decisions) is no longer declared. Retired by an H3 census-ruling removal (zddr3's form; the loader takes H3 only with a census-ruling- basis). A removal is not in the seal. |
| @remove internal/edge/reqrecords.go Edge.recordMatch |
| @removed internal/edge/reqrecords.go Edge.recordMatch H3 census-ruling-edge-protection-2: no longer declared: its body is split in two. The reference-code mint (reqrec.NewRef from the time, the rule tier and id, this box's name and the mesh key the edge already holds in memory) moved unchanged into Edge.mintRef, in which the scan finds no read site, and the Match it filed is now built by Edge.observeRecords (re-frozen in the census-propose overlay edge-protection-2) from the guard verdict the observer defer finds on the request's outcome; its one scanned site, the route passed in, went with the Match. It ran in the edge inside the agent as carlos. |