| new file mode 100644 |
| index 000000000..afada13ab |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-rootfs-apps-3-workers.tsv |
| @@ -0,0 +1,69 @@ |
| +# Census overlay rootfs-apps-3-workers, written by census-propose (#369). census-ruling-rootfs-apps-3-workers, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-rootfs-apps-3-workers.md. |
| +# 7 body, 2 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 1 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. |
| +# 21 new dispositions: 1 reads re-frozen at their disposition with the claim, 20 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy 7c9b99b6c82c1e39f8d0bcae7e2d6a4dc41c441a56a7b0a81429c06cae4fbc86 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;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R3: (1) refuses (errWakeUnproven) while another entry's release record of the host is open; (2) a rootfs row with a plan or a pin reads its declared processes before the lease (declaredProcesses(rt, g): the existing staged-manifest read of ExecBackend.Processes, the manifest root's staging wrote, checked against the identity's path and digest) and refuses before Acquire on an error; (3) the staged-identity start runs releaseInWake(ctx, e, rt, id, lease) before startGenExe, under this wake's lease, and a release that did not pass fails the wake; (4) a rootfs row with no plan, no pin and no staged identity is refused, the lease given back, nothing started; (5) a start error whose release is not proven stopped hands the lease to the release record (oweWakeLeaseToRelease) instead of giving it back. New sites +whole:Route x2 (rt to declaredProcesses and releaseInWake); no new file read beyond the existing staged-manifest read; binary rows unchanged;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: step 7 no longer calls rootfsProcessesHook (log only); it calls declareRootfsWorkers(e, rt, w), which registers the workers the wake's generation declares as pending and starts nothing (the resident tick starts them once the entry is awake under its lease watch); a worker is never a failure of the wake; the read of the declaration is the existing staged-manifest read (see registerRootfsWorkers); the same read sites in this body, no new read registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@28521,registry:GoodVersion@13684,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6378,registry:Replication@12307,registry:Replication@12436,registry:Replication@12455,registry:Replication@12536,registry:Replication@28424,registry:Replication@28556,registry:Seed@17242,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10528,whole:Route@11409,whole:Route@12287,whole:Route@12538,whole:Route@13887,whole:Route@15176,whole:Route@15368,whole:Route@16058,whole:Route@1630,whole:Route@17343,whole:Route@17414,whole:Route@19830,whole:Route@2066,whole:Route@2071,whole:Route@2125,whole:Route@2131,whole:Route@21688,whole:Route@2197,whole:Route@2205,whole:Route@22334,whole:Route@23641,whole:Route@23795,whole:Route@24294,whole:Route@24364,whole:Route@24951,whole:Route@26036,whole:Route@26467,whole:Route@26675,whole:Route@26729,whole:Route@27658,whole:Route@27843,whole:Route@28633,whole:Route@29045,whole:Route@29094,whole:Route@29472,whole:Route@30694,whole:Route@30789,whole:Route@3156,whole:Route@31630,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@562,whole:Route@5747,whole:Route@6006,whole:Route@6268,whole:Route@6273,whole:Route@6330,whole:Route@6336,whole:Route@6405,whole:Route@6413,whole:Route@6729,whole:Route@6790,whole:Route@6888,whole:Route@7712,whole:Route@8695,whole:Route@9269,whole:Route@9458 dd0b6ea943fad9d77ffae340caff6fbba2f1fe740328cc5536e255bd3acdbf6c |
| +@legacy 93898ea11077531e2c8887031f37755b57f1c648395202061c65577e9b0a45ab 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;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back registry:Socket@3570,registry:Socket@3675,whole:Route@3520,whole:Route@3572,whole:Route@3677 57133c704bc748e2eabf5b2ff375dd6923bbf65a2f2d3a406ea145194433a6c8 |
| +@legacy 68ad5ca196d54915f33aba4af30110ebca5429a0905a0a8b5df70aa456cf3330 internal/activator/activator.go Service.stop legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Joins sidecar cleanup and proves host empty before releasing its lease; agent lifecycle remains legacy.;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8 and W1.9: a rootfs instance's workers are stopped first and proven gone (stopRootfsWorkers), before the sidecar-start join and the barrier drain; one not proven is a stray and releasable keeps the lease until the sweep proves it; the stop and the proof are in the new units on this card; the same four read sites, no read added whole:Route@491,whole:Route@6520,whole:Route@6570,whole:Route@6633 78e9e11cd441eb57b208ab582325594b13c23abaf3c039426a01edb07963b77e |
| +@legacy b8a00be1ab62260722dddce3aec8cd237f216b69729815645ee03874df1f41dc internal/activator/opset.go Service.releasable 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 added to the termination proof; read sites unchanged;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 6: the termination proof also waits for a live size change in flight (e.ops.resizing, read under a.mu beside members and restoring), so a stop keeps the lease until the CPU and IO write to the host's slice returns; no read added, the same two whole:Route sites (rt, g, p taken from the entry, then genTerminated).;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R1.11]: the termination proof also requires that no release record of the host is open (read under a.mu beside members, strays, restoring and resizing); the same two whole:Route sites, no read added;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: the termination proof also requires rootfsWorkersGone(e) (no worker running, starting or a stray; a due stray is re-proven there, off a.mu), ahead of genTerminated and settleCmds; the same two whole:Route sites, no read added; only holds a lease back whole:Route@244,whole:Route@546 a10545433c612e9f79045bfd6445c1e8fa272da28c3feb826cb6411a875dff2e |
| +@legacy 238f53429b5dff0eadae36330a12a24f7120ee230b5d61cc7d209ea4a6abde10 internal/activator/rootfs_service.go Service.rootfsTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: per activator tick, lists residents (Registry.ResidentInstances through the DueStore), and for each rootfs entry kills generations whose replica reports a lost lease with no watch installed, stops an exited rootfs process (StopExited), and supervises; then drops forgotten residents and reserves proactive starts (residentJob) for resident-shaped, unheld rows within the start ceiling after the locked admission;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: when the tick kills a lost-lease resident's generations it also starts stopRootfsWorkersAtLoss(e) beside them; superviseRootfsLocked (a no-op in Group A) is now the worker supervision; the same 15 read sites, no read added; stops more, starts nothing new on its own registry:Host@1608,registry:Host@1837,registry:Host@2193,whole:Route@113,whole:Route@1561,whole:Route@1590,whole:Route@1759,whole:Route@1790,whole:Route@1872,whole:Route@2037,whole:Route@2086,whole:Route@2231,whole:Route@397,whole:Route@680,whole:Route@966 f4e1bda257f1c90d710038acd497863d04e8dea27947a3dbca49e32f7fc2cc01 |
| +@legacy 16d266c51af281469ba41482d9edf77f26ed230c615da10981d83b00f67e8069 internal/activator/unitproc.go ExecBackend.observe 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=final fix I3: the process observer's termination proof for a rootfs handle (Runtime, the new kind, one site) goes through unitEvents (two more Route sites): the host slice's cgroup.events and, for a rootfs unit, the group systemd reports when that is elsewhere, so a foreign invocation root placed outside the slice and could not stop is never read as gone from the absent expected path; a failed stop of a foreign invocation leaves it unstopped, asked again next poll, completion pending; a binary handle's proof is unchanged (cgroup.events under the host slice); the agent decides only whether it keeps a handle and a launch file; no root decision; re-digested at the merge of origin/main 3c33f2eb: main's own change to the observer is in the body, this branch's rootfs-aware evidence and the rootfs-only failed-stop retry (merge prep N1: a binary handle behaves exactly as main) on top; the kinds are the union;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: for a worker handle (p.worker != "") the observer keeps the exit record it read (workerExit, workerExitOK) for the supervisor instead of wording a member event, and says nothing for a replaced-after-stop or restarted-outside end; the termination evidence (cgroup.events via unitEvents, the foreign-invocation rule) and the record's single-use removal are unchanged and apply to a worker as to a generation; a binary or generation handle behaves exactly as before; the same 22 read sites, no read added registry:Host@1222,registry:Host@3062,registry:Host@3252,registry:Host@3599,registry:Host@3825,registry:Host@4529,registry:Host@5852,registry:Runtime@2414,registry:Runtime@806,whole:Route@1224,whole:Route@2222,whole:Route@2416,whole:Route@3064,whole:Route@3254,whole:Route@3601,whole:Route@3827,whole:Route@4531,whole:Route@4926,whole:Route@5404,whole:Route@5854,whole:Route@808,whole:Route@972 d662728ea44061b04ea93b1e54daf3e9bef41f277a8e3c4fc34a47b63fb0bfef |
| +@legacy 7ee837130f7cec1429f2e84ef25d5a7c8b36de5da5411c079ab3cc5b67f56b68 internal/activator/backend_rootfs.go ExecBackend.LaunchRootfsWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: starts one declared worker of a rootfs row in spawnRootfs's shape: a rootfs row and a valid worker name; web's own launch environment (a web handle that kept none is refused, nothing prepared); every rootfs gate; g's whole staged identity with its image checked against its digest; the worker's directories, exit records and log listener (prepareWorker); its launch file holding the composed environment alone (rootfsWorkerVars through rootfsLaunchEnv, no variable from a tenant or app); the caller's exec gate last, then StartRootfsWorker at g's memory.max; reads of the row's host and route are the existing path-composition reads of the generation start registry:Host@1136,registry:Host@1626,registry:Host@1931,registry:Host@2200,registry:Host@231,registry:Host@2547,registry:Host@2733,registry:Host@2827,registry:Host@2930,registry:Host@350,registry:Host@590,registry:Host@872,registry:Host@998,whole:Route@1198,whole:Route@1297,whole:Route@1547,whole:Route@1855,whole:Route@2621,whole:Route@3015,whole:Route@738 c406781158b4c89c7ac0a815b8343fe3fcd0bccc4cbbf95ed6df65cac921e4c3 |
| +@legacy 50a03ca5f5653270f653390e771f26ee4dd4d8699d72489ac0f8b542856437ac internal/activator/backend_rootfs.go ExecBackend.RootfsWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8: root is asked to stop the worker unit (kill=false) on DeadlineControl, then the agent reads the unit's cgroup (unitEvents) until it is empty; any StopRootfs error and any populated group is unproven; only nil from both is the proof, and only a caller holding it removes the worker's files registry:Host@1058,registry:Host@199,registry:Host@340,registry:Host@435,registry:Host@573,registry:Host@692,registry:Host@751,registry:Host@989,whole:Route@235,whole:Route@912 550869614969e7a80a7cbd40d5dedfa0cd2c439483ffcc7fe9b2ce9f9eff777d |
| +@legacy 21787149e0819741b938dae8d56ca9bddd9865111c225f7a2beff6d6ca9cf3b1 internal/activator/backend_rootfs.go ExecBackend.removeRootfsWorkerFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, INV-2: removes the named worker's launch file in the instance directory and its exit records in the run directory, with os.Remove (never follows the final component), after the proof only; another worker's files and every generation's stay; the run directory listing (ReadDir) selects records by the worker's name prefix file:ReadDir@292,whole:Route@97 ed4b4b5bad33eaa4a1006aaecbe91400f74e457684866d23db47ab924cfc16d5 |
| +@legacy 74c0eb6221638fc3f813a2311f65a0ab88d9dbdfde0adc51fef7bb881fdc5ce8 internal/activator/backend_unit.go SplitBackend.LaunchRootfsWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: forwards a worker's start to the exec side; a unit-backed row or an exec side without workers is refused with no handle, so nothing ran file:Exec@183,registry:Backing@132,registry:Host@326,whole:Route@254 f792573cb5726806b73de331f422ab818fa8374cfaaa6c78bbf7fccae063488c |
| +@legacy d45cbb29404f2394c0b8e83fe2657e883ac65120170f1a7974a2a3edf482e4d6 internal/activator/backend_unit.go SplitBackend.RootfsWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: forwards the worker proof to the exec side; a refusal is never the proof file:Exec@156,registry:Backing@105,registry:Host@284,whole:Route@225 e7b4f4a74f269eabaa24407cf8191a1cf966736a8464c6fe89bf1d5fe57acd98 |
| +@legacy 5691ca9c236f3f84a43db1294662da1dc3ed85be746e8b4d31a601e152d4a581 internal/activator/prepare.go ExecBackend.prepareWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: prepare for a worker: the instance's two directories and the worker log socket's, the worker's stale exit records cleared by its name prefix (another worker's and every generation's kept), its log listener bound where root's worker drop-in points StandardOutput=; reads no environment file; binds no control listener; asks no replica gate file:ReadDir@563,registry:Host@224,registry:Host@440,registry:Host@896,whole:Route@124,whole:Route@809 e2dd54044bc8224f6abf31ef1ce9fad6b8811929e25b1caa280bc54a9f94df6e |
| +@legacy 43cbab1eafa9dae1632dcfd9c937cff6c89c849b33c23505038ab404c2b9b4a0 internal/activator/rootfsenv.go ExecBackend.rootfsWorkerVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, D1: a worker's launch environment is web's launch environment for the generation (the handle's LaunchEnv, the agent-owned variables as web got them), with the generation's control socket only when web's listener bound, then rootfsVars with the row's canonical socket and database path; nothing from a tenant or app is added registry:Socket@217,whole:Route@180 3acf44cbbf05702fd9de9ecfdf6e9912b36c368f1a175b34ccd1d70d96976406 |
| +@legacy 9c31af2171381a1e755568c5cb2302bc75fcb8a3aaae79f6c881f1fa961fde9a internal/activator/rootfsworkers.go Service.RootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.25: a read-only report of an instance's workers by name for the status snapshot; in-memory state under a.mu whole:Route@137 3266119cf2d58e62cd9288f999bb3bb6ea0442bd27edc63cd3bb4aa36f2f1dcd |
| +@legacy c2516de8a6068805230fbf497a5a9dbea0df3dfb381a70f9f2e29573116c2521 internal/activator/rootfsworkers.go Service.declareRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: doWake's last step; registers the wake generation's declared workers as pending while the entry is waking; starts nothing whole:Route@119 2911140c9a9e96fefc9655e96f6f5b9d3110063b9cf40989cb026dacb39e736c |
| +@legacy b3fc2d35e7dbcc041538874941b3cdb4c1542f36056b4f3c548e0036a6cc725e internal/activator/rootfsworkers.go Service.handOverRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W2: an overlap swap's step 8 for a rootfs row; the old generation's workers (and strays) are stopped and proven gone through the parallel stop and proof, then the switched generation's set is registered as pending; launches nothing registry:Host@534,whole:Route@101,whole:Route@200,whole:Route@690 4086eefb15923bababea03ae1c72f57f9f27528bf08118513196d6d1c65bf62d |
| +@legacy 3fea16683bb5f1e9779350c02e8ce5fabe881a0c0acde195c93237d328d911ba internal/activator/rootfsworkers.go Service.installRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.11: the one writer of a worker's proc; installs only on the host's own entry, for a worker still the entry's, while the entry is awake and owned (a resident only with its lease watch); refused, the caller stops and proves gone what it started; in-memory whole:Route@258 d21115d53f2e66f1a24dbff8d5371e8c75e3239c2855b25f1101ce2d907a3acc |
| +@legacy 124716b01b06d8d0c084b367684e8ab94f7763bc25977fc5b563f6eec8ab8b1a internal/activator/rootfsworkers.go Service.noteWorkerExitLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.16: the backoff, restart count and member event of one worker exit (RFS-3-C09 and RFS-3-C10); in-memory and the member's journal only whole:Route@1111,whole:Route@699 9f3ef04eed3ca39741f29352302d56799ac60454363a88d8275a022a082d67ab |
| +@legacy 3d66fda8a4bfebc6bef4cd9596668c7a77b7855ab39f6a86dc9a29f320352ed5 internal/activator/rootfsworkers.go Service.proveWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8: stops one worker and proves it gone off a.mu (stopRequested first, RootfsWorkerGone on its own bounds, each handle's Stop only to close listeners); proven, the worker's files go; nil is the proof registry:Host@541,whole:Route@258,whole:Route@654 fb8de6f18b2b0549b4a5c88f020123047b7ed0fb4b4d712aa13076ebc120572c |
| +@legacy 04c7868f1fd25cfaa0fb64667fa3cc2dc53cc68adb5435a16b23d2b40510d7b0 internal/activator/rootfsworkers.go Service.proveWorkerNames legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: proves each name gone in parallel off a.mu and records the answers; an unproven worker becomes a stray the sweep retries; the lease stays held while any is a stray registry:Host@422,whole:Route@122,whole:Route@562 55ab891b800965937babc2fca9b153c58debf4bce9940f19a56de80e3af63d1b |
| +@legacy 8ebd1263d5e086d96f5c4b884b0729921ddf77262744fb9e9687deae0879779f internal/activator/rootfsworkers.go Service.registerRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: the one place a generation's declared workers are registered; reads the workers the generation declares through the existing staged-manifest read of the backend's Processes (the manifest root's staging wrote, checked against the identity's path and digest), registers each as pending on the host's own entry; an unreadable or invalid declaration registers none and web serves; starts nothing registry:Host@313,registry:Host@515,registry:Host@747,registry:Host@922,whole:Route@178 f7be8f11a0eb067e2d51e688234496fd8ed45bfac9ab7c4e73dc1f11b26fef94 |
| +@legacy 84cd3fbcdf95eb9f2b83b999917359e60732a2e8a054cbd88ab8d4a64437b9a8 internal/activator/rootfsworkers.go Service.restartRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.17: a worker's first start or restart as a goroutine: the old invocation is proven gone before a new one starts (unproven, it is a stray and nothing starts beside it), then runWorkerStart on a bounded context through the worker gate registry:Host@2194,whole:Route@2362,whole:Route@443,whole:Route@706 06808a8844667e496b62607b1652453823f9d8c2e694c9b1c2579bd68651863e |
| +@legacy 3d69226718b47c5cb6de8677a871b34354173720ff0f85761b89156de2bdcab3 internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray registry:Host@1971,registry:Host@2319,registry:Host@2510,registry:Host@2936,whole:Route@1656,whole:Route@2081,whole:Route@2588,whole:Route@3000 15dae6ed95eb85e42d3fda939ec1bcad0d6150fcb1a26c920ca014799fde7e59 |
| +@legacy 52759d6648afbcc3ebe5b366beda2f93d010ddeba936ed48e9aefc59b13f3a55 internal/activator/rootfsworkers.go SplitBackend.removeRootfsWorkerFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, INV-2: forwards the worker file removal to the exec side for an exec row; a unit-backed row has no worker files file:Exec@136,registry:Backing@85,whole:Route@198 1f5fc0dd5c5047b7289ed7c43e7b46796ac301cb18870c94d391a2f3bcf7568f |
| +@legacy cbd5eb2cbd2b0b6221ca08a63dfdf00d5ed05b2f29d1f86347a26cb8c4b29a2e internal/activator/unitproc.go ExecBackend.newRootfsWorkerProc legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: starts observing the named worker's unit; refused for a binary row and for a name that is no worker's before anything watches; holds no control listener registry:Host@237,registry:Host@382,registry:Host@516,whole:Route@272,whole:Route@423,whole:Route@427 77a5c912446712ced6f61221f039424f7cd8c69906ed55bb5e6b03546e193b13 |
| +@legacy eb9321b1ea483cc265b03a76524bc1cb64481646f4c61111fa0484ea58f3cd0d internal/activator/unitproc.go rootfsUnitFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: the named worker's unit name (WorkerUnitName) for RoleWorker on a rootfs row with a valid worker name and no generation; the empty name for anything else, so a worker with no name has no unit; every other role answers as unitNameFor registry:Host@332,registry:Runtime@193,whole:Route@171 f1f7711034b31b51d637704a8c812884bf8e7d2530784a8902793f5d56a133f4 |
| +@legacy bc6584b1806ff05f0d054b5ebe0979cbab00bd99cdf88963611acc58708cad9f internal/activator/unitproc.go unitProc.stopUnit legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=passes the row to stopRole instead of its host, so one Host site goes; for a rootfs row the stop is the rootfs verb's request (StopRootfs) over the same control socket; no file read added;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: a worker handle's stop goes to rootfsControl().StopRootfs(host, RoleWorker, 0, name, kill=false), naming the worker, and never kills (root refuses kill for anything but a generation); a generation or role handle goes through stopRole as before; reads +registry:Host x2 and +whole:Route x2 (the worker branch's rt.Host and rt, the same route the handle was started for) registry:Host@160,registry:Host@208,whole:Route@162,whole:Route@210,whole:Route@294 3857cb4cc11eda7e6155eb43140c43e444a3656de0275aac94f7d5109656a8dd |
| +@legacy a991188afe3b2e8b18a40f6bb5018162e5517f579bd98bd721115dd7767ffb20 internal/activator/rootfs_service.go Service.residentLeaseLost legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8 (C7): a resident's lost lease marks it and then kills its generations off a.mu (killResidentGens);rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: a resident's lost lease stops its workers (stopRootfsWorkersAtLoss, proven gone) in parallel with killResidentGens; rt is taken under the lock and passed to killResidentGens in place of e.route (the same route); site +whole:Route (that local rt); no file read whole:Route@127,whole:Route@294 2fe817bb10c67d1ea337c0c94bedec3b913689a6a9a1fcbd489b14840c0c8bd0 |
| +@legacy b0d857ec16cafd32607070c29f1b7f6de6a2981709dbec4ced38a4de36ba8227 internal/activator/swap.go Service.swapOverlap 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; admission and the switch refuse while a run's unit is starting, and the switch interrupts runs on the retiring generation; read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#329 plan 3 Task 4 and the final review: the new kind is registry:Size, one site, rt.Size != "" in the successor's max rule (the successor starts at the larger of its own sized tier and the incumbent's captured tier when the route has a size now or the incumbent runs at a tier other than its build's), and two more whole:Route sites: the successor's route is now sizedRouteLocked(e) with the wake route kept beside it as wakeRt for the incumbent's tier, and a second GenTier(rt, incumbent.Build) in that rule. The column comes from the agent's registry row (reconcile, from the signed app policy). Admission also refuses while a live size change is in flight. The raise still goes to root's /parent, whose memory_max root checks against its size table; no root decision here;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1, Task 8 and Task D: the incumbent's tier is recorded through recordCurrentTierLocked; genHealthy takes rt (so a rootfs generation is checked within the rootfs bound); the successor is installed through installProcLocked; after step 8 a rootfs build's declared processes are logged, never started (rootfsProcessesHook); no new file read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R2: two new parameters from releaseBeforeSwap (pass, the proven pass, and due, whether the build needed a release); the admission and the exec gate both also ask releaseAdmitsSwapLocked, which refuses while any release record of the host is open (INV-R4) and, when a release was due, unless pass is this attempt's for the successor's build (INV-R5); no release runs here; the same 18 read sites, no read added; adds refusals only;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W2: step 8 no longer calls rootfsProcessesHook(ctx, e, rt, m.gen); it calls handOverRootfsWorkers(e), which stops and proves the retiring generation's workers gone and then registers the switched generation's set as pending (starts nothing; the tick starts them, and the stray rule refuses a start while an old worker is a stray, so two sets never run at once); site -whole:Route (rt no longer handed to the hook); no read added registry:Kind@2060,registry:Size@5198,whole:Route@10112,whole:Route@11958,whole:Route@11965,whole:Route@12005,whole:Route@2062,whole:Route@2386,whole:Route@3729,whole:Route@3733,whole:Route@3778,whole:Route@4373,whole:Route@4425,whole:Route@5244,whole:Route@5821,whole:Route@7397,whole:Route@8116 44ff6b09a8ba61e74a25497deb230ac4e906f7bede76badde61fa8f9fe59eb6e |
| +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;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R3: (1) refuses (errWakeUnproven) while another entry's release record of the host is open; (2) a rootfs row with a plan or a pin reads its declared processes before the lease (declaredProcesses(rt, g): the existing staged-manifest read of ExecBackend.Processes, the manifest root's staging wrote, checked against the identity's path and digest) and refuses before Acquire on an error; (3) the staged-identity start runs releaseInWake(ctx, e, rt, id, lease) before startGenExe, under this wake's lease, and a release that did not pass fails the wake; (4) a rootfs row with no plan, no pin and no staged identity is refused, the lease given back, nothing started; (5) a start error whose release is not proven stopped hands the lease to the release record (oweWakeLeaseToRelease) instead of giving it back. New sites +whole:Route x2 (rt to declaredProcesses and releaseInWake); no new file read beyond the existing staged-manifest read; binary rows unchanged;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: step 7 no longer calls rootfsProcessesHook (log only); it calls declareRootfsWorkers(e, rt, w), which registers the workers the wake's generation declares as pending and starts nothing (the resident tick starts them once the entry is awake under its lease watch); a worker is never a failure of the wake; the read of the declaration is the existing staged-manifest read (see registerRootfsWorkers); the same read sites in this body, no new read registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@28521,registry:GoodVersion@13684,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6378,registry:Replication@12307,registry:Replication@12436,registry:Replication@12455,registry:Replication@12536,registry:Replication@28424,registry:Replication@28556,registry:Seed@17242,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10528,whole:Route@11409,whole:Route@12287,whole:Route@12538,whole:Route@13887,whole:Route@15176,whole:Route@15368,whole:Route@16058,whole:Route@1630,whole:Route@17343,whole:Route@17414,whole:Route@19830,whole:Route@2066,whole:Route@2071,whole:Route@2125,whole:Route@2131,whole:Route@21688,whole:Route@2197,whole:Route@2205,whole:Route@22334,whole:Route@23641,whole:Route@23795,whole:Route@24294,whole:Route@24364,whole:Route@24951,whole:Route@26036,whole:Route@26467,whole:Route@26675,whole:Route@26729,whole:Route@27658,whole:Route@27843,whole:Route@28633,whole:Route@29045,whole:Route@29094,whole:Route@29472,whole:Route@30694,whole:Route@30789,whole:Route@3156,whole:Route@31630,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@562,whole:Route@5747,whole:Route@6006,whole:Route@6268,whole:Route@6273,whole:Route@6330,whole:Route@6336,whole:Route@6405,whole:Route@6413,whole:Route@6729,whole:Route@6790,whole:Route@6888,whole:Route@7712,whole:Route@8695,whole:Route@9269,whole:Route@9458 dd0b6ea943fad9d77ffae340caff6fbba2f1fe740328cc5536e255bd3acdbf6c |
| +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;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back registry:Socket@3570,registry:Socket@3675,whole:Route@3520,whole:Route@3572,whole:Route@3677 57133c704bc748e2eabf5b2ff375dd6923bbf65a2f2d3a406ea145194433a6c8 |
| +internal/activator/activator.go Service.stop legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Joins sidecar cleanup and proves host empty before releasing its lease; agent lifecycle remains legacy.;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8 and W1.9: a rootfs instance's workers are stopped first and proven gone (stopRootfsWorkers), before the sidecar-start join and the barrier drain; one not proven is a stray and releasable keeps the lease until the sweep proves it; the stop and the proof are in the new units on this card; the same four read sites, no read added whole:Route@491,whole:Route@6520,whole:Route@6570,whole:Route@6633 78e9e11cd441eb57b208ab582325594b13c23abaf3c039426a01edb07963b77e |
| +internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read 7bc90a7e573c3b79f9500ce66524305796d367aed38b655098958f8c8af6a51c |
| +internal/activator/opset.go Service.releasable 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 added to the termination proof; read sites unchanged;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 6: the termination proof also waits for a live size change in flight (e.ops.resizing, read under a.mu beside members and restoring), so a stop keeps the lease until the CPU and IO write to the host's slice returns; no read added, the same two whole:Route sites (rt, g, p taken from the entry, then genTerminated).;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R1.11]: the termination proof also requires that no release record of the host is open (read under a.mu beside members, strays, restoring and resizing); the same two whole:Route sites, no read added;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: the termination proof also requires rootfsWorkersGone(e) (no worker running, starting or a stray; a due stray is re-proven there, off a.mu), ahead of genTerminated and settleCmds; the same two whole:Route sites, no read added; only holds a lease back whole:Route@244,whole:Route@546 a10545433c612e9f79045bfd6445c1e8fa272da28c3feb826cb6411a875dff2e |
| +internal/activator/rootfs_service.go Service.rootfsTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: per activator tick, lists residents (Registry.ResidentInstances through the DueStore), and for each rootfs entry kills generations whose replica reports a lost lease with no watch installed, stops an exited rootfs process (StopExited), and supervises; then drops forgotten residents and reserves proactive starts (residentJob) for resident-shaped, unheld rows within the start ceiling after the locked admission;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: when the tick kills a lost-lease resident's generations it also starts stopRootfsWorkersAtLoss(e) beside them; superviseRootfsLocked (a no-op in Group A) is now the worker supervision; the same 15 read sites, no read added; stops more, starts nothing new on its own registry:Host@1608,registry:Host@1837,registry:Host@2193,whole:Route@113,whole:Route@1561,whole:Route@1590,whole:Route@1759,whole:Route@1790,whole:Route@1872,whole:Route@2037,whole:Route@2086,whole:Route@2231,whole:Route@397,whole:Route@680,whole:Route@966 f4e1bda257f1c90d710038acd497863d04e8dea27947a3dbca49e32f7fc2cc01 |
| +internal/activator/unitproc.go ExecBackend.observe 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=final fix I3: the process observer's termination proof for a rootfs handle (Runtime, the new kind, one site) goes through unitEvents (two more Route sites): the host slice's cgroup.events and, for a rootfs unit, the group systemd reports when that is elsewhere, so a foreign invocation root placed outside the slice and could not stop is never read as gone from the absent expected path; a failed stop of a foreign invocation leaves it unstopped, asked again next poll, completion pending; a binary handle's proof is unchanged (cgroup.events under the host slice); the agent decides only whether it keeps a handle and a launch file; no root decision; re-digested at the merge of origin/main 3c33f2eb: main's own change to the observer is in the body, this branch's rootfs-aware evidence and the rootfs-only failed-stop retry (merge prep N1: a binary handle behaves exactly as main) on top; the kinds are the union;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: for a worker handle (p.worker != "") the observer keeps the exit record it read (workerExit, workerExitOK) for the supervisor instead of wording a member event, and says nothing for a replaced-after-stop or restarted-outside end; the termination evidence (cgroup.events via unitEvents, the foreign-invocation rule) and the record's single-use removal are unchanged and apply to a worker as to a generation; a binary or generation handle behaves exactly as before; the same 22 read sites, no read added registry:Host@1222,registry:Host@3062,registry:Host@3252,registry:Host@3599,registry:Host@3825,registry:Host@4529,registry:Host@5852,registry:Runtime@2414,registry:Runtime@806,whole:Route@1224,whole:Route@2222,whole:Route@2416,whole:Route@3064,whole:Route@3254,whole:Route@3601,whole:Route@3827,whole:Route@4531,whole:Route@4926,whole:Route@5404,whole:Route@5854,whole:Route@808,whole:Route@972 d662728ea44061b04ea93b1e54daf3e9bef41f277a8e3c4fc34a47b63fb0bfef |
| +internal/activator/backend_rootfs.go ExecBackend.LaunchRootfsWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: starts one declared worker of a rootfs row in spawnRootfs's shape: a rootfs row and a valid worker name; web's own launch environment (a web handle that kept none is refused, nothing prepared); every rootfs gate; g's whole staged identity with its image checked against its digest; the worker's directories, exit records and log listener (prepareWorker); its launch file holding the composed environment alone (rootfsWorkerVars through rootfsLaunchEnv, no variable from a tenant or app); the caller's exec gate last, then StartRootfsWorker at g's memory.max; reads of the row's host and route are the existing path-composition reads of the generation start registry:Host@1136,registry:Host@1626,registry:Host@1931,registry:Host@2200,registry:Host@231,registry:Host@2547,registry:Host@2733,registry:Host@2827,registry:Host@2930,registry:Host@350,registry:Host@590,registry:Host@872,registry:Host@998,whole:Route@1198,whole:Route@1297,whole:Route@1547,whole:Route@1855,whole:Route@2621,whole:Route@3015,whole:Route@738 c406781158b4c89c7ac0a815b8343fe3fcd0bccc4cbbf95ed6df65cac921e4c3 |
| +internal/activator/backend_rootfs.go ExecBackend.RootfsWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8: root is asked to stop the worker unit (kill=false) on DeadlineControl, then the agent reads the unit's cgroup (unitEvents) until it is empty; any StopRootfs error and any populated group is unproven; only nil from both is the proof, and only a caller holding it removes the worker's files registry:Host@1058,registry:Host@199,registry:Host@340,registry:Host@435,registry:Host@573,registry:Host@692,registry:Host@751,registry:Host@989,whole:Route@235,whole:Route@912 550869614969e7a80a7cbd40d5dedfa0cd2c439483ffcc7fe9b2ce9f9eff777d |
| +internal/activator/backend_rootfs.go ExecBackend.removeRootfsWorkerFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, INV-2: removes the named worker's launch file in the instance directory and its exit records in the run directory, with os.Remove (never follows the final component), after the proof only; another worker's files and every generation's stay; the run directory listing (ReadDir) selects records by the worker's name prefix file:ReadDir@292,whole:Route@97 ed4b4b5bad33eaa4a1006aaecbe91400f74e457684866d23db47ab924cfc16d5 |
| +internal/activator/backend_unit.go SplitBackend.LaunchRootfsWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: forwards a worker's start to the exec side; a unit-backed row or an exec side without workers is refused with no handle, so nothing ran file:Exec@183,registry:Backing@132,registry:Host@326,whole:Route@254 f792573cb5726806b73de331f422ab818fa8374cfaaa6c78bbf7fccae063488c |
| +internal/activator/backend_unit.go SplitBackend.RootfsWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: forwards the worker proof to the exec side; a refusal is never the proof file:Exec@156,registry:Backing@105,registry:Host@284,whole:Route@225 e7b4f4a74f269eabaa24407cf8191a1cf966736a8464c6fe89bf1d5fe57acd98 |
| +internal/activator/prepare.go ExecBackend.prepareWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: prepare for a worker: the instance's two directories and the worker log socket's, the worker's stale exit records cleared by its name prefix (another worker's and every generation's kept), its log listener bound where root's worker drop-in points StandardOutput=; reads no environment file; binds no control listener; asks no replica gate file:ReadDir@563,registry:Host@224,registry:Host@440,registry:Host@896,whole:Route@124,whole:Route@809 e2dd54044bc8224f6abf31ef1ce9fad6b8811929e25b1caa280bc54a9f94df6e |
| +internal/activator/rootfsenv.go ExecBackend.rootfsWorkerVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, D1: a worker's launch environment is web's launch environment for the generation (the handle's LaunchEnv, the agent-owned variables as web got them), with the generation's control socket only when web's listener bound, then rootfsVars with the row's canonical socket and database path; nothing from a tenant or app is added registry:Socket@217,whole:Route@180 3acf44cbbf05702fd9de9ecfdf6e9912b36c368f1a175b34ccd1d70d96976406 |
| +internal/activator/rootfsworkers.go Service.RootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.25: a read-only report of an instance's workers by name for the status snapshot; in-memory state under a.mu whole:Route@137 3266119cf2d58e62cd9288f999bb3bb6ea0442bd27edc63cd3bb4aa36f2f1dcd |
| +internal/activator/rootfsworkers.go Service.declareRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: doWake's last step; registers the wake generation's declared workers as pending while the entry is waking; starts nothing whole:Route@119 2911140c9a9e96fefc9655e96f6f5b9d3110063b9cf40989cb026dacb39e736c |
| +internal/activator/rootfsworkers.go Service.handOverRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W2: an overlap swap's step 8 for a rootfs row; the old generation's workers (and strays) are stopped and proven gone through the parallel stop and proof, then the switched generation's set is registered as pending; launches nothing registry:Host@534,whole:Route@101,whole:Route@200,whole:Route@690 4086eefb15923bababea03ae1c72f57f9f27528bf08118513196d6d1c65bf62d |
| +internal/activator/rootfsworkers.go Service.installRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.11: the one writer of a worker's proc; installs only on the host's own entry, for a worker still the entry's, while the entry is awake and owned (a resident only with its lease watch); refused, the caller stops and proves gone what it started; in-memory whole:Route@258 d21115d53f2e66f1a24dbff8d5371e8c75e3239c2855b25f1101ce2d907a3acc |
| +internal/activator/rootfsworkers.go Service.noteWorkerExitLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.16: the backoff, restart count and member event of one worker exit (RFS-3-C09 and RFS-3-C10); in-memory and the member's journal only whole:Route@1111,whole:Route@699 9f3ef04eed3ca39741f29352302d56799ac60454363a88d8275a022a082d67ab |
| +internal/activator/rootfsworkers.go Service.proveWorkerGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.8: stops one worker and proves it gone off a.mu (stopRequested first, RootfsWorkerGone on its own bounds, each handle's Stop only to close listeners); proven, the worker's files go; nil is the proof registry:Host@541,whole:Route@258,whole:Route@654 fb8de6f18b2b0549b4a5c88f020123047b7ed0fb4b4d712aa13076ebc120572c |
| +internal/activator/rootfsworkers.go Service.proveWorkerNames legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: proves each name gone in parallel off a.mu and records the answers; an unproven worker becomes a stray the sweep retries; the lease stays held while any is a stray registry:Host@422,whole:Route@122,whole:Route@562 55ab891b800965937babc2fca9b153c58debf4bce9940f19a56de80e3af63d1b |
| +internal/activator/rootfsworkers.go Service.registerRootfsWorkers legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: the one place a generation's declared workers are registered; reads the workers the generation declares through the existing staged-manifest read of the backend's Processes (the manifest root's staging wrote, checked against the identity's path and digest), registers each as pending on the host's own entry; an unreadable or invalid declaration registers none and web serves; starts nothing registry:Host@313,registry:Host@515,registry:Host@747,registry:Host@922,whole:Route@178 f7be8f11a0eb067e2d51e688234496fd8ed45bfac9ab7c4e73dc1f11b26fef94 |
| +internal/activator/rootfsworkers.go Service.restartRootfsWorkerLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.17: a worker's first start or restart as a goroutine: the old invocation is proven gone before a new one starts (unproven, it is a stray and nothing starts beside it), then runWorkerStart on a bounded context through the worker gate registry:Host@2194,whole:Route@2362,whole:Route@443,whole:Route@706 06808a8844667e496b62607b1652453823f9d8c2e694c9b1c2579bd68651863e |
| +internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray registry:Host@1971,registry:Host@2319,registry:Host@2510,registry:Host@2936,whole:Route@1656,whole:Route@2081,whole:Route@2588,whole:Route@3000 15dae6ed95eb85e42d3fda939ec1bcad0d6150fcb1a26c920ca014799fde7e59 |
| +internal/activator/rootfsworkers.go SplitBackend.removeRootfsWorkerFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, INV-2: forwards the worker file removal to the exec side for an exec row; a unit-backed row has no worker files file:Exec@136,registry:Backing@85,whole:Route@198 1f5fc0dd5c5047b7289ed7c43e7b46796ac301cb18870c94d391a2f3bcf7568f |
| +internal/activator/unitproc.go ExecBackend.newRootfsWorkerProc legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: starts observing the named worker's unit; refused for a binary row and for a name that is no worker's before anything watches; holds no control listener registry:Host@237,registry:Host@382,registry:Host@516,whole:Route@272,whole:Route@423,whole:Route@427 77a5c912446712ced6f61221f039424f7cd8c69906ed55bb5e6b03546e193b13 |
| +internal/activator/unitproc.go rootfsUnitFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: the named worker's unit name (WorkerUnitName) for RoleWorker on a rootfs row with a valid worker name and no generation; the empty name for anything else, so a worker with no name has no unit; every other role answers as unitNameFor registry:Host@332,registry:Runtime@193,whole:Route@171 f1f7711034b31b51d637704a8c812884bf8e7d2530784a8902793f5d56a133f4 |
| +internal/activator/unitproc.go unitProc.stopUnit legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=passes the row to stopRole instead of its host, so one Host site goes; for a rootfs row the stop is the rootfs verb's request (StopRootfs) over the same control socket; no file read added;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: a worker handle's stop goes to rootfsControl().StopRootfs(host, RoleWorker, 0, name, kill=false), naming the worker, and never kills (root refuses kill for anything but a generation); a generation or role handle goes through stopRole as before; reads +registry:Host x2 and +whole:Route x2 (the worker branch's rt.Host and rt, the same route the handle was started for) registry:Host@160,registry:Host@208,whole:Route@162,whole:Route@210,whole:Route@294 3857cb4cc11eda7e6155eb43140c43e444a3656de0275aac94f7d5109656a8dd |
| +internal/activator/rootfs_service.go Service.residentLeaseLost legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8 (C7): a resident's lost lease marks it and then kills its generations off a.mu (killResidentGens);rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: a resident's lost lease stops its workers (stopRootfsWorkersAtLoss, proven gone) in parallel with killResidentGens; rt is taken under the lock and passed to killResidentGens in place of e.route (the same route); site +whole:Route (that local rt); no file read whole:Route@127,whole:Route@294 2fe817bb10c67d1ea337c0c94bedec3b913689a6a9a1fcbd489b14840c0c8bd0 |
| +internal/activator/swap.go Service.swapOverlap 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; admission and the switch refuse while a run's unit is starting, and the switch interrupts runs on the retiring generation; read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#329 plan 3 Task 4 and the final review: the new kind is registry:Size, one site, rt.Size != "" in the successor's max rule (the successor starts at the larger of its own sized tier and the incumbent's captured tier when the route has a size now or the incumbent runs at a tier other than its build's), and two more whole:Route sites: the successor's route is now sizedRouteLocked(e) with the wake route kept beside it as wakeRt for the incumbent's tier, and a second GenTier(rt, incumbent.Build) in that rule. The column comes from the agent's registry row (reconcile, from the signed app policy). Admission also refuses while a live size change is in flight. The raise still goes to root's /parent, whose memory_max root checks against its size table; no root decision here;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1, Task 8 and Task D: the incumbent's tier is recorded through recordCurrentTierLocked; genHealthy takes rt (so a rootfs generation is checked within the rootfs bound); the successor is installed through installProcLocked; after step 8 a rootfs build's declared processes are logged, never started (rootfsProcessesHook); no new file read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R2: two new parameters from releaseBeforeSwap (pass, the proven pass, and due, whether the build needed a release); the admission and the exec gate both also ask releaseAdmitsSwapLocked, which refuses while any release record of the host is open (INV-R4) and, when a release was due, unless pass is this attempt's for the successor's build (INV-R5); no release runs here; the same 18 read sites, no read added; adds refusals only;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W2: step 8 no longer calls rootfsProcessesHook(ctx, e, rt, m.gen); it calls handOverRootfsWorkers(e), which stops and proves the retiring generation's workers gone and then registers the switched generation's set as pending (starts nothing; the tick starts them, and the stray rule refuses a start while an old worker is a stray, so two sets never run at once); site -whole:Route (rt no longer handed to the hook); no read added registry:Kind@2060,registry:Size@5198,whole:Route@10112,whole:Route@11958,whole:Route@11965,whole:Route@12005,whole:Route@2062,whole:Route@2386,whole:Route@3729,whole:Route@3733,whole:Route@3778,whole:Route@4373,whole:Route@4425,whole:Route@5244,whole:Route@5821,whole:Route@7397,whole:Route@8116 44ff6b09a8ba61e74a25497deb230ac4e906f7bede76badde61fa8f9fe59eb6e |
| +@remove internal/activator/backend_rootfs.go Service.rootfsProcessesHook |
| +@removed internal/activator/backend_rootfs.go Service.rootfsProcessesHook H3 census-ruling-rootfs-apps-3-workers;absent;basis=rootfs Plan 3 Group W, W1 and W2: deleted, not moved. It only logged a rootfs build's declared workers after a wake or a swap and started nothing; doWake now calls declareRootfsWorkers and swapOverlap calls handOverRootfsWorkers (both new units on this card) in its place. No check, refusal or validation went with it. |
| +@coverage internal/activator 9db506cb81a4c8d224b086c44bdc7c88da2308bc4ddbe95952d5f4c0cb552305 |
| +@coverage internal/rollout 3f68da381e83a917dbb7616fd462fb0ff1e6ab1580a24cbcd0e8bc05c670b2bf |
| +@coverage internal/rolloutwords 97c00f96bf5b3a36a1a26935fb0a930bd5406deb7a1cc0c2eccad97387401378 |
| +@coverage internal/status 4da48628e160e5a472f3679e8a6c4857b22de08402a3ec76d691c8b3fb22c3c7 |