| index 4d6469982..cba02ce52 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,21 +1,21 @@ |
| # 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. |
| -# 9 body, 1 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 11 new dispositions: 1 reads re-frozen at their disposition with the claim, 10 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +# 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. |
| @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 |
| @legacy ed7e6b37c5c678bcb10532daee5ceaeabb08a6e9c81641b2f46d42195a4ed35a internal/activator/haforward.go Service.decideForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new: the second half of the old ForwardTarget body, moved unchanged: turns a holder resolution into the edge's ForwardDecision (the HA view and host reads it already made). Moved, not widened; no new read.;rev3=census-ruling-region-ha-g2-fixes;basis=Pass local eligibility into both placement decisions; supplied route only, no new external read.;rev3=census-ruling-region-ha-held-build;basis=the wake snapshot is LocalDenied also when IsDraining(); only narrows local placement; no read added registry:Host@1248,registry:Host@1396,registry:Host@1569,registry:Host@1860,registry:Host@1983,whole:Route@1038,whole:Route@1787,whole:Route@1825,whole:Route@990 915a0efc9f5ea2acaa0ef983cceb6dc741763054f707c3a6da3328b3eade8d8e |
| @legacy 1341eacf8b809c3e097cf15229a1264879f8fa63b097adf2ea136f35e40400a7 internal/activator/haleaseloss.go Service.latchHALossLocked legacy accepted-legacy 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.;rev3=census-ruling-region-ha-held-build;basis=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 registry:HA@147,whole:Route@149,whole:Route@571,whole:Route@580 d05e19ffc5bea1644df6b4473e2e61debed26977926b13ca1481f5393b6d529c |
| -@legacy 283c45bcc1d55f5c440612874b00fca8e598be2891d9c48c507f19024f0edf46 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=region HA held-requests Task 2: ReleaseMoveTicket(r) just before a forward (the holder counts the request, not this box); no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1684,whole:Route@1761,whole:Route@228,whole:Route@515,whole:Route@587 e7800cb56ca9fadef0c59542c84e393aed57d43701f0fbf016576eaaf0d06b41 |
| -@legacy 3f529576465137da77c6a1bbc338c2aa948ebcca56b56607ed6cc0799fc1e5f7 internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read whole:Route@331 5fcb9531368c950904bb6f3ebfe7d54924f93f215a5b367f07c56cdb989f36d8 |
| -@legacy 025a1f5e9fe974abdac7bdecb6319ecb935e5d1ec9487f7c47780af0b62028d2 internal/activator/handover.go Service.ConfirmMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: coalesced (one per host per 5 s) read of the host's lock.json through the existing holder lock reader (readHolderView, the same read ForwardTarget makes on a miss), only for a host this box marked taken; reads only; never writes or acquires registry:Host@269,whole:Route@224,whole:Route@767 ef8e68f4c3bb27abd790b98a6b95eab67fa635009829e52249e75b7fbe5bf0a2 |
| -@legacy c11a4888ef29d020acf8e2004b575229b7234f86ea983b56427d548cd011c89a internal/activator/handover.go Service.MoveState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the memory-only handover decision under a.mu: loss latch (haLeaseRefusalLocked), then move phase, caps and bounds; reads the supplied route's Host and identity; no external read; authorizes nothing (not an input to hafresh.DecideAcquire) registry:Host@139,whole:Route@189,whole:Route@228,whole:Route@668 b69520fea57104f1f9b7e2a3224e588d80a8b82ed5a6cec87f3fc5e847b4f8db |
| -@legacy 77d4520af012591921d30bcf44239ff9eb8548134eb381510e5dd3d924e91de2 internal/activator/handover.go Service.moveDecideLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: MoveState's per-phase answer; reads the supplied route and in-memory move state, the loss latch and the holder cache; no external read registry:Host@665,whole:Route@214 8354b8936f0480feeae754946c85a8cfaf4450c58ac15be0031a2b9f16071218 |
| -@legacy 9d880d39e971f4087a3372ea175bb8313af3eedb5eaaa23c7d057acad754979c internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: issues an in-memory admission ticket when this box has an entry for the same route (samePoolRoute); no external read registry:Host@259,registry:Host@279,registry:Host@88,whole:Route@131 17a66cdd8abaa4b2c3de4dc1ed7defe8a3e6207b54ea7f2bb775f1ec2f106561 |
| +@legacy 5896e7e97cac6bf2756de49db779da235cada39570bddc977ad284c90480f5c4 internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read. Fix round 1: records the awake entry's route (in memory) as the move's lifetime identity; no read added whole:Route@331,whole:Route@489,whole:Route@498 6fe76f9686ba393b91d6f6efe3cf2a7ceee69191b6b7173c19035d8bda89a73f |
| +@legacy eb7f805e4b866dc403f3bc203d3d2b9f0069c7de94c4a7706c3fea6b7f8b0248 internal/activator/handover.go Service.ConfirmMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: coalesced (one per host per 5 s) read of the host's lock.json through the existing holder lock reader (readHolderView, the same read ForwardTarget makes on a miss), only for a host this box marked taken; reads only; never writes or acquires. Fix round 1: refuses, with no read, unless the request's route is the move's lifetime (sameMoveLifetime); only narrows when the lock is read registry:Host@269,whole:Route@224,whole:Route@351,whole:Route@358,whole:Route@801 5f041c23833685cd2ffc18492747b835aaaa6fd0650d8f1a67534cdab23d1644 |
| +@legacy 34e7da0d6fd76cf94fc91990f462062e6a507ba446c58aefd26fd4b0430e5663 internal/activator/handover.go Service.MoveState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the memory-only handover decision under a.mu: loss latch (haLeaseRefusalLocked), then move phase, caps and bounds; reads the supplied route's Host and identity; no external read; authorizes nothing (not an input to hafresh.DecideAcquire). Fix round 1: a move applies only to the route lifetime it was begun for (sameMoveLifetime); any other lifetime gets none; no read added registry:Host@139,whole:Route@184,whole:Route@191,whole:Route@223,whole:Route@262,whole:Route@702 ca98ee7ca5b09b36b3b2360ff189e6fef4a5ac04484660dc4368692a7695da13 |
| +@legacy b2979c14841073c55b52037aa5939b018fe52a31e37224688393fe2976af9bf7 internal/activator/handover.go Service.moveDecideLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: MoveState's per-phase answer; reads the supplied route and in-memory move state, the loss latch and the holder cache; no external read. Fix round 1: refuses a hold re-check whose route is not the move's lifetime; no read added registry:Host@699,whole:Route@147,whole:Route@154,whole:Route@248 26e9d419a9799a2c099fbd04cf68a129608d3d46f975cd979c13be453a801a87 |
| +@legacy 7f4e7f5f57f61a9cf10366d1b5ecfb0d259dc931a5f124c66821ed4e5ab7526f internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: issues an in-memory admission ticket when this box has an entry for the same route (samePoolRoute); no external read. Fix round 1: the ticket's end is once-only (sync.Once); no read added registry:Host@259,registry:Host@279,registry:Host@88,whole:Route@131 f362b7451f5966be8815e732a03b00043ff81b92e3d21574790f10b1535179dc |
| @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 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 71e5986c53fa3b200158220e6a185f8f915a32c97c346554e46f8fe42df40313 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 registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1590,whole:Route@326,whole:Route@834,whole:Route@853 27a92b5e21788e6c9919ff78fd7598da62782da82afd86c2b8511c60ce804d1a |
| +@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 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 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 |
| @@ -25,21 +25,21 @@ internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted |
| 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 |
| internal/activator/haforward.go Service.decideForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): new: the second half of the old ForwardTarget body, moved unchanged: turns a holder resolution into the edge's ForwardDecision (the HA view and host reads it already made). Moved, not widened; no new read.;rev3=census-ruling-region-ha-g2-fixes;basis=Pass local eligibility into both placement decisions; supplied route only, no new external read.;rev3=census-ruling-region-ha-held-build;basis=the wake snapshot is LocalDenied also when IsDraining(); only narrows local placement; no read added registry:Host@1248,registry:Host@1396,registry:Host@1569,registry:Host@1860,registry:Host@1983,whole:Route@1038,whole:Route@1787,whole:Route@1825,whole:Route@990 915a0efc9f5ea2acaa0ef983cceb6dc741763054f707c3a6da3328b3eade8d8e |
| internal/activator/haleaseloss.go Service.latchHALossLocked legacy accepted-legacy 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.;rev3=census-ruling-region-ha-held-build;basis=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 registry:HA@147,whole:Route@149,whole:Route@571,whole:Route@580 d05e19ffc5bea1644df6b4473e2e61debed26977926b13ca1481f5393b6d529c |
| -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=region HA held-requests Task 2: ReleaseMoveTicket(r) just before a forward (the holder counts the request, not this box); no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1684,whole:Route@1761,whole:Route@228,whole:Route@515,whole:Route@587 e7800cb56ca9fadef0c59542c84e393aed57d43701f0fbf016576eaaf0d06b41 |
| internal/host/agent.go runAgent authority B,C,D,F 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);rev3=census-ruling-region-ha-held-build;basis=wires the drain state: svc.SetDrainingSource(boxDrain.IsDraining), svc.SetPeerDrainView(e.PeerDraining), e.SetPeerDrainedHook(svc.DropHoldersNaming); in-memory only; no read added file:Exec@19204,file:Open@1707,file:Statfs@50791,registry:App@12803,registry:Host@46827,whole:Route@12795,whole:Route@45670,whole:Route@46950,whole:Route@47012 720a577f668d4515fa88cf1ff1799d969d0e144c3feba7b31b25b279827f3d85 |
| internal/host/edgesfile.go edgesFileWriteClaims authority F,J1 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.;rev3=census-ruling-region-ha-held-build;basis=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 registry:Account@15918,registry:Alias@10421,registry:Alias@13391,registry:Alias@13441,registry:Alias@8848,registry:Alias@8867,registry:Alias@8966,registry:Alias@9020,registry:Alias@9055,registry:Alias@9117,registry:Alias@9487,registry:Alias@9644,registry:Alias@9714,registry:Alias@9746,registry:App@15930,registry:DNSStatus@9162,registry:DNSStatus@9653,registry:Host@13294,registry:Host@13314,registry:Host@13579,registry:Host@13659,registry:Host@13694,registry:Host@13743,registry:Host@14205,registry:Host@14240,registry:Host@15348,registry:Host@3963,registry:Host@4054,registry:Host@4100,registry:Host@4159,registry:Host@5274,registry:Host@6244,registry:Host@8893,registry:Host@8941,registry:Incarnation@5234,registry:Platform@5013,registry:Pool@4014,registry:Provisioned@5027,registry:Replica@5051,registry:ServingSeq@5249,registry:Status@2732,whole:Route@1026,whole:Route@17388,whole:Route@18206,whole:Route@18381,whole:Route@1841,whole:Route@2102,whole:Route@6329,whole:Route@750,whole:RouteAlias@13345,whole:RouteAlias@17410,whole:RouteAlias@18396,whole:RouteAlias@8731,whole:RouteAlias@8813,whole:RouteAlias@9005,whole:RoutePath@17403,whole:RoutePath@18389,whole:RoutePath@6113,whole:RoutePath@6145,whole:RoutePath@6192,whole:RoutePath@6220,whole:RoutePath@6258,whole:RoutePath@6278,whole:RoutePath@6290,whole:RoutePath@6344,whole:WildcardDomain@13272,whole:WildcardDomain@13648 3313d7ba7f4587179a56d76b45703ec75f105fd818a7f32bcfaf361b58664740 |
| -internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read whole:Route@331 5fcb9531368c950904bb6f3ebfe7d54924f93f215a5b367f07c56cdb989f36d8 |
| -internal/activator/handover.go Service.ConfirmMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: coalesced (one per host per 5 s) read of the host's lock.json through the existing holder lock reader (readHolderView, the same read ForwardTarget makes on a miss), only for a host this box marked taken; reads only; never writes or acquires registry:Host@269,whole:Route@224,whole:Route@767 ef8e68f4c3bb27abd790b98a6b95eab67fa635009829e52249e75b7fbe5bf0a2 |
| -internal/activator/handover.go Service.MoveState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the memory-only handover decision under a.mu: loss latch (haLeaseRefusalLocked), then move phase, caps and bounds; reads the supplied route's Host and identity; no external read; authorizes nothing (not an input to hafresh.DecideAcquire) registry:Host@139,whole:Route@189,whole:Route@228,whole:Route@668 b69520fea57104f1f9b7e2a3224e588d80a8b82ed5a6cec87f3fc5e847b4f8db |
| -internal/activator/handover.go Service.moveDecideLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: MoveState's per-phase answer; reads the supplied route and in-memory move state, the loss latch and the holder cache; no external read registry:Host@665,whole:Route@214 8354b8936f0480feeae754946c85a8cfaf4450c58ac15be0031a2b9f16071218 |
| -internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: issues an in-memory admission ticket when this box has an entry for the same route (samePoolRoute); no external read registry:Host@259,registry:Host@279,registry:Host@88,whole:Route@131 17a66cdd8abaa4b2c3de4dc1ed7defe8a3e6207b54ea7f2bb775f1ec2f106561 |
| +internal/activator/handover.go Service.BeginMove legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: Task 5 driver API; sets in-memory holding for an awake HA entry; refuses on a latched loss; no read. Fix round 1: records the awake entry's route (in memory) as the move's lifetime identity; no read added whole:Route@331,whole:Route@489,whole:Route@498 6fe76f9686ba393b91d6f6efe3cf2a7ceee69191b6b7173c19035d8bda89a73f |
| +internal/activator/handover.go Service.ConfirmMoveHolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: coalesced (one per host per 5 s) read of the host's lock.json through the existing holder lock reader (readHolderView, the same read ForwardTarget makes on a miss), only for a host this box marked taken; reads only; never writes or acquires. Fix round 1: refuses, with no read, unless the request's route is the move's lifetime (sameMoveLifetime); only narrows when the lock is read registry:Host@269,whole:Route@224,whole:Route@351,whole:Route@358,whole:Route@801 5f041c23833685cd2ffc18492747b835aaaa6fd0650d8f1a67534cdab23d1644 |
| +internal/activator/handover.go Service.MoveState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: the memory-only handover decision under a.mu: loss latch (haLeaseRefusalLocked), then move phase, caps and bounds; reads the supplied route's Host and identity; no external read; authorizes nothing (not an input to hafresh.DecideAcquire). Fix round 1: a move applies only to the route lifetime it was begun for (sameMoveLifetime); any other lifetime gets none; no read added registry:Host@139,whole:Route@184,whole:Route@191,whole:Route@223,whole:Route@262,whole:Route@702 ca98ee7ca5b09b36b3b2360ff189e6fef4a5ac04484660dc4368692a7695da13 |
| +internal/activator/handover.go Service.moveDecideLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: MoveState's per-phase answer; reads the supplied route and in-memory move state, the loss latch and the holder cache; no external read. Fix round 1: refuses a hold re-check whose route is not the move's lifetime; no read added registry:Host@699,whole:Route@147,whole:Route@154,whole:Route@248 26e9d419a9799a2c099fbd04cf68a129608d3d46f975cd979c13be453a801a87 |
| +internal/activator/handover.go Service.moveNoneLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: issues an in-memory admission ticket when this box has an entry for the same route (samePoolRoute); no external read. Fix round 1: the ticket's end is once-only (sync.Once); no read added registry:Host@259,registry:Host@279,registry:Host@88,whole:Route@131 f362b7451f5966be8815e732a03b00043ff81b92e3d21574790f10b1535179dc |
| 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/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 registry:HA@184,registry:Host@262,registry:Host@673,whole:Route@1590,whole:Route@326,whole:Route@834,whole:Route@853 27a92b5e21788e6c9919ff78fd7598da62782da82afd86c2b8511c60ce804d1a |
| +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.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/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 8eab6ef19c61b3190abc9425f4771bdeed72c97673d43c1a7807c14abee46281 |
| -@coverage internal/edge a930988495f6731449109ac7a1758cfa4d06dd8d945db1251078b34bd703f145 |
| +@coverage internal/activator 41848e37a68a93c71c80f28380b1e6e48218840c29d5b7bc291529c0e44aab17 |
| +@coverage internal/edge 4dd6eee2dd07895e6d96172a2eeee8603759df4c22a800364dc0ea46bab4d575 |
| @coverage internal/host 2e83bba2a89d116388857912876ebde007a7c7b7fb6a3265c04856d60185583d |