| index 74969322b..32038f1a3 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv |
| @@ -1,11 +1,13 @@ |
| # Census overlay region-ha-p1a, written by census-propose (#369). census-ruling-region-ha-p1a, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-p1a.md. |
| -# 20 body, 18 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 22 body, 20 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 5 removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired. |
| -# 61 new dispositions: 6 reads re-frozen at their disposition with the claim, 53 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 1 other. |
| +# 67 new dispositions: 6 reads re-frozen at their disposition with the claim, 59 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 1 other. |
| @legacy 50a1caf6478a988f7cc2853748a70f52ab9adacd7440ec0e6af1faeeeb37c436 internal/activator/activator.go Service.finishStop 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 with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added registry:Socket@2353,registry:Socket@2458,whole:Route@2303,whole:Route@2355,whole:Route@2460 a28ff1acede04af11be15c16b3a955330ad5a9c91c554ad17297f922a2b5c3e0 |
| @legacy 2e521cea08e5aa56d41cf6449e1aa5b03619f35c685373698d9f7413dc324cb6 internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a move's active probe), stands down an exited worker it names instead of restarting it (Astra finding 4), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Four more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more call at the top, a.retryOwedMarkers() (harelease.go), which starts at most one background lease.RetryPending pass over owed region HA release markers, off a.mu; the due query, idle, max-run and lapse logic are unchanged; the same 38 sites, no read added registry:Hibernate@10194,registry:Hibernate@13846,registry:Hibernate@23017,registry:Hibernate@5665,registry:Hibernate@7669,registry:Host@23086,registry:Host@23144,registry:Host@23611,registry:Host@23704,registry:Host@24439,registry:Host@24521,registry:Host@25586,registry:Host@25873,registry:Host@25922,registry:NextDue@24394,registry:Status@23033,whole:Route@10196,whole:Route@10949,whole:Route@13848,whole:Route@15781,whole:Route@17491,whole:Route@17681,whole:Route@17974,whole:Route@18146,whole:Route@18293,whole:Route@22504,whole:Route@23193,whole:Route@24108,whole:Route@24448,whole:Route@24455,whole:Route@25401,whole:Route@25702,whole:Route@25906,whole:Route@5476,whole:Route@5667,whole:Route@7502,whole:Route@7671,whole:Route@8105 8dad9910a9149c1ea2078e8fa450ae8b9b052a94af7baa015b616416c6e71db7 |
| +@legacy 1773c299405d743e132cf91c9308def11fa852d9a497adad38c7389c1bfd2b03 internal/activator/admintoken.go ensureAdminToken legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (EnsureAdminToken, EnsureAdminTokenBeneath and ensureAdminTokenFor; the agent's scheduler token through EnsureAdminToken; no root caller found): one more parameter, guard (a mintGuard, nil for every caller but an HA host's ensureAdminTokenFor), asked once this locked read has found no token and before anything is minted; its refusal is returned with nothing written. The read, mode check, shape check and mint are unchanged; the same four sites, no read added; only adds a refusal file:Lstat@1864,file:OpenFile@4446,file:Read@4083,file:ReadFile@433 215815606519c17f72e478e65536becc0edb4d24100c03ed0d041ef1687d433f |
| @legacy fe45212e19954ba18171b6efe4acddbc362bc5882837343834af38ee1d9baa99 internal/activator/backend_exec.go ExecBackend.Acquire legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: after the unchanged AdmitConfig gate, the lease acquire moves into acquireClassified (hawake.go, a new unit): a legacy route or a non-HA host takes the same lease.Acquire as before and maps a held lease to errLeaseHeld as before (leaseError); an HA host goes through the containment admission and lease.AcquireHA. A successful acquire marks the host acquiredHere for the process (same-box recovery). The config gate is not weakened; the same three sites, no read added registry:Host@807,whole:Route@382,whole:Route@764 633882c5d34004424ad26f613283954ecb70d077b2542ade220a9012eccaa5f0 |
| -@legacy bd376f94e6a9b90c59717e8cef83ba71cd6861677dfecfedfdb671a770359bca internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else, so nothing publishes after the release marker; the stop, proofs and lease give-back are unchanged; the same eleven sites, no read added registry:Host@2016,registry:Host@2529,registry:Host@3480,registry:Host@3820,registry:Host@4432,whole:Route@1883,whole:Route@2122,whole:Route@2126,whole:Route@3162,whole:Route@3845,whole:Route@3849 865b84839ef8880ccabbd6998929ce3beb7cbb16cbf28ca445813be2ee2606aa |
| +@legacy b4f2b448401f3bee6067365d18aa3e1dee1da545c86c31fd21d8fe3cc63f0ed5 internal/activator/instancekey.go ExecBackend.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: back to main's body bar a comment: it calls ensureInstanceKeyAt as before, and an HA host's mint decision now lives inside that producer (haMintGuard, final fix F2); the agent's backfill skips HA hosts before this (instancekeys.go); the one +whole:Route of the first proposal is gone; no read added whole:Route@310,whole:Route@325 1ab00497be9d84298e91e4c44e640bb83dc95689d474119628c650e1b7186e3c |
| +@legacy b8860707eddc591af03c55cc580e6358afc13a2a5c6b03219bd7dedf49bfb946 internal/activator/instancekey.go ensureInstanceKey legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more parameter, guard (nil for every caller but ensureInstanceKeyAt on an HA host), asked once the locked read finds no key and the bucket allows a mint, before anything is minted; its refusal returns InstanceKeyFailed with nothing written. Create-only, fail-closed and defer-on-unknown are unchanged; the one site unchanged, no read added; only adds a refusal file:Stat@4804 67c45c2c28717eb3f5df388c39bd415fe785bbce4c38a08c43908c277cb64cc7 |
| @legacy 67901cf184b88d5fbeb85084a575df28ff63187ada821e4c336364fe2a0cf505 internal/hostfiles/publisher.go Open legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=File publisher refuses manifests above path cap; generic remote files publishing remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: reads the manifest through loadRaw instead of load (the same GET, now also keeping the raw bytes and whether it was found) so the publisher records the committed body and its SHA-256 (for Gen and Baseline); the prefix check, the manifest cap and the one site unchanged; no read added file:Open@5 f0662edb97269ac22c494d67dc581f13f56b2758ccb82de369269394e313022f |
| @legacy 202332ac5a8c6f343e661c519b20f68fc3c201c5e1c83d598e545848ce7c8159 internal/hostfiles/restore.go Restore legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed file:OpenRoot@214 af2c0dc11ac80d7bd69f5a485dc65670eb4356c8add2006943167bac7da84625 |
| @legacy 076a3d4a7b5611230411933c5bcc70da6ca2f9da42668e4dfd59d2182c8c416c internal/lease/lease.go Held.Replicate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the Replicator it returns also carries the handle's ha flag, marker base and region, so an HA replicator releases through the marker only; the store setup, its five steps and the transfer are unchanged; the one site unchanged, no read added file:Open@460 223699b7cfeb844e2318fe1623e584c08050ae738ed68860c8bd775ed9d4d340 |
| @@ -29,14 +31,18 @@ |
| @legacy 85e60eaad959dfb39f94bc1288d4d1e642f4e3d913106c3cbdc304a5b4e3d1e0 internal/activator/harelease.go ExecBackend.haReleaseBase legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the release marker's identity for rt: this box's reference and instance id now (b.self()) and the lifetime the host's HA acquire classified; +registry:Host; no I/O registry:Host@173 48dcff07c7cd6a2bbaff59e5cffba33c2c301511704abd5f24f91f9aeaf325d2 |
| @legacy b559f85dbc07bb6328a19f3a16b64152013a2d43000f5426d7c513a909a9c78e internal/activator/harelease.go ExecBackend.hostSliceEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: reads the host slice's cgroup.events (CgroupEvents of instancectl.SliceName(host)) after refusing a unit-backed row (+registry:Backing) or a non-nested row; absent or unpopulated is empty, a read error is not; +registry:Host, +whole:Route; cgroup.events is the kernel's, under root's slice registry:Backing@76,registry:Host@449,whole:Route@189 9c9c8e35c57aa62a2ec71d27451e73fb044ae34d84ec0fe618f28580af79409e |
| @legacy 04b0e602ee3997fe6e4dc632570a78c9c61f17a56924acb11f16a9673d62fadf internal/activator/harelease.go ExecBackend.writeHARecord legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: on a clean release first checkpoints and truncates the database's WAL (lease.TruncateWAL, a new unit; a failure is logged and the record then shows a non-empty WAL, so it never keeps), reads the local state (readLocalNow), keeps the files baseline beside it (failure logged only) and writes the local release record (writeFileDurably); +registry:Host x4, +whole:Route registry:Host@403,registry:Host@453,registry:Host@658,registry:Host@705,whole:Route@124 311e508024a40af99de59435f274bde6c285b8c71532e3f024e9a0167af2805d |
| -@legacy 20a5f15cb52e09a76cd81a439dd2221d8eb724f0609537d15a3ec4bd95c283cf internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty (else errHostSliceUnproven and nothing written), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4 (the entry's route to the backend calls and log) registry:Host@1985,whole:Route@102,whole:Route@1294,whole:Route@1432,whole:Route@376 6c69fb9a708bc493540b88cf5479d090f40e2e6386abd0ab0870710ff206c2c7 |
| +@legacy e8b3e72494712aeaeeb7247e849ec1395ea6142738b58398057635eedb8a87c7 internal/activator/harelease.go Service.haHostEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1): the one whole-host emptiness proof for every HA release after a start (releaseHAClean, cleanupFailedWake, giveBackAfterStart, reapUnprovenWake): the backend's hostSliceEmpty (the host slice's cgroup.events); nil only on absent or unpopulated, any read error or a backend that cannot read it is errHostSliceUnproven; +whole:Route; agent-run as carlos; only refuses whole:Route@214 e636da4c6c2c51e845cc106fbf61a6abe3fcc5dfdf4347a1fd8f54d0cf86313b |
| +@legacy da61883377012274fcf3264833b935e566e0b9d0779e481056c4b574d6a49ff6 internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4 registry:Host@1789,whole:Route@102,whole:Route@1098,whole:Route@1236,whole:Route@244 99d367d5d5737596b19a2a258d0c9cc5ecee88072451605e068562f2ee319566 |
| @legacy ee98a0c71ab2d1a578dad78a4fc60fa35583ab67579023dfc8c07cbe0a3ae13a internal/activator/hasamebox.go ExecBackend.sameBoxEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the closure lease.AcquireHA calls as the same-box proof for taking this box's own expired HA lock: true only when sameBoxProven holds, else logs an ALERT at most once a minute and answers false; +registry:Host x2, +whole:Route registry:Host@194,registry:Host@360,whole:Route@157 13e36f0039fdd5884052bb77faa06773531c53638a159e229b318769948c17ef |
| @legacy 2fcb4036af07f2c80df3dfdc21b5446496147b0be5f87f8bd0b5ebc9e470bb2b internal/activator/hasamebox.go ExecBackend.sameBoxProven legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the same-box proof: the row contained (haContained), this agent's startup sweep proved every instance unit stopped (StartupSwept), the host not acquired by this process, the host slice read empty, and the host's flat cgroup under the agent's delegated subtree absent or unpopulated (no delegation refuses); every read is the box's own cgroup.events; +registry:Host x2, +whole:Route x2; only grants a takeover on all five registry:Host@326,registry:Host@666,whole:Route@480,whole:Route@88 bc8c6a43c60c3429c32df0da0b2b22a5cbb1649a66e672e8f620cabe8853aa66 |
| +@legacy 86e466fc1b6ae824164d9b3ea93fe8783b0d3037fcdfc023f47db2fc0b6e098e internal/activator/hasecrets.go ExecBackend.captureLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: reads an HA launch's own env file and its rendered config env once, the way instanceEnvParts does: on the nested layout through instancefs.ReadBeneathLimit (1 MiB, no link followed), otherwise os.ReadFile (the +file:ReadFile site; an HA host is nested by its acquire's containment admission, so this arm is the flat layout's, where the files are in the agent's own data directory); an absent own file is an error, an absent config is not; parses env and key layer from those bytes; +whole:Route file:ReadFile@287,whole:Route@98 207f274b0fa81c49cbfe4ec2d30f33ca96621fac6d6b2fd492e5ca6702249b5d |
| +@legacy ac88d98b386c46b6beffd6c5521c5498e891b7efa4c4d3ce26c24485e717e695 internal/activator/hasecrets.go ExecBackend.ensureAdminTokenFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: the launch paths' admin-token producer: haMintGuard(ctx, rt), then ensureAdminToken on <dataDir>/<host>.env, beneath on the nested layout and by path otherwise, with that guard; +registry:Host, +whole:Route; a non-HA host's guard is nil and the producer is the one it used before registry:Host@214,whole:Route@141 84ee1b47716ed4f39b5ac40487d367ccd3d3363843016db0f5370e049190a30a |
| @legacy b169929fd93793befeec6c34fc01ad620bbe7141d0aa32663c36cb893e128e0b internal/activator/hasecrets.go ExecBackend.haHostNow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the HA classification a launch acts on: this wake's recorded Acquire classification, else isHA; +registry:Host, +whole:Route; no file read registry:Host@115,whole:Route@179 af2963c073aaab0b380560e103babd22c3d1439227c24d120abc7804a787a784 |
| @legacy 61db56c7ea957bee8c2fc0a7da5bf7aa1fb8430be4878c21b8eb007dac609a0f internal/activator/hasecrets.go ExecBackend.haManifestFound legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: whether the host's files manifest exists: from the wake's or entry's publisher if there is one, else one hostfiles.Load of <hibernate prefix>/files/0/ from the files store; +registry:Host x2 registry:Host@120,registry:Host@332 5b152e6dd26f9ea98861b5c66fbd6772d030cea0189c2787b56a68ed65a128e2 |
| -@legacy 03c24dca5a1831446e6529d620d481b9dd42ec4647930c9e1f09f00a7ff91eae internal/activator/hasecrets.go ExecBackend.haMintGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the one gate before any producer of an HA host's CARLOS_ADMIN_TOKEN or CARLOS_INSTANCE_KEY: not HA, or the env already holds both (a replica needs only the token), passes; otherwise, if the files manifest exists, refuses with ErrInstanceKeyDeferred and mints nothing; reads the env pair through the existing readInstanceEnvPair (the instance's env and config); +registry:Host, +registry:Replica, +whole:Route x3; only refuses registry:Host@282,registry:Replica@484,whole:Route@110,whole:Route@226,whole:Route@586 b9766b7dddf2f57176039ae451c76db2d5547737c2a3483afdd1d975ed3e2021 |
| +@legacy 67b67b8f320490409d6e3687a7316505e7093450e4e7434054759b04bfadc8cb internal/activator/hasecrets.go ExecBackend.haMintGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos, replacing haMintGate: nil for a host that is not HA; for an HA host a guard that, asked only from a producer's missing-secret branch, reads once whether the host's files manifest exists (haManifestFound) and refuses with ErrInstanceKeyDeferred while it does (or on a read error); it never reads the env; +whole:Route x2; only refuses whole:Route@124,whole:Route@361 5b07e63555419c29b7a9c141484150f51680b9897c31fcf6de2ce78f2a3c8911 |
| @legacy 5e8b042ee8109fac3f4e5a1de048304eff131f51e9b5894e1344b71e80c4fd62 internal/activator/hasecrets.go ExecBackend.haScheduledToken legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: for an HA host, reads CARLOS_ADMIN_TOKEN from its env file (instancefs.ReadBeneathLimit, 1 MiB, beneath its directory without following a link) after the wake; not HA reads nothing; +whole:Route x2; the token is sent only to that same instance's tick whole:Route@132,whole:Route@201 b90afab57a291dbf21dfde5b95e2d13dc100aaeaee86e572adff7bfb878a4964 |
| -@legacy bc52086b3b648251bde8b0b53fd2fabe39b00fcfc801590355828a903529b3b3 internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks the env file's SHA-256 equals the committed manifest's env item (envAcknowledged, a capped read beneath the directory), else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET), and checks again; every error fails the launch; +registry:Host x3, +whole:Route x2 file:Open@342,registry:Host@1045,registry:Host@181,registry:Host@390,whole:Route@114,whole:Route@508 800882ddbfd71a2e44077eef1c987b3f4b00934f8a2b577ba8f44a44bf0035b6 |
| +@legacy dca8b4c571ec83f49cb890ce20029f0d34c4d9a1cac33d31a39bc4296516fca6 internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks that env, the bytes the launch captured (captureLaunchEnv; a new parameter, final fix F2), has the SHA-256 of the committed manifest's env item (envAcknowledged, which now reads no file); else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET) and checks again, so an env replaced after the capture is committed as other bytes and fails the launch; it no longer classifies the host itself (launchEnvLayer has); every error fails the launch; +file:Open, +registry:Host x3, +whole:Route file:Open@281,registry:Host@120,registry:Host@329,registry:Host@990,whole:Route@447 97df19df1fe54e7d574c198845d9f4e440e86460cf0b283d1c8c8db1c6f62976 |
| +@legacy 740dc4e03204fef05b1200e9a1a7801bb5c0aee6a6b22ad0ddb256c28121c157 internal/activator/hasecrets.go ExecBackend.launchEnvLayer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: a launch's env and key layer: classifies the host (haHostNow; an error fails the launch), instanceEnvLayer unchanged for a non-HA host; for an HA host captureLaunchEnv once, haSecretsReady over those bytes, a test seam (haLaunchHooks.afterPublish, nil in production), and returns the env parsed from the captured bytes, never a later read; +registry:Host x3 (the error messages), +whole:Route x4 registry:Host@245,registry:Host@428,registry:Host@573,whole:Route@154,whole:Route@300,whole:Route@337,whole:Route@478 5f55a0d76b9b4512a27cf344bca1aa8cfef4bd1edd76e7ebef14f9f6b236d024 |
| @legacy a701c18b92449f3acfb7c89edccd6eecbac8ceaf8b2eb5736907835a6f800ad5 internal/activator/hasecrets.go Service.IsHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the box's HA classification for internal/host (the backend's IsHA), else the row's sticky mark; +registry:HA, +whole:Route; no file read registry:HA@180,whole:Route@161 c7e9eee523e8d2cbe5504ef6745b3fafd4ececb390adff0b7313638171596552 |
| @legacy 3e4b7f98b2d48eacf303cd5f7d0f1545415004eb59634b970bff1d2621f0a415 internal/activator/hasecrets.go Service.fillScheduledToken legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: sets the tick's Authorization header from haScheduledToken for an HA host; any other host's request is untouched; +whole:Route whole:Route@197 33698b26fba02b5f5fa06fdccf81de13ddc1b84383e0641c14ca50f098740aff |
| @legacy 35321dd0fbad0f32a542572926018f75cd237d351d4f3733d5692930191ed33a internal/activator/hasecrets.go SplitBackend.IsHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: asks the exec half's IsHA (+file:Exec is the b.Exec field access, not a process exec), else the row's sticky mark (+registry:HA); +whole:Route file:Exec@97,registry:HA@161,whole:Route@146 100ae51fa67ceed1f480f871112b3a53975d04711d5b7e5a387e996a1c1c12fe |
| @@ -54,6 +60,8 @@ |
| @legacy fa8986b144a56b8810d7f6faab41bc9247f7f71a42ea1e70849c213b8db2880d internal/activator/hawake.go ExecBackend.restoreHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA host's restore: haContained again, the existing seed-obligation and seed-marker checks, then on a first wake (lock absent) sets the local copy aside and boots fresh; otherwise keeps the local copy only when hafresh.DecideKeep over the acquire's view, this box's identity, the lifetime and the local state (readLocalNow) says so, else sets it aside (instancefs renames and removes beneath their directories), restores the replica (lease.Restore, CheckDB, quarantine on corruption) and the files (restoreFilesClean); every error fails the wake; +registry:Host, +whole:Route x8 registry:Host@135,whole:Route@1043,whole:Route@1385,whole:Route@168,whole:Route@2434,whole:Route@246,whole:Route@478,whole:Route@560,whole:Route@959 15c4c56938036be55fe37872e5d390208d3f5d8d1059bf8da865497a665a7ebb |
| @legacy 169026192f9af0b8bc649121f2444552545a4bc5f6f1f8c78fad6769207d651c internal/activator/hawake.go ExecBackend.restoredReplication legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the replication class an HA restore imported for the host, from memory; +registry:Host registry:Host@102 f931f673b2ec2ef404e03c8c9244999d9ae95e9614fd4d953e9f9d4a35a1a3f1 |
| @legacy fb4034a06cf7c64d9376d35fc77c04cb3b06e0654cd5615deb4c335403a1e123 internal/activator/hawake.go haLegacyRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: a route is legacy for HA (sidecar, not provisioned, or a kind other than instance); +registry:Kind, +registry:Provisioned; pure registry:Kind@90,registry:Provisioned@72 3849289a7b85aa83b30c233d7bc0bbaa9699010ff69d5be81e09ca10bcd4e88d |
| +@legacy c9f0c3e08f38d54523c24d5a9bec936fcc3a7c38db843d12c4cfd6af25de138b internal/activator/maintenance.go Service.giveBackAfterStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: a failed wake's release when its start left nothing for cleanupFailedWake to prove: a legacy lease goes back as before (giveBack); an HA one only when haHostEmpty reads the slice empty, else it logs, marks the stop uncertain and retains the wake (retainUnprovenWake, sliceOnly) so the reaper retries the slice; +registry:Host x2, +whole:Route x3; no file read registry:Host@261,registry:Host@527,whole:Route@163,whole:Route@347,whole:Route@351 0f7ded83b1c016fa60b2460da96afa24dee87c1c958b6c04617392685dae5659 |
| +@legacy d11fe51d596e600c7b2d970c1bf8aebd7697fe938eb2b81ff3d563a0b0036cea internal/activator/maintenance.go Service.retainUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: records an unproven wake in a.unprovenWakes under a.mu, keeping its lease and replica until the reaper's proof holds; no new wake of the host starts meanwhile; +registry:Host, +whole:Route; no I/O registry:Host@169,whole:Route@171 39f0172e985a5f953b4671042934463a1b5ab995e6c55706c7547bcde55d3707 |
| @legacy 6e43fda90ca6e1501086e093e4b9e2c8f4e38b2f5791a5352f42905bb872aa0f internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record with provision.GetRecord(store, release.RouteAccount(rt), rt.App, rt.Host), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@570,registry:Host@578,whole:Route@565 68c6a9d5692d83895e22bdecd62920de25642980b42ce8f645e15e706b18d4bf |
| @legacy 0fa2a631d26760c9191d7637fee557054cfd44e6d6031adea47cd81dd4d7ae9f internal/host/haself.go readInstanceID legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos, at RunAgent's start and its one-minute retry (haSelfNow, haSelfRetry): reads this instance's id from IMDSv2 (PUT /latest/api/token, then the identity document), each body through io.ReadAll capped at 64 KiB (the +file:ReadAll site), within 2 s; the id names the box as owner of the lease locks it writes (lease.SetSelf); IMDS answers only for this instance, no tenant or app input; root never calls it file:ReadAll@514 9f242dc249c36f9a3c1f91d0619434e7d581d1f92f4242f3dfcbcb9ff9cb9eb6 |
| @legacy 5e93c1a0d295aad84d4f8002182c0b15095d280ece886e8740f97c9af2e5d656 internal/host/instancekeys.go haRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: asks the key backfiller for IsHA when it implements it (the activator's classification), else returns the row's sticky HA column (registry:HA, whole:Route); no file read registry:HA@204,whole:Route@189 047888231cc897c4cbe8e9a2a829d4071d824aeb507702fadb4bbbe8950556e3 |
| @@ -70,26 +78,30 @@ |
| @legacy cd83c272305c3cf633ef676e79ac66a906a5ff6c4eb9657ea53f2a356f54b7e6 internal/activator/backend_unit.go SplitBackend.Acquire legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: for a unit-backed row (+registry:Backing) it first asks the exec half's refuseHAUnit(ctx, rt) (+whole:Route), so a born-HA host is never woken unit-backed; +file:Exec is the scanner's reading of the b.Exec field access, not a process exec; a non-HA row goes to pick(rt).Acquire as before; only adds a refusal; keeps legacy file:Exec@359,registry:Backing@308,whole:Route@478,whole:Route@543,whole:Route@560 9e4098a80b6c9ef1f39447a8c0029411fb32cf90f1f9bad77a65114b3795b437 |
| @legacy 66b3f0a5fd2f8b44f0cb66749240fe4f25ea3f9ba7dc18b64f17d75fb9149f09 internal/provision/reconcile.go convergeOwned legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the owned-converge arm gains the asset pair beside steering: when the row's assets_off or asset_gen differs from the record's (Record.AssetsOn, Record.AssetGen), Registry.SetAssets converges both in one UPDATE (dry-run logs only); the new kinds are registry:AssetsOff and registry:AssetGen, three sites each, all existing.AssetsOff and existing.AssetGen (the comparison and the two log lines); it now also returns the converge errors it already logged, joined, so Reconcile's completeness report can tell an applied record from one that was not; no other read is added; the agent's own pass, no root decision;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the owned-converge arm gains the app policy: when the row's egress_allow, size or policy_expires_at differs from the pass's columns (ap, only when Known), Registry.SetPolicy writes all three in one UPDATE (dry run logs only), and it reports whether the allow or size moved so Reconcile can call PolicyChanged. New kinds registry:EgressAllow (three sites), registry:Size (three) and registry:PolicyExpiresAt (one), all existing.* of the agent's own row: the comparison and the two log lines; no other read added; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: when the record says HA and the existing row does not, marks the row with reg.SetHA (a dry run logs instead; an error is appended to the pass's errors); converges one way only, nothing clears the mark; +registry:HA is existing.HA; keeps legacy registry:Addr@2491,registry:Addr@2713,registry:Addr@3140,registry:Addrs@2518,registry:Addrs@2734,registry:Addrs@3161,registry:AssetGen@3998,registry:AssetGen@4184,registry:AssetGen@4575,registry:AssetsOff@3968,registry:AssetsOff@4158,registry:AssetsOff@4549,registry:Channel@226,registry:Channel@356,registry:Channel@687,registry:EgressAllow@8261,registry:EgressAllow@8517,registry:EgressAllow@8939,registry:Environment@1230,registry:Environment@729,registry:Environment@871,registry:HA@6658,registry:Health@2545,registry:Health@2757,registry:Health@3184,registry:PolicyExpiresAt@8342,registry:Replica@6017,registry:Replica@6145,registry:Replica@6477,registry:Replicas@5148,registry:Replicas@5273,registry:Replicas@5595,registry:Size@8303,registry:Size@8555,registry:Size@8977,registry:StatusNamed@1306,registry:StatusNamed@1450,registry:StatusNamed@1814,registry:Steering@3220,registry:Steering@3353,registry:Steering@3691,registry:UpdateSettings@7319,registry:UpdateSettings@7459,registry:UpdateSettings@7819 02a957b147e2aaae26cf4080b745c04a10b1afed2d41f47374da31147967adb3 |
| @legacy 1aa215582d913dbd420118ef6aa497bc5113153ae0ee8e8b51b478a5f2266cea internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the two new columns scanned;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the rate_limit column scanned into Route.RateLimit; the new kind is registry:RateLimit, one site; no other read;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=main's body with the runtime column scanned into Route.Runtime, before rate_limit; the new kind is registry:Runtime, one site; no other read; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) scanned beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) scanned after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: main's body with egress_allow, size and policy_expires_at scanned into Route.EgressAllow, Route.Size and Route.PolicyExpiresAt after serving_seq; the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; routeColCount 64; no other read;rev3=census-ruling-region-ha-p1a;basis=scans one more column, ha, into Route.HA (+registry:HA); routeColCount 64 to 65; keeps legacy registry:Account@408,registry:Addr@176,registry:Addrs@498,registry:App@251,registry:Args@557,registry:AssetGen@867,registry:AssetsOff@979,registry:Backing@333,registry:BuildState@782,registry:Canary@1033,registry:Caps@438,registry:CertExpiresAt@390,registry:Channel@281,registry:ClaimIncarnation@619,registry:ClaimOwner@655,registry:ClaimRowID@670,registry:ClaimStamp@640,registry:CreatedAt@541,registry:DBPath@212,registry:DNSCheckedAt@373,registry:DNSStatus@359,registry:EgressAllow@913,registry:Environment@422,registry:FleetBox@483,registry:Gate@532,registry:GoodDemand@729,registry:GoodDigest@714,registry:GoodVersion@698,registry:HA@963,registry:Health@508,registry:Hibernate@1009,registry:HoldOp@685,registry:Host@138,registry:IdleSeconds@566,registry:ImportGate@814,registry:Incarnation@880,registry:Kind@156,registry:LastError@198,registry:MaxRunSeconds@582,registry:NextDue@321,registry:Platform@1079,registry:PolicyExpiresAt@938,registry:Pool@259,registry:PrevVersion@235,registry:Provisioned@1103,registry:RateLimit@841,registry:Region@270,registry:Replica@1130,registry:Replicas@600,registry:Replication@305,registry:Runtime@829,registry:Seed@465,registry:SeedSource@799,registry:ServingSeq@896,registry:ServingVersion@744,registry:Size@929,registry:Slug@147,registry:Socket@165,registry:Status@185,registry:StatusNamed@1054,registry:Steering@519,registry:Tunnel@447,registry:Unit@474,registry:UpdateSettings@763,registry:Version@223,whole:Route@1159 b8117e846728d193e094124a3e49cee3d53489cd31573d50b78957cfb6c1ce27 |
| -@legacy 3b7b72000d732d738ff8130b24d1be7d82ac4d6b9791137fd662f6b9bca50022 internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x4 (rt handed to restoredReplication and openEntryFiles and in the cleanup calls); no file read in this body, no check removed registry:DBPath@1300,registry:DBPath@1316,registry:DBPath@1443,registry:DBPath@1454,registry:DBPath@22970,registry:Host@1129,registry:Host@1204,registry:Host@1282,registry:Host@1434,registry:Host@174,registry:Host@1768,registry:Host@2628,registry:Host@4603,registry:Replication@22873,registry:Replication@23005,registry:Replication@9338,registry:Replication@9467,registry:Replication@9486,registry:Replication@9567,registry:Seed@12725,registry:Socket@1329,registry:Socket@1345,registry:Socket@1468,registry:Socket@1479,whole:Route@10659,whole:Route@10851,whole:Route@11541,whole:Route@1227,whole:Route@12826,whole:Route@12897,whole:Route@15313,whole:Route@159,whole:Route@1663,whole:Route@1668,whole:Route@17171,whole:Route@1722,whole:Route@1728,whole:Route@17817,whole:Route@1794,whole:Route@1802,whole:Route@19124,whole:Route@19278,whole:Route@19634,whole:Route@19728,whole:Route@20447,whole:Route@21105,whole:Route@22107,whole:Route@22292,whole:Route@23082,whole:Route@23494,whole:Route@23543,whole:Route@23921,whole:Route@24893,whole:Route@24988,whole:Route@2518,whole:Route@3972,whole:Route@4231,whole:Route@4493,whole:Route@4498,whole:Route@4555,whole:Route@4561,whole:Route@4630,whole:Route@4638,whole:Route@5426,whole:Route@6494,whole:Route@7559,whole:Route@8440,whole:Route@9318,whole:Route@9569 4cbf2b4a1ef0c80699c146756990570e5ae897359698ad9bdcdef43e3294b99c |
| +@legacy 8a9d25e268d060e5fa33ad1082811e4f7fc76d83242dfdf743f7ed21aff23c1d internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed registry:DBPath@1300,registry:DBPath@1316,registry:DBPath@1443,registry:DBPath@1454,registry:DBPath@22932,registry:Host@1129,registry:Host@1204,registry:Host@1282,registry:Host@1434,registry:Host@174,registry:Host@1768,registry:Host@2628,registry:Host@4603,registry:Replication@22835,registry:Replication@22967,registry:Replication@9338,registry:Replication@9467,registry:Replication@9486,registry:Replication@9567,registry:Seed@12725,registry:Socket@1329,registry:Socket@1345,registry:Socket@1468,registry:Socket@1479,whole:Route@10659,whole:Route@10851,whole:Route@11541,whole:Route@1227,whole:Route@12826,whole:Route@12897,whole:Route@15313,whole:Route@159,whole:Route@1663,whole:Route@1668,whole:Route@17171,whole:Route@1722,whole:Route@1728,whole:Route@17817,whole:Route@1794,whole:Route@1802,whole:Route@19124,whole:Route@19278,whole:Route@19634,whole:Route@19728,whole:Route@20447,whole:Route@20878,whole:Route@21086,whole:Route@21140,whole:Route@22069,whole:Route@22254,whole:Route@23044,whole:Route@23456,whole:Route@23505,whole:Route@23883,whole:Route@24855,whole:Route@24950,whole:Route@2518,whole:Route@3972,whole:Route@4231,whole:Route@4493,whole:Route@4498,whole:Route@4555,whole:Route@4561,whole:Route@4630,whole:Route@4638,whole:Route@5426,whole:Route@6494,whole:Route@7559,whole:Route@8440,whole:Route@9318,whole:Route@9569 e84f007aaa5b1107e93a4a093209f85fc7efdf824215bc2698dd94d9995f939d |
| @legacy 24c810fe856799295c183d9a9df6877e4adc830146c10f339a797d7bf1be4e09 internal/activator/backend_exec.go ExecBackend.Seed legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), which for a host this backend acquired HA re-runs the containment admission (nested layout, not unit-backed, nestedReady) and refuses otherwise; a non-HA host passes untouched; only adds a refusal registry:Host@328,registry:Host@390,whole:Route@100,whole:Route@151,whole:Route@219,whole:Route@375 4711b16789959048d733cf1c64bb6df0cf1f6da39500f159e0b1b1bcd0c4adbd |
| @legacy 011227cb4600bec3861bb864cab357d1e5132192345596c33ed0d249080e64bf internal/activator/backend_exec.go ExecBackend.Start legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes through rootfsGates and startRootfsFromLive, never the layout switch; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), refusing an HA-acquired host whose row is no longer contained; otherwise unchanged; only adds a refusal registry:Host@553,registry:Runtime@164,registry:Socket@316,registry:Socket@425,registry:Socket@607,whole:Route@117,whole:Route@231,whole:Route@312,whole:Route@350,whole:Route@421,whole:Route@603 237b4b23e3b231bef4fa1234457bc49ca733a3770bb050569804d5f827b657ba |
| @legacy 4d4efc9f3c60a0b14aef4f3b9562f2d43e48d24036fdfd8b58d1a348f7a08d87 internal/activator/backend_exec.go ExecBackend.StartGen legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes to startRootfsGen; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Runtime@190,whole:Route@140,whole:Route@262,whole:Route@313 8b7bbf22cde95d6ef05632effc093f8bf49b8a6bff9a35b11001d01f71ad604e |
| @legacy d2be87ea722edf4cdcc11f84d3e747be7d27674f39794e4ee922784f3c07e153 internal/activator/backend_exec.go ExecBackend.StartGenExe legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes to startRootfsGen with the recorded identity; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@426,registry:Runtime@220,whole:Route@170,whole:Route@292,whole:Route@474,whole:Route@527 9e3452908a37d041c43b22cb2233b1ef4b4cb09fefa7b7a3dd7db70c89dd97a0 |
| @legacy 24919692826e017fb1adfe592d275c62262300047abda3d2b11f1583a6aec69b internal/activator/backend_exec.go ExecBackend.StartSidecar legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@350,whole:Route@116,whole:Route@172,whole:Route@248,whole:Route@405 751d1c1e90292bda31c90684539caa10a07d720a88817b1232cc89e70936c78e |
| @legacy 41d1b46d8c2a5a93bdec29e2ecfcefdb013d841a322061b49dcc52797f719c2a internal/activator/backend_exec.go ExecBackend.restorePlain legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen ExecBackend.Restore, which is now its dispatcher, with the seed marker reconciled before the warm-cache check; same staging fallback and replica restore;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: first asks haRestore(ctx, rt) (+whole:Route x2: rt to haRestore and to restoreHA); an HA host restores through restoreHA (hawake.go, a new unit) and never through the warm cache or the staging fallback; an error there fails the restore; a non-HA host takes the unchanged path file:Stat@802,registry:Host@370,whole:Route@243,whole:Route@323,whole:Route@390,whole:Route@659,whole:Route@739 f735ac30a811271d040495e7c7c9b7905a56bf0fb831a6dd5465d951d2b53bc5 |
| -@legacy b4a3b9fed310d6f92243ec555858dc865c3840e82b7af90214949375620d5322 internal/activator/backend_exec.go ExecBackend.seedChild legacy accepted-legacy accepted-legacy;rev3=census-ruling-owed;basis=Census ruling owed (amadan #272, zdd-owed-items): changed legacy row; the flat seed's cgroup before-start hook writes the wake's pending record, after the cgroup's refusals and immediately before the exec. Boundary: agent-side, running as carlos (only runAgent builds the activator, under carlos-edge.service, User=carlos); the record is the existing BeforeExec build-state write, moved later, never earlier; no new read, no root decision, and no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before EnsureAdminToken and haSecretsReady(ctx, rt) after the instance key and before the env is read (+whole:Route x2): an HA host mints nothing beside an existing files manifest and launches only with its env published and acknowledged; a non-HA host is unchanged; only adds refusals file:CommandContext@3345,file:Stat@2246,registry:App@4594,registry:Host@120,whole:Route@10159,whole:Route@1146,whole:Route@149,whole:Route@1512,whole:Route@1631,whole:Route@1751,whole:Route@176,whole:Route@1955,whole:Route@3293,whole:Route@4589,whole:Route@672,whole:Route@7353,whole:Route@755 8daddfc959293c9130c153142c1515b0a256df53db06b883af3c0952a514a31d |
| -@legacy 27d02b56853f0b2e15247733ed21941612e002581471254ca23cd0ec1c5fd3a5 internal/activator/backend_exec.go ExecBackend.spawnChildFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the same two calls as seedChild, haMintGate before EnsureAdminToken and haSecretsReady after the instance key (+whole:Route x2); a non-HA host is unchanged; only adds refusals file:Command@9910,registry:Host@11192,registry:Host@11286,registry:Host@164,registry:Host@4001,registry:Host@4056,registry:Host@4136,registry:Host@4234,registry:Host@4355,whole:Route@10307,whole:Route@11583,whole:Route@11675,whole:Route@1182,whole:Route@1714,whole:Route@1842,whole:Route@193,whole:Route@2092,whole:Route@4549,whole:Route@6620,whole:Route@8593,whole:Route@9856 1efd263190afc5e61598646b884509aeb85f0a5808a4c0cda9bf832f94a77afd |
| -@legacy 6287b4df8a001715f562b1c6c29a6ed447e00ccdbd7e2a5574fd6f9ad8bdf45d internal/activator/claim_snapshot.go ExecBackend.EnsureClaimAdminToken legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before the authorized token mint (+whole:Route); a non-HA host is unchanged; only adds a refusal registry:Host@2336,registry:Host@2678,registry:Replica@1285,whole:Route@1363,whole:Route@1991,whole:Route@2046,whole:Route@212,whole:Route@2605,whole:Route@285,whole:Route@347 c9f602f949a4949da748f2ad7f0e39f24c36bfd5481f656038745b7ec2131590 |
| +@legacy 5f443b81d984efed9521eafee498db12aa33704b7b5ae571a2e379fd810bd025 internal/activator/backend_exec.go ExecBackend.seedChild legacy accepted-legacy accepted-legacy;rev3=census-ruling-owed;basis=Census ruling owed (amadan #272, zdd-owed-items): changed legacy row; the flat seed's cgroup before-start hook writes the wake's pending record, after the cgroup's refusals and immediately before the exec. Boundary: agent-side, running as carlos (only runAgent builds the activator, under carlos-edge.service, User=carlos); the record is the existing BeforeExec build-state write, moved later, never earlier; no new read, no root decision, and no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (the flat seed body): the admin token producer is now ensureAdminTokenFor(ctx, rt, paths) instead of EnsureAdminToken(paths.envFile) (the same file, <dataDir>/<host>.env, by path on this flat layout), which carries an HA host's mint decision (haMintGuard) into the producer's missing-token branch; the instance key producer carries it the same way (ensureInstanceKeyAt); the env is now read by launchEnvLayer(ctx, rt): instanceEnvLayer unchanged for a non-HA host, and for an HA host one capture of the env that is published, acknowledged and handed to the launch as read. The separate haMintGate and haSecretsReady calls are gone (final fix F2); the sites are +whole:Route, one fewer than the first proposal; only adds refusals for HA hosts file:CommandContext@3283,file:Stat@2184,registry:App@4532,registry:Host@120,whole:Route@10097,whole:Route@1155,whole:Route@1415,whole:Route@149,whole:Route@1689,whole:Route@176,whole:Route@1893,whole:Route@3231,whole:Route@4527,whole:Route@672,whole:Route@7291,whole:Route@755 6a9d3349f68d63f9924a58c9965a3e6560e1212fb4445c9e607f096191d2b57b |
| +@legacy 81eced05d26babd3ae54488d96574cbac7d00b503957f747e849ffe245087b56 internal/activator/backend_exec.go ExecBackend.spawnChildFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (the flat start body): the same change as seedChild: ensureAdminTokenFor(ctx, rt, paths) for the token (the same flat path), the key's producer carrying the HA mint decision, and launchEnvLayer(ctx, rt) for the env and key layer the replica gate reads; a non-HA host's token, key and env are produced and read as before; +whole:Route; only adds refusals for HA hosts file:Command@9787,registry:Host@11069,registry:Host@11163,registry:Host@164,registry:Host@3878,registry:Host@3933,registry:Host@4013,registry:Host@4111,registry:Host@4232,whole:Route@10184,whole:Route@11460,whole:Route@11552,whole:Route@1191,whole:Route@1608,whole:Route@193,whole:Route@1969,whole:Route@4426,whole:Route@6497,whole:Route@8470,whole:Route@9733 a0b66fab5aeaa7ac8cd5786cfaad768367939a9e92242baebbca2ee2dd77c9f0 |
| +@legacy 071fb2d93f319ef920b005f9729166ff7ae219bc79ce2c4be076cf6b9dc8db3c internal/activator/claim_snapshot.go ExecBackend.EnsureClaimAdminToken legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, inside the claim's authorize callback: the missing-token mint is now ensureAdminTokenFor(ctx, rt, paths) instead of ensureAdminTokenAt(paths, rt.Host+".env") (deleted); both pick the beneath (instancefs) producer on the nested layout and the path one otherwise, on the same file; the new one also asks an HA host's mint decision (haMintGuard) at the moment it would mint. The separate haMintGate call of the first proposal is gone (final fix F2). Sites: -registry:Host (the rt.Host+".env" argument) and +whole:Route (rt to ensureAdminTokenFor); only adds a refusal for an HA host registry:Host@2643,registry:Replica@1285,whole:Route@1363,whole:Route@2015,whole:Route@212,whole:Route@2306,whole:Route@2570,whole:Route@285,whole:Route@347 d40a22035d58018ea75280e37f2b9a3b0d7b4dc46aa7beaf14586333b8da6152 |
| @legacy 2931580aebce8ca9b0ad96278a6d95ae21d3d5b8ff102df688055d48f831d8fd internal/activator/genbackend.go ExecBackend.StartSidecarGen legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@754,whole:Route@126,whole:Route@182,whole:Route@638,whole:Route@813 3986618b0885497b9132ba98a3eec636f8324e5d670307d05b7610e9a48f7e85 |
| @legacy b1c5906955226c0aa12336656626b4d965e3170b3a4839c1cd4e12d885a9743f internal/activator/genbackend.go ExecBackend.StartStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr4;basis=Census ruling zddr4: changed legacy row; the same layout switch goes through genLayout on the same row's Host, so an over-long flat host takes the existing foreign arm on its canonical socket. Boundary: agent-side, running as carlos; generation socket directories under the agent's own /run/carlos tree; no root decision; no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@1768,registry:Host@288,registry:Host@343,registry:Host@465,registry:Host@965,registry:Socket@1027,registry:Socket@1134,registry:Socket@1145,registry:Socket@876,whole:Route@1023,whole:Route@127,whole:Route@1534,whole:Route@223,whole:Route@256,whole:Route@523 0f5a1523f06f5902c3b9b769a8f026e3cbd728a8a489efd4c577e5d1bb9777cd |
| -@legacy 8083e657975f34cc28a0e683803e68ea27969c7fb8bc348dc70a9efac22bda7e internal/activator/instancekey.go ExecBackend.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before the backfill (+whole:Route), answering InstanceKeyFailed on a refusal; a non-HA host is unchanged; only adds a refusal whole:Route@276,whole:Route@364,whole:Route@379 cda5ea63ab9c466cc55d10c0dfaaccf0df074e7ce1dfaf00ace78d55fc6e18b6 |
| -@legacy 39212b2154dbd2d4cb5a9da8ed164112690e605aaea9d0081519c2eb7f005248 internal/activator/prepare.go ExecBackend.prepareKeyedAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling zddr4, with no further change from this branch beyond carrying main's new early return into the six-value signature. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen prepareAt, which is now its wrapper; it also returns the instance key's layer and reads no env for the cmd role; same reads, same nested launch paths;rev3=census-ruling-wake-latency-2;basis=takes an optional timer and marks its steps with time.Now() (dirs, admin token, instance key, env, control socket, key gate, logs); no read added or moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, run and seed roles only: under a 30 s context (haSecretsBudget), haMintGate before the token and key producers and haSecretsReady after them, each failing the prepare with "secrets for <host>" (+registry:Host x2 in those messages, +whole:Route x2 for rt to the two calls); the cmd role and a non-HA host are unchanged; only adds refusals file:ReadDir@3067,registry:Host@1289,registry:Host@1543,registry:Host@1661,registry:Host@1969,registry:Host@2124,registry:Host@5731,registry:Host@5920,registry:Host@612,whole:Route@1187,whole:Route@1779,whole:Route@2022,whole:Route@2241,whole:Route@320,whole:Route@4780,whole:Route@5308,whole:Route@5765 bbb6f9a1c1f05c2b2ad767f116296158997ba453f11e07a4fcb5de8aa9d818e1 |
| +@legacy 4758c876146803d879ebf83697cd5e8d31020979ff992efa2e0f32718fdc5df9 internal/activator/instancekey.go ExecBackend.ensureInstanceKeyAt legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: after the unchanged replica and fenced/conflict checks, asks haMintGuard(ctx, rt) (+whole:Route) and hands the guard to ensureInstanceKey; a classification error fails with InstanceKeyFailed; a non-HA host gets a nil guard and mints exactly as before; only adds a refusal registry:Host@467,registry:Replica@159,whole:Route@369,whole:Route@536 867a4d3cda8b6cdfae04cdf1300a90565323c58f32f3fda42d07da8637631075 |
| +@legacy 5204c0cc9d1e25dd221c4c4e959c6992955bb9ab21dd467ad29e77cf19f4395b internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else. Final fix F1: once the process's own proof has passed, an HA wake (haHeld(lease, w.rep)) is released only when haHostEmpty(rt) reads the host slice empty; otherwise it logs, marks the stop uncertain and retains the wake as unproven (retainUnprovenWake, with owedBy for a legacy start), keeping the lease and replica for the reaper. A non-HA wake's stop, proofs and give-back are unchanged. New sites +registry:Host (the log line) and +whole:Route x3 (rt to haHostEmpty and in the retained unprovenWake); no file read; only holds an HA release back registry:Host@2016,registry:Host@2529,registry:Host@3480,registry:Host@3820,registry:Host@4512,registry:Host@5251,whole:Route@1883,whole:Route@2122,whole:Route@2126,whole:Route@3162,whole:Route@3845,whole:Route@3849,whole:Route@4415,whole:Route@4548,whole:Route@4552 8b139e2f6040aa3d16e55b0184462190f24f0bd0e1100e4d7b6646d0cf6fcbbb |
| +@legacy fb5997d9f0aaaffaba8b1f68e048fb052d9a429f1bb49a5d454cad9bd57b6af9 internal/activator/opset.go Service.reapUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when the retried proof holds for a retained legacy start and the host's stop history is uncertain only because of that start (owedBy), the uncertainty is discharged and the stages the failed wake never reached are recorded as held; any other uncertainty is kept through rememberStopLocked as before. Read sites unchanged; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, the sweep's retry of a retained failed wake: a wake retained by giveBackAfterStart (sliceOnly) counts as proven by its process alone, and then, final fix F1, any retained HA wake (haHeld(u.lease, u.rep)) is proven only if haHostEmpty(u.rt) also reads the host slice empty (+whole:Route); unproven, it stays retained with its lease; the legacy and generation proofs are unchanged; only holds an HA release back whole:Route@485,whole:Route@539,whole:Route@750 f0f10761b7a438983b71608c70918ebd84c21c6597eba24523ae259b154c8efd |
| +@legacy bd73601fd096012a7e694a9a5e4dc5539ebe18220e65556a5dd21cf49e127bf0 internal/activator/prepare.go ExecBackend.prepareKeyedAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling zddr4, with no further change from this branch beyond carrying main's new early return into the six-value signature. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen prepareAt, which is now its wrapper; it also returns the instance key's layer and reads no env for the cmd role; same reads, same nested launch paths;rev3=census-ruling-wake-latency-2;basis=takes an optional timer and marks its steps with time.Now() (dirs, admin token, instance key, env, control socket, key gate, logs); no read added or moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, run and seed roles only, under a 30 s context (haSecretsBudget): the token producer is ensureAdminTokenFor(hctx, rt, p) (on this nested path the same beneath producer, EnsureAdminTokenBeneath's, plus the HA mint decision inside it); ensureInstanceKeyFor now gets hctx instead of context.Background(), so the key's bucket read is bounded by 30 s as well as configReadTimeout; the env is launchEnvLayer(hctx, rt) (instanceEnvLayer for a non-HA host; for an HA host one capture, published and acknowledged); a test seam (haLaunchHooks.afterGate, nil in production) is called before the producers. The separate haMintGate and haSecretsReady calls are gone (final fix F2). Sites against main: -registry:Host (the rt.Host+".env" argument EnsureAdminTokenBeneath took) and +whole:Route (rt to launchEnvLayer); the cmd role and a non-HA host are unchanged file:ReadDir@2929,registry:Host@1770,registry:Host@1982,registry:Host@5593,registry:Host@5782,registry:Host@612,whole:Route@1661,whole:Route@1872,whole:Route@2103,whole:Route@320,whole:Route@4642,whole:Route@5170,whole:Route@5627 fe1bbbe294ba15e39af6f9c3d009b1add7fa9814e367d2f8dcf61cf65d24833d |
| @legacy 8a98ad9a10bd52766b3dd4a1eb92db23f1ace22a349546ff501750f037cd7a26 internal/host/instancekeys.go keyBackfillInSlot.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=merge-ruling-3;basis=Claims-off legacy key backfill rereads registry Host and whole Route inside the per-host preparation slot; claims-on returns before backfill.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (claims-off key backfill, inside the per-host slot): before backfilling a key it classifies the re-read row (haRoute(ctx, g.keys, *fresh), the one +whole:Route site) and skips an HA host with errInstanceKeyRowSkipped (its key is minted at its launch, behind the mint gate) and fails on a classification error; a non-HA row backfills exactly as before; it only skips, no check removed registry:Host@199,registry:Host@258,whole:Route@351,whole:Route@386,whole:Route@674,whole:Route@941 ee1bc76dae0295ea3a4d358a3dd75687ace0327ea5e809e88b87caa104857e5a |
| internal/activator/activator.go Service.finishStop 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 with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added registry:Socket@2353,registry:Socket@2458,whole:Route@2303,whole:Route@2355,whole:Route@2460 a28ff1acede04af11be15c16b3a955330ad5a9c91c554ad17297f922a2b5c3e0 |
| internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a move's active probe), stands down an exited worker it names instead of restarting it (Astra finding 4), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Four more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more call at the top, a.retryOwedMarkers() (harelease.go), which starts at most one background lease.RetryPending pass over owed region HA release markers, off a.mu; the due query, idle, max-run and lapse logic are unchanged; the same 38 sites, no read added registry:Hibernate@10194,registry:Hibernate@13846,registry:Hibernate@23017,registry:Hibernate@5665,registry:Hibernate@7669,registry:Host@23086,registry:Host@23144,registry:Host@23611,registry:Host@23704,registry:Host@24439,registry:Host@24521,registry:Host@25586,registry:Host@25873,registry:Host@25922,registry:NextDue@24394,registry:Status@23033,whole:Route@10196,whole:Route@10949,whole:Route@13848,whole:Route@15781,whole:Route@17491,whole:Route@17681,whole:Route@17974,whole:Route@18146,whole:Route@18293,whole:Route@22504,whole:Route@23193,whole:Route@24108,whole:Route@24448,whole:Route@24455,whole:Route@25401,whole:Route@25702,whole:Route@25906,whole:Route@5476,whole:Route@5667,whole:Route@7502,whole:Route@7671,whole:Route@8105 8dad9910a9149c1ea2078e8fa450ae8b9b052a94af7baa015b616416c6e71db7 |
| 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-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 fb4c6cc7eec9c50d778d0adb356c24cfdaeb78abc982062fa1d8ff4bd74d277e |
| +internal/activator/admintoken.go ensureAdminToken legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (EnsureAdminToken, EnsureAdminTokenBeneath and ensureAdminTokenFor; the agent's scheduler token through EnsureAdminToken; no root caller found): one more parameter, guard (a mintGuard, nil for every caller but an HA host's ensureAdminTokenFor), asked once this locked read has found no token and before anything is minted; its refusal is returned with nothing written. The read, mode check, shape check and mint are unchanged; the same four sites, no read added; only adds a refusal file:Lstat@1864,file:OpenFile@4446,file:Read@4083,file:ReadFile@433 215815606519c17f72e478e65536becc0edb4d24100c03ed0d041ef1687d433f |
| internal/activator/backend_exec.go ExecBackend.Acquire legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: after the unchanged AdmitConfig gate, the lease acquire moves into acquireClassified (hawake.go, a new unit): a legacy route or a non-HA host takes the same lease.Acquire as before and maps a held lease to errLeaseHeld as before (leaseError); an HA host goes through the containment admission and lease.AcquireHA. A successful acquire marks the host acquiredHere for the process (same-box recovery). The config gate is not weakened; the same three sites, no read added registry:Host@807,whole:Route@382,whole:Route@764 633882c5d34004424ad26f613283954ecb70d077b2542ade220a9012eccaa5f0 |
| -internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else, so nothing publishes after the release marker; the stop, proofs and lease give-back are unchanged; the same eleven sites, no read added registry:Host@2016,registry:Host@2529,registry:Host@3480,registry:Host@3820,registry:Host@4432,whole:Route@1883,whole:Route@2122,whole:Route@2126,whole:Route@3162,whole:Route@3845,whole:Route@3849 865b84839ef8880ccabbd6998929ce3beb7cbb16cbf28ca445813be2ee2606aa |
| +internal/activator/instancekey.go ExecBackend.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: back to main's body bar a comment: it calls ensureInstanceKeyAt as before, and an HA host's mint decision now lives inside that producer (haMintGuard, final fix F2); the agent's backfill skips HA hosts before this (instancekeys.go); the one +whole:Route of the first proposal is gone; no read added whole:Route@310,whole:Route@325 1ab00497be9d84298e91e4c44e640bb83dc95689d474119628c650e1b7186e3c |
| +internal/activator/instancekey.go ensureInstanceKey legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more parameter, guard (nil for every caller but ensureInstanceKeyAt on an HA host), asked once the locked read finds no key and the bucket allows a mint, before anything is minted; its refusal returns InstanceKeyFailed with nothing written. Create-only, fail-closed and defer-on-unknown are unchanged; the one site unchanged, no read added; only adds a refusal file:Stat@4804 67c45c2c28717eb3f5df388c39bd415fe785bbce4c38a08c43908c277cb64cc7 |
| 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-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) 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) file:Exec@16557,file:Open@1150,registry:App@10925,whole:Route@10917,whole:Route@26733 7c62e7d253aa460b8fd2389ef20263175b2cf12f605a8b7980cd506c87165a26 |
| internal/host/bootstrap.go bootstrapWith authority A,C,G,J4 root-input;kept=A,C,G;scope=protected-decision-only;rev3=census-ruling-region-ha-p1a;basis=root (carlos bootstrap, cloud-init or an operator; also the staging-root and -plan-json path system apply's stagePlan runs): after the units are written, calls retireUnits(root, retiredUnits) (retiredunits.go, a new unit on this card) to disable, stop and remove carlos-system-join.path and .service, which an earlier build installed; an error there fails the bootstrap; enabledUnits (a var, not a census unit) no longer lists carlos-system-join.path; the same two sites, no read added in this body file:ReadFile@461,file:ReadFile@6867 b16f0969ff5d5c394ab5ebceea5fa7236342799ac2c620508b1d7bd20fbcd257 |
| internal/host/systemapply.go RunSystemApply authority D,F,J4 rev3=PROPOSED-claims-on-gate-recover;identity=root apply/recovery uid 0;basis=re-pinned at its class and task, no read of its own: reads CARLOS_HOST_CLAIM from the unit environment through systemApplyGate (hostwrite.Enabled, as the agent does) to pick the update gate window, 120 s with fail-fast claims-on and 20 s unchanged claims-off. Registers local verifier and invokes census-gated release wrapper; absent census executes main apply directly even with leftover release state. TestSystemApplyReadsClaimsModeFromTheUnitEnvironment, TestClaimsOffGateIsUnchangedByAnEdgeThatListensAt22s.;rev3=census-ruling-region-ha-p1a;basis=root apply/recovery, uid 0: the systemApplier literal no longer sets regionHA (the field is deleted) and sets claims and gateWait through a.readEnvironment(os.Getenv), a new method that calls the same systemApplyGate(getenv) as before, so CARLOS_HOST_CLAIM picks the gate window exactly as it did; CARLOS_REGION_HA is no longer read here; no read added af8473132b04909ccf6eb24da48147fc1ffdd176c2227a8aa0bb01b11182c5d2 |
| @@ -122,14 +134,18 @@ internal/activator/harecord_linux.go treeDigest legacy accepted-legacy accepted- |
| internal/activator/harelease.go ExecBackend.haReleaseBase legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the release marker's identity for rt: this box's reference and instance id now (b.self()) and the lifetime the host's HA acquire classified; +registry:Host; no I/O registry:Host@173 48dcff07c7cd6a2bbaff59e5cffba33c2c301511704abd5f24f91f9aeaf325d2 |
| internal/activator/harelease.go ExecBackend.hostSliceEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: reads the host slice's cgroup.events (CgroupEvents of instancectl.SliceName(host)) after refusing a unit-backed row (+registry:Backing) or a non-nested row; absent or unpopulated is empty, a read error is not; +registry:Host, +whole:Route; cgroup.events is the kernel's, under root's slice registry:Backing@76,registry:Host@449,whole:Route@189 9c9c8e35c57aa62a2ec71d27451e73fb044ae34d84ec0fe618f28580af79409e |
| internal/activator/harelease.go ExecBackend.writeHARecord legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: on a clean release first checkpoints and truncates the database's WAL (lease.TruncateWAL, a new unit; a failure is logged and the record then shows a non-empty WAL, so it never keeps), reads the local state (readLocalNow), keeps the files baseline beside it (failure logged only) and writes the local release record (writeFileDurably); +registry:Host x4, +whole:Route registry:Host@403,registry:Host@453,registry:Host@658,registry:Host@705,whole:Route@124 311e508024a40af99de59435f274bde6c285b8c71532e3f024e9a0167af2805d |
| -internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty (else errHostSliceUnproven and nothing written), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4 (the entry's route to the backend calls and log) registry:Host@1985,whole:Route@102,whole:Route@1294,whole:Route@1432,whole:Route@376 6c69fb9a708bc493540b88cf5479d090f40e2e6386abd0ab0870710ff206c2c7 |
| +internal/activator/harelease.go Service.haHostEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1): the one whole-host emptiness proof for every HA release after a start (releaseHAClean, cleanupFailedWake, giveBackAfterStart, reapUnprovenWake): the backend's hostSliceEmpty (the host slice's cgroup.events); nil only on absent or unpopulated, any read error or a backend that cannot read it is errHostSliceUnproven; +whole:Route; agent-run as carlos; only refuses whole:Route@214 e636da4c6c2c51e845cc106fbf61a6abe3fcc5dfdf4347a1fd8f54d0cf86313b |
| +internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4 registry:Host@1789,whole:Route@102,whole:Route@1098,whole:Route@1236,whole:Route@244 99d367d5d5737596b19a2a258d0c9cc5ecee88072451605e068562f2ee319566 |
| internal/activator/hasamebox.go ExecBackend.sameBoxEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the closure lease.AcquireHA calls as the same-box proof for taking this box's own expired HA lock: true only when sameBoxProven holds, else logs an ALERT at most once a minute and answers false; +registry:Host x2, +whole:Route registry:Host@194,registry:Host@360,whole:Route@157 13e36f0039fdd5884052bb77faa06773531c53638a159e229b318769948c17ef |
| internal/activator/hasamebox.go ExecBackend.sameBoxProven legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the same-box proof: the row contained (haContained), this agent's startup sweep proved every instance unit stopped (StartupSwept), the host not acquired by this process, the host slice read empty, and the host's flat cgroup under the agent's delegated subtree absent or unpopulated (no delegation refuses); every read is the box's own cgroup.events; +registry:Host x2, +whole:Route x2; only grants a takeover on all five registry:Host@326,registry:Host@666,whole:Route@480,whole:Route@88 bc8c6a43c60c3429c32df0da0b2b22a5cbb1649a66e672e8f620cabe8853aa66 |
| +internal/activator/hasecrets.go ExecBackend.captureLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: reads an HA launch's own env file and its rendered config env once, the way instanceEnvParts does: on the nested layout through instancefs.ReadBeneathLimit (1 MiB, no link followed), otherwise os.ReadFile (the +file:ReadFile site; an HA host is nested by its acquire's containment admission, so this arm is the flat layout's, where the files are in the agent's own data directory); an absent own file is an error, an absent config is not; parses env and key layer from those bytes; +whole:Route file:ReadFile@287,whole:Route@98 207f274b0fa81c49cbfe4ec2d30f33ca96621fac6d6b2fd492e5ca6702249b5d |
| +internal/activator/hasecrets.go ExecBackend.ensureAdminTokenFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: the launch paths' admin-token producer: haMintGuard(ctx, rt), then ensureAdminToken on <dataDir>/<host>.env, beneath on the nested layout and by path otherwise, with that guard; +registry:Host, +whole:Route; a non-HA host's guard is nil and the producer is the one it used before registry:Host@214,whole:Route@141 84ee1b47716ed4f39b5ac40487d367ccd3d3363843016db0f5370e049190a30a |
| internal/activator/hasecrets.go ExecBackend.haHostNow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the HA classification a launch acts on: this wake's recorded Acquire classification, else isHA; +registry:Host, +whole:Route; no file read registry:Host@115,whole:Route@179 af2963c073aaab0b380560e103babd22c3d1439227c24d120abc7804a787a784 |
| internal/activator/hasecrets.go ExecBackend.haManifestFound legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: whether the host's files manifest exists: from the wake's or entry's publisher if there is one, else one hostfiles.Load of <hibernate prefix>/files/0/ from the files store; +registry:Host x2 registry:Host@120,registry:Host@332 5b152e6dd26f9ea98861b5c66fbd6772d030cea0189c2787b56a68ed65a128e2 |
| -internal/activator/hasecrets.go ExecBackend.haMintGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the one gate before any producer of an HA host's CARLOS_ADMIN_TOKEN or CARLOS_INSTANCE_KEY: not HA, or the env already holds both (a replica needs only the token), passes; otherwise, if the files manifest exists, refuses with ErrInstanceKeyDeferred and mints nothing; reads the env pair through the existing readInstanceEnvPair (the instance's env and config); +registry:Host, +registry:Replica, +whole:Route x3; only refuses registry:Host@282,registry:Replica@484,whole:Route@110,whole:Route@226,whole:Route@586 b9766b7dddf2f57176039ae451c76db2d5547737c2a3483afdd1d975ed3e2021 |
| +internal/activator/hasecrets.go ExecBackend.haMintGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos, replacing haMintGate: nil for a host that is not HA; for an HA host a guard that, asked only from a producer's missing-secret branch, reads once whether the host's files manifest exists (haManifestFound) and refuses with ErrInstanceKeyDeferred while it does (or on a read error); it never reads the env; +whole:Route x2; only refuses whole:Route@124,whole:Route@361 5b07e63555419c29b7a9c141484150f51680b9897c31fcf6de2ce78f2a3c8911 |
| internal/activator/hasecrets.go ExecBackend.haScheduledToken legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: for an HA host, reads CARLOS_ADMIN_TOKEN from its env file (instancefs.ReadBeneathLimit, 1 MiB, beneath its directory without following a link) after the wake; not HA reads nothing; +whole:Route x2; the token is sent only to that same instance's tick whole:Route@132,whole:Route@201 b90afab57a291dbf21dfde5b95e2d13dc100aaeaee86e572adff7bfb878a4964 |
| -internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks the env file's SHA-256 equals the committed manifest's env item (envAcknowledged, a capped read beneath the directory), else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET), and checks again; every error fails the launch; +registry:Host x3, +whole:Route x2 file:Open@342,registry:Host@1045,registry:Host@181,registry:Host@390,whole:Route@114,whole:Route@508 800882ddbfd71a2e44077eef1c987b3f4b00934f8a2b577ba8f44a44bf0035b6 |
| +internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks that env, the bytes the launch captured (captureLaunchEnv; a new parameter, final fix F2), has the SHA-256 of the committed manifest's env item (envAcknowledged, which now reads no file); else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET) and checks again, so an env replaced after the capture is committed as other bytes and fails the launch; it no longer classifies the host itself (launchEnvLayer has); every error fails the launch; +file:Open, +registry:Host x3, +whole:Route file:Open@281,registry:Host@120,registry:Host@329,registry:Host@990,whole:Route@447 97df19df1fe54e7d574c198845d9f4e440e86460cf0b283d1c8c8db1c6f62976 |
| +internal/activator/hasecrets.go ExecBackend.launchEnvLayer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: a launch's env and key layer: classifies the host (haHostNow; an error fails the launch), instanceEnvLayer unchanged for a non-HA host; for an HA host captureLaunchEnv once, haSecretsReady over those bytes, a test seam (haLaunchHooks.afterPublish, nil in production), and returns the env parsed from the captured bytes, never a later read; +registry:Host x3 (the error messages), +whole:Route x4 registry:Host@245,registry:Host@428,registry:Host@573,whole:Route@154,whole:Route@300,whole:Route@337,whole:Route@478 5f55a0d76b9b4512a27cf344bca1aa8cfef4bd1edd76e7ebef14f9f6b236d024 |
| internal/activator/hasecrets.go Service.IsHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the box's HA classification for internal/host (the backend's IsHA), else the row's sticky mark; +registry:HA, +whole:Route; no file read registry:HA@180,whole:Route@161 c7e9eee523e8d2cbe5504ef6745b3fafd4ececb390adff0b7313638171596552 |
| internal/activator/hasecrets.go Service.fillScheduledToken legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: sets the tick's Authorization header from haScheduledToken for an HA host; any other host's request is untouched; +whole:Route whole:Route@197 33698b26fba02b5f5fa06fdccf81de13ddc1b84383e0641c14ca50f098740aff |
| internal/activator/hasecrets.go SplitBackend.IsHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: asks the exec half's IsHA (+file:Exec is the b.Exec field access, not a process exec), else the row's sticky mark (+registry:HA); +whole:Route file:Exec@97,registry:HA@161,whole:Route@146 100ae51fa67ceed1f480f871112b3a53975d04711d5b7e5a387e996a1c1c12fe |
| @@ -147,6 +163,8 @@ internal/activator/hawake.go ExecBackend.restoreFilesClean legacy accepted-legac |
| internal/activator/hawake.go ExecBackend.restoreHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA host's restore: haContained again, the existing seed-obligation and seed-marker checks, then on a first wake (lock absent) sets the local copy aside and boots fresh; otherwise keeps the local copy only when hafresh.DecideKeep over the acquire's view, this box's identity, the lifetime and the local state (readLocalNow) says so, else sets it aside (instancefs renames and removes beneath their directories), restores the replica (lease.Restore, CheckDB, quarantine on corruption) and the files (restoreFilesClean); every error fails the wake; +registry:Host, +whole:Route x8 registry:Host@135,whole:Route@1043,whole:Route@1385,whole:Route@168,whole:Route@2434,whole:Route@246,whole:Route@478,whole:Route@560,whole:Route@959 15c4c56938036be55fe37872e5d390208d3f5d8d1059bf8da865497a665a7ebb |
| internal/activator/hawake.go ExecBackend.restoredReplication legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the replication class an HA restore imported for the host, from memory; +registry:Host registry:Host@102 f931f673b2ec2ef404e03c8c9244999d9ae95e9614fd4d953e9f9d4a35a1a3f1 |
| internal/activator/hawake.go haLegacyRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: a route is legacy for HA (sidecar, not provisioned, or a kind other than instance); +registry:Kind, +registry:Provisioned; pure registry:Kind@90,registry:Provisioned@72 3849289a7b85aa83b30c233d7bc0bbaa9699010ff69d5be81e09ca10bcd4e88d |
| +internal/activator/maintenance.go Service.giveBackAfterStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: a failed wake's release when its start left nothing for cleanupFailedWake to prove: a legacy lease goes back as before (giveBack); an HA one only when haHostEmpty reads the slice empty, else it logs, marks the stop uncertain and retains the wake (retainUnprovenWake, sliceOnly) so the reaper retries the slice; +registry:Host x2, +whole:Route x3; no file read registry:Host@261,registry:Host@527,whole:Route@163,whole:Route@347,whole:Route@351 0f7ded83b1c016fa60b2460da96afa24dee87c1c958b6c04617392685dae5659 |
| +internal/activator/maintenance.go Service.retainUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: records an unproven wake in a.unprovenWakes under a.mu, keeping its lease and replica until the reaper's proof holds; no new wake of the host starts meanwhile; +registry:Host, +whole:Route; no I/O registry:Host@169,whole:Route@171 39f0172e985a5f953b4671042934463a1b5ab995e6c55706c7547bcde55d3707 |
| internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record with provision.GetRecord(store, release.RouteAccount(rt), rt.App, rt.Host), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@570,registry:Host@578,whole:Route@565 68c6a9d5692d83895e22bdecd62920de25642980b42ce8f645e15e706b18d4bf |
| internal/host/haself.go readInstanceID legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos, at RunAgent's start and its one-minute retry (haSelfNow, haSelfRetry): reads this instance's id from IMDSv2 (PUT /latest/api/token, then the identity document), each body through io.ReadAll capped at 64 KiB (the +file:ReadAll site), within 2 s; the id names the box as owner of the lease locks it writes (lease.SetSelf); IMDS answers only for this instance, no tenant or app input; root never calls it file:ReadAll@514 9f242dc249c36f9a3c1f91d0619434e7d581d1f92f4242f3dfcbcb9ff9cb9eb6 |
| internal/host/instancekeys.go haRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: asks the key backfiller for IsHA when it implements it (the activator's classification), else returns the row's sticky HA column (registry:HA, whole:Route); no file read registry:HA@204,whole:Route@189 047888231cc897c4cbe8e9a2a829d4071d824aeb507702fadb4bbbe8950556e3 |
| @@ -164,7 +182,7 @@ internal/activator/backend_unit.go SplitBackend.Acquire legacy accepted-legacy a |
| internal/provision/reconcile.go convergeOwned legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the owned-converge arm gains the asset pair beside steering: when the row's assets_off or asset_gen differs from the record's (Record.AssetsOn, Record.AssetGen), Registry.SetAssets converges both in one UPDATE (dry-run logs only); the new kinds are registry:AssetsOff and registry:AssetGen, three sites each, all existing.AssetsOff and existing.AssetGen (the comparison and the two log lines); it now also returns the converge errors it already logged, joined, so Reconcile's completeness report can tell an applied record from one that was not; no other read is added; the agent's own pass, no root decision;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the owned-converge arm gains the app policy: when the row's egress_allow, size or policy_expires_at differs from the pass's columns (ap, only when Known), Registry.SetPolicy writes all three in one UPDATE (dry run logs only), and it reports whether the allow or size moved so Reconcile can call PolicyChanged. New kinds registry:EgressAllow (three sites), registry:Size (three) and registry:PolicyExpiresAt (one), all existing.* of the agent's own row: the comparison and the two log lines; no other read added; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: when the record says HA and the existing row does not, marks the row with reg.SetHA (a dry run logs instead; an error is appended to the pass's errors); converges one way only, nothing clears the mark; +registry:HA is existing.HA; keeps legacy registry:Addr@2491,registry:Addr@2713,registry:Addr@3140,registry:Addrs@2518,registry:Addrs@2734,registry:Addrs@3161,registry:AssetGen@3998,registry:AssetGen@4184,registry:AssetGen@4575,registry:AssetsOff@3968,registry:AssetsOff@4158,registry:AssetsOff@4549,registry:Channel@226,registry:Channel@356,registry:Channel@687,registry:EgressAllow@8261,registry:EgressAllow@8517,registry:EgressAllow@8939,registry:Environment@1230,registry:Environment@729,registry:Environment@871,registry:HA@6658,registry:Health@2545,registry:Health@2757,registry:Health@3184,registry:PolicyExpiresAt@8342,registry:Replica@6017,registry:Replica@6145,registry:Replica@6477,registry:Replicas@5148,registry:Replicas@5273,registry:Replicas@5595,registry:Size@8303,registry:Size@8555,registry:Size@8977,registry:StatusNamed@1306,registry:StatusNamed@1450,registry:StatusNamed@1814,registry:Steering@3220,registry:Steering@3353,registry:Steering@3691,registry:UpdateSettings@7319,registry:UpdateSettings@7459,registry:UpdateSettings@7819 02a957b147e2aaae26cf4080b745c04a10b1afed2d41f47374da31147967adb3 |
| internal/registry/registry.go routeArgs authority E3 rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), wherever a route is inserted: Upsert, the cold handover restore and the import journal's inserts: the bind list from Registry.Upsert's body (and RestoreClaimRows'), with seed_source and import_gate added; E3, the same family as Registry.Upsert, whose body it came from;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), wherever a route is inserted: the bind list gains t.RateLimit for the new rate_limit column (routeCols and Upsert's conflict clause gain it too); the new kind is registry:RateLimit, one site; it binds the value and decides nothing; E3, as before;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=the bind list gains t.Runtime for the new runtime column (routeCols, routeColCount 57 with main's rate_limit, and Upsert's conflict clause gain it too); the new kind is registry:Runtime, one site; it binds the value and decides nothing; E3, as before; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) bound beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) bound after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: the bind list gains t.EgressAllow, t.Size and t.PolicyExpiresAt for the three new columns (routeCols, routeColCount 64, and Upsert's conflict clause gain them too); the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; it binds the values and decides nothing; E3, as before;rev3=census-ruling-region-ha-p1a;basis=binds one more column, ha, as an integer from Route.HA (+registry:HA); keeps authority E3 registry:Account@355,registry:Addr@83,registry:Addrs@451,registry:App@152,registry:Args@505,registry:AssetGen@818,registry:AssetsOff@804,registry:Backing@253,registry:BuildState@730,registry:Canary@216,registry:Caps@381,registry:CertExpiresAt@338,registry:Channel@177,registry:ClaimIncarnation@577,registry:ClaimOwner@611,registry:ClaimRowID@625,registry:ClaimStamp@597,registry:CreatedAt@492,registry:DBPath@116,registry:DNSCheckedAt@320,registry:DNSStatus@307,registry:EgressAllow@861,registry:Environment@366,registry:FleetBox@439,registry:Gate@484,registry:GoodDemand@680,registry:GoodDigest@666,registry:GoodVersion@651,registry:HA@909,registry:Health@460,registry:Hibernate@196,registry:HoldOp@639,registry:Host@49,registry:IdleSeconds@513,registry:ImportGate@760,registry:Incarnation@830,registry:Kind@65,registry:LastError@101,registry:MaxRunSeconds@528,registry:NextDue@242,registry:Platform@294,registry:PolicyExpiresAt@884,registry:Pool@159,registry:PrevVersion@137,registry:Provisioned@407,registry:RateLimit@785,registry:Region@167,registry:Replica@565,registry:Replicas@547,registry:Replication@227,registry:Runtime@774,registry:Seed@423,registry:SeedSource@746,registry:ServingSeq@845,registry:ServingVersion@694,registry:Size@876,registry:Slug@57,registry:Socket@73,registry:Status@91,registry:StatusNamed@272,registry:Steering@472,registry:Tunnel@389,registry:Unit@431,registry:UpdateSettings@712,registry:Version@126 3b5ce38eb5255378bd4233f0277abec9dafcdcf371943467292c4548c8f3c82f |
| internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the two new columns scanned;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the rate_limit column scanned into Route.RateLimit; the new kind is registry:RateLimit, one site; no other read;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=main's body with the runtime column scanned into Route.Runtime, before rate_limit; the new kind is registry:Runtime, one site; no other read; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) scanned beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) scanned after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: main's body with egress_allow, size and policy_expires_at scanned into Route.EgressAllow, Route.Size and Route.PolicyExpiresAt after serving_seq; the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; routeColCount 64; no other read;rev3=census-ruling-region-ha-p1a;basis=scans one more column, ha, into Route.HA (+registry:HA); routeColCount 64 to 65; keeps legacy registry:Account@408,registry:Addr@176,registry:Addrs@498,registry:App@251,registry:Args@557,registry:AssetGen@867,registry:AssetsOff@979,registry:Backing@333,registry:BuildState@782,registry:Canary@1033,registry:Caps@438,registry:CertExpiresAt@390,registry:Channel@281,registry:ClaimIncarnation@619,registry:ClaimOwner@655,registry:ClaimRowID@670,registry:ClaimStamp@640,registry:CreatedAt@541,registry:DBPath@212,registry:DNSCheckedAt@373,registry:DNSStatus@359,registry:EgressAllow@913,registry:Environment@422,registry:FleetBox@483,registry:Gate@532,registry:GoodDemand@729,registry:GoodDigest@714,registry:GoodVersion@698,registry:HA@963,registry:Health@508,registry:Hibernate@1009,registry:HoldOp@685,registry:Host@138,registry:IdleSeconds@566,registry:ImportGate@814,registry:Incarnation@880,registry:Kind@156,registry:LastError@198,registry:MaxRunSeconds@582,registry:NextDue@321,registry:Platform@1079,registry:PolicyExpiresAt@938,registry:Pool@259,registry:PrevVersion@235,registry:Provisioned@1103,registry:RateLimit@841,registry:Region@270,registry:Replica@1130,registry:Replicas@600,registry:Replication@305,registry:Runtime@829,registry:Seed@465,registry:SeedSource@799,registry:ServingSeq@896,registry:ServingVersion@744,registry:Size@929,registry:Slug@147,registry:Socket@165,registry:Status@185,registry:StatusNamed@1054,registry:Steering@519,registry:Tunnel@447,registry:Unit@474,registry:UpdateSettings@763,registry:Version@223,whole:Route@1159 b8117e846728d193e094124a3e49cee3d53489cd31573d50b78957cfb6c1ce27 |
| -internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x4 (rt handed to restoredReplication and openEntryFiles and in the cleanup calls); no file read in this body, no check removed registry:DBPath@1300,registry:DBPath@1316,registry:DBPath@1443,registry:DBPath@1454,registry:DBPath@22970,registry:Host@1129,registry:Host@1204,registry:Host@1282,registry:Host@1434,registry:Host@174,registry:Host@1768,registry:Host@2628,registry:Host@4603,registry:Replication@22873,registry:Replication@23005,registry:Replication@9338,registry:Replication@9467,registry:Replication@9486,registry:Replication@9567,registry:Seed@12725,registry:Socket@1329,registry:Socket@1345,registry:Socket@1468,registry:Socket@1479,whole:Route@10659,whole:Route@10851,whole:Route@11541,whole:Route@1227,whole:Route@12826,whole:Route@12897,whole:Route@15313,whole:Route@159,whole:Route@1663,whole:Route@1668,whole:Route@17171,whole:Route@1722,whole:Route@1728,whole:Route@17817,whole:Route@1794,whole:Route@1802,whole:Route@19124,whole:Route@19278,whole:Route@19634,whole:Route@19728,whole:Route@20447,whole:Route@21105,whole:Route@22107,whole:Route@22292,whole:Route@23082,whole:Route@23494,whole:Route@23543,whole:Route@23921,whole:Route@24893,whole:Route@24988,whole:Route@2518,whole:Route@3972,whole:Route@4231,whole:Route@4493,whole:Route@4498,whole:Route@4555,whole:Route@4561,whole:Route@4630,whole:Route@4638,whole:Route@5426,whole:Route@6494,whole:Route@7559,whole:Route@8440,whole:Route@9318,whole:Route@9569 4cbf2b4a1ef0c80699c146756990570e5ae897359698ad9bdcdef43e3294b99c |
| +internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed registry:DBPath@1300,registry:DBPath@1316,registry:DBPath@1443,registry:DBPath@1454,registry:DBPath@22932,registry:Host@1129,registry:Host@1204,registry:Host@1282,registry:Host@1434,registry:Host@174,registry:Host@1768,registry:Host@2628,registry:Host@4603,registry:Replication@22835,registry:Replication@22967,registry:Replication@9338,registry:Replication@9467,registry:Replication@9486,registry:Replication@9567,registry:Seed@12725,registry:Socket@1329,registry:Socket@1345,registry:Socket@1468,registry:Socket@1479,whole:Route@10659,whole:Route@10851,whole:Route@11541,whole:Route@1227,whole:Route@12826,whole:Route@12897,whole:Route@15313,whole:Route@159,whole:Route@1663,whole:Route@1668,whole:Route@17171,whole:Route@1722,whole:Route@1728,whole:Route@17817,whole:Route@1794,whole:Route@1802,whole:Route@19124,whole:Route@19278,whole:Route@19634,whole:Route@19728,whole:Route@20447,whole:Route@20878,whole:Route@21086,whole:Route@21140,whole:Route@22069,whole:Route@22254,whole:Route@23044,whole:Route@23456,whole:Route@23505,whole:Route@23883,whole:Route@24855,whole:Route@24950,whole:Route@2518,whole:Route@3972,whole:Route@4231,whole:Route@4493,whole:Route@4498,whole:Route@4555,whole:Route@4561,whole:Route@4630,whole:Route@4638,whole:Route@5426,whole:Route@6494,whole:Route@7559,whole:Route@8440,whole:Route@9318,whole:Route@9569 e84f007aaa5b1107e93a4a093209f85fc7efdf824215bc2698dd94d9995f939d |
| 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 registry:Host@1904,registry:Host@1968,registry:Host@538,registry:Host@602 59a5fb3e002877d160d174f1836ba55587dd602fc3f1c09f4d81608b1d195832 |
| internal/activator/backend_exec.go ExecBackend.Seed legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), which for a host this backend acquired HA re-runs the containment admission (nested layout, not unit-backed, nestedReady) and refuses otherwise; a non-HA host passes untouched; only adds a refusal registry:Host@328,registry:Host@390,whole:Route@100,whole:Route@151,whole:Route@219,whole:Route@375 4711b16789959048d733cf1c64bb6df0cf1f6da39500f159e0b1b1bcd0c4adbd |
| internal/activator/backend_exec.go ExecBackend.Start legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes through rootfsGates and startRootfsFromLive, never the layout switch; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route), refusing an HA-acquired host whose row is no longer contained; otherwise unchanged; only adds a refusal registry:Host@553,registry:Runtime@164,registry:Socket@316,registry:Socket@425,registry:Socket@607,whole:Route@117,whole:Route@231,whole:Route@312,whole:Route@350,whole:Route@421,whole:Route@603 237b4b23e3b231bef4fa1234457bc49ca733a3770bb050569804d5f827b657ba |
| @@ -172,13 +190,15 @@ internal/activator/backend_exec.go ExecBackend.StartGen legacy accepted-legacy a |
| internal/activator/backend_exec.go ExecBackend.StartGenExe legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=a rootfs row (Runtime) goes to startRootfsGen with the recorded identity; a binary row's path is unchanged; the new kind is registry:Runtime, one site; no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@426,registry:Runtime@220,whole:Route@170,whole:Route@292,whole:Route@474,whole:Route@527 9e3452908a37d041c43b22cb2233b1ef4b4cb09fefa7b7a3dd7db70c89dd97a0 |
| internal/activator/backend_exec.go ExecBackend.StartSidecar legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@350,whole:Route@116,whole:Route@172,whole:Route@248,whole:Route@405 751d1c1e90292bda31c90684539caa10a07d720a88817b1232cc89e70936c78e |
| internal/activator/backend_exec.go ExecBackend.restorePlain legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen ExecBackend.Restore, which is now its dispatcher, with the seed marker reconciled before the warm-cache check; same staging fallback and replica restore;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: first asks haRestore(ctx, rt) (+whole:Route x2: rt to haRestore and to restoreHA); an HA host restores through restoreHA (hawake.go, a new unit) and never through the warm cache or the staging fallback; an error there fails the restore; a non-HA host takes the unchanged path file:Stat@802,registry:Host@370,whole:Route@243,whole:Route@323,whole:Route@390,whole:Route@659,whole:Route@739 f735ac30a811271d040495e7c7c9b7905a56bf0fb831a6dd5465d951d2b53bc5 |
| -internal/activator/backend_exec.go ExecBackend.seedChild legacy accepted-legacy accepted-legacy;rev3=census-ruling-owed;basis=Census ruling owed (amadan #272, zdd-owed-items): changed legacy row; the flat seed's cgroup before-start hook writes the wake's pending record, after the cgroup's refusals and immediately before the exec. Boundary: agent-side, running as carlos (only runAgent builds the activator, under carlos-edge.service, User=carlos); the record is the existing BeforeExec build-state write, moved later, never earlier; no new read, no root decision, and no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before EnsureAdminToken and haSecretsReady(ctx, rt) after the instance key and before the env is read (+whole:Route x2): an HA host mints nothing beside an existing files manifest and launches only with its env published and acknowledged; a non-HA host is unchanged; only adds refusals file:CommandContext@3345,file:Stat@2246,registry:App@4594,registry:Host@120,whole:Route@10159,whole:Route@1146,whole:Route@149,whole:Route@1512,whole:Route@1631,whole:Route@1751,whole:Route@176,whole:Route@1955,whole:Route@3293,whole:Route@4589,whole:Route@672,whole:Route@7353,whole:Route@755 8daddfc959293c9130c153142c1515b0a256df53db06b883af3c0952a514a31d |
| -internal/activator/backend_exec.go ExecBackend.spawnChildFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the same two calls as seedChild, haMintGate before EnsureAdminToken and haSecretsReady after the instance key (+whole:Route x2); a non-HA host is unchanged; only adds refusals file:Command@9910,registry:Host@11192,registry:Host@11286,registry:Host@164,registry:Host@4001,registry:Host@4056,registry:Host@4136,registry:Host@4234,registry:Host@4355,whole:Route@10307,whole:Route@11583,whole:Route@11675,whole:Route@1182,whole:Route@1714,whole:Route@1842,whole:Route@193,whole:Route@2092,whole:Route@4549,whole:Route@6620,whole:Route@8593,whole:Route@9856 1efd263190afc5e61598646b884509aeb85f0a5808a4c0cda9bf832f94a77afd |
| -internal/activator/claim_snapshot.go ExecBackend.EnsureClaimAdminToken legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before the authorized token mint (+whole:Route); a non-HA host is unchanged; only adds a refusal registry:Host@2336,registry:Host@2678,registry:Replica@1285,whole:Route@1363,whole:Route@1991,whole:Route@2046,whole:Route@212,whole:Route@2605,whole:Route@285,whole:Route@347 c9f602f949a4949da748f2ad7f0e39f24c36bfd5481f656038745b7ec2131590 |
| +internal/activator/backend_exec.go ExecBackend.seedChild legacy accepted-legacy accepted-legacy;rev3=census-ruling-owed;basis=Census ruling owed (amadan #272, zdd-owed-items): changed legacy row; the flat seed's cgroup before-start hook writes the wake's pending record, after the cgroup's refusals and immediately before the exec. Boundary: agent-side, running as carlos (only runAgent builds the activator, under carlos-edge.service, User=carlos); the record is the existing BeforeExec build-state write, moved later, never earlier; no new read, no root decision, and no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (the flat seed body): the admin token producer is now ensureAdminTokenFor(ctx, rt, paths) instead of EnsureAdminToken(paths.envFile) (the same file, <dataDir>/<host>.env, by path on this flat layout), which carries an HA host's mint decision (haMintGuard) into the producer's missing-token branch; the instance key producer carries it the same way (ensureInstanceKeyAt); the env is now read by launchEnvLayer(ctx, rt): instanceEnvLayer unchanged for a non-HA host, and for an HA host one capture of the env that is published, acknowledged and handed to the launch as read. The separate haMintGate and haSecretsReady calls are gone (final fix F2); the sites are +whole:Route, one fewer than the first proposal; only adds refusals for HA hosts file:CommandContext@3283,file:Stat@2184,registry:App@4532,registry:Host@120,whole:Route@10097,whole:Route@1155,whole:Route@1415,whole:Route@149,whole:Route@1689,whole:Route@176,whole:Route@1893,whole:Route@3231,whole:Route@4527,whole:Route@672,whole:Route@7291,whole:Route@755 6a9d3349f68d63f9924a58c9965a3e6560e1212fb4445c9e607f096191d2b57b |
| +internal/activator/backend_exec.go ExecBackend.spawnChildFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (the flat start body): the same change as seedChild: ensureAdminTokenFor(ctx, rt, paths) for the token (the same flat path), the key's producer carrying the HA mint decision, and launchEnvLayer(ctx, rt) for the env and key layer the replica gate reads; a non-HA host's token, key and env are produced and read as before; +whole:Route; only adds refusals for HA hosts file:Command@9787,registry:Host@11069,registry:Host@11163,registry:Host@164,registry:Host@3878,registry:Host@3933,registry:Host@4013,registry:Host@4111,registry:Host@4232,whole:Route@10184,whole:Route@11460,whole:Route@11552,whole:Route@1191,whole:Route@1608,whole:Route@193,whole:Route@1969,whole:Route@4426,whole:Route@6497,whole:Route@8470,whole:Route@9733 a0b66fab5aeaa7ac8cd5786cfaad768367939a9e92242baebbca2ee2dd77c9f0 |
| +internal/activator/claim_snapshot.go ExecBackend.EnsureClaimAdminToken legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, inside the claim's authorize callback: the missing-token mint is now ensureAdminTokenFor(ctx, rt, paths) instead of ensureAdminTokenAt(paths, rt.Host+".env") (deleted); both pick the beneath (instancefs) producer on the nested layout and the path one otherwise, on the same file; the new one also asks an HA host's mint decision (haMintGuard) at the moment it would mint. The separate haMintGate call of the first proposal is gone (final fix F2). Sites: -registry:Host (the rt.Host+".env" argument) and +whole:Route (rt to ensureAdminTokenFor); only adds a refusal for an HA host registry:Host@2643,registry:Replica@1285,whole:Route@1363,whole:Route@2015,whole:Route@212,whole:Route@2306,whole:Route@2570,whole:Route@285,whole:Route@347 d40a22035d58018ea75280e37f2b9a3b0d7b4dc46aa7beaf14586333b8da6152 |
| internal/activator/genbackend.go ExecBackend.StartSidecarGen legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@754,whole:Route@126,whole:Route@182,whole:Route@638,whole:Route@813 3986618b0885497b9132ba98a3eec636f8324e5d670307d05b7610e9a48f7e85 |
| internal/activator/genbackend.go ExecBackend.StartStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr4;basis=Census ruling zddr4: changed legacy row; the same layout switch goes through genLayout on the same row's Host, so an over-long flat host takes the existing foreign arm on its canonical socket. Boundary: agent-side, running as carlos; generation socket directories under the agent's own /run/carlos tree; no root decision; no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal registry:Host@1768,registry:Host@288,registry:Host@343,registry:Host@465,registry:Host@965,registry:Socket@1027,registry:Socket@1134,registry:Socket@1145,registry:Socket@876,whole:Route@1023,whole:Route@127,whole:Route@1534,whole:Route@223,whole:Route@256,whole:Route@523 0f5a1523f06f5902c3b9b769a8f026e3cbd728a8a489efd4c577e5d1bb9777cd |
| -internal/activator/instancekey.go ExecBackend.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haMintGate(ctx, rt) before the backfill (+whole:Route), answering InstanceKeyFailed on a refusal; a non-HA host is unchanged; only adds a refusal whole:Route@276,whole:Route@364,whole:Route@379 cda5ea63ab9c466cc55d10c0dfaaccf0df074e7ce1dfaf00ace78d55fc6e18b6 |
| -internal/activator/prepare.go ExecBackend.prepareKeyedAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling zddr4, with no further change from this branch beyond carrying main's new early return into the six-value signature. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen prepareAt, which is now its wrapper; it also returns the instance key's layer and reads no env for the cmd role; same reads, same nested launch paths;rev3=census-ruling-wake-latency-2;basis=takes an optional timer and marks its steps with time.Now() (dirs, admin token, instance key, env, control socket, key gate, logs); no read added or moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, run and seed roles only: under a 30 s context (haSecretsBudget), haMintGate before the token and key producers and haSecretsReady after them, each failing the prepare with "secrets for <host>" (+registry:Host x2 in those messages, +whole:Route x2 for rt to the two calls); the cmd role and a non-HA host are unchanged; only adds refusals file:ReadDir@3067,registry:Host@1289,registry:Host@1543,registry:Host@1661,registry:Host@1969,registry:Host@2124,registry:Host@5731,registry:Host@5920,registry:Host@612,whole:Route@1187,whole:Route@1779,whole:Route@2022,whole:Route@2241,whole:Route@320,whole:Route@4780,whole:Route@5308,whole:Route@5765 bbb6f9a1c1f05c2b2ad767f116296158997ba453f11e07a4fcb5de8aa9d818e1 |
| +internal/activator/instancekey.go ExecBackend.ensureInstanceKeyAt legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: after the unchanged replica and fenced/conflict checks, asks haMintGuard(ctx, rt) (+whole:Route) and hands the guard to ensureInstanceKey; a classification error fails with InstanceKeyFailed; a non-HA host gets a nil guard and mints exactly as before; only adds a refusal registry:Host@467,registry:Replica@159,whole:Route@369,whole:Route@536 867a4d3cda8b6cdfae04cdf1300a90565323c58f32f3fda42d07da8637631075 |
| +internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else. Final fix F1: once the process's own proof has passed, an HA wake (haHeld(lease, w.rep)) is released only when haHostEmpty(rt) reads the host slice empty; otherwise it logs, marks the stop uncertain and retains the wake as unproven (retainUnprovenWake, with owedBy for a legacy start), keeping the lease and replica for the reaper. A non-HA wake's stop, proofs and give-back are unchanged. New sites +registry:Host (the log line) and +whole:Route x3 (rt to haHostEmpty and in the retained unprovenWake); no file read; only holds an HA release back registry:Host@2016,registry:Host@2529,registry:Host@3480,registry:Host@3820,registry:Host@4512,registry:Host@5251,whole:Route@1883,whole:Route@2122,whole:Route@2126,whole:Route@3162,whole:Route@3845,whole:Route@3849,whole:Route@4415,whole:Route@4548,whole:Route@4552 8b139e2f6040aa3d16e55b0184462190f24f0bd0e1100e4d7b6646d0cf6fcbbb |
| +internal/activator/opset.go Service.reapUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when the retried proof holds for a retained legacy start and the host's stop history is uncertain only because of that start (owedBy), the uncertainty is discharged and the stages the failed wake never reached are recorded as held; any other uncertainty is kept through rememberStopLocked as before. Read sites unchanged; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, the sweep's retry of a retained failed wake: a wake retained by giveBackAfterStart (sliceOnly) counts as proven by its process alone, and then, final fix F1, any retained HA wake (haHeld(u.lease, u.rep)) is proven only if haHostEmpty(u.rt) also reads the host slice empty (+whole:Route); unproven, it stays retained with its lease; the legacy and generation proofs are unchanged; only holds an HA release back whole:Route@485,whole:Route@539,whole:Route@750 f0f10761b7a438983b71608c70918ebd84c21c6597eba24523ae259b154c8efd |
| +internal/activator/prepare.go ExecBackend.prepareKeyedAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling zddr4, with no further change from this branch beyond carrying main's new early return into the six-value signature. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen prepareAt, which is now its wrapper; it also returns the instance key's layer and reads no env for the cmd role; same reads, same nested launch paths;rev3=census-ruling-wake-latency-2;basis=takes an optional timer and marks its steps with time.Now() (dirs, admin token, instance key, env, control socket, key gate, logs); no read added or moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, run and seed roles only, under a 30 s context (haSecretsBudget): the token producer is ensureAdminTokenFor(hctx, rt, p) (on this nested path the same beneath producer, EnsureAdminTokenBeneath's, plus the HA mint decision inside it); ensureInstanceKeyFor now gets hctx instead of context.Background(), so the key's bucket read is bounded by 30 s as well as configReadTimeout; the env is launchEnvLayer(hctx, rt) (instanceEnvLayer for a non-HA host; for an HA host one capture, published and acknowledged); a test seam (haLaunchHooks.afterGate, nil in production) is called before the producers. The separate haMintGate and haSecretsReady calls are gone (final fix F2). Sites against main: -registry:Host (the rt.Host+".env" argument EnsureAdminTokenBeneath took) and +whole:Route (rt to launchEnvLayer); the cmd role and a non-HA host are unchanged file:ReadDir@2929,registry:Host@1770,registry:Host@1982,registry:Host@5593,registry:Host@5782,registry:Host@612,whole:Route@1661,whole:Route@1872,whole:Route@2103,whole:Route@320,whole:Route@4642,whole:Route@5170,whole:Route@5627 fe1bbbe294ba15e39af6f9c3d009b1add7fa9814e367d2f8dcf61cf65d24833d |
| 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-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 registry:Account@11713,registry:Alias@5661,registry:Alias@5696,registry:Alias@6118,registry:Alias@6275,registry:Alias@6345,registry:Alias@6377,registry:Alias@7050,registry:Alias@9405,registry:App@11725,registry:DNSStatus@5793,registry:DNSStatus@6284,registry:Host@11143,registry:Host@3499,registry:Host@5753,registry:Host@6598,registry:Host@7034,registry:Host@7207,registry:Host@9452,registry:Host@9499,registry:Host@9549,registry:Host@9584,registry:Host@9633,registry:Incarnation@3459,registry:Platform@3238,registry:Provisioned@3252,registry:Replica@3276,registry:ServingSeq@3474,registry:Status@1205,whole:Route@12808,whole:Route@13214,whole:Route@13389,whole:Route@3869,whole:Route@651,whole:Route@679,whole:RouteAlias@12830,whole:RouteAlias@13404,whole:RouteAlias@5646,whole:RouteAlias@9358,whole:RoutePath@12823,whole:RoutePath@13397,whole:RoutePath@3884,whole:WildcardDomain@9538 7d4c63b2e3aa3be502ae74dc88e800631821db1360196b5012ddbf65730cbfc3 |
| internal/host/instancekeys.go keyBackfillInSlot.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=merge-ruling-3;basis=Claims-off legacy key backfill rereads registry Host and whole Route inside the per-host preparation slot; claims-on returns before backfill.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (claims-off key backfill, inside the per-host slot): before backfilling a key it classifies the re-read row (haRoute(ctx, g.keys, *fresh), the one +whole:Route site) and skips an HA host with errInstanceKeyRowSkipped (its key is minted at its launch, behind the mint gate) and fails on a classification error; a non-HA row backfills exactly as before; it only skips, no check removed registry:Host@199,registry:Host@258,whole:Route@351,whole:Route@386,whole:Route@674,whole:Route@941 ee1bc76dae0295ea3a4d358a3dd75687ace0327ea5e809e88b87caa104857e5a |
| internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it registry:A@6877,registry:Account@4074,registry:Accounts@2803,registry:Addr@4651,registry:Addrs@4659,registry:Alias@6925,registry:Alias@6989,registry:Alias@7077,registry:Aliases@6799,registry:Alive@8619,registry:Args@6501,registry:AssetGen@4801,registry:AssetsOff@4788,registry:At@5942,registry:At@7008,registry:At@7086,registry:At@8367,registry:Attempts@8389,registry:B@2188,registry:Backing@4470,registry:BuildState@5038,registry:Changed@1996,registry:Changed@3159,registry:Changed@3246,registry:Changed@3335,registry:Changed@3406,registry:Changed@3510,registry:Changed@3597,registry:Changed@3690,registry:Changed@3772,registry:Changed@8299,registry:Channel@4134,registry:Channel@5383,registry:Channel@5787,registry:CheckedAt@5868,registry:Class@4589,registry:DoneBefore@8628,registry:Due@6271,registry:Due@6335,registry:Due@8411,registry:EgressAllow@4941,registry:Env@5451,registry:Env@5698,registry:Env@5798,registry:ExcludeHosts@8094,registry:ExcludeHosts@8189,registry:ExpectGood@6067,registry:ExpectOp@3214,registry:ExpectOp@3464,registry:ExpectPair@3644,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2246,registry:Fleet@2328,registry:Fleet@2409,registry:Fleet@2502,registry:FleetBoxes@2463,registry:Fleets@2112,registry:From@4245,registry:From@4306,registry:FromDB@4381,registry:FromOp@3302,registry:FromSock@4391,registry:Hash@5257,registry:Health@4668,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@2987,registry:Host@3028,registry:Host@3114,registry:Host@3190,registry:Host@3276,registry:Host@3368,registry:Host@3440,registry:Host@3546,registry:Host@3636,registry:Host@3724,registry:Host@3816,registry:Host@4066,registry:Host@4126,registry:Host@4184,registry:Host@4237,registry:Host@4298,registry:Host@4373,registry:Host@4462,registry:Host@4516,registry:Host@4581,registry:Host@4643,registry:Host@4721,registry:Host@4780,registry:Host@4868,registry:Host@4933,registry:Host@5030,registry:Host@5095,registry:Host@5156,registry:Host@5206,registry:Host@5249,registry:Host@5310,registry:Host@5443,registry:Host@5497,registry:Host@5558,registry:Host@5620,registry:Host@5850,registry:Host@5934,registry:Host@5991,registry:Host@6059,registry:Host@6148,registry:Host@6208,registry:Host@6263,registry:Host@6327,registry:Host@6442,registry:Host@6493,registry:Host@6560,registry:Host@6635,registry:Host@6698,registry:Host@7295,registry:Host@7442,registry:Host@7730,registry:Host@7794,registry:Host@7853,registry:Host@7936,registry:Host@8019,registry:Host@8250,registry:Host@8335,registry:Host@8467,registry:Host@8548,registry:Host@8711,registry:Hosts@187,registry:Hosts@2866,registry:Hosts@5374,registry:Hosts@5689,registry:Hosts@5778,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2622,registry:Idle@6568,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@8727,registry:Kind@8556,registry:Kind@8719,registry:Label@2255,registry:Label@2337,registry:Label@2418,registry:Label@5566,registry:Limit@8085,registry:Limit@8180,registry:MaxRun@6576,registry:Method@151,registry:Ms@8383,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2641,registry:Name@7802,registry:Name@7861,registry:Name@7944,registry:Name@8258,registry:Name@8343,registry:Name@8475,registry:Next@301,registry:NextAt@8401,registry:NextGood@6081,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@6769,registry:Now@8078,registry:Now@8173,registry:Now@8266,registry:Number64@2729,registry:Number@8516,registry:Number@8587,registry:Number@8672,registry:Observed@365,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@6216,registry:On@6643,registry:On@6706,registry:Op@3132,registry:Op@3208,registry:Op@3376,registry:Op@3458,registry:Op@3554,registry:Op@3732,registry:Op@3824,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@7396,registry:Pair@3476,registry:Pair@3560,registry:Pair@3658,registry:Path@7627,registry:Paths@7324,registry:PolicyExpiresAt@4964,registry:Prefix@7450,registry:Prev@6006,registry:RateLimit@5318,registry:Registration@1040,registry:Registration@1151,registry:Registration@7952,registry:Registration@8351,registry:Replica@5164,registry:Replicas@5103,registry:Retirement@1891,registry:Route@2964,registry:Routes@2922,registry:Routes@3850,registry:Routes@6369,registry:Routes@6736,registry:Rows@7738,registry:Seed@6450,registry:Size@4956,registry:Sqid@2633,registry:Sqid@2696,registry:Sqid@2775,registry:Status@1056,registry:Status@2427,registry:Status@3122,registry:Status@3198,registry:Status@3284,registry:Status@3448,registry:Status@4192,registry:Status@5858,registry:Status@6998,registry:Status@8373,registry:Status@8483,registry:Steering@4729,registry:StringMap@2539,registry:T@757,registry:T@7678,registry:T@851,registry:T@934,registry:TValue@3069,registry:Tags@2346,registry:Target@5628,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@2743,registry:Text@7483,registry:Text@7546,registry:Timer@709,registry:Timer@7766,registry:Timer@891,registry:Timers@7989,registry:Timers@8048,registry:Timers@8137,registry:Times@8761,registry:To@4253,registry:To@4314,registry:ToDB@4403,registry:ToOp@3294,registry:ToSock@4411,registry:TokenHash@2264,registry:Tunnel@5505,registry:Unit@4524,registry:UpdateSettings@4876,registry:Ver@5999,registry:Ver@6156,registry:W@7229,registry:Wildcards@7123,whole:Account@2807,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2190,whole:FleetBox@2467,whole:GoodBuild@6069,whole:GoodBuild@6083,whole:Pair@3478,whole:Pair@3562,whole:Pair@3646,whole:Pair@3660,whole:Route@2926,whole:Route@2968,whole:Route@3071,whole:Route@367,whole:Route@3854,whole:Route@4009,whole:Route@4015,whole:Route@6373,whole:Route@6740,whole:RouteAlias@6803,whole:RouteAlias@6879,whole:RoutePath@7328,whole:RoutePath@7398,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@7680,whole:Timer@7740,whole:Timer@7770,whole:Timer@7993,whole:Timer@8052,whole:Timer@8141,whole:Timer@853,whole:Timer@895,whole:Timer@936,whole:WildcardDomain@7127,whole:WildcardDomain@7231 4af9d0c881527c24ab4ee922709a342db0a810cc6fc0df7be5de2ea03d0d3285 |
| @@ -193,12 +213,12 @@ internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census |
| @remove internal/host/units/carlos-system-join.path external |
| @remove internal/host/units/carlos-system-join.service external |
| @coverage . 6ad916026a2e8f476ce9541fe5909f23c2483c94b4ed5a2bf5e016f1d59c883c |
| -@coverage internal/activator ad42edb69ad65773400b2dfa36e4b463e467afba5042342dd531d90790922268 |
| +@coverage internal/activator 85fbf27ef51f3df6952b76eb3261091778538f1f0a8c1de123f70e1350371df0 |
| @coverage internal/hafresh e78cb0a141bfa97525865bb840f7d74397f788d6fe92d981c6a945f6e3f37faf |
| @coverage internal/host dad347b4ff31533b43f77521feb783f4e7490a24ec37ea425af2c6846e87d718 |
| @coverage internal/host/units 618e60ad8a32605f8fe5249ee00c0ff059fbf70e35e3fe69779dbc23e51bab18 |
| @coverage internal/hostfiles 134d98da9d4d80ea9962bab1a3e5a5546d277f20c593c6db44ccf9d0f0b937ba |
| -@coverage internal/lease 31fe6c3d0057aed34dac00731f38177f7f94d76a0cd751bcc131dd1f06e86fe2 |
| -@coverage internal/provision 3492d70f3f352f264e2d90abce662a2b37f7399c1f8e825e19bc376cd4c28cbd |
| +@coverage internal/lease fd74eb077f84259c4cf7de57407e3b9a944452dd63adf1e4262ee83a204c712e |
| +@coverage internal/provision 9a7abc0b6cfa78088530f4af709b13fb62b2e6fae725c435229196d448b4770e |
| @coverage internal/registry 87b39b011b40cf87b8595c705a312bc23a91810d299c4aff4c6ba0825f8a5acc |
| @fields A,Account,Accounts,AddedAt,Addr,Addrs,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,At,Attempts,B,Backing,Bucket,BuildState,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Contents,CreatedAt,DBPath,DNSCheckedAt,DNSStatus,Deadline,Demand,Digest,DoneBefore,Due,DueAt,EgressAllow,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,F,Failed,FenceGen,Fleet,FleetBox,FleetBoxes,Fleets,From,FromDB,FromOp,FromSock,Gate,GoodDemand,GoodDigest,GoodVersion,HA,Hash,Health,Held,Hibernate,HoldOp,Host,Hosts,ID,Id,IdValue,Idle,IdleSeconds,ImportGate,Incarnation,Journal,Keep,Kind,Label,LastAt,LastError,LastMs,LastStatus,Limit,MaxRun,MaxRunSeconds,Method,Ms,Name,Next,NextAt,NextDue,NextGood,NextValue,Now,Number,Number64,Observed,ObservedValue,Old,On,Op,Original,Owner,Ownership,P,Pair,Path,Paths,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,Provisioned,RateLimit,RecordKey,Region,Registration,Replica,Replicas,Replication,Retirement,Route,Routes,Row,Rows,Runtime,Seed,SeedID,SeedSource,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,State,Status,StatusNamed,Steering,StringMap,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Unit,UpdateSettings,Ver,Version,W,WakeIncarnation,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait |