carlos / platform Public

census: re-propose after set-pages

Root-read census: claim for cli.go:runInstances (the set-pages arm) and
the root envelope; overlay and card re-proposed under the same name.
Record-write census: re-digest runInstances and handleAPIInstanceUpdate
(classes and kinds unchanged) and add apiSession.instanceSetPages as a
key-site on lit:instances, like instanceSetAssets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c08469a8bf9d0ecc1baa1e19da28a6f100ca75bd parent 5978469
5 files changed, +27 −5
  • docs/superpowers/notes/census-claims-edge-page-cache-1.tsv +1 −0
  • docs/superpowers/notes/census-proposal-edge-page-cache-1.md +4 −2
  • internal/provision/edge_page_cache_1_census_test.go +17 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv +4 −1

CI passed — run details

Intent

Human

<task-notification> <task-id>a662cfcc6a9d1face</task-id> <tool-use-id>toolu_01CH2uz4XPRNdYgesSdpZn9v</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/d79ef2b4-4291-4945-bd45-b3f16796c4ba/tasks/a662cfcc6a9d1face.output</output-file> <status>completed</status> <summary>Agent "Implement Task 12: set-pages, console, docs" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** DONE with concerns. All 17 EPC rows landed, and the three test commands pass. **Commit:** 5978469b "console, cli: carlos instances set-pages; page cache docs" **Tests:** passing: - `./internal/console -run 'PatchInstancePages|Assets'` - the root `SetPages|SetAssets|ApprovedPageCacheCopy|ApprovedAssetCacheCopy` set - `./internal/docsite` - wider `Copy|Help|Usage` and console `Copy|Moves` runs I ran them outside the sandbox because its Go cache is read-only. **Concerns:** 1. **Gate workaround:** the record writes `|` as `\|`, and EPC-2, 6 and 7 are pieces of larger literals. The existing helpers don't handle either, so my gate unescapes `\|` and checks those three as fragments inside a string literal. This is gate-only logic; the record is untouched. 2. **Missing error wrapper:** set-assets wraps errors in `recordNotFound` with a sentence ("box route with no instance record...") that is not in the deck. I left that out of set-pages, so errors print as `instances set-pages: &lt;err&gt;`. If you want that case handled, it needs a deck row. 3. **Em dash:** EPC-7 keeps its em dash, so the inventory em-dash check skips that row. 4. **Commit trailer:** I used `Co-Authored-By: Claude Sonnet 5.5`, per the attribution reminder. The house rules file says Opus 5.5. **Report:** /home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-page-cache-1/.superpowers/sdd/2026-11-08-edge-page-cache-plan-1-home/task-12-report.md</result> <usage><subagent_tokens>90165</subagent_tokens><tool_uses>22</tool_uses><duration_ms>352102</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bqs6robft</task-id> <tool-use-id>toolu_01N3em1kLvgTHC15EJ32RJBJ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/d79ef2b4-4291-4945-bd45-b3f16796c4ba/tasks/bqs6robft.output</output-file> <status>completed</status> <summary>Background command "Run Astra review of Task 12" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 77.4 g CO₂e (10,037,757 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on edge-page-cache-1, 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-claims-edge-page-cache-1.tsv b/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv
index e1b038ed7..e1e93bbfa 100644
--- a/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv
+++ b/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv
@@ -65,3 +65,4 @@ internal/registry/forward.go:Route.InertForward a forward row must also have Pag
internal/registry/registry.go:routeArgs binds b2iDB(t.PagesOff) in the new pages_off position of routeCols (78 columns)
internal/registry/registry.go:scanRoute scans the new pages_off column into Route.PagesOff
internal/registry/remote_dispatch.go:Registry.dispatchRemote adds the SetPages method: r.SetPages(q.Host, q.PagesOff), the request's PagesOff field (the +registry:Host and +registry:PagesOff sites); the same dispatch as SetAssets
+cli.go:runInstances Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added
diff --git a/docs/superpowers/notes/census-proposal-edge-page-cache-1.md b/docs/superpowers/notes/census-proposal-edge-page-cache-1.md
index 175848453..a1bab9b32 100644
--- a/docs/superpowers/notes/census-proposal-edge-page-cache-1.md
+++ b/docs/superpowers/notes/census-proposal-edge-page-cache-1.md
@@ -4,6 +4,7 @@ Ruling `census-ruling-edge-page-cache-1`. The independent reviewer approves or r
| unit | change | read sites | what changed |
|---|---|---|---|
+| `cli.go` `runInstances` | body | unchanged (13) | Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added |
| `internal/activator/activator.go` `Service.wake` | body | unchanged (16) | the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added |
| `internal/activator/backend_exec.go` `ExecBackend.Start` | body | unchanged (14) | passes an empty build to startChildAt's new build argument (the live link, whose build is not pinned); read sites unchanged (14); no read added |
| `internal/activator/backend_exec.go` `ExecBackend.spawnUnitFrom` | body | unchanged (29) | computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added |
@@ -31,12 +32,13 @@ Ruling `census-ruling-edge-page-cache-1`. The independent reviewer approves or r
| `internal/edge/purge_header.go` `Edge.applyPurgeHeader` | sites | +whole:Route | takes the asked Host, takes one route table snapshot (e.current()) for the whole declaration, resolves owners through resolvePurgeOwnersIn and, with no Carlos-Purge-Host, the page hosts through pageHostsFor (the +whole:Route site); then applyPurgeTargets; in-memory only |
| `internal/edge/purge_header.go` `Edge.resolvePurgeHosts` | sites | -registry:Account ×2, -registry:App ×4, -registry:Host ×17, -whole:Route ×5 | now a wrapper: resolvePurgeOwnersIn(e.current(), rt, declared) and the hosts of its answer; its read sites moved verbatim into resolvePurgeOwnersIn, so they show as removed here; no read added |
-Envelopes re-pinned: `internal/activator`, `internal/assetcache`, `internal/edge`, `internal/host`, `internal/pageindex`, `internal/provision`, `internal/registry`.
+Envelopes re-pinned: `.`, `internal/activator`, `internal/assetcache`, `internal/edge`, `internal/host`, `internal/pageindex`, `internal/provision`, `internal/registry`.
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:
+- `cli.go` `runInstances`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added
- `internal/activator/activator.go` `Service.wake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.
- `internal/activator/backend_exec.go` `ExecBackend.Start`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes through rootfsGates and startRootfsFromLive, never the layout switch; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), refusing an HA-acquired host whose row is no longer contained; otherwise unchanged; only adds a refusal;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1 and Task 7: ctx to the rootfs gates; startRootfsFromLive now returns the staged identity (the version is passed on); a row with a runtime other than rootfs-v1 is refused before the binary path (refuseUnknownRuntime); adds a refusal only;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.
- `internal/activator/backend_exec.go` `ExecBackend.spawnUnitFrom`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.
@@ -108,6 +110,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/registry/registry.go:scanRoute`: +registry:PagesOff; keeps legacy, task accepted-legacy
- reads `internal/registry/remote_dispatch.go:Registry.dispatchRemote`: +registry:Host, +registry:PagesOff; keeps hint, task E2
-Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `45b42b3bec91317eb1404d1b0f68b9b2100add7b4dab60c4ce59703fc15d479d`.
+Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `4a9c361020d482cc0a3e9d5746807440672ee8304e11521dea8b88a2038e89f7`.
Overlay: `internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/edge_page_cache_1_census_test.go b/internal/provision/edge_page_cache_1_census_test.go
index f1b2f6cc3..5c9b7de4a 100644
--- a/internal/provision/edge_page_cache_1_census_test.go
+++ b/internal/provision/edge_page_cache_1_census_test.go
@@ -14,11 +14,27 @@ package provision
// so a page cache response never enters the LRU. Its one Put is still
// e.cache.Put, the edge's in-memory response cache. nonrecord /
// sel:Put, as before.
+//
+// Task 12 (carlos instances set-pages) adds one CLI client and changes two
+// units; the only record write is the PATCH door's existing UpdateRecord:
+// - apiSession.instanceSetPages (new): PATCHes
+// .../instances/<host> with only {"pages":"on"|"off"} and an optional
+// message, as instanceSetAssets does; the console's door writes.
+// key-site / lit:instances (the path literal).
+// - runInstances: the set-pages arm, dispatching to runInstancesSetPages;
+// literal unchanged. key-site / lit:instances, as before.
+// - Server.handleAPIInstanceUpdate: the PATCH body gains pages, read by
+// pagesSwitch before the record is read ("on" leaves Pages nil, "off"
+// sets it false, anything else is refused and nothing is written), and
+// set on the record beside assets; the same UpdateRecord under the
+// etag. record-writer / key:UpdateRecord, as before.
func edgePageCache1WriteCensusInventory() []censusEntry {
entries := append([]censusEntry(nil), instanceRestore658WriteCensusInventory()...)
replacements := []censusEntry{
{"internal/edge/demo_traffic.go", "Edge.serveDemoTraffic", "nonrecord", "sel:Put", "afd123392d1c9c1b1faed7f394bf2f0f280e8ba8774aaffe00a73898f5d60066"},
{"internal/edge/edge.go", "Edge.maybeStore", "nonrecord", "sel:Put", "0a03abb57ec4cf01239d84bcaa03b21f0b9b2115e0cc31f1f4cbc9dcbf5ab5a8"},
+ {"cli.go", "runInstances", "key-site", "lit:instances", "d2f6ea17746702eb637fb0d72c215754739a68118338cb001c7b437436e84794"},
+ {"internal/console/apiinstances.go", "Server.handleAPIInstanceUpdate", "record-writer", "key:UpdateRecord", "b5c47cac78a8c40d6c08f05600b811dc9efd0511d5be7d6e4badff3540a55398"},
}
for _, r := range replacements {
found := false
@@ -31,5 +47,5 @@ func edgePageCache1WriteCensusInventory() []censusEntry {
panic("edge-page-cache-1 replacement of an unlisted unit " + r.File + ":" + r.Unit)
}
}
- return entries
+ return append(entries, censusEntry{"apimode.go", "apiSession.instanceSetPages", "key-site", "lit:instances", "61d608e012bebb89cc4d5eca7ad7b72227fccb4a0ed7596085d74e8cb449332b"})
}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 55e190bf4..17c0daf0e 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -130,4 +130,4 @@ plan14-root-reads-instance-syscall-filter.tsv b970bb28c5a633d2572a1da549030e9258
plan14-root-reads-instance-restore-658-cli.tsv b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c
plan14-root-reads-instance-stop-execstop-528.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
plan14-root-reads-region-ha-shutting-down-retry.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
-plan14-root-reads-edge-page-cache-1.tsv 45b42b3bec91317eb1404d1b0f68b9b2100add7b4dab60c4ce59703fc15d479d
+plan14-root-reads-edge-page-cache-1.tsv 4a9c361020d482cc0a3e9d5746807440672ee8304e11521dea8b88a2038e89f7
diff --git a/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv b/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv
index 77f59b135..820600a3a 100644
--- a/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv
+++ b/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv
@@ -1,6 +1,7 @@
# Census overlay edge-page-cache-1, written by census-propose (#369). census-ruling-edge-page-cache-1, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-edge-page-cache-1.md.
-# 21 body, 5 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 22 body, 5 sites, 8 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
# 41 new dispositions: 8 reads re-frozen at their disposition with the claim, 32 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+@legacy cbb69c3ce5e4c23e31e24c09158166e5c1eff0dc55ebe4b138e9f7f0d88596a7 cli.go runInstances legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added file:Open@1471,registry:App@3344,registry:Backing@3426,registry:Channel@3359,registry:Environment@3370,registry:Hibernate@3235,registry:Host@3336,registry:Kind@3351,registry:Replication@3411,registry:Status@3385,registry:Unit@3437,registry:Version@3395,whole:Route@3209 d2f6ea17746702eb637fb0d72c215754739a68118338cb001c7b437436e84794
@legacy 5b8bcd390bfb747cc155d4487c76b95a8d6fd165331007a9de6ac40ff23f18c7 internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.;rev3=census-ruling-edge-page-cache-1;basis=the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added registry:Socket@8549,registry:Socket@8710,registry:Stateless@10044,registry:Stateless@10792,whole:Route@10035,whole:Route@10090,whole:Route@10794,whole:Route@1762,whole:Route@3277,whole:Route@3404,whole:Route@3461,whole:Route@466,whole:Route@6811,whole:Route@8502,whole:Route@8551,whole:Route@8712 9d91d8d7ad4bd5bb348efd5391153a548d953eb52dbffe41e8cb05cb2fed3ff7
@legacy bcf92e06a7503a6d998b36bd065bce4f5e6c442e4b6c2902f19792a1be01200b internal/activator/backend_exec.go ExecBackend.Start legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes through rootfsGates and startRootfsFromLive, never the layout switch; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), refusing an HA-acquired host whose row is no longer contained; otherwise unchanged; only adds a refusal;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1 and Task 7: ctx to the rootfs gates; startRootfsFromLive now returns the staged identity (the version is passed on); a row with a runtime other than rootfs-v1 is refused before the binary path (refuseUnknownRuntime); adds a refusal only;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.;rev3=census-ruling-edge-page-cache-1;basis=passes an empty build to startChildAt's new build argument (the live link, whose build is not pinned); read sites unchanged (14); no read added registry:Host@784,registry:Runtime@274,registry:Socket@441,registry:Socket@656,registry:Socket@838,whole:Route@123,whole:Route@159,whole:Route@227,whole:Route@346,whole:Route@437,whole:Route@521,whole:Route@581,whole:Route@652,whole:Route@834 13b1fedf91936839ddad5ce101680e5e757d46b8c3733e58bc6a3a4f36e7a4bb
@legacy ad1acae9cca0c083fea19ae39921068584dcd6525b9c225f511965777265f479 internal/activator/backend_exec.go ExecBackend.spawnUnitFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added registry:Host@1185,registry:Host@1662,registry:Host@1767,registry:Host@1898,registry:Host@2355,registry:Host@3314,registry:Host@4310,registry:Host@4896,registry:Host@5148,registry:Host@5368,registry:Host@5553,registry:Host@5948,registry:Host@6229,registry:Host@6273,registry:Host@6431,registry:Host@6452,registry:Host@7450,registry:Host@7544,registry:Stateless@1712,whole:Route@1349,whole:Route@1591,whole:Route@1752,whole:Route@308,whole:Route@3550,whole:Route@5201,whole:Route@6364,whole:Route@6531,whole:Route@872,whole:Route@970 b3a36696d9117631e81ebeec305369c6d10148877a4ebbaadbfb21937f67b5d6
@@ -60,6 +61,7 @@
@legacy 6d04dc19e5d0d106603ab467da4f52336dbe0305cdfc594bef5d28807dc84823 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;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged.;rev3=census-ruling-region-ha-p3b;basis=Resolve local aliases/catch-alls with cached peer name ownership before serving. Add registry Account/App/ClaimStamp/Host/Incarnation/ServingSeq and six whole Route references for NameClaim; inputs are agent registry rows/edges publications used by unprivileged edge, not root permits. Closed owners retain names and return 503; aware remote owner cannot fall through on missing transport, while legacy hop/door behavior remains. Merge 45cebde4 retains authenticated replica probes after local admission and before ordinary name resolution; probe authentication still requires the tunnel context.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1901 enters the protected demo path before ordinary exits; :2012-2015 rechecks the selected marked Route after lookup. Added whole Route use routes demos through serving checks, counters and policy; no new registry query or file open in this unit.;rev3=census-ruling-demo-api-site-route;basis=Reserve the configured site API namespace after hop verification and control-header scrubbing, before ordinary static, cache, billing and tenant dispatch. Validate hop field shape and delegate only allowlisted operations to the dedicated console path with verified client attribution and console admission. The alias helper enables HTTP/1.1 full duplex so an early console refusal does not wait for upload EOF. Existing 56 read sites unchanged; no new registry, bucket or file read.;rev3=census-ruling-region-ha-g2-fixes;basis=Consult HA ingress after region admission and before miss/alias backhaul; no new direct read; routing-only metadata does not create an upstream.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3/W4: backhaul and door calls pass the owner the door checked into backhaulTo; the §6.5 holder follow (once, GET/HEAD or an unswitched upgrade, no body) and one connect-failure fallback dial only boxes in the holder region's view (same Region/Placement/DataBucket, HomeEligible, fresh) for that owner. Holder name comes only from the TLS-verified signed hop answer; app-set X-Carlos-Holder stays stripped. Routing only; the receiving box still re-checks the lease. No new read site.;rev3=census-ruling-edge-page-cache-1;basis=attaches an in-memory page mark holder to every request to an instance route (the +registry:Kind check of up.route.Kind), wraps the hold and upgrade branches in pageDiagnostics, asks servePage after the plan throttle (a hit answered from the page index over the asset store), keeps an opted-in instance out of the LRU (pagesOptedIn), wraps the response in the page writer, and wraps the proxy's writer in assetInformationalScrub on the remaining arms; the page reads are in the new pagecache.go units file:ReadAll@16764,registry:Account@8267,registry:App@23657,registry:App@8291,registry:ClaimStamp@8321,registry:Gate@15738,registry:Gate@28048,registry:Gate@28108,registry:Gate@28166,registry:Host@28151,registry:Host@8498,registry:ImportGate@36464,registry:Incarnation@8356,registry:Kind@20691,registry:Kind@22519,registry:Kind@25957,registry:Kind@36406,registry:Kind@36435,registry:ServingSeq@8390,whole:Route@15633,whole:Route@15744,whole:Route@18561,whole:Route@19345,whole:Route@19803,whole:Route@19995,whole:Route@20694,whole:Route@22522,whole:Route@23583,whole:Route@23649,whole:Route@23660,whole:Route@23913,whole:Route@24008,whole:Route@24084,whole:Route@24128,whole:Route@24430,whole:Route@24460,whole:Route@25960,whole:Route@26245,whole:Route@28051,whole:Route@28111,whole:Route@28154,whole:Route@28169,whole:Route@29196,whole:Route@31484,whole:Route@36409,whole:Route@36438,whole:Route@36467,whole:Route@36499,whole:Route@38933,whole:Route@6341,whole:Route@6440,whole:Route@6535,whole:Route@8270,whole:Route@8294,whole:Route@8324,whole:Route@8359,whole:Route@8393,whole:Route@8501 d0d929f6d6c5c8635fda6599f25a909902973b94da8ae09d6c2dae4e20c7c2a9
@legacy e63609ae805e6b6319bee42c4602c6a607b24a3ba267d1a0f5e4b8a469edf64a internal/edge/purge_header.go Edge.applyPurgeHeader legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=takes the asked Host, takes one route table snapshot (e.current()) for the whole declaration, resolves owners through resolvePurgeOwnersIn and, with no Carlos-Purge-Host, the page hosts through pageHostsFor (the +whole:Route site); then applyPurgeTargets; in-memory only registry:Host@1448,whole:Route@1303,whole:Route@1408 7edbfc8b501f83fc667bca48743a2d309d457dae00ee1dedbee8166412ba2c42
@legacy 76650614ed534133d89393ef7cd778f27662e2a73aa760940642e7aa958042dd internal/edge/purge_header.go Edge.resolvePurgeHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=now a wrapper: resolvePurgeOwnersIn(e.current(), rt, declared) and the hosts of its answer; its read sites moved verbatim into resolvePurgeOwnersIn, so they show as removed here; no read added whole:Route@140 d8bbc036cf3b5959e4af7ff4f38de9d30f3f32c6f0dd29ba10bc515ba177c2ab
+cli.go runInstances legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added file:Open@1471,registry:App@3344,registry:Backing@3426,registry:Channel@3359,registry:Environment@3370,registry:Hibernate@3235,registry:Host@3336,registry:Kind@3351,registry:Replication@3411,registry:Status@3385,registry:Unit@3437,registry:Version@3395,whole:Route@3209 d2f6ea17746702eb637fb0d72c215754739a68118338cb001c7b437436e84794
internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.;rev3=census-ruling-edge-page-cache-1;basis=the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added registry:Socket@8549,registry:Socket@8710,registry:Stateless@10044,registry:Stateless@10792,whole:Route@10035,whole:Route@10090,whole:Route@10794,whole:Route@1762,whole:Route@3277,whole:Route@3404,whole:Route@3461,whole:Route@466,whole:Route@6811,whole:Route@8502,whole:Route@8551,whole:Route@8712 9d91d8d7ad4bd5bb348efd5391153a548d953eb52dbffe41e8cb05cb2fed3ff7
internal/activator/backend_exec.go ExecBackend.Start legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes through rootfsGates and startRootfsFromLive, never the layout switch; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), refusing an HA-acquired host whose row is no longer contained; otherwise unchanged; only adds a refusal;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1 and Task 7: ctx to the rootfs gates; startRootfsFromLive now returns the staged identity (the version is passed on); a row with a runtime other than rootfs-v1 is refused before the binary path (refuseUnknownRuntime); adds a refusal only;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.;rev3=census-ruling-edge-page-cache-1;basis=passes an empty build to startChildAt's new build argument (the live link, whose build is not pinned); read sites unchanged (14); no read added registry:Host@784,registry:Runtime@274,registry:Socket@441,registry:Socket@656,registry:Socket@838,whole:Route@123,whole:Route@159,whole:Route@227,whole:Route@346,whole:Route@437,whole:Route@521,whole:Route@581,whole:Route@652,whole:Route@834 13b1fedf91936839ddad5ce101680e5e757d46b8c3733e58bc6a3a4f36e7a4bb
internal/activator/backend_exec.go ExecBackend.spawnUnitFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added registry:Host@1185,registry:Host@1662,registry:Host@1767,registry:Host@1898,registry:Host@2355,registry:Host@3314,registry:Host@4310,registry:Host@4896,registry:Host@5148,registry:Host@5368,registry:Host@5553,registry:Host@5948,registry:Host@6229,registry:Host@6273,registry:Host@6431,registry:Host@6452,registry:Host@7450,registry:Host@7544,registry:Stateless@1712,whole:Route@1349,whole:Route@1591,whole:Route@1752,whole:Route@308,whole:Route@3550,whole:Route@5201,whole:Route@6364,whole:Route@6531,whole:Route@872,whole:Route@970 b3a36696d9117631e81ebeec305369c6d10148877a4ebbaadbfb21937f67b5d6
@@ -126,6 +128,7 @@ internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1
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;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged.;rev3=census-ruling-region-ha-p3b;basis=Resolve local aliases/catch-alls with cached peer name ownership before serving. Add registry Account/App/ClaimStamp/Host/Incarnation/ServingSeq and six whole Route references for NameClaim; inputs are agent registry rows/edges publications used by unprivileged edge, not root permits. Closed owners retain names and return 503; aware remote owner cannot fall through on missing transport, while legacy hop/door behavior remains. Merge 45cebde4 retains authenticated replica probes after local admission and before ordinary name resolution; probe authentication still requires the tunnel context.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1901 enters the protected demo path before ordinary exits; :2012-2015 rechecks the selected marked Route after lookup. Added whole Route use routes demos through serving checks, counters and policy; no new registry query or file open in this unit.;rev3=census-ruling-demo-api-site-route;basis=Reserve the configured site API namespace after hop verification and control-header scrubbing, before ordinary static, cache, billing and tenant dispatch. Validate hop field shape and delegate only allowlisted operations to the dedicated console path with verified client attribution and console admission. The alias helper enables HTTP/1.1 full duplex so an early console refusal does not wait for upload EOF. Existing 56 read sites unchanged; no new registry, bucket or file read.;rev3=census-ruling-region-ha-g2-fixes;basis=Consult HA ingress after region admission and before miss/alias backhaul; no new direct read; routing-only metadata does not create an upstream.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3/W4: backhaul and door calls pass the owner the door checked into backhaulTo; the §6.5 holder follow (once, GET/HEAD or an unswitched upgrade, no body) and one connect-failure fallback dial only boxes in the holder region's view (same Region/Placement/DataBucket, HomeEligible, fresh) for that owner. Holder name comes only from the TLS-verified signed hop answer; app-set X-Carlos-Holder stays stripped. Routing only; the receiving box still re-checks the lease. No new read site.;rev3=census-ruling-edge-page-cache-1;basis=attaches an in-memory page mark holder to every request to an instance route (the +registry:Kind check of up.route.Kind), wraps the hold and upgrade branches in pageDiagnostics, asks servePage after the plan throttle (a hit answered from the page index over the asset store), keeps an opted-in instance out of the LRU (pagesOptedIn), wraps the response in the page writer, and wraps the proxy's writer in assetInformationalScrub on the remaining arms; the page reads are in the new pagecache.go units file:ReadAll@16764,registry:Account@8267,registry:App@23657,registry:App@8291,registry:ClaimStamp@8321,registry:Gate@15738,registry:Gate@28048,registry:Gate@28108,registry:Gate@28166,registry:Host@28151,registry:Host@8498,registry:ImportGate@36464,registry:Incarnation@8356,registry:Kind@20691,registry:Kind@22519,registry:Kind@25957,registry:Kind@36406,registry:Kind@36435,registry:ServingSeq@8390,whole:Route@15633,whole:Route@15744,whole:Route@18561,whole:Route@19345,whole:Route@19803,whole:Route@19995,whole:Route@20694,whole:Route@22522,whole:Route@23583,whole:Route@23649,whole:Route@23660,whole:Route@23913,whole:Route@24008,whole:Route@24084,whole:Route@24128,whole:Route@24430,whole:Route@24460,whole:Route@25960,whole:Route@26245,whole:Route@28051,whole:Route@28111,whole:Route@28154,whole:Route@28169,whole:Route@29196,whole:Route@31484,whole:Route@36409,whole:Route@36438,whole:Route@36467,whole:Route@36499,whole:Route@38933,whole:Route@6341,whole:Route@6440,whole:Route@6535,whole:Route@8270,whole:Route@8294,whole:Route@8324,whole:Route@8359,whole:Route@8393,whole:Route@8501 d0d929f6d6c5c8635fda6599f25a909902973b94da8ae09d6c2dae4e20c7c2a9
internal/edge/purge_header.go Edge.applyPurgeHeader legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=takes the asked Host, takes one route table snapshot (e.current()) for the whole declaration, resolves owners through resolvePurgeOwnersIn and, with no Carlos-Purge-Host, the page hosts through pageHostsFor (the +whole:Route site); then applyPurgeTargets; in-memory only registry:Host@1448,whole:Route@1303,whole:Route@1408 7edbfc8b501f83fc667bca48743a2d309d457dae00ee1dedbee8166412ba2c42
internal/edge/purge_header.go Edge.resolvePurgeHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=now a wrapper: resolvePurgeOwnersIn(e.current(), rt, declared) and the hosts of its answer; its read sites moved verbatim into resolvePurgeOwnersIn, so they show as removed here; no read added whole:Route@140 d8bbc036cf3b5959e4af7ff4f38de9d30f3f32c6f0dd29ba10bc515ba177c2ab
+@coverage . ef6acb79e68293c6388cffbacbfda3a3a0f14aa5e2507a56db1f36983bb93820
@coverage internal/activator d2142e996fae354fa88e0a56427fdf7ba5a3a5daa026f1a6b0787f3b78054d2a
@coverage internal/assetcache 961aebe547eac250194e91f8bd1d819977b7f6163ccb8a31725d93573f2a6c54
@coverage internal/edge 38bf41ebf642708317658758dea8da4cd5b6da2232aa4e8d2aa03d64067f0a9c