carlos / platform Public

census: static-headers overlay, claims and card (census-ruling-static-headers); branch review R1 findings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev ecf2dbee7ab1768851945ded35723d8477205916 parent ab2c0de
5 files changed, +60 −0
  • docs/superpowers/notes/census-proposal-static-headers.md +29 −0
  • docs/superpowers/notes/census-static-headers-claims.md +7 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md +9 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-static-headers.tsv +14 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>bh16bcfu5</task-id> <tool-use-id>toolu_01XLJcuj3mFTe4DkdH5dX5wb</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/0f246987-ca6b-4093-b104-f930443a8208/tasks/bh16bcfu5.output</output-file> <status>completed</status> <summary>Background command "Run the whole-branch Astra review" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>b7ajt5d4j</task-id> <tool-use-id>toolu_01AHnNXnjvJUjL7Zp3cLfSY4</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/0f246987-ca6b-4093-b104-f930443a8208/tasks/b7ajt5d4j.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on the branch tip" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 24.7 g CO₂e (3,116,697 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on static-headers, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-static-headers.md b/docs/superpowers/notes/census-proposal-static-headers.md
new file mode 100644
index 000000000..5968d02b6
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-static-headers.md
@@ -0,0 +1,29 @@
+# Census approval: static-headers
+
+Ruling `census-ruling-static-headers`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/edge/static.go` `PackDir` | body | unchanged (2) | also parses the root _headers file it has already read (the same ReadFile as every packed file) with parseHeaders, pure and in-memory, and refuses the pack when a line does not parse, exactly as it does for _redirects; no read added |
+| `internal/edge/static.go` `staticSite.serveFile` | body | unchanged (2) | takes the in-memory _headers lookup result (extra) and, on the 200 branch only, wraps the writer in headerWriter, which sets those header values on 200/206/304 at status time; the same Open and open-file Stat of the same resolved file; no read added, no root decision |
+| `internal/edge/static.go` `staticSite.serveTree` | body | unchanged (2) | computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added |
+| `internal/edge/edge.go` `Edge.ServeHTTP` | sites | +registry:Kind, +whole:Route | the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed |
+
+Envelopes re-pinned: `internal/edge`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/edge/static.go` `PackDir`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the carlos CLI (carlos ship and carlos deploy --kind static, on the member's own machine);basis=also parses the root _redirects file it has already read (the same ReadFile) and refuses the pack when a line does not parse; no read added, offsets unchanged
+- `internal/edge/static.go` `staticSite.serveFile`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-input; serveTree's former Open and open-file Stat of the file serveTree resolved inside the extracted, digest-verified tree, unchanged, plus a non-200 branch that copies the same open file under a _redirects 404 status; no root decision
+- `internal/edge/static.go` `staticSite.serveTree`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.
+- `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;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25)
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/edge/static.go:staticSite.loadHeaders`: reads +file:ReadFile; written legacy, accepted-legacy, frozen
+
+Seal: `fb7cd756f7c3eb2dc019c8fd55fea5475e2df7ee3305fbc693ae669f257f374f` → `70afd35edf1032bc899b51e7b1a0c37b34b1877fcdca33758adb49a8c55e3fdc`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-static-headers.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/notes/census-static-headers-claims.md b/docs/superpowers/notes/census-static-headers-claims.md
new file mode 100644
index 000000000..9279c9b0e
--- /dev/null
+++ b/docs/superpowers/notes/census-static-headers-claims.md
@@ -0,0 +1,7 @@
+# CLAIMS for the root-read census, branch static-headers (#195 item 2, #450).
+# Format (AGENTS.md "The census"): <file>:<unit><TAB><what changed>. Lines starting with # are ignored.
+internal/edge/static.go:PackDir also parses the root _headers file it has already read (the same ReadFile as every packed file) with parseHeaders, pure and in-memory, and refuses the pack when a line does not parse, exactly as it does for _redirects; no read added
+internal/edge/static.go:staticSite.serveFile takes the in-memory _headers lookup result (extra) and, on the 200 branch only, wraps the writer in headerWriter, which sets those header values on 200/206/304 at status time; the same Open and open-file Stat of the same resolved file; no read added, no root decision
+internal/edge/static.go:staticSite.serveTree computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added
+internal/edge/edge.go:Edge.ServeHTTP the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed
+internal/edge/static.go:staticSite.loadHeaders new: reads the _headers file at the root of the extracted, digest-verified tree once per version swap (ReadFile of filepath.Join(dir, headersFile), dir from the signed pointer and manifest digest as loadRedirects uses), parses it in memory; a missing file is no rules, a read or parse error is logged; the same shape as loadRedirects
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md b/docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md
new file mode 100644
index 000000000..06e00f02f
--- /dev/null
+++ b/docs/superpowers/reviews/ASTRA-FINDINGS-static-headers-branch-R1.md
@@ -0,0 +1,9 @@
+- **P1 — Census update missing.** [static.go:314](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/static-headers/internal/edge/static.go:314) adds `staticSite.loadHeaders` with an `os.ReadFile`, but this branch contains no census overlay or chain update. The [committed edge fingerprint](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/static-headers/internal/provision/testdata/plan14-root-reads-static-dir-slash.tsv:5) still matches the base (`b11d75a4…`); independently recomputing it for this tip gives `8cce0717…`. [TestPlan14RootReadCensus](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/static-headers/internal/provision/plan14_root_reads_test.go:700) rejects that mismatch, blocking CI and merge. **Fix:** generate the claims, overlay and approval card; obtain the required independent census approval; commit the update and verify the gate. **Fault family:** census coverage and approval of changes to root-binary source.
+
+- **P3 — Compression test discards the body.** [static_headers_test.go:160](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/static-headers/internal/edge/static_headers_test.go:160) checks compression headers but ignores the encoded bytes. A response labelled gzip with corrupted or incorrect content could pass. **Follow-up:** decompress the returned body, check decoding errors, and compare it with the fixture’s CSS. **Fault family:** compression representation fidelity; a test gap, with no runtime defect identified.
+
+No P2 findings. Leave the writer placement and revised `no-cache` comment unchanged: both accurately implement the approved behavior.
+
+Formatting and diff checks passed. Focused tests could not start because the read-only sandbox prevented Go from creating its work directory. No files were changed.
+
+**NOT READY**
\ No newline at end of file
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 840b20d29..0752c3869 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -31,3 +31,4 @@ plan14-root-reads-fresh-box-446.tsv 862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba
plan14-root-reads-rootfs-apps-4.tsv e085917e271ee26877974461133f393ccc5d63add91d7aad2afe10b30977914e
plan14-root-reads-regional-domains-447.tsv 1de834976c615fed28567ca0a9ae7526eaa35341e07898feb112f4e1b0ddee8d
plan14-root-reads-static-dir-slash.tsv fb7cd756f7c3eb2dc019c8fd55fea5475e2df7ee3305fbc693ae669f257f374f
+plan14-root-reads-static-headers.tsv 70afd35edf1032bc899b51e7b1a0c37b34b1877fcdca33758adb49a8c55e3fdc
diff --git a/internal/provision/testdata/plan14-root-reads-static-headers.tsv b/internal/provision/testdata/plan14-root-reads-static-headers.tsv
new file mode 100644
index 000000000..6b78d95a0
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-static-headers.tsv
@@ -0,0 +1,14 @@
+# Census overlay static-headers, written by census-propose (#369). census-ruling-static-headers, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-static-headers.md.
+# 3 body, 1 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 5a672c4cd5b701c3cac51b4d86ac789e4e7288c490ec378d2a3498ad2faf0446 internal/edge/static.go PackDir legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the carlos CLI (carlos ship and carlos deploy --kind static, on the member's own machine);basis=also parses the root _redirects file it has already read (the same ReadFile) and refuses the pack when a line does not parse; no read added, offsets unchanged;rev3=census-ruling-static-headers;basis=also parses the root _headers file it has already read (the same ReadFile as every packed file) with parseHeaders, pure and in-memory, and refuses the pack when a line does not parse, exactly as it does for _redirects; no read added file:ReadFile@626,file:WalkDir@71 ff1fc031daf5053abbec1f2f2145ed93fccaa75ba5d6673d3c69020ce33dcbda
+@legacy 4e9f48a0daa7ef0921f0e259812850774019f8fcb65e253d9ca1caf995e88d58 internal/edge/static.go staticSite.serveFile legacy accepted-legacy accepted-legacy;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-input; serveTree's former Open and open-file Stat of the file serveTree resolved inside the extracted, digest-verified tree, unchanged, plus a non-200 branch that copies the same open file under a _redirects 404 status; no root decision;rev3=census-ruling-static-headers;basis=takes the in-memory _headers lookup result (extra) and, on the 200 branch only, wraps the writer in headerWriter, which sets those header values on 200/206/304 at status time; the same Open and open-file Stat of the same resolved file; no read added, no root decision file:Open@145,file:Stat@1607 b1cfea3e2636b4aa04641a718a8353da1b8142fe9d608a40fa3b3269aee6778a
+@legacy a208b3ba964930bb622d89cd262bfc2617fe96360902ead001a34dbb1c9c2bcd internal/edge/static.go staticSite.serveTree legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.;rev3=census-ruling-static-headers;basis=computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added file:Stat@1301,file:Stat@1415 795cf8cc3fd62482607dd7078c20eca0cbba5e17ca8f241c589c9946d827545e
+@legacy 0df1c49dcb0dab338c17220845a25a46e194bb13f41f178c789e24e554677662 internal/edge/static.go staticSite.loadHeaders legacy accepted-legacy accepted-legacy;rev3=census-ruling-static-headers;basis=new: reads the _headers file at the root of the extracted, digest-verified tree once per version swap (ReadFile of filepath.Join(dir, headersFile), dir from the signed pointer and manifest digest as loadRedirects uses), parses it in memory; a missing file is no rules, a read or parse error is logged; the same shape as loadRedirects file:ReadFile@83 34f2ba99895615e296aaa7cd34b4c905ce43508c0383861ad1d8f9f7171bffc8
+@legacy 16fc00c45bc5bb7ed5530db23274d68318befd2b9244c501c5869cb0a2fbd494 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed registry:Gate@18331,registry:Gate@18391,registry:Gate@18449,registry:Host@18434,registry:ImportGate@23924,registry:Kind@13994,registry:Kind@16464,registry:Kind@23866,registry:Kind@23895,whole:Route@11802,whole:Route@12014,whole:Route@12206,whole:Route@13997,whole:Route@15300,whole:Route@15395,whole:Route@15471,whole:Route@15515,whole:Route@16467,whole:Route@18334,whole:Route@18394,whole:Route@18437,whole:Route@18452,whole:Route@20085,whole:Route@23869,whole:Route@23898,whole:Route@23927,whole:Route@25759 12d592d2b0fd1ccc81a836ff238abff2a4dcb839264d5e7b6c3dd2803c32d8dc
+internal/edge/static.go PackDir legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the carlos CLI (carlos ship and carlos deploy --kind static, on the member's own machine);basis=also parses the root _redirects file it has already read (the same ReadFile) and refuses the pack when a line does not parse; no read added, offsets unchanged;rev3=census-ruling-static-headers;basis=also parses the root _headers file it has already read (the same ReadFile as every packed file) with parseHeaders, pure and in-memory, and refuses the pack when a line does not parse, exactly as it does for _redirects; no read added file:ReadFile@626,file:WalkDir@71 ff1fc031daf5053abbec1f2f2145ed93fccaa75ba5d6673d3c69020ce33dcbda
+internal/edge/static.go staticSite.serveFile legacy accepted-legacy accepted-legacy;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-input; serveTree's former Open and open-file Stat of the file serveTree resolved inside the extracted, digest-verified tree, unchanged, plus a non-200 branch that copies the same open file under a _redirects 404 status; no root decision;rev3=census-ruling-static-headers;basis=takes the in-memory _headers lookup result (extra) and, on the 200 branch only, wraps the writer in headerWriter, which sets those header values on 200/206/304 at status time; the same Open and open-file Stat of the same resolved file; no read added, no root decision file:Open@145,file:Stat@1607 b1cfea3e2636b4aa04641a718a8353da1b8142fe9d608a40fa3b3269aee6778a
+internal/edge/static.go staticSite.serveTree legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-static-redirects;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the same index-aware Stat lookup inside the extracted tree, now run at most twice (the request path, then once for a _redirects rewrite destination cleaned rooted inside the same tree); the Open moves to serveFile; the _redirects file itself is never answered; no root decision;rev3=census-ruling-edge-protection-2;basis=consults the edge protection matcher (internal/edgeguard, pure and in-memory) on the request path (probe tier, only when no file and no _redirects rule names it) and on a rewrite target (hard tier, only when the file is there), and may answer the guard's 404 block page through guardDecide before a redirect or the rewritten file; the _redirects lookup gains an in-memory names check; the same index-aware Stat lookups inside the extracted tree, unchanged; no read added;rev3=census-ruling-static-dir-slash;basis=A directory requested without its trailing slash now answers a 301 to a relative "./<base>/" (query kept) instead of serving its index.html, unless the request was rewritten, the path ends in "/", a _redirects rule names the path, or the rules would redirect its slash form (redirectsSlashForm, the existing in-memory resolve with exists=true). It opens and stats exactly the files it did before; the new branch only writes a Location header and a status, from the request path and the rules it already parsed.;rev3=census-ruling-static-headers;basis=computes the in-memory _headers lookup once on the cleaned request path and host and passes it to serveFile; the _headers file itself is never answered (found excludes it, as _redirects); the same index-aware Stat lookups inside the extracted tree; no read added file:Stat@1301,file:Stat@1415 795cf8cc3fd62482607dd7078c20eca0cbba5e17ca8f241c589c9946d827545e
+internal/edge/static.go staticSite.loadHeaders legacy accepted-legacy accepted-legacy;rev3=census-ruling-static-headers;basis=new: reads the _headers file at the root of the extracted, digest-verified tree once per version swap (ReadFile of filepath.Join(dir, headersFile), dir from the signed pointer and manifest digest as loadRedirects uses), parses it in memory; a missing file is no rules, a read or parse error is logged; the same shape as loadRedirects file:ReadFile@83 34f2ba99895615e296aaa7cd34b4c905ce43508c0383861ad1d8f9f7171bffc8
+internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed registry:Gate@18331,registry:Gate@18391,registry:Gate@18449,registry:Host@18434,registry:ImportGate@23924,registry:Kind@13994,registry:Kind@16464,registry:Kind@23866,registry:Kind@23895,whole:Route@11802,whole:Route@12014,whole:Route@12206,whole:Route@13997,whole:Route@15300,whole:Route@15395,whole:Route@15471,whole:Route@15515,whole:Route@16467,whole:Route@18334,whole:Route@18394,whole:Route@18437,whole:Route@18452,whole:Route@20085,whole:Route@23869,whole:Route@23898,whole:Route@23927,whole:Route@25759 12d592d2b0fd1ccc81a836ff238abff2a4dcb839264d5e7b6c3dd2803c32d8dc
+@coverage internal/edge 8cce07179dff0c8061751b5a308d33e63ef542996f7b4924d5da27228eb3fb44