carlos / platform Public

census: card and overlay for held-requests Task 3

make census-propose NAME=region-ha-held-build, re-run with the whole
branch's claims plus Task 3's: the attempt counter and whole-copy replay
in the front forward (forwardHAFollow, forwardHANoted, forwardHAObserved,
forwardHAStreaming, handoverInRegion, handoverAuthority) and the bounded
drain in moveGate. Awaiting the cross-family review on #280.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev bf69eeb0d29e98a7a4f0436acae2bcb354e88f11 parent fa50837
3 files changed, +33 −8
  • docs/superpowers/notes/census-proposal-region-ha-held-build.md +11 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv +21 −5

Intent

Attributed to this commit: 13.8 g CO₂e (1,737,610 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 40ccdd0ed..b111ed588 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-held-build.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-held-build.md
@@ -1,6 +1,6 @@
# Census approval: region-ha-held-build
-Ruling `census-ruling-region-ha-held-build`. The independent reviewer approves or rejects every change below, 12 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-region-ha-held-build`. The independent reviewer approves or rejects every change below, 19 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -12,6 +12,7 @@ Ruling `census-ruling-region-ha-held-build`. The independent reviewer approves o
| `internal/activator/haleaseloss.go` `Service.latchHALossLocked` | body | unchanged (4) | region HA held-requests Task 2: after latching a loss, pokeMoveLocked wakes that host's held requests so they get the F-A answer; in memory only; no read added |
| `internal/host/agent.go` `runAgent` | body | unchanged (9) | wires the drain state: svc.SetDrainingSource(boxDrain.IsDraining), svc.SetPeerDrainView(e.PeerDraining), e.SetPeerDrainedHook(svc.DropHoldersNaming); in-memory only; no read added |
| `internal/host/edgesfile.go` `edgesFileWriteClaims` | body | unchanged (67) | writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added |
+| `internal/edge/forwardha.go` `Edge.frontForwardHA` | sites | +whole:Route | held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added |
| `internal/edge/haingress.go` `Edge.routeHAIngress` | sites | +whole:Route | region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added |
Envelopes re-pinned: `internal/activator`, `internal/edge`, `internal/host`.
@@ -28,6 +29,7 @@ Recorded dispositions, which each change must still satisfy:
- `internal/activator/haleaseloss.go` `Service.latchHALossLocked`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Retain loss state and close refusal waiters for the exact HA entry; read cached Route.HA and route value, no external read.
- `internal/host/agent.go` `runAgent`: authority, task B,C,D,F. Basis: rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. Fix round 1 Q20: publish Edge.ReplicaSnapshots as a separate in-memory status source, leaving the tenant-visible Upstreams source unchanged. No new external reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Load root-written group marker/configuration, configure signed boot binding and agent receipt completer, wire cancellable admission into departure work and expose cached GroupReaderSnapshot. New indirect boot reads use protected root files; agent-owned receipt controls duplicate initial completion only, never root restart permission. Same five direct sites. Merge 45cebde4 retains the replica health socket lifecycle and setReplicaSource beside GroupReaderSnapshot; no extra read beyond main.;rev3=census-ruling-agent-start-demo-2;basis=agent.go:309-329 opens demo-traffic.db beside the operator-configured registry when a demo domain exists, closes it at shutdown and wires drain-before-purge; :1010-1019 shares the worker and write gate; :1164-1177 installs the fleet identity and closed-until-worker serving callback. One added whole Route pass; the new indirect filesystem/SQL reads are claimed in openDemoTraffic and worker/store units. No request chooses the database pathname.;rev3=census-ruling-region-ha-p1b3b-s;basis=Wire the service duty view to authoritative cached sidecar manifest placement in LifetimeIndex and the edge sidecar projection; missing policy denies duty. Existing instance duty wiring remains.;rev3=census-ruling-region-ha-g2-t3;basis=T3a: wire eb.Page = PageOperator beside OwnerTerminated before departures arm, so suspect-holder pages work if departure setup fails; no new read; existing nine sites and authority unchanged; pages through the existing sink. T3b: publish the same backend through an atomic pointer for the metrics observer, and clear it on return; no new external read or authority.;rev3=census-ruling-agent-start-demo-3;basis=Wire the claim activator and root snapshot client into the demo worker; pass moved readiness to status reporting. Census read-site delta: unchanged (9).;rev3=census-ruling-region-ha-g2-fixes;basis=Wire local pool evidence, live withdrawal activator, startup ingress scan and alias publication, and edge lookup; no new direct sites; new indirect record/claim reads use existing store/judge paths described in ingress helpers.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: starts the existing record-view backstop loop with a departure-inventory listener (non-blocking, coalesced signal) even without an armed RecordView; it requests the existing full pass (backstopFullDue) there. Same nine read sites; no new read or authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Derive one signal-time deadline with a 90-second budget; cap departure stop and startup/seed/service shutdown joins by it. No read added.;rev3=census-ruling-static-sweep-periodic;basis=in the edge-ready callback, publishes e.LargestStaticTree in staticTreeSource for the disk alert line (diskAlertFrac in the metrics loop); in-memory wiring only, no read added; read sites unchanged (9)
- `internal/host/edgesfile.go` `edgesFileWriteClaims`: authority, task F,J1. Basis: rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.
+- `internal/edge/forwardha.go` `Edge.frontForwardHA`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.
- `internal/edge/haingress.go` `Edge.routeHAIngress`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.
New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
@@ -40,11 +42,18 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/handover.go:Service.readMoveHolder`: reads +whole:Route ×3; written legacy, accepted-legacy, frozen
- new `internal/activator/handover.go:Service.waitMove`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/handover.go:sameMoveLifetime`: reads +registry:Account ×2, +registry:App ×2, +registry:Host ×2, +registry:Incarnation ×2, +registry:ServingSeq ×2; written legacy, accepted-legacy, frozen
+- new `internal/edge/backhaul_retry.go:homeMap.handoverAuthority`: reads +registry:Account, +registry:App, +registry:Host ×2; written legacy, accepted-legacy, frozen
+- new `internal/edge/forwardha.go:Edge.forwardHAFollow`: reads +whole:Route ×6; written legacy, accepted-legacy, frozen
+- new `internal/edge/forwardha.go:Edge.forwardHANoted`: reads +registry:Host ×3; written legacy, accepted-legacy, frozen
+- new `internal/edge/forwardha.go:Edge.forwardHAObserved`: reads +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/forwardha.go:Edge.forwardHAStreaming`: reads +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/edge/forwardha.go:Edge.handoverInRegion`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/edge/hadrain.go:Edge.serveHAControl`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/edge/handover.go:Edge.moveGate`: reads +registry:HA, +registry:Host ×2, +whole:Route ×4; written legacy, accepted-legacy, frozen
- new `internal/edge/handover.go:Edge.moveSnapshot`: reads +whole:Route; written legacy, accepted-legacy, frozen
- 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` → `1da30c0a19bd534cec3e30232862bcff28b416a63319776f09cb0d4228ae05e2`.
+Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `054a05cf8128ec5f1c99bc65deda2fb0048ba0a5444a667a4bb30ba923ea296f`.
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 df72174bb..5c202d56f 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 1da30c0a19bd534cec3e30232862bcff28b416a63319776f09cb0d4228ae05e2
+plan14-root-reads-region-ha-held-build.tsv 054a05cf8128ec5f1c99bc65deda2fb0048ba0a5444a667a4bb30ba923ea296f
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 3d565fcdf..6f8d464c4 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
@@ -1,6 +1,6 @@
# Census overlay region-ha-held-build, written by census-propose (#369). census-ruling-region-ha-held-build, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-held-build.md.
-# 8 body, 1 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 12 new dispositions: 1 reads re-frozen at their disposition with the claim, 11 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 8 body, 2 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 19 new dispositions: 2 reads re-frozen at their disposition with the claim, 17 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy cf55ebdbd229c4a4ed2533fa4c184f700dbfc35d1ecc70b28b2bc80e67e8e275 internal/activator/activator.go Service.serve legacy accepted-legacy accepted-legacy;rev3=census-ruling-hotfix281;basis=Startup repeats the existing Kind and Hibernate checks; error logging moved to serveWakeError. A request held through startup re-reads its own route's Socket and Addr and can only refuse (wake-timeout 503) when recovery moved them; agent-side, deny-only, no root decision.;rev3=census-ruling-edge-request-records;basis=passes the member request r to begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance is the activator's; same deploy-safety for binary rows;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a verified HA hop this box cannot serve gets the holder diagnostic; two new whole:Route sites pass the route to answerForwarded/noteNoHolder; no new kind of read;rev3=census-ruling-region-ha-g2-fixes;basis=Refuse latched HA lease loss before startup wait or proxy accounting, and schedule bounded recovery; reads supplied route, no new external read here.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: after begin succeeds, edge.ReleaseMoveTicket(r) ends the request's in-memory admission ticket; on the sidecar path the same after BeginSidecarRequest; no read added registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Socket@1102,registry:Socket@1118,whole:Route@1081,whole:Route@1190,whole:Route@1324,whole:Route@198,whole:Route@261,whole:Route@2873,whole:Route@2974,whole:Route@298,whole:Route@3788,whole:Route@3851,whole:Route@526 aa0786cb4f635aa33ea7c0ef884d82d9d43c0de1a47bc2c441e5c83fa93578be
@legacy 4ce180eb76cb536e1b2ad70762386957efbe1be9c002f0e4a1537f87d6f16944 internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read HA classification/lifetime from the existing backend and route host, HA, replica, tunnel, import gate and status; read advisory DutyStore state and cached home projection outside a.mu. No new filesystem or bucket path. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Apply LocalEligible before legacy/HA duty shortcuts: HA and Provisioned routes require pool membership, operator-placed non-HA routes keep their prior behavior; no new direct I/O.;rev3=census-ruling-region-ha-held-build;basis=LocalDenied also when IsDraining() (this box in the planned-handover drain state); only narrows duty and adoption starts; no read added registry:Basis@1349,registry:HA@326,registry:HolderEpoch@1584,registry:HolderIID@1426,registry:HolderIID@1628,registry:HolderRef@1362,registry:HolderRef@1412,registry:HolderRef@1614,registry:Host@122,registry:Host@1280,registry:Host@592,registry:Host@658,registry:ImportGate@891,registry:NotBefore@1654,registry:NotBefore@1710,registry:Replica@858,registry:Status@915,registry:Status@934,registry:Tunnel@872,registry:ViewKey@1457,whole:DutyState@1327,whole:DutyState@1738,whole:Route@1086,whole:Route@152,whole:Route@231,whole:Route@298,whole:Route@394,whole:Route@686 bd5eb406a50f93e2fe8d5db0044d77a727b0d614dc5186237dd2ac30f192c8c1
@legacy 6a044da8b179661c9a4889dcbac79d34c21e0b2c0b9021f9c717526d04b366f1 internal/activator/haforward.go Service.NoteForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Ignore canceled forwards; classify connected-holder silence for bounded revalidation and refuse stale local-entry shortcuts by pool; reads cached route under the existing locks, no external read.;rev3=census-ruling-region-ha-held-build;basis=returns early, changing nothing, for a ForwardSilent outcome from a peer the edge fold shows draining (spec 25.5 Silence); all other outcomes unchanged; no read added whole:Route@1242,whole:Route@1253,whole:Route@1325 6063c04005c985b5976f9da2de4efb7fb5fbb1a82f1c5cbc189e451b1003a1bc
@@ -14,10 +14,18 @@
@legacy e75960a04db9e7ce784bcc27f0b85a1ad1831758c07987c84febbf652e8be126 internal/activator/handover.go Service.readMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: ConfirmMoveHolder's one lock read (existing readHolderView, bounded by holderReadTimeout) and its reading through otherHolder and DecidePlacement with LocalDenied; reads only; authorizes nothing whole:Route@409,whole:Route@963,whole:Route@996 3f59d6e470312678682fced857969e8e4aec359fd622d32ac081dac6570f74da
@legacy 1ee4ec42b4c7b11bf062810412ad7ecc3920737b469ada236b8776bd6104b97f internal/activator/handover.go Service.waitMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: a held request's bounded wait on in-memory state; no read whole:Route@308,whole:Route@549 51784ee39903fe8d6685b4c376f2065a3fa76998b881020e3798755478c117e4
@legacy 1dffd7b92663ee5f3675ba30ee4063679e8561f16907d505c244e3271f350bb7 internal/activator/handover.go sameMoveLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (fix round 1): compares two in-memory routes' Host, Account (EffectiveAccount), App, Incarnation and ServingSeq; reads nothing else; only narrows which requests a move applies to registry:Account@114,registry:Account@158,registry:App@175,registry:App@188,registry:Host@63,registry:Host@77,registry:Incarnation@198,registry:Incarnation@219,registry:ServingSeq@237,registry:ServingSeq@257 1c996c6cdce819f0196684ddf21da2860321518e467193571f6f996a8207c87f
+@legacy 970d7a1336a4489c044e157445c64ff3432b38642a03b664a22a5167a4591ac5 internal/edge/backhaul_retry.go homeMap.handoverAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): name authority for a handover answer's ref on an in-region front forward; reads the supplied route's Host, Account and App and the in-memory edges fold snapshot (resolveHomeName over the already-folded claims); no store or filesystem read; only narrows which box a request may be sent to a second time registry:Account@485,registry:App@509,registry:Host@166,registry:Host@435 aa9a4bf7fefc470f931ed8369733708d20a9e4f4edeccf6833c3f1e1f3ff0472
+@legacy e74193b4cfcca6f473039efe9163209b7afd1cf8847f7c3d94b25a5e0fa99247 internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@651,whole:Route@655,whole:Route@728 458e3eaa39975df77b221aaee459c00ba4e2791a18b2f43403a697b9bda2aad9
+@legacy 3765db605d5322898b539edac85a6f80455331d131441e589a205b9d940fc2f0 internal/edge/forwardha.go Edge.forwardHANoted legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new name for the former body of forwardHAAndNote (held-requests Task 3), unchanged but for passing the attempt state on; the same route Host reads for NoteForward; no read added registry:Host@312,registry:Host@611,registry:Host@692 35c1f30b298b9d1c179d6aa4936cacebd90ec12a31d3204525ba8ce69c62b333
+@legacy a2f91a46bd355145e47b5a44544b4ae98312322ad7098e495c5f46ecd97ac51d internal/edge/forwardha.go Edge.forwardHAObserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: spends one in-memory attempt; on the first copies a request body of known length at most 64 KiB (or none) into memory and marks the hop X-Carlos-Replayable, on the second sends that copy unmarked, never a third; wraps the existing forward transport to consume a handover answer to the marked attempt and to strip X-Carlos-Handover from relayed answers; the ref is checked with the in-memory view (boxInView) and handoverAuthority; reads the route in memory; no store or filesystem read whole:Route@3894 d4b157d009f3a43cc3b9052ef66f69ec41bf6a7233e376f449fbc9cc089f3825
+@legacy 117cbaf4814c2f8d1d5a76d674368008c78e9db44f04677225fa236b18812c2c internal/edge/forwardha.go Edge.forwardHAStreaming legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): the draining box's release of a client request to the confirmed holder through the existing front forward, with the body streamed as before and never copied or replayed; passes the whole route in memory; no read added whole:Route@215,whole:Route@242,whole:Route@246 25428d3720986a7103a2990e0dc4c3dc9217d00bca684fef610f58db3c23500f
+@legacy 974aff241ca9f5e0e1cfb0f09cf4918f3bb7e5d3790dab0d2ecd6a8b1c244757 internal/edge/forwardha.go Edge.handoverInRegion legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): parses X-Carlos-Handover (ParseHandover) and checks its ref: this box's own label, or a box in the in-memory view (boxInView) passing handoverAuthority; passes the route in memory; no store or filesystem read whole:Route@356 255bf92b4ba6f58c2e03260bb743a2db2f23f03d97387c8902575f38c72c03e8
@legacy 2a74d8a3671b4a9fb769e3cb121865e6499b01f43a42b67ce4a3b8328b1444b6 internal/edge/hadrain.go Edge.serveHAControl legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: answers a signed drain ask. Reads the request body (io.ReadAll under MaxBytesReader 4 KiB and a 2 s read deadline), verifies its own mesh-key MAC, requires a phase (draining or drained) and a nonzero publication id, and may refresh the edges fold (the existing refreshHosts: LIST plus GET of control/edges/ in the deployment bucket); reads no local file; answers JSON seen true or false, or a bare 404. Fix round 1: the ask names phase and publication id instead of a generation file:ReadAll@674 6f135b934ef3a804ed07bd8567e2ee4dc8db9f8abee97038d3946892ac9c1128
-@legacy 4044d5f59546697e8bc0c8ea81904db3e8605e266d2594d5e528117839b4c488 internal/edge/handover.go Edge.moveGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the edge's handover decision: asks the activator's MoveState about the supplied route, waits on a hold, then answers with an existing approved refusal through handoverExit, the handover answer to a verified hop, or the existing front forward to the confirmed holder; reads the route's HA flag and Host in memory; no store or filesystem read. Fix round 1: the whole taken-client front forward runs inside handoverExit; no read added registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1851,whole:Route@326,whole:Route@834,whole:Route@853 e8a5c91dacdae83e5855e9db11969e500a7acd696ace49dc38a677d3c6822165
+@legacy 7efdcad2b541034fde4aa8b6b3dd43c2766516a8493f1be1b3acededb7176242 internal/edge/handover.go Edge.moveGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the edge's handover decision: asks the activator's MoveState about the supplied route, waits on a hold, then answers with an existing approved refusal through handoverExit, the handover answer to a verified hop, or the existing front forward to the confirmed holder; reads the route's HA flag and Host in memory; no store or filesystem read. Fix round 1: the whole taken-client front forward runs inside handoverExit; no read added. held-requests Task 3: before a handover answer to a hop marked replayable, reads and discards that hop's request body when its length is known and at most 64 KiB (drainReplayable, bounded at 1 s by a read deadline); the taken-client release uses forwardHAStreaming (body streamed as before); no store or filesystem read added registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1878,whole:Route@326,whole:Route@834,whole:Route@853 3561811213450f35fa32d8f3849064a4f0cc1c2b2ed6efff32bd516d065d84e8
@legacy 2f70a5019b21fa97887bce0cf93f6076f0aa94cee0d4192772d288353a57859a internal/edge/handover.go Edge.moveSnapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the existing in-memory wake snapshot for the supplied route, as frontForwardHA builds it; no read added whole:Route@220 015e5a34763d17429558559c90d32dbfdec160a589335b8cfa88b543cccea110
@legacy 181f0e973996731d9833e1f1e4d27402c8366d893e450750e604623d1a703f84 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 file:ReadAll@18072,registry:Account@8968,registry:App@24229,registry:App@8992,registry:ClaimStamp@9022,registry:Gate@17046,registry:Gate@28620,registry:Gate@28680,registry:Gate@28738,registry:HA@12792,registry:HA@13123,registry:Host@13162,registry:Host@28723,registry:Host@9199,registry:ImportGate@36307,registry:Incarnation@9057,registry:Kind@23091,registry:Kind@26529,registry:Kind@36249,registry:Kind@36278,registry:ServingSeq@9091,whole:Route@12795,whole:Route@12889,whole:Route@13126,whole:Route@13165,whole:Route@16941,whole:Route@17052,whole:Route@19869,whole:Route@20653,whole:Route@21111,whole:Route@21303,whole:Route@23094,whole:Route@24155,whole:Route@24221,whole:Route@24232,whole:Route@24485,whole:Route@24580,whole:Route@24656,whole:Route@24700,whole:Route@25002,whole:Route@25032,whole:Route@26532,whole:Route@26817,whole:Route@28623,whole:Route@28683,whole:Route@28726,whole:Route@28741,whole:Route@29843,whole:Route@31906,whole:Route@36252,whole:Route@36281,whole:Route@36310,whole:Route@36342,whole:Route@38190,whole:Route@7042,whole:Route@7141,whole:Route@7236,whole:Route@8971,whole:Route@8995,whole:Route@9025,whole:Route@9060,whole:Route@9094,whole:Route@9202 30a6c4dac4c55ac4aff95b775639abfe2616ccd097cc04180b47b47a3e323e8b
+@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
+@legacy d827d4e494c6712ea2b572cdf71a99180342e8d4ffb35027656353e9a86319a9 internal/edge/forwardha.go Edge.frontForwardHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1602,whole:Route@1651,whole:Route@1856,whole:Route@228,whole:Route@515,whole:Route@587 43b47f419e9d094f67e9fb1737b9988efb7d732f09a52884197726a31cc68b85
@legacy 2b78e0c2c661c5d38042a6921119146c298eb2883ee70f4541f815b8b0f66d23 internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added registry:Account@1361,registry:Account@2752,registry:Account@3006,registry:Account@3026,registry:Account@519,registry:App@1378,registry:App@2775,registry:App@3040,registry:App@3056,registry:App@543,registry:ClaimStamp@638,registry:HA@1099,registry:HA@1921,registry:HA@1998,registry:HA@2308,registry:HA@3176,registry:Host@1190,registry:Host@1248,registry:Host@1874,registry:Host@1980,registry:Host@2290,registry:Host@2495,registry:Host@251,registry:Host@2728,registry:Host@2978,registry:Host@2995,registry:Host@374,registry:Incarnation@1399,registry:Incarnation@2802,registry:Incarnation@3094,registry:Incarnation@3118,registry:Incarnation@570,registry:Pool@3066,registry:Pool@3083,registry:ServingSeq@1427,registry:ServingSeq@2836,registry:ServingSeq@3136,registry:ServingSeq@3159,registry:ServingSeq@604,whole:Route@1732,whole:Route@1807,whole:Route@1924,whole:Route@1959,whole:Route@2074,whole:Route@2157,whole:Route@2263,whole:Route@254,whole:Route@2938,whole:Route@2968,whole:Route@2981,whole:Route@3009,whole:Route@3043,whole:Route@3069,whole:Route@3097,whole:Route@3139,whole:Route@3179,whole:Route@3422,whole:Route@3544,whole:Route@377,whole:Route@522,whole:Route@546,whole:Route@573,whole:Route@607,whole:Route@641,whole:Route@892 5e0dfdd7bf53cadf9d9a1de94475d3cc4d6fb316d72c8b45e0b19e04e7e29153
internal/activator/activator.go Service.serve legacy accepted-legacy accepted-legacy;rev3=census-ruling-hotfix281;basis=Startup repeats the existing Kind and Hibernate checks; error logging moved to serveWakeError. A request held through startup re-reads its own route's Socket and Addr and can only refuse (wake-timeout 503) when recovery moved them; agent-side, deny-only, no root decision.;rev3=census-ruling-edge-request-records;basis=passes the member request r to begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance is the activator's; same deploy-safety for binary rows;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a verified HA hop this box cannot serve gets the holder diagnostic; two new whole:Route sites pass the route to answerForwarded/noteNoHolder; no new kind of read;rev3=census-ruling-region-ha-g2-fixes;basis=Refuse latched HA lease loss before startup wait or proxy accounting, and schedule bounded recovery; reads supplied route, no new external read here.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: after begin succeeds, edge.ReleaseMoveTicket(r) ends the request's in-memory admission ticket; on the sidecar path the same after BeginSidecarRequest; no read added registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Socket@1102,registry:Socket@1118,whole:Route@1081,whole:Route@1190,whole:Route@1324,whole:Route@198,whole:Route@261,whole:Route@2873,whole:Route@2974,whole:Route@298,whole:Route@3788,whole:Route@3851,whole:Route@526 aa0786cb4f635aa33ea7c0ef884d82d9d43c0de1a47bc2c441e5c83fa93578be
internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added bc9ea8cb15d241305d4921623c61ebe2aaf17229edd3e7abf8fb7d107e8e4d44
@@ -35,11 +43,19 @@ internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy acc
internal/activator/handover.go Service.readMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: ConfirmMoveHolder's one lock read (existing readHolderView, bounded by holderReadTimeout) and its reading through otherHolder and DecidePlacement with LocalDenied; reads only; authorizes nothing whole:Route@409,whole:Route@963,whole:Route@996 3f59d6e470312678682fced857969e8e4aec359fd622d32ac081dac6570f74da
internal/activator/handover.go Service.waitMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: a held request's bounded wait on in-memory state; no read whole:Route@308,whole:Route@549 51784ee39903fe8d6685b4c376f2065a3fa76998b881020e3798755478c117e4
internal/activator/handover.go sameMoveLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (fix round 1): compares two in-memory routes' Host, Account (EffectiveAccount), App, Incarnation and ServingSeq; reads nothing else; only narrows which requests a move applies to registry:Account@114,registry:Account@158,registry:App@175,registry:App@188,registry:Host@63,registry:Host@77,registry:Incarnation@198,registry:Incarnation@219,registry:ServingSeq@237,registry:ServingSeq@257 1c996c6cdce819f0196684ddf21da2860321518e467193571f6f996a8207c87f
+internal/edge/backhaul_retry.go homeMap.handoverAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): name authority for a handover answer's ref on an in-region front forward; reads the supplied route's Host, Account and App and the in-memory edges fold snapshot (resolveHomeName over the already-folded claims); no store or filesystem read; only narrows which box a request may be sent to a second time registry:Account@485,registry:App@509,registry:Host@166,registry:Host@435 aa9a4bf7fefc470f931ed8369733708d20a9e4f4edeccf6833c3f1e1f3ff0472
+internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@651,whole:Route@655,whole:Route@728 458e3eaa39975df77b221aaee459c00ba4e2791a18b2f43403a697b9bda2aad9
+internal/edge/forwardha.go Edge.forwardHANoted legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new name for the former body of forwardHAAndNote (held-requests Task 3), unchanged but for passing the attempt state on; the same route Host reads for NoteForward; no read added registry:Host@312,registry:Host@611,registry:Host@692 35c1f30b298b9d1c179d6aa4936cacebd90ec12a31d3204525ba8ce69c62b333
+internal/edge/forwardha.go Edge.forwardHAObserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: spends one in-memory attempt; on the first copies a request body of known length at most 64 KiB (or none) into memory and marks the hop X-Carlos-Replayable, on the second sends that copy unmarked, never a third; wraps the existing forward transport to consume a handover answer to the marked attempt and to strip X-Carlos-Handover from relayed answers; the ref is checked with the in-memory view (boxInView) and handoverAuthority; reads the route in memory; no store or filesystem read whole:Route@3894 d4b157d009f3a43cc3b9052ef66f69ec41bf6a7233e376f449fbc9cc089f3825
+internal/edge/forwardha.go Edge.forwardHAStreaming legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): the draining box's release of a client request to the confirmed holder through the existing front forward, with the body streamed as before and never copied or replayed; passes the whole route in memory; no read added whole:Route@215,whole:Route@242,whole:Route@246 25428d3720986a7103a2990e0dc4c3dc9217d00bca684fef610f58db3c23500f
+internal/edge/forwardha.go Edge.handoverInRegion legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): parses X-Carlos-Handover (ParseHandover) and checks its ref: this box's own label, or a box in the in-memory view (boxInView) passing handoverAuthority; passes the route in memory; no store or filesystem read whole:Route@356 255bf92b4ba6f58c2e03260bb743a2db2f23f03d97387c8902575f38c72c03e8
internal/edge/hadrain.go Edge.serveHAControl legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: answers a signed drain ask. Reads the request body (io.ReadAll under MaxBytesReader 4 KiB and a 2 s read deadline), verifies its own mesh-key MAC, requires a phase (draining or drained) and a nonzero publication id, and may refresh the edges fold (the existing refreshHosts: LIST plus GET of control/edges/ in the deployment bucket); reads no local file; answers JSON seen true or false, or a bare 404. Fix round 1: the ask names phase and publication id instead of a generation file:ReadAll@674 6f135b934ef3a804ed07bd8567e2ee4dc8db9f8abee97038d3946892ac9c1128
-internal/edge/handover.go Edge.moveGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the edge's handover decision: asks the activator's MoveState about the supplied route, waits on a hold, then answers with an existing approved refusal through handoverExit, the handover answer to a verified hop, or the existing front forward to the confirmed holder; reads the route's HA flag and Host in memory; no store or filesystem read. Fix round 1: the whole taken-client front forward runs inside handoverExit; no read added registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1851,whole:Route@326,whole:Route@834,whole:Route@853 e8a5c91dacdae83e5855e9db11969e500a7acd696ace49dc38a677d3c6822165
+internal/edge/handover.go Edge.moveGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the edge's handover decision: asks the activator's MoveState about the supplied route, waits on a hold, then answers with an existing approved refusal through handoverExit, the handover answer to a verified hop, or the existing front forward to the confirmed holder; reads the route's HA flag and Host in memory; no store or filesystem read. Fix round 1: the whole taken-client front forward runs inside handoverExit; no read added. held-requests Task 3: before a handover answer to a hop marked replayable, reads and discards that hop's request body when its length is known and at most 64 KiB (drainReplayable, bounded at 1 s by a read deadline); the taken-client release uses forwardHAStreaming (body streamed as before); no store or filesystem read added registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1878,whole:Route@326,whole:Route@834,whole:Route@853 3561811213450f35fa32d8f3849064a4f0cc1c2b2ed6efff32bd516d065d84e8
internal/edge/handover.go Edge.moveSnapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the existing in-memory wake snapshot for the supplied route, as frontForwardHA builds it; no read added whole:Route@220 015e5a34763d17429558559c90d32dbfdec160a589335b8cfa88b543cccea110
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 file:ReadAll@18072,registry:Account@8968,registry:App@24229,registry:App@8992,registry:ClaimStamp@9022,registry:Gate@17046,registry:Gate@28620,registry:Gate@28680,registry:Gate@28738,registry:HA@12792,registry:HA@13123,registry:Host@13162,registry:Host@28723,registry:Host@9199,registry:ImportGate@36307,registry:Incarnation@9057,registry:Kind@23091,registry:Kind@26529,registry:Kind@36249,registry:Kind@36278,registry:ServingSeq@9091,whole:Route@12795,whole:Route@12889,whole:Route@13126,whole:Route@13165,whole:Route@16941,whole:Route@17052,whole:Route@19869,whole:Route@20653,whole:Route@21111,whole:Route@21303,whole:Route@23094,whole:Route@24155,whole:Route@24221,whole:Route@24232,whole:Route@24485,whole:Route@24580,whole:Route@24656,whole:Route@24700,whole:Route@25002,whole:Route@25032,whole:Route@26532,whole:Route@26817,whole:Route@28623,whole:Route@28683,whole:Route@28726,whole:Route@28741,whole:Route@29843,whole:Route@31906,whole:Route@36252,whole:Route@36281,whole:Route@36310,whole:Route@36342,whole:Route@38190,whole:Route@7042,whole:Route@7141,whole:Route@7236,whole:Route@8971,whole:Route@8995,whole:Route@9025,whole:Route@9060,whole:Route@9094,whole:Route@9202 30a6c4dac4c55ac4aff95b775639abfe2616ccd097cc04180b47b47a3e323e8b
+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
+internal/edge/forwardha.go Edge.frontForwardHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1602,whole:Route@1651,whole:Route@1856,whole:Route@228,whole:Route@515,whole:Route@587 43b47f419e9d094f67e9fb1737b9988efb7d732f09a52884197726a31cc68b85
internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added registry:Account@1361,registry:Account@2752,registry:Account@3006,registry:Account@3026,registry:Account@519,registry:App@1378,registry:App@2775,registry:App@3040,registry:App@3056,registry:App@543,registry:ClaimStamp@638,registry:HA@1099,registry:HA@1921,registry:HA@1998,registry:HA@2308,registry:HA@3176,registry:Host@1190,registry:Host@1248,registry:Host@1874,registry:Host@1980,registry:Host@2290,registry:Host@2495,registry:Host@251,registry:Host@2728,registry:Host@2978,registry:Host@2995,registry:Host@374,registry:Incarnation@1399,registry:Incarnation@2802,registry:Incarnation@3094,registry:Incarnation@3118,registry:Incarnation@570,registry:Pool@3066,registry:Pool@3083,registry:ServingSeq@1427,registry:ServingSeq@2836,registry:ServingSeq@3136,registry:ServingSeq@3159,registry:ServingSeq@604,whole:Route@1732,whole:Route@1807,whole:Route@1924,whole:Route@1959,whole:Route@2074,whole:Route@2157,whole:Route@2263,whole:Route@254,whole:Route@2938,whole:Route@2968,whole:Route@2981,whole:Route@3009,whole:Route@3043,whole:Route@3069,whole:Route@3097,whole:Route@3139,whole:Route@3179,whole:Route@3422,whole:Route@3544,whole:Route@377,whole:Route@522,whole:Route@546,whole:Route@573,whole:Route@607,whole:Route@641,whole:Route@892 5e0dfdd7bf53cadf9d9a1de94475d3cc4d6fb316d72c8b45e0b19e04e7e29153
@coverage internal/activator 41848e37a68a93c71c80f28380b1e6e48218840c29d5b7bc291529c0e44aab17
-@coverage internal/edge 7f4189f8437fe40540e8b71cea946d3ca1d3384c566cfe300a7b7ebbb6068478
+@coverage internal/edge ebd21ae634e43a8163f3890ec8ad16d97747c753f03f3dc885bca8ce58916b88
@coverage internal/host 2e83bba2a89d116388857912876ebde007a7c7b7fb6a3265c04856d60185583d