carlos / platform Public

census: re-propose held-requests after Task 8

The internal/host envelope is re-pinned for the fence path move
(/var/lib/carlos-group-fence); the fenceLocation.read claim names the
new path. The cumulative branch claims are unchanged otherwise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 736908c8a6db3dc3df625fbb4c7ccdfa8749285e parent 9ec7c79
3 files changed, +5 −5
  • docs/superpowers/notes/census-proposal-region-ha-held-build.md +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv +3 −3

CI failed — run details

Intent

Attributed to this commit: 12.1 g CO₂e (1,578,445 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-held-build, 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-region-ha-held-build.md b/docs/superpowers/notes/census-proposal-region-ha-held-build.md
index aaa7fdf39..abd35cdc9 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-held-build.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-held-build.md
@@ -95,6 +95,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/edge/edge.go:Edge.ServeHTTP`: +registry:HA ×2, +registry:Host, +whole:Route ×4; keeps legacy, task accepted-legacy
- reads `internal/edge/forwardha.go:Edge.forwardHAAndNote`: -registry:Host ×3, +whole:Route; keeps legacy, task accepted-legacy
-Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `deec6fc8b0bd5d8c7569a05f840177e05add142ed2eb479ba65400b8c3b0c6b1`.
+Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `befd71e714214c21d00daa60822140c98905ecf2f03a2cdc747ddf5052a40b54`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 9efada635..cc11ac1af 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-region-ha-held-build.tsv deec6fc8b0bd5d8c7569a05f840177e05add142ed2eb479ba65400b8c3b0c6b1
+plan14-root-reads-region-ha-held-build.tsv befd71e714214c21d00daa60822140c98905ecf2f03a2cdc747ddf5052a40b54
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
index b7b554e57..3da49aec2 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv
@@ -52,7 +52,7 @@
@legacy 0839e28f113acda04839f0e9f581c961270841cf6370f0a37c26debb7cd08055 internal/host/hadrain_socket_linux.go serveHADrain legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: agent-side: Lstat and open of its own 0700 socket directory under /run/carlos for a flock, as serveReplicaHealth does; no tenant or root file read file:Lstat@181,file:Open@433 a9e2bda502b2845a65824570d9afe4d2bdd18f4bda7c76e9db8e52a1861c2627
@legacy e6bb200428a5904ba23eb85c836a4c117a34cc2fb2ed1609b2dbc3f70d4380d3 internal/host/hadrainfence_linux.go fenceLocation.install legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: root verb: writes fence.json (0644) by O_EXCL temp file, fsync and RENAME_NOREPLACE in the fence directory; reads the existing fence first and refuses another transaction's file:Openat2@703,file:Read@568 001cace56ac0d4129f8101729f0a5b80896a549db216a79cabd4728147dc85bb
@legacy 995b265d59830c9a3e8ea7637811e853343fe43db9e60133a504d000d7c74e51 internal/host/hadrainfence_linux.go fenceLocation.openDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: root verb: opens (and creates 0755) the fence directory under protected ancestors by descriptor, checking owner and mode file:Fstat@1049,file:Openat2@509,file:Openat2@777 59ec2b075300f3ec504c2b29a3760c40cb235ef4c929caabe7ed24c38d730d67
-@legacy a22356cc58b0224ab6f0332c795902b9ebf3c4a7d8f7aeeeb2298e2134003e50 internal/host/hadrainfence_linux.go fenceLocation.read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the start fence read: /run/carlos-group-fence and its fence.json by descriptor with RESOLVE_NO_SYMLINKS/BENEATH, owner root, not group/other-writable, one link, at most 1 KiB, strict JSON; anything unexpected fences (fail closed) file:Fstat@368,file:Fstat@874,file:Openat2@518,file:Openat2@55,file:ReadAll@1079 2d265e900de23ff7a30afd5f1896313a964ca106cff3957afc162788123265e9
+@legacy f545a3c899e3d5007fd8e3030491bd5b572076011fc2ec6c86777e12a86355e5 internal/host/hadrainfence_linux.go fenceLocation.read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (path moved to persistent storage in Task 8): the start fence read: /var/lib/carlos-group-fence and its fence.json by descriptor with RESOLVE_NO_SYMLINKS/BENEATH, owner root, not group/other-writable, one link, at most 1 KiB, strict JSON; anything unexpected fences (fail closed) file:Fstat@368,file:Fstat@874,file:Openat2@518,file:Openat2@55,file:ReadAll@1079 2d265e900de23ff7a30afd5f1896313a964ca106cff3957afc162788123265e9
@legacy d93a397d2af9802b2061bd86184eac3aa59c4a6c90ceea039aa73c3a7e0c63e2 internal/host/hadrainfence_linux.go openFenceParent legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: opens the fence directory's ancestors by descriptor from root with RESOLVE_NO_SYMLINKS, each owned by root (or the test owner) and not group/other-writable file:Fstat@316,file:Openat2@677,file:Openat2@77 e4d2e67d6e9fa6c7ead3f2e8a82bb7458b71d76e90004c84321cc5cda6c996be
@legacy fdb6f74fd32bf7870e3daea024f1de849d6533423812b8b694593728959032a3 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-region-ha-held-build;basis=first branch: a request for the reserved control paths /.carlos/ha-drain and /.carlos/ha-take goes to serveHAControl and returns (refused unless a signed ask); no request on those paths reaches a route, a forward or an app; no read added here. region HA held-requests Task 2: X-Carlos-Replayable is read from verified hops only and deleted from every request; just before frontForwardHA, moveGate runs for an HA hibernating route (route HA, Host and the whole Route passed in memory) and can only hold, refuse with an existing answer or front-forward to the confirmed holder; ReleaseMoveTicket before serveHeld; no store or filesystem read added; region HA held-requests Task 5: after the HA control-path branch, every request is counted by the connection drain (conns.track: a cancellable request context, and Connection: close only while draining); memory only; no read added; Task 5 fix 1: after the drain's final barrier a new request is refused at once through handoverExit with the existing answerHolderUnreachable, never forwarded; the tracked request also carries its connection (from ConnContext) so the drain can close it at its bound; memory only; no read added file:ReadAll@18487,registry:Account@9383,registry:App@24644,registry:App@9407,registry:ClaimStamp@9437,registry:Gate@17461,registry:Gate@29035,registry:Gate@29095,registry:Gate@29153,registry:HA@13207,registry:HA@13538,registry:Host@13577,registry:Host@29138,registry:Host@9614,registry:ImportGate@36722,registry:Incarnation@9472,registry:Kind@23506,registry:Kind@26944,registry:Kind@36664,registry:Kind@36693,registry:ServingSeq@9506,whole:Route@13210,whole:Route@13304,whole:Route@13541,whole:Route@13580,whole:Route@17356,whole:Route@17467,whole:Route@20284,whole:Route@21068,whole:Route@21526,whole:Route@21718,whole:Route@23509,whole:Route@24570,whole:Route@24636,whole:Route@24647,whole:Route@24900,whole:Route@24995,whole:Route@25071,whole:Route@25115,whole:Route@25417,whole:Route@25447,whole:Route@26947,whole:Route@27232,whole:Route@29038,whole:Route@29098,whole:Route@29141,whole:Route@29156,whole:Route@30258,whole:Route@32321,whole:Route@36667,whole:Route@36696,whole:Route@36725,whole:Route@36757,whole:Route@38605,whole:Route@7457,whole:Route@7556,whole:Route@7651,whole:Route@9386,whole:Route@9410,whole:Route@9440,whole:Route@9475,whole:Route@9509,whole:Route@9617 426b8fcf06756e4c9620d715f916c2cf6dbd884305657ea60995b862def2ca8b
@legacy f78036fdc1d47e9f51d0ed7755280e704b2bd0d8bf74756880d618eeaaef8bb3 internal/edge/forwardha.go Edge.forwardHAAndNote legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New extracted forward helper reports dial/silent/final-header outcomes against supplied route Host; existing signed hop only, no new file/store read or request replay.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: now a thin wrapper over forwardHAFollow (its old body is forwardHANoted); a handover answer naming this box is reported as ForwardNotInView so callers give their existing answer; passes the route in memory; no read added whole:Route@196 826fab956712ec3348e9aac13898400219dcc948e768b638b457d563ce51949b
@@ -113,7 +113,7 @@ internal/host/hadrain_socket.go drainDriver.handler legacy accepted-legacy accep
internal/host/hadrain_socket_linux.go serveHADrain legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: agent-side: Lstat and open of its own 0700 socket directory under /run/carlos for a flock, as serveReplicaHealth does; no tenant or root file read file:Lstat@181,file:Open@433 a9e2bda502b2845a65824570d9afe4d2bdd18f4bda7c76e9db8e52a1861c2627
internal/host/hadrainfence_linux.go fenceLocation.install legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: root verb: writes fence.json (0644) by O_EXCL temp file, fsync and RENAME_NOREPLACE in the fence directory; reads the existing fence first and refuses another transaction's file:Openat2@703,file:Read@568 001cace56ac0d4129f8101729f0a5b80896a549db216a79cabd4728147dc85bb
internal/host/hadrainfence_linux.go fenceLocation.openDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: root verb: opens (and creates 0755) the fence directory under protected ancestors by descriptor, checking owner and mode file:Fstat@1049,file:Openat2@509,file:Openat2@777 59ec2b075300f3ec504c2b29a3760c40cb235ef4c929caabe7ed24c38d730d67
-internal/host/hadrainfence_linux.go fenceLocation.read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the start fence read: /run/carlos-group-fence and its fence.json by descriptor with RESOLVE_NO_SYMLINKS/BENEATH, owner root, not group/other-writable, one link, at most 1 KiB, strict JSON; anything unexpected fences (fail closed) file:Fstat@368,file:Fstat@874,file:Openat2@518,file:Openat2@55,file:ReadAll@1079 2d265e900de23ff7a30afd5f1896313a964ca106cff3957afc162788123265e9
+internal/host/hadrainfence_linux.go fenceLocation.read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (path moved to persistent storage in Task 8): the start fence read: /var/lib/carlos-group-fence and its fence.json by descriptor with RESOLVE_NO_SYMLINKS/BENEATH, owner root, not group/other-writable, one link, at most 1 KiB, strict JSON; anything unexpected fences (fail closed) file:Fstat@368,file:Fstat@874,file:Openat2@518,file:Openat2@55,file:ReadAll@1079 2d265e900de23ff7a30afd5f1896313a964ca106cff3957afc162788123265e9
internal/host/hadrainfence_linux.go openFenceParent legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: opens the fence directory's ancestors by descriptor from root with RESOLVE_NO_SYMLINKS, each owned by root (or the test owner) and not group/other-writable file:Fstat@316,file:Openat2@677,file:Openat2@77 e4d2e67d6e9fa6c7ead3f2e8a82bb7458b71d76e90004c84321cc5cda6c996be
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-region-ha-held-build;basis=first branch: a request for the reserved control paths /.carlos/ha-drain and /.carlos/ha-take goes to serveHAControl and returns (refused unless a signed ask); no request on those paths reaches a route, a forward or an app; no read added here. region HA held-requests Task 2: X-Carlos-Replayable is read from verified hops only and deleted from every request; just before frontForwardHA, moveGate runs for an HA hibernating route (route HA, Host and the whole Route passed in memory) and can only hold, refuse with an existing answer or front-forward to the confirmed holder; ReleaseMoveTicket before serveHeld; no store or filesystem read added; region HA held-requests Task 5: after the HA control-path branch, every request is counted by the connection drain (conns.track: a cancellable request context, and Connection: close only while draining); memory only; no read added; Task 5 fix 1: after the drain's final barrier a new request is refused at once through handoverExit with the existing answerHolderUnreachable, never forwarded; the tracked request also carries its connection (from ConnContext) so the drain can close it at its bound; memory only; no read added file:ReadAll@18487,registry:Account@9383,registry:App@24644,registry:App@9407,registry:ClaimStamp@9437,registry:Gate@17461,registry:Gate@29035,registry:Gate@29095,registry:Gate@29153,registry:HA@13207,registry:HA@13538,registry:Host@13577,registry:Host@29138,registry:Host@9614,registry:ImportGate@36722,registry:Incarnation@9472,registry:Kind@23506,registry:Kind@26944,registry:Kind@36664,registry:Kind@36693,registry:ServingSeq@9506,whole:Route@13210,whole:Route@13304,whole:Route@13541,whole:Route@13580,whole:Route@17356,whole:Route@17467,whole:Route@20284,whole:Route@21068,whole:Route@21526,whole:Route@21718,whole:Route@23509,whole:Route@24570,whole:Route@24636,whole:Route@24647,whole:Route@24900,whole:Route@24995,whole:Route@25071,whole:Route@25115,whole:Route@25417,whole:Route@25447,whole:Route@26947,whole:Route@27232,whole:Route@29038,whole:Route@29098,whole:Route@29141,whole:Route@29156,whole:Route@30258,whole:Route@32321,whole:Route@36667,whole:Route@36696,whole:Route@36725,whole:Route@36757,whole:Route@38605,whole:Route@7457,whole:Route@7556,whole:Route@7651,whole:Route@9386,whole:Route@9410,whole:Route@9440,whole:Route@9475,whole:Route@9509,whole:Route@9617 426b8fcf06756e4c9620d715f916c2cf6dbd884305657ea60995b862def2ca8b
internal/edge/forwardha.go Edge.forwardHAAndNote legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New extracted forward helper reports dial/silent/final-header outcomes against supplied route Host; existing signed hop only, no new file/store read or request replay.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: now a thin wrapper over forwardHAFollow (its old body is forwardHANoted); a handover answer naming this box is reported as ForwardNotInView so callers give their existing answer; passes the route in memory; no read added whole:Route@196 826fab956712ec3348e9aac13898400219dcc948e768b638b457d563ce51949b
@@ -125,5 +125,5 @@ internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-l
@coverage infra/modules/region-host/tests d8fdb8790155ad2a047933252716ac59510aa0918ef4176f3a86529c0133c50b
@coverage internal/activator d9dbe98d462846747488fb6ded61ed1c1e201b58bd7a9260ef389b1d67d55301
@coverage internal/edge 20ed897b7834583a3230bb3aa2580fadc5d0a6ac5f708e47b1fa553b2eb7ca14
-@coverage internal/host c4fdac6d6b53726a4da32fd8996df6377c40c3c16871cce3503f6e6f57569509
+@coverage internal/host 6dfd0297faf67351565c328ad01a1344a53cdc631cedb0c2ec8072c09537173b
@coverage internal/lease b71e22ea0a4a9d894dfaf39f5012494d79ba2e5af10c80f98e0a6f11d28f7d0c