| index c4417e2cf..249e16227 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsv |
| @@ -1,6 +1,6 @@ |
| # Census overlay region-ha-p3a, written by census-propose (#369). census-ruling-region-ha-p3a, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-p3a.md. |
| -# 8 body, 22 sites, 14 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 28 new dispositions: 1 reads re-frozen at their disposition with the claim, 27 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +# 7 body, 24 sites, 14 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 29 new dispositions: 1 reads re-frozen at their disposition with the claim, 28 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| @legacy 29c11190e0def3cd35cc9d18d9e0c6e1f2c1157d69c054085b77d72d0fe7d63d internal/activator/claimwake.go Service.doClaimWake legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: a claim wake is refused (errWakeUnproven) while another entry's release record of the host is open, as an unproven failed wake already refuses it; the in-memory map only, no read added; adds a refusal only;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. file:Exec@1133,file:Prepare@2265,file:Read@140,file:Read@932,registry:Host@3329,registry:Host@3399,registry:Host@4520,registry:Host@4597,registry:Host@4723,registry:Host@5336,registry:WakeIncarnation@1464,registry:WakeIncarnation@1592,whole:Route@1466,whole:Route@1594,whole:Route@2363,whole:Route@2474,whole:Route@2529,whole:Route@2535,whole:Route@3542,whole:Route@3600,whole:Route@3606,whole:Route@4640,whole:Route@5600,whole:Route@6220,whole:Route@7584,whole:Route@7672,whole:Route@8344,whole:Route@8352 95a145f4c1985f8c88f37a135fb7ddd09cb4f52a38d9bec62c9acd3357ed1566 |
| @legacy c44d5de2b0e229c3345b70073c526d85470960ea07766fbef0f6f5410501dd90 internal/activator/rootfsworkers.go Service.installRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.11: the one writer of a worker's proc; installs only on the host's own entry, for a worker still the entry's, while the entry is awake and owned (a resident only with its lease watch); refused, the caller stops and proves gone what it started; in-memory;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. whole:Route@263 4796e557b3281e2165ac8cee36361bd88b4faef56f5520e5c83a3c7fd050a535 |
| @legacy db1aa4a54dc343855570c8d5ea22b58ec49fd812127fae04ffc7c6423ae9254f internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners; existing reads unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 58941f6f3c6726de8d9e93562a1b95de0f7f90d43b6a54107958efd95af38d78 |
| @@ -25,12 +25,13 @@ |
| @legacy c2f5148e138fc39d46c4cfc28d31882734ed53d3ddf2f2a14cfbf362d6488dbd internal/activator/group_admission.go Service.startOwnedLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@166 b31ef60f28c2e32ed9688f4f467723f191c1a17c2faf633ea5f9fa13cffd9d83 |
| @legacy 500c0a9420281c3396cfb10fd30bbedf6ba9c391101a41423986ae8872a298b0 internal/activator/group_admission.go Service.tenantStartRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@92 cdf0335bf434190abd6983d1b8b94948ea783540b24ee8b0cc4a50fafe92810f |
| @legacy 6c02de7e1e2960b253dafcce566bdcd6ae60cf8751c98b7036ce6dcabc43b1fc internal/boxroles/roles.go Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Two point GETs of validated own and canonical-region desired-role keys; strict bounded parsing, errors never default to serve; no filesystem read or root authority grant. file:Read@5 7a81085231b83e3c7f524640fe5c5d347ac941af24a7ee9f3bd15a3d349aec03 |
| -@legacy 51a8e19cfc79281930bcebdc10107db66b2177290899a8d6d0fd5d87001e6d61 internal/edge/group_admission.go Edge.admissionRefuses legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@291 99b8b06c1fb1ede9dd48da9fa129fa792034ed0b3207ddd134102cd8627f9863 |
| +@legacy 4b90281dcd090586b3cbee06285fed6a4d34ef6dc4514c06bbf0cffc91dba0eb internal/edge/group_admission.go Edge.admissionRefuses legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. Fix R1: choose startup or temporarily-unavailable response from the existing admission source without weakening refusal or exemptions; no new external read. whole:Route@291 ccc3164af3bb16a83e422e1d0a630f5bcfb5f3df92cdd7e2503c23d9004fcf13 |
| @legacy ae2d187d96ed8e3327b8f23d5509c63f623fdbcb132c16ac9f86be7c243426a8 internal/host/boxroles.go boxRoleReader.pass legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Apply successful two-GET roles even while the watch is unusable; preserve restrictions and close starts on failed reads/application; retain one jittered ReadGate and bounded retry backoff through watch failure; throttle failure logs; no filesystem read. file:Read@268 5a24611b7b34023794f20e4820f843700c201186ce8e28a763cca44bbd06a89f |
| @legacy 02d429c92fa49c5ad18109eb1fc99874d6fe43094c02b809029f7da90d2e22d6 internal/host/boxroles_config_linux.go readRoleRegionConfig legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Read the fixed operator-delivered /etc/carlos/region-config.json through no-symlink openat2, fstat root ownership/regular-file/non-writable checks, single-link check and 4097-byte limited read; validate explicit canonical code and unchanged raw placement, never infer from AWS. file:Fstat@414,file:Openat2@90,file:ReadAll@733 2ab0091c9dad48273774eb0feb4b9289b823b9ed7a76852e6c6d26b34cb6e231 |
| @legacy 70fe3feea98b7decfa8bb26bbe5d0b2ca2865aaa69a6158b4699efbf49cde66e internal/host/group_admission.go fixedAdmission.TenantAdmissionExempt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: classify the existing Route Platform, Unit and Backing fields for the fixed-box exemption; unsupported group mode has no exemption. Does not grant any new lease or root start authority. whole:Route@89 e336ed9f48649c8c54a0eb112ff6e7ec3e4bc995e56a4abe9fb7cfe20f12d7a0 |
| -@legacy df2f3828c1db19783e73885782415db68888aeecbfccfe74ad32bddbc4dcbeca internal/host/group_admission.go fixedAdmission.bind legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@319 5ced62d5a15dc2d0230e4ee1d2765fb7adb8b8ae4a4f3a7a3425419f8dca564f |
| +@legacy 81bce8b431b7a045363a45a99b99616770120ed8a8c21cc7f726729978b178f0 internal/host/group_admission.go fixedAdmission.bind legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. Fix R1: also bind the response-phase callback to the same fixedAdmission; invoked by runAgent through wireAgentAdmission before arming the departure consumer. Existing whole Route predicate only; no new external read. whole:Route@378 2094d7b6e1ad01184157ba1e8bb03840edbe0955ef32a4221188860af71a1ee2 |
| @legacy 27f21e714af11f592202e1d3d47d9ba1722fd227215a6444585f45e3649c5cf0 internal/host/group_admission.go fixedAdmission.exempt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: classify the existing Route Platform, Unit and Backing fields for the fixed-box exemption; unsupported group mode has no exemption. Does not grant any new lease or root start authority. registry:Backing@111,registry:Platform@79,registry:Unit@94 1ff6546ebcea7c167b0819d478059b4d1e57a401a85f10bbf08cf9583e998abc |
| +@legacy 2aa5dd77b808425a61ef94193acf41571c592f08857477542f5ac74a23aab5c8 internal/host/group_admission.go runWorkerBootPassAfterAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3 fix R1: wait for the first successful local admission or startup cancellation, then list the same registry and run the existing bounded worker boot pass through Service.WakeWorker. The whole Route read moved from runAgent, delayed until after first reconcile; no new source/path or root launch authority. whole:Route@517 3c5833004484dc449d73b9caa7a474ac9b621458d1e1473dd138bd0878d586d4 |
| @legacy 55d3531e0ee6ec6ba52f67445464830b683d13e853e91517c09404e13558b06d internal/host/memwatch.go memwatchLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=On opted-in fixed boxes only, reuse Task 2 root-owned region-config reader and Task 3 state; on existing cadence execute absolute /usr/bin/chronyc with fixed -c tracking args, one-second context and bounded 4096-byte output. No shell, tenant-named path or new timer; switch-off reads no region config and executes no clock command. file:CommandContext@1677 fb6985996ca1c86c060605534b55a54e60b3b8f8ccacee935ae7467e36aa9ae1 |
| @legacy da0c89025968a59a96910fe56c0f85883ee761a25b0f85e3967c03d19bee2d81 internal/activator/backend_exec.go ExecBackend.nestedReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as nestedGate): new (rootfs Plan 2 Task 9): nestedGate's box half, split out unchanged so rootfsGates asks it too: the control channel is configured and NestedOK passes; its two sites are the row's host in the error text; no file, no root decision;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. registry:Host@217,registry:Host@362,whole:Route@93 db559b77443fa7532803e9c83547482e979ebf2813706b6e9661ba7af6fa7080 |
| @legacy b79589fbb7c726d68d4fbf285a83a77562c420af19df0dd348398215eb010681 internal/activator/activator.go Service.WakeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: check local tenant admission and start permission before lease/restore, preserving already-awake reuse during drain and existing serialization. Whole Route passes to the local predicate; no new filesystem or store read. registry:Host@1428,registry:Host@1837,registry:Host@923,registry:Host@953,whole:Route@1012,whole:Route@108,whole:Route@1404 e35358e75b7a0af7f2f382d28328e3373a48b06cdc876dbd8649db9b3c00741a |
| @@ -50,13 +51,13 @@ |
| @legacy ecfe00ccdb2d18bd5c05fb0dc2e86b8857d9f528a5a2ca3350ab6a9a054f2e93 internal/activator/genservice.go Service.startGenExe legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. whole:Route@170,whole:Route@253 445d05293d9e0a7ae4858c723a77eb0d267ee3839f67dacbeaa762de58546a07 |
| @legacy d5d3f63f7810cc876d19791895726c64872024d4a40e9dc5cf4bccca96d90b4a internal/activator/hawake.go ExecBackend.haSpawnGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before every spawn of a host this backend acquired HA, re-runs haContained and refuses an uncontained row; a non-HA host passes; +registry:Host, +whole:Route; only refuses;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. registry:Host@153,whole:Route@210,whole:Route@93 71c81e3c5168d1a2a0fc56144828676efe2673ac52415b787e0ab3e8bf18959b |
| @legacy ee8f0fb34be740265cfa74de136702b6b7b4e3b5ae1ed7c4038ce38f128c5117 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=Refuse a reserved exact hostname with no serving peer before a local or remote catch-all can handle it; one snapshot supplies the reservation and dial decision; no new read or forwarding authority. P3a Task 3: refuse a managed tenant before forwarding, geo/proof preparation and dispatch; recheck the route after login next-path resolution. Only the fixed platform/unit scope is exempt. Whole Route passes to a local permission check, not a new store/path read. file:ReadAll@15378,registry:App@21535,registry:Gate@14352,registry:Gate@25926,registry:Gate@25986,registry:Gate@26044,registry:Host@26029,registry:ImportGate@33429,registry:Kind@20397,registry:Kind@23835,registry:Kind@33371,registry:Kind@33400,whole:Route@14247,whole:Route@14358,whole:Route@17175,whole:Route@17959,whole:Route@18417,whole:Route@18609,whole:Route@20400,whole:Route@21461,whole:Route@21527,whole:Route@21538,whole:Route@21791,whole:Route@21886,whole:Route@21962,whole:Route@22006,whole:Route@22308,whole:Route@22338,whole:Route@23838,whole:Route@24123,whole:Route@25929,whole:Route@25989,whole:Route@26032,whole:Route@26047,whole:Route@26965,whole:Route@29028,whole:Route@33374,whole:Route@33403,whole:Route@33432,whole:Route@33464,whole:Route@35312,whole:Route@5267 9b1df28b2df18736fbfdbe25eacba988dc08c7c54f78b944f4ad7f4a4ce25bfb |
| -internal/activator/activator.go Service.serveWakeError diagnostic C,J4 rev3=PROPOSED-seed; incarnation-keyed missing-files diagnostics and indexed retry results; throttles output only and grants no retry, stop or launch;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more case, errLeaseRefused (a born-HA host outside the nested layout or an HA acquire's refusal): logged at most once per diagnostic window (allowFilesDiagnostic(rt.Host, ...)) and answered 503 with Retry-After: 10; the other cases unchanged; +registry:Host x2 are rt.Host in that call and the log line; it only answers;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: two new answers, a resident inside its backoff gets 503 with Retry-After (RFS-3-C16), and a rootfs row refused before the lease (errRootfsNotAdmitted) gets the existing wake-failed 503; no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: for a verified HA hop, a held lease answers 503 Retry-After 1 with X-Carlos-Holder (answerForwarded) and every other refusal adds X-Carlos-Holder: none (noteNoHolder); legacy routes and cancellation unchanged; same reads;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: neutral admission 503 with Retry-After before forwarded-holder diagnostics; no new read, no holder identity. registry:Host@1159,registry:Host@1223,registry:Host@2925,registry:Host@2989,whole:Route@293 6c48d50f6b2adb839cfc69db45886deb6ad3295659d6cbae8543524d22470479 |
| -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. e48e989c8056fa9936db54b64cd27217db7959e83c29bd9b2bf834bf6bf66e11 |
| +@legacy 3718b1a504525b86388061b7d768fe876df57b4cae39ad6f7d49eb0df4835473 internal/host/schedule_wiring.go newScheduleDeps legacy accepted-legacy accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=root-route (J1, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from armSchedule: main's body with the runner's Skip set to scheduleSkip; no new read site;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Runner.WithDuty before token access through the existing Service. No new read.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3 fix R1: defer timers while local admission is closed, before token mint or attempt bookkeeping; translate an admission refusal from WithDuty into ErrDutyDeferred. Four whole Route predicate uses check existing fixed-route exemptions or pass the same row to WithDuty; no new external read or start authority. registry:App@1979,registry:App@388,registry:Host@2046,registry:Host@396,whole:Route@1223,whole:Route@1298,whole:Route@1974,whole:Route@383,whole:Route@872,whole:Route@946 143dc95af7d681eb5cbd9ca957acd888e1942404f9463b4e9a4bc6bf216d95dd |
| +internal/activator/activator.go Service.serveWakeError diagnostic C,J4 rev3=PROPOSED-seed; incarnation-keyed missing-files diagnostics and indexed retry results; throttles output only and grants no retry, stop or launch;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more case, errLeaseRefused (a born-HA host outside the nested layout or an HA acquire's refusal): logged at most once per diagnostic window (allowFilesDiagnostic(rt.Host, ...)) and answered 503 with Retry-After: 10; the other cases unchanged; +registry:Host x2 are rt.Host in that call and the log line; it only answers;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: two new answers, a resident inside its backoff gets 503 with Retry-After (RFS-3-C16), and a rootfs row refused before the lease (errRootfsNotAdmitted) gets the existing wake-failed 503; no read added;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: for a verified HA hop, a held lease answers 503 Retry-After 1 with X-Carlos-Holder (answerForwarded) and every other refusal adds X-Carlos-Holder: none (noteNoHolder); legacy routes and cancellation unchanged; same reads;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: neutral admission 503 with Retry-After before forwarded-holder diagnostics; no new read, no holder identity. Fix R1: distinguish startup from drain/shutdown using the same admission state; retain 503, Retry-After, no-store and removal of holder identity. Read sites unchanged. registry:Host@1253,registry:Host@1317,registry:Host@3019,registry:Host@3083,whole:Route@387 a39a010317dae409f05d3a32267414170852694bce8213ca8d61bfb06925d08b |
| +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. 6021fe3c1c364d0d4192cdc6c759a6340a4b3c099dd7394c8e5ed9e9bbde912b |
| internal/activator/claimwake.go Service.doClaimWake legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: a claim wake is refused (errWakeUnproven) while another entry's release record of the host is open, as an unproven failed wake already refuses it; the in-memory map only, no read added; adds a refusal only;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. file:Exec@1133,file:Prepare@2265,file:Read@140,file:Read@932,registry:Host@3329,registry:Host@3399,registry:Host@4520,registry:Host@4597,registry:Host@4723,registry:Host@5336,registry:WakeIncarnation@1464,registry:WakeIncarnation@1592,whole:Route@1466,whole:Route@1594,whole:Route@2363,whole:Route@2474,whole:Route@2529,whole:Route@2535,whole:Route@3542,whole:Route@3600,whole:Route@3606,whole:Route@4640,whole:Route@5600,whole:Route@6220,whole:Route@7584,whole:Route@7672,whole:Route@8344,whole:Route@8352 95a145f4c1985f8c88f37a135fb7ddd09cb4f52a38d9bec62c9acd3357ed1566 |
| internal/activator/rootfsworkers.go Service.installRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.11: the one writer of a worker's proc; installs only on the host's own entry, for a worker still the entry's, while the entry is awake and owned (a resident only with its lease watch); refused, the caller stops and proves gone what it started; in-memory;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. whole:Route@263 4796e557b3281e2165ac8cee36361bd88b4faef56f5520e5c83a3c7fd050a535 |
| internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners; existing reads unchanged. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 58941f6f3c6726de8d9e93562a1b95de0f7f90d43b6a54107958efd95af38d78 |
| internal/host/agent.go fastTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=observes the change index before any pass (observeIndex), runs the backstop's requested full pass and a scoped pass for moved app scopes (indexTick), and arms the canary pointer gate on the sweep (canaryPointerGate) only on a tick whose own index observation succeeded; read site unchanged, offset moved;rev3=census-ruling-stateless-replicas-1;basis=Call coordinator Tick on the existing tick before convergence; client renews held terms only at the pinned interval. Existing registry read unchanged. Final review I3: signal the owned renewal worker instead of waiting for its sequential console HTTP calls. Existing convergence and record read unchanged.;rev3=census-ruling-region-ha-p3a;basis=Run the optional desired-role reader on the existing tick after observing the armed change index; no new root path or timer, nil reader is unchanged. registry:Host@4821 487aa39fc1d1a2bb188ab5b71f0ee4bc0b417c53914f74c2b55867001a2ce528 |
| -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-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. Existing reads unchanged; no new cloud authority. file:Exec@18090,file:Open@1452,file:Statfs@46926,registry:App@11845,whole:Route@11837,whole:Route@30186 3d4c4e82597c801b95d940e911e020edba8d8a973ca2cae7b14a108efebcd34a |
| 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; preserve the real-route bit separately from wildcard/platform class during booting withdrawal; acknowledge the exact published role/admitted/drained tuple only after PUT; existing registry reads unchanged. registry:Account@15753,registry:Alias@10256,registry:Alias@13226,registry:Alias@13276,registry:Alias@8683,registry:Alias@8702,registry:Alias@8801,registry:Alias@8855,registry:Alias@8890,registry:Alias@8952,registry:Alias@9322,registry:Alias@9479,registry:Alias@9549,registry:Alias@9581,registry:App@15765,registry:DNSStatus@8997,registry:DNSStatus@9488,registry:Host@13129,registry:Host@13149,registry:Host@13414,registry:Host@13494,registry:Host@13529,registry:Host@13578,registry:Host@14040,registry:Host@14075,registry:Host@15183,registry:Host@3889,registry:Host@3935,registry:Host@3994,registry:Host@5109,registry:Host@6079,registry:Host@8728,registry:Host@8776,registry:Incarnation@5069,registry:Platform@4848,registry:Provisioned@4862,registry:Replica@4886,registry:ServingSeq@5084,registry:Status@2677,whole:Route@1026,whole:Route@17223,whole:Route@18041,whole:Route@18216,whole:Route@1841,whole:Route@2047,whole:Route@6164,whole:Route@750,whole:RouteAlias@13180,whole:RouteAlias@17245,whole:RouteAlias@18231,whole:RouteAlias@8566,whole:RouteAlias@8648,whole:RouteAlias@8840,whole:RoutePath@17238,whole:RoutePath@18224,whole:RoutePath@5948,whole:RoutePath@5980,whole:RoutePath@6027,whole:RoutePath@6055,whole:RoutePath@6093,whole:RoutePath@6113,whole:RoutePath@6125,whole:RoutePath@6179,whole:WildcardDomain@13107,whole:WildcardDomain@13483 623de89af2adc399601b13eb4f6a529f45f8e13def4230beb7995d19d72dfe9c |
| infra/modules/region-host/group_alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. file:external@0 c12a3da2781c7a5a10855cf1f194b2b07c562c1d7972926712cf881891c87145 |
| infra/modules/region-host/ingress/alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add per-TG NLB alarms and optional deployment/region clock and admission alarms, notify only; no compute actions or fixed identifiers. file:external@0 a4da64aa4ccbe2ffc0618ffe7e1e6d4ca5ee616b056a938a94c9eb3041bcffbb |
| @@ -78,12 +79,13 @@ internal/activator/group_admission.go Service.TenantAdmissionExempt legacy accep |
| internal/activator/group_admission.go Service.startOwnedLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@166 b31ef60f28c2e32ed9688f4f467723f191c1a17c2faf633ea5f9fa13cffd9d83 |
| internal/activator/group_admission.go Service.tenantStartRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@92 cdf0335bf434190abd6983d1b8b94948ea783540b24ee8b0cc4a50fafe92810f |
| internal/boxroles/roles.go Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Two point GETs of validated own and canonical-region desired-role keys; strict bounded parsing, errors never default to serve; no filesystem read or root authority grant. file:Read@5 7a81085231b83e3c7f524640fe5c5d347ac941af24a7ee9f3bd15a3d349aec03 |
| -internal/edge/group_admission.go Edge.admissionRefuses legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@291 99b8b06c1fb1ede9dd48da9fa129fa792034ed0b3207ddd134102cd8627f9863 |
| +internal/edge/group_admission.go Edge.admissionRefuses legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. Fix R1: choose startup or temporarily-unavailable response from the existing admission source without weakening refusal or exemptions; no new external read. whole:Route@291 ccc3164af3bb16a83e422e1d0a630f5bcfb5f3df92cdd7e2503c23d9004fcf13 |
| internal/host/boxroles.go boxRoleReader.pass legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Apply successful two-GET roles even while the watch is unusable; preserve restrictions and close starts on failed reads/application; retain one jittered ReadGate and bounded retry backoff through watch failure; throttle failure logs; no filesystem read. file:Read@268 5a24611b7b34023794f20e4820f843700c201186ce8e28a763cca44bbd06a89f |
| internal/host/boxroles_config_linux.go readRoleRegionConfig legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Read the fixed operator-delivered /etc/carlos/region-config.json through no-symlink openat2, fstat root ownership/regular-file/non-writable checks, single-link check and 4097-byte limited read; validate explicit canonical code and unchanged raw placement, never infer from AWS. file:Fstat@414,file:Openat2@90,file:ReadAll@733 2ab0091c9dad48273774eb0feb4b9289b823b9ed7a76852e6c6d26b34cb6e231 |
| internal/host/group_admission.go fixedAdmission.TenantAdmissionExempt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: classify the existing Route Platform, Unit and Backing fields for the fixed-box exemption; unsupported group mode has no exemption. Does not grant any new lease or root start authority. whole:Route@89 e336ed9f48649c8c54a0eb112ff6e7ec3e4bc995e56a4abe9fb7cfe20f12d7a0 |
| -internal/host/group_admission.go fixedAdmission.bind legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. whole:Route@319 5ced62d5a15dc2d0230e4ee1d2765fb7adb8b8ae4a4f3a7a3425419f8dca564f |
| +internal/host/group_admission.go fixedAdmission.bind legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. Fix R1: also bind the response-phase callback to the same fixedAdmission; invoked by runAgent through wireAgentAdmission before arming the departure consumer. Existing whole Route predicate only; no new external read. whole:Route@378 2094d7b6e1ad01184157ba1e8bb03840edbe0955ef32a4221188860af71a1ee2 |
| internal/host/group_admission.go fixedAdmission.exempt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: classify the existing Route Platform, Unit and Backing fields for the fixed-box exemption; unsupported group mode has no exemption. Does not grant any new lease or root start authority. registry:Backing@111,registry:Platform@79,registry:Unit@94 1ff6546ebcea7c167b0819d478059b4d1e57a401a85f10bbf08cf9583e998abc |
| +internal/host/group_admission.go runWorkerBootPassAfterAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3 fix R1: wait for the first successful local admission or startup cancellation, then list the same registry and run the existing bounded worker boot pass through Service.WakeWorker. The whole Route read moved from runAgent, delayed until after first reconcile; no new source/path or root launch authority. whole:Route@517 3c5833004484dc449d73b9caa7a474ac9b621458d1e1473dd138bd0878d586d4 |
| internal/host/memwatch.go memwatchLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=On opted-in fixed boxes only, reuse Task 2 root-owned region-config reader and Task 3 state; on existing cadence execute absolute /usr/bin/chronyc with fixed -c tracking args, one-second context and bounded 4096-byte output. No shell, tenant-named path or new timer; switch-off reads no region config and executes no clock command. file:CommandContext@1677 fb6985996ca1c86c060605534b55a54e60b3b8f8ccacee935ae7467e36aa9ae1 |
| internal/activator/backend_exec.go ExecBackend.nestedReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as nestedGate): new (rootfs Plan 2 Task 9): nestedGate's box half, split out unchanged so rootfsGates asks it too: the control channel is configured and NestedOK passes; its two sites are the row's host in the error text; no file, no root decision;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. registry:Host@217,registry:Host@362,whole:Route@93 db559b77443fa7532803e9c83547482e979ebf2813706b6e9661ba7af6fa7080 |
| internal/activator/activator.go Service.WakeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: check local tenant admission and start permission before lease/restore, preserving already-awake reuse during drain and existing serialization. Whole Route passes to the local predicate; no new filesystem or store read. registry:Host@1428,registry:Host@1837,registry:Host@923,registry:Host@953,whole:Route@1012,whole:Route@108,whole:Route@1404 e35358e75b7a0af7f2f382d28328e3373a48b06cdc876dbd8649db9b3c00741a |
| @@ -108,17 +110,19 @@ internal/activator/genservice.go Service.startGenExe legacy accepted-legacy acce |
| internal/activator/hawake.go ExecBackend.haSpawnGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before every spawn of a host this backend acquired HA, re-runs haContained and refuses an uncontained row; a non-HA host passes; +registry:Host, +whole:Route; only refuses;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. registry:Host@153,whole:Route@210,whole:Route@93 71c81e3c5168d1a2a0fc56144828676efe2673ac52415b787e0ab3e8bf18959b |
| internal/activator/workerbuild.go Service.startWorker authority E2 E39: close the unsupported claimed worker path before backend entry, replacement or supervised stop. Claims-off paths remain unchanged. This is refusal coverage, not positive root-reserved worker launch support. Fixtures: TestPlan14GenerationWorkerStartBoundary, TestPlan14GenerationWorkerRealBackendRefusal, TestPlan14GenerationWorkerReplacementBoundary, TestPlan14GenerationWorkerSupervisionBoundary. Pre-flight 29 and E39 worker launch audit.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read. registry:Host@1301,registry:Host@1479,registry:Host@2414,whole:Route@1031,whole:Route@233,whole:Route@2520 efa454a478f289a6f63432802e63d313ba2c1f4298aae6cfb46c666e99b47654 |
| 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=Refuse a reserved exact hostname with no serving peer before a local or remote catch-all can handle it; one snapshot supplies the reservation and dial decision; no new read or forwarding authority. P3a Task 3: refuse a managed tenant before forwarding, geo/proof preparation and dispatch; recheck the route after login next-path resolution. Only the fixed platform/unit scope is exempt. Whole Route passes to a local permission check, not a new store/path read. file:ReadAll@15378,registry:App@21535,registry:Gate@14352,registry:Gate@25926,registry:Gate@25986,registry:Gate@26044,registry:Host@26029,registry:ImportGate@33429,registry:Kind@20397,registry:Kind@23835,registry:Kind@33371,registry:Kind@33400,whole:Route@14247,whole:Route@14358,whole:Route@17175,whole:Route@17959,whole:Route@18417,whole:Route@18609,whole:Route@20400,whole:Route@21461,whole:Route@21527,whole:Route@21538,whole:Route@21791,whole:Route@21886,whole:Route@21962,whole:Route@22006,whole:Route@22308,whole:Route@22338,whole:Route@23838,whole:Route@24123,whole:Route@25929,whole:Route@25989,whole:Route@26032,whole:Route@26047,whole:Route@26965,whole:Route@29028,whole:Route@33374,whole:Route@33403,whole:Route@33432,whole:Route@33464,whole:Route@35312,whole:Route@5267 9b1df28b2df18736fbfdbe25eacba988dc08c7c54f78b944f4ad7f4a4ce25bfb |
| +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-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. Existing reads unchanged; no new 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. file:Exec@18155,file:Open@1517,file:Statfs@46949,registry:App@11910,whole:Route@11902 f4eec5ecc2ca4c37bd80395aa9f01cb153bfe0a94e753992f79dbefb2c1a126a |
| +internal/host/schedule_wiring.go newScheduleDeps legacy accepted-legacy accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=root-route (J1, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from armSchedule: main's body with the runner's Skip set to scheduleSkip; no new read site;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Runner.WithDuty before token access through the existing Service. No new read.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3 fix R1: defer timers while local admission is closed, before token mint or attempt bookkeeping; translate an admission refusal from WithDuty into ErrDutyDeferred. Four whole Route predicate uses check existing fixed-route exemptions or pass the same row to WithDuty; no new external read or start authority. registry:App@1979,registry:App@388,registry:Host@2046,registry:Host@396,whole:Route@1223,whole:Route@1298,whole:Route@1974,whole:Route@383,whole:Route@872,whole:Route@946 143dc95af7d681eb5cbd9ca957acd888e1942404f9463b4e9a4bc6bf216d95dd |
| @coverage infra/modules/region-host 2067bf570fe0f96da8f95c8706b80106cd22e56c2d3514394b9654aee45ad9ae |
| @coverage infra/modules/region-host/ingress 6d8e6673392f649d0bdf24f24015295bb6bec0792b5f331a438b678bd36d73c2 |
| @coverage infra/modules/region-host/ingress/tests d914e0542c1868917e85f986e49459a10907994b3d6d5a46cb510fc35dea8301 |
| @coverage infra/modules/region-host/ingress/tests/fixed-targets 66fb331d8b8eb1ba67672cacb40229c6bf575bd04a33561274582beccff24c33 |
| @coverage infra/modules/region-host/ingress/tests/fixed-targets/tests 567e4b97ac15cea31cb88aba77dccf739e58382158dba13d6b03e22935995b52 |
| @coverage infra/modules/region-host/tests e3b4f8199f84822455ff1624e4ba739d9aa7b4933c3fc2cb79f657ec43c21082 |
| -@coverage internal/activator 7ad287a6d6bd3a4a2e1bce9b84ac1bb6e85dae96d9f8a79ec9b4dda186a27264 |
| +@coverage internal/activator c16decc0fdbca4134e5a24e02799803bda8563809c6bd4c9122aeb8fc523cc91 |
| @coverage internal/boxroles b8804945a8da39c3f4d1778dc977ee1a071a6c8489ace1c5a22c92b5acb85d91 |
| -@coverage internal/edge 40ff67a76c8f93dd23e69ddd76a5d5f1f0a759da73949b33daeaa75bee923250 |
| +@coverage internal/edge 1ee70723d2f5e4a4fa8dfd12e9ba33e1a348d525c48def706d58f37e20593b18 |
| @coverage internal/edgesfile 79ccfee3606279650719114b126a16cef92707b148d8c941e1100e21115f7283 |
| -@coverage internal/groupadmission ee9dc16e43abbeca1e81cc1029f0d53fc81be13e3e36120c88b06bb3f3d73c78 |
| -@coverage internal/host 75a9b7b6eac2a08c1617d1b64801daa863cdb63fe4972b10b7207947940959cd |
| +@coverage internal/groupadmission 2172be5de464b7860474c2c38d13ed3c2c16a50e9b151e123642f4c832968a2e |
| +@coverage internal/host f7b26b2ef2747ba767ecf4bea99aafb316ebd92cae4ee4c1b72fd66c8acf0c1a |
| @coverage internal/hostenv d9df92980cd7f97c31ad7334ee552e7f6378fdb310d8a1ca0d0d0cda983db81e |
| @coverage internal/release 95051eb07c6f91bdda535e8b8b45154a97c0f6869e92c32572e7f84c32677af4 |