| index ab13deb72..dce85ea11 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv |
| @@ -1,18 +1,26 @@ |
| # Census overlay managed-fleets-2b2, written by census-propose (#369). census-ruling-managed-fleets-2b2, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-managed-fleets-2b2.md. |
| -# 2 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 22 new dispositions: 0 reads re-frozen at their disposition with the claim, 22 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| -@legacy 4ad7aad0079e2020df642fc2cc6ca1e33b0e6caacdbb4e6acb81279252eadb29 internal/host/managedboot.go const#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=managed-boot path and limit constants; data only data-literal@523 765b471b3a8004d57f6f1d4d73582e35ee10a1041def47f7209e7ade19023a47 |
| +# 14 body, 1 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 32 new dispositions: 0 reads re-frozen at their disposition with the claim, 32 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy 4a886f19eb13990a95311329aa3a4cf8906513140156c201712163ec02638848 internal/host/agent.go fastTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=observes the change index before any pass (observeIndex), runs the backstop's requested full pass and a scoped pass for moved app scopes (indexTick), and arms the canary pointer gate on the sweep (canaryPointerGate) only on a tick whose own index observation succeeded; read site unchanged, offset moved;rev3=census-ruling-stateless-replicas-1;basis=Call coordinator Tick on the existing tick before convergence; client renews held terms only at the pinned interval. Existing registry read unchanged. Final review I3: signal the owned renewal worker instead of waiting for its sequential console HTTP calls. Existing convergence and record read unchanged.;rev3=census-ruling-region-ha-p3a;basis=Run the optional desired-role reader on the existing tick after observing the armed change index; no new root path or timer, nil reader is unchanged.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: signals the owned replica worker on the existing tick; coalesced asynchronous execution, no timer or bucket scan added. merge of origin/main 7920cccf: Retain main box-role reader pass on the existing tick alongside the replica worker signal; merge-only body change, unchanged read sites.;rev3=census-ruling-restart-new-box-gap;basis=calls the optional restartGain hook (restartGainSeed) once per existing tick before the serial read; no new root path, timer or read kind; nil hook is unchanged;rev3=census-ruling-agent-start-demo-3;basis=Refresh moved notices through the shared watch before normal convergence; no new per-box poll. Census read-site delta: unchanged (1).;rev3=census-ruling-managed-fleets-2b2;basis=calls d.managedReady after the serial read on every tick (nil on BYO, returns at once once admitted); no read of its own added registry:Host@5679 741db8b2f80543447fee068dc520bf8cee4c9da2a3b67dac640236ca46591701 |
| +@legacy 878b5047cf1885a4cfc9019f8d8e8b392bfad5363d1f162b08da9e7b06ba062b internal/host/systemunits.go ensureSystemUnitsWithGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move unit-repair body here with existing lock/unit/host.env reads; under lock require operator repair permit on groups before writes and each systemctl effect, preserve root masks/drop-in and omit automatic update/recovery units. New indirect protected marker/permit reads, never agent receipt; fixed repair unchanged.;rev3=census-ruling-managed-fleets-2b2;basis=under the apply lock and before any reload/enable, installs the managed admission drop-ins (every WorkloadUnits template + declared named units, from root-owned /etc/carlos/named-units.json) and the control ReadWritePaths drop-in on a managed box; daemon-reload and control try-restart when one was written; BYO no-op file:OpenFile@293,file:ReadFile@5694,file:ReadFile@5827,file:ReadFile@7285,file:Stat@5603 bd2d2bda84d1191ed238d5c1ce3c8c83a59b9e339742660c26baa4e6695ced42 |
| +@legacy 6c2b1da09c2085686f52a0aa1b11a17502567c135a024b2a63019ee4f3395f56 internal/host/unitops.go InstallNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one carlos writer of /etc/carlos/named-units.json: validates the bytes with appconfig.ValidateDeclarations (the pass's decoder), takes the config-sync flock (<envDir>/.sync.lock, the lock SyncUnits holds for a whole pass), writes <dst>.tmp beside the file with O_CREATE|O_EXCL 0644, fsync, rename over dst, fsync of the directory (file:OpenFile of the temp and file:Open of the directory); root-owned because the verb runs as root;rev3=census-ruling-managed-fleets-2b2;basis=under the config-sync flock, before the declaration is replaced, installs each declared unit's admission drop-in on a managed box (daemon-reload if written); a maintenance unit name is refused; BYO no-op file:Open@1129,file:OpenFile@635 cdbee30a9cb0882520ccf3a7f69c4b6d0845c34234d8a7e4d490569bd5e3639c |
| +@legacy 78c2ae5c69dd179eda5237888d9388e5e9bdee26e0823e4581eb7400bcb84ef9 internal/instancectl/server.go type Server 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 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-managed-fleets-2b2;basis=adds ManagedAdmit and ManagedAdmission hooks; data only file:Statfs@4501 b0e6f430d3343b7dec415fb351ea4c6e9efa7ace6a0ec62ce1b968839c502c25 |
| +@legacy 97fd785dd01b22b87b771970b5384eae7651239ad73f39a3844545d7eafed019 internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry 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=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: collect validated instance records from the existing scan before pool filtering; report source completeness separately. Record reads, writes, scope and removal authority unchanged.;rev3=census-ruling-agent-start-demo-1;basis=Keeps local demo rows for signed cleanup instead of deleting the binding on record absence or trash; normal/hub paths unchanged. Merge integration against origin/main 9bd45488 retains main's HA departure inventory scan and family-completeness reporting alongside the early local-demo retention guard; existing record reads retained.;rev3=census-ruling-stateless-replicas-2;basis=Final fix I1: legacy records now reach the legacy ownership/removal judgement for former set rows; a greater local incarnation remains protected. Current set-record lifetime and membership checks remain. Same record/registry reads and removal writers. TestReplicaReconcileLegacySuccessor covers both boxes with and without the judge; P11 newer/unknown set protections remain covered. merge of origin/main 6be08467: Retain main signed demo retirement ownership alongside replica set retirement and legacy successor recovery; merge-only body change, unchanged read sources.;rev3=census-ruling-agent-start-demo-3;basis=Install durable source claim holds and reconcile fresh destination seed gates; preserve owned pending routes and stop orphan seeds before cleanup. Census read-site delta: +registry:Account, +registry:App, +registry:Host, +registry:ImportGate ×2, +registry:SeedSource ×2, +whole:Route ×4.;rev3=census-ruling-region-ha-g2-fixes;basis=Run guarded pool withdrawal, extract the unchanged judged collection rules into scanInstanceRecords, and publish pre-pool HA ingress including stale refusal names. Existing direct route reads remain; indirect withdrawal reads and deletion are separately claimed.;rev3=census-ruling-managed-fleets-2b2;basis=returns nil before any list, mint or removal while ReconcileConfig.Joining answers true (a joining managed box); ownsRecord also refuses every record then; no read added registry:Account@26361,registry:Account@28231,registry:Account@46997,registry:Account@47043,registry:Account@48672,registry:Account@49049,registry:Account@49275,registry:Account@49342,registry:Account@49388,registry:Account@49481,registry:Account@49523,registry:Account@50171,registry:Account@50429,registry:Account@51331,registry:Account@51379,registry:Account@51788,registry:Account@51834,registry:Account@52079,registry:Account@52504,registry:Account@52992,registry:Account@53336,registry:Account@53938,registry:Account@54131,registry:Account@54543,registry:Account@54722,registry:Account@55046,registry:Account@55611,registry:App@26334,registry:App@28204,registry:App@47017,registry:App@47055,registry:App@48684,registry:App@49061,registry:App@49287,registry:App@49362,registry:App@49400,registry:App@49501,registry:App@50183,registry:App@50441,registry:App@51343,registry:App@51391,registry:App@51808,registry:App@51846,registry:App@52091,registry:App@52516,registry:App@53004,registry:App@53348,registry:App@53950,registry:App@54143,registry:App@54555,registry:App@54734,registry:App@55058,registry:App@55623,registry:Canary@47510,registry:ClaimOwnership@26948,registry:DBPath@36858,registry:DBPath@36873,registry:DBPath@37119,registry:DBPath@37722,registry:DBPath@37735,registry:EgressAllow@25447,registry:FleetBoxes@47471,registry:FleetBoxes@47619,registry:FleetBoxes@54331,registry:Gate@32755,registry:Gate@32895,registry:Gate@33182,registry:Hibernate@31427,registry:Hibernate@31625,registry:Hibernate@31690,registry:Hibernate@32029,registry:Hibernate@32380,registry:Hibernate@32690,registry:HoldOp@17438,registry:HoldOp@53683,registry:HoldOp@53774,registry:HoldOp@53909,registry:HoldOp@54285,registry:Host@15335,registry:Host@17841,registry:Host@17981,registry:Host@46976,registry:Host@47570,registry:Host@48648,registry:Host@49025,registry:Host@49189,registry:Host@49295,registry:Host@50191,registry:Host@50397,registry:Host@51671,registry:Host@51943,registry:Host@52058,registry:Host@52381,registry:Host@52478,registry:Host@52869,registry:Host@52966,registry:Host@53180,registry:Host@53382,registry:Host@53765,registry:Host@53900,registry:Host@54104,registry:Host@54177,registry:Host@54276,registry:Host@54516,registry:Host@54695,registry:Host@54774,registry:Host@54861,registry:Host@55020,registry:Host@55095,registry:Host@55181,registry:Host@55588,registry:ImportGate@34334,registry:ImportGate@34633,registry:Incarnation@17614,registry:Incarnation@47688,registry:Kind@17826,registry:Kind@17966,registry:Kind@27090,registry:Kind@27456,registry:Kind@27738,registry:Kind@27958,registry:Kind@36776,registry:Kind@36789,registry:Kind@36899,registry:Kind@36912,registry:Kind@37633,registry:Kind@37644,registry:Kind@46100,registry:Kind@53171,registry:Kind@53891,registry:Kind@54267,registry:Kind@54507,registry:Kind@54852,registry:Kind@55011,registry:Kind@55172,registry:Platform@47495,registry:PolicyExpiresAt@25472,registry:Pool@46186,registry:Provisioned@26310,registry:Provisioned@28180,registry:Provisioned@46145,registry:RateLimit@33268,registry:RateLimit@33419,registry:RateLimit@33706,registry:Region@46175,registry:ReplicaIncarnation@17322,registry:ReplicaIncarnation@17359,registry:Replication@32114,registry:Replication@32241,registry:Runtime@19010,registry:Runtime@19188,registry:Runtime@21495,registry:Runtime@30794,registry:Runtime@30848,registry:Runtime@31052,registry:Seed@35256,registry:SeedSource@34292,registry:SeedSource@34612,registry:SeedSource@34739,registry:Size@25463,registry:Socket@36824,registry:Socket@36839,registry:Socket@37136,registry:Socket@37692,registry:Socket@37705,registry:Stateless@37793,registry:Unit@36742,registry:Unit@36755,registry:Unit@37659,registry:Unit@37670,whole:ClaimOwnership@26951,whole:ClaimOwnership@26968,whole:Route@15317,whole:Route@15328,whole:Route@15346,whole:Route@16627,whole:Route@17214,whole:Route@17425,whole:Route@17740,whole:Route@18026,whole:Route@18040,whole:Route@18053,whole:Route@18076,whole:Route@19505,whole:Route@19512,whole:Route@19552,whole:Route@19913,whole:Route@20068,whole:Route@20353,whole:Route@20800,whole:Route@20851,whole:Route@20888,whole:Route@22560,whole:Route@22769,whole:Route@23108,whole:Route@23117,whole:Route@23163,whole:Route@25396,whole:Route@25955,whole:Route@26426,whole:Route@26436,whole:Route@26793,whole:Route@26800,whole:Route@26868,whole:Route@27231,whole:Route@27287,whole:Route@27357,whole:Route@27368,whole:Route@27796,whole:Route@28829,whole:Route@31780,whole:Route@34441,whole:Route@36968,whole:Route@37906,whole:Route@38793,whole:Route@38838,whole:Route@38848,whole:Route@39718,whole:Route@40745,whole:Route@46211,whole:Route@46359,whole:Route@47456,whole:Route@47826,whole:Route@48600,whole:Route@48982,whole:Route@50833,whole:Route@53274,whole:Route@54422,whole:Route@54933,whole:Route@55518,whole:Route@55568 5da0a14b597609fa3d212c7e79a3d2895426e238cace01b5770653d9ab9e97fe |
| +@legacy fb417b99b0134cad63e8009c72d604860de1a70ecb4ba2e008cf432f2b387e38 internal/provision/sidecar_reconcile.go ReconcileSidecars legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the record walk and its sidecars manifest lookup move unchanged into the pass's scan closure (over a store argument) and the removal phase into its retire closure; over a record view snapshot, a pass that reaches a removal candidate (a sidecar gone or no longer placeable here) removes nothing on the snapshot's word: it runs scan again over the bucket (freshStore) and decides every removal that pass from that walk, by the walk's own rules (unusable records protected before scope, hosts matched across every key, placement from the bucket's record and sidecars manifest against this box's inbound); a walk that cannot read cleanly keeps every row; with no candidate, or disarmed, nothing is read again; the registry sites are main's, moved; relative to main's single walk a removal can only be withheld, never added;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: retain validated sidecar records before scope/manifest filtering for coverage, including hidden/out-of-pool records. No new object reads or sidecar HA authority.;rev3=census-ruling-region-ha-p1b3b-s;basis=Derive canonical sidecar lifetimes from account/app/synthetic host/CreatedAt; collect HA and manifest placement for departures before scope filtering; update a separate family in the existing lifetime index. Existing record reads, key parsing and removal authority remain.;rev3=census-ruling-region-ha-g2-fixes;basis=Run sidecar-scoped pool withdrawal before the existing pass; existing direct reads unchanged, new indirect stop/record/deletion checks are in withdrawal helpers.;rev3=census-ruling-managed-fleets-2b2;basis=returns nil before any list, mint or removal while ReconcileConfig.Joining answers true; no read added registry:Account@12826,registry:Account@13065,registry:Account@14018,registry:Account@14768,registry:App@12799,registry:App@13051,registry:App@13991,registry:App@14754,registry:Args@13643,registry:Args@13914,registry:Channel@13631,registry:ClaimOwnership@13444,registry:Host@10420,registry:Host@16104,registry:Host@16151,registry:Host@16274,registry:Host@16451,registry:Host@16600,registry:Host@16707,registry:Kind@12740,registry:Kind@13014,registry:Kind@13931,registry:Kind@14717,registry:Kind@15937,registry:Pool@16055,registry:Provisioned@12772,registry:Provisioned@13029,registry:Provisioned@13963,registry:Provisioned@14732,registry:Provisioned@15964,registry:Region@16005,whole:ClaimOwnership@13447,whole:ClaimOwnership@13464,whole:Route@10402,whole:Route@10413,whole:Route@10431,whole:Route@10617,whole:Route@10986,whole:Route@10995,whole:Route@12428,whole:Route@13289,whole:Route@13296,whole:Route@13364,whole:Route@13699,whole:Route@14076,whole:Route@15922,whole:Route@16517 5e3401e3cb68a5bd7688a0e53aa0791fa5ac54b4d14bcd7bcc6cd3daf521db5e |
| +@legacy 5eadea8f4cff03671756532aae37f165d503b17b14be5fb5faa016d02a9ab3f7 internal/host/managedboot.go const#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=managed-boot path and limit constants; data only (fix round 1: the 16 MiB scan limit replaced by a 1 MiB scan chunk) data-literal@523 a907fdc54fc74adb2852a2f3060710d4f5ae9e1fe9e7ddf499c73dec7a1b00c1 |
| @legacy f4bdcc19db302182fd9c793def03df390df710596c8bd0661c0cffa6d0974864 internal/host/managedboot.go managedBoot.attest legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat and list /data (names only) before anything writes under it, to report absent/empty/count in the enrol request; no file content read file:Lstat@57,file:ReadDir@209 7a32d2fcf1179f2afa5127839bbde21d755de536c8f329b71486c5c8248c174a |
| @legacy e0ce88af5d49d23ad1fdb4779d535f9e9a4e8cef275ae528ac9c964d612ea1ae internal/host/managedboot.go managedBoot.clearStaging legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists root-owned 0700 BootDir for staging.* left by a cut-off boot and shreds them via mbRemoveTree file:ReadDir@62 a7c11f7fdb4b17d34ca99b11cd392ffa787c2d6a30ef0ecdc77ea4f7ac61dcf1 |
| -@legacy 8955cc057d9b2fae30d02379ac6a460434fb62d3815d3ba6a5e20c00da41c647 internal/host/managedboot.go managedBoot.post legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the enrol HTTPS reply body (64 KiB cap) from the frozen console origin; no file read file:ReadAll@600 88bbfb6acf5e7acc4cbcbe05edfa3d379e5d333dc61699d32856d17cf323caec |
| +@legacy 4a8849157b5dd17f81eb533ebadf9afe804b08ccd1b72ad8267da8cd37b8e75f internal/host/managedboot.go managedBoot.post legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the enrol HTTPS reply body (64 KiB cap) from the frozen console origin; no file read (fix round 1: logs only the transport error class, no value) file:ReadAll@761 9e6d08e04534b683b424b72d3bae6da020c599dd0f739b53a11aae4d33db2263 |
| @legacy 7ffd16d9d597e628929eddcfbebaa25697cfb3568c292822263b482c07f46492 internal/host/managedboot.go managedBoot.present legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of fixed root-owned paths (BootDir markers, committed dir, seed request); existence only file:Lstat@69 289bacf43547b6913d9aa268c800f975263c9c1fc96f920486c1aca5c6b01940 |
| -@legacy 359d509f0534a61fb13d3a961b574e6540cbd4164a1fab1c1622350fc76c0f6a internal/host/managedboot.go managedBoot.scrub legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=walks cloud-init trees (/var/lib/cloud, /run/cloud-init, cloud-init logs) and BootDir without following symlinks and shreds regular files holding the used token; nothing read is executed or trusted file:WalkDir@174 605ad097ff1799d6419f167aa2e8bbf98cc97d4b1f25ac81ce20d3210c69aed1 |
| +@legacy c9856699fa34d6bcf1b7ab6be6936111bc0ca212fc3e181e479f959368d635d8 internal/host/managedboot.go managedBoot.scrub legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=shreds cloud-init's user-data copies by path, then walks cloud-init trees and BootDir without following symlinks and shreds regular files holding the used token (streaming scan, any size); obj.pkl is never removed; nothing read is executed or trusted file:WalkDir@297 cd73c536214bb3b91f3b16df111bbac7dc7d94d5a21c012307abfb551b7b0d9a |
| +@legacy 8c848e287e1141d93e66a381f00cac76a98312cf7203b3e0e2877750aa67d79c internal/host/managedboot.go managedBoot.scrubKnown legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists /var/lib/cloud/instances and lstats user-data.txt, user-data.txt.i, scripts/part-001 in each to shred them; no content read; best effort on the complete path file:Lstat@397,file:ReadDir@106 63db4dc827d5d8f3c6102237c0add9def051233b7e0e4548ac6ab0b59802ddbe |
| @legacy 193bcb60c81a5e53008a786d4335d842d0492a2ab4419f227a9ae5af9c5a8b6e internal/host/managedboot.go managedBoot.stage legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=renders host.env/credentials/identity from the checked enrol reply into a fresh root-only staging dir; the read is crypto/rand for the dir suffix file:Read@894 67520ac85f00b62f94ce4fa6ae581d9a12c33c779dea95da59170d18303d3fb7 |
| -@legacy 10f3f1ffd13fdf4cabe37ae2611ad320831c0583e6e8986890a4ff55bd8bb505 internal/host/managedboot.go mbHolds legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat + read (16 MiB cap) of a regular file found by scrub's walk, only to test for the token bytes file:Lstat@69,file:ReadFile@191 88c094012701111d6584143b33807d43ecbe2ea54d730a9571987f0712e8e360 |
| +@legacy 123474f15d70fdbf98881a01bbfefbb12ccf1d2be8b9a9b2e3185c94ffa3a14f internal/host/managedboot.go mbHolds legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=streams a regular file opened by mbOpenRegular (O_NOFOLLOW, no FIFO block) in 1 MiB chunks to test for the token bytes; nothing read is trusted file:Read@222 818241afbd14f2aabb05721e9bae1bcd2a460223c5e2a4bdf1df0eb03985137e |
| @legacy b4fefb56bd198375191458ef6135cd32622679299e70c8533769cfc3490e3b4e internal/host/managedboot_linux.go managedBoot.readInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of BootDir (0700 dir check) then mbReadRootFile of boot-input.json (root-owned 0600, no symlink, nlink 1) file:Lstat@81 eff8288c342b21f58c6b2f62c2db67c19cd898111002c1d1c61f6070b04df0d3 |
| -@legacy da5f54377c5568707dd9fefd020055c08d4e44051ad29d7b42ece13c8f3b0bb6 internal/host/managedboot_linux.go mbBreadcrumb legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens /dev/console write-only to emit a value-free breadcrumb line file:OpenFile@92 1772f051eec5a1717430d88bbd86dc31e18ddedd0ac04bcd28680c39c1f2ab3c |
| -@legacy 43221a5a52c7aa602147b5e45935f958497c2083fe53db17c5e91967ea9f4103 internal/host/managedboot_linux.go mbCopyDurable legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=EXDEV fallback of mbMove: opens a root-owned committed file O_NOFOLLOW and copies it durably to its final root path file:Fstat@190,file:OpenFile@304,file:OpenFile@56 02ad0641b21a3de9c7c392f513e799209927638a778db73a186cc4870cd536b9 |
| +@legacy 47be21f844dac5646e464283d355ab35d9e4299e9af6ffd5e79f3f95da47c8cc internal/host/managedboot_linux.go mbBreadcrumb legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens /dev/console write-only, O_NOCTTY|O_NONBLOCK, to emit a value-free breadcrumb line file:OpenFile@158 8c8acd41204e44bcdd6c75dc52755971ff0f12150027e6e036ccebb8350ce6fc |
| +@legacy f9666251c53e44285a793e4775b907c144ed37c68de76c78a92a5b165b355b89 internal/host/managedboot_linux.go mbDev legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of a root-owned install directory for its st_dev, so installation is by rename on one filesystem file:Lstat@73 eaab1d9226108f36252919cf537a67752292124c319a74c905100ff41ef2a894 |
| @legacy 1ce875ac09b27474d64e46c3c1a8f4ec429c852ec4af77410a2c19661454b5a4 internal/host/managedboot_linux.go mbHashExec legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW open + fstat of /opt/carlos/carlos: regular, nlink 1, root:root 0755, sha256 against the signed digest before first exec file:Fstat@274,file:Open@73 f4236bb074271b622159f0348a465458619cb7ec6051ff8cfdd1664133084729 |
| +@legacy 9565823c4b61cd907fc8e22c1e6c6ef7a2d031f1df206f6ab960410a3f654c89 internal/host/managedboot_linux.go mbOpenRegular legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_RDONLY|O_NOFOLLOW|O_NONBLOCK open + fstat regular check for scrub's scan file:Fstat@249,file:Open@64 66178b502052a74ca02b6cb0a686303da0e85026a69ee909a220bc8a99b1d099 |
| @legacy 4a80fd0ab95b7a22bdc17fc4b6048e07f2df168a33b3f736d40184097630b8fd internal/host/managedboot_linux.go mbReadRootFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=openat beneath an mbWalk-verified root-owned chain, O_NOFOLLOW|O_NONBLOCK, regular, nlink 1, owner root, no g/o write, exact mode, size cap file:Fstat@482,file:Openat@233,file:ReadAll@813 4049413ad34b5e910972b1e05a473d15b380046f16a0ecc8b57f0fec76f6c0d6 |
| @legacy 5948016d50dd2add8ae3232a03195bd5d1422bc66a8eab98d841b18b844fb034 internal/host/managedboot_linux.go mbRemoveTree legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists a root-owned staging dir and shreds its regular files file:ReadDir@201 9fb3f04a9518441c82c251d4960bce3a4494bf5297746b2b9f01e3292b32553a |
| @legacy cdd270639163586bd02ce42212d241456883660ab1f3f1b9be9a436c56a56d62 internal/host/managedboot_linux.go mbRun legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=runs argv with exactly the given env from /: nft list table, systemctl, and /opt/carlos/carlos bootstrap after its digest check file:CommandContext@77 c4bb8739c9eab44b2a548cd0a8684cbee4f15a5408322a8df89af1fbe634889e |
| @@ -20,23 +28,45 @@ |
| @legacy a44ac7b802a1c9bcdc037b85fe8daf87f79c0ffe9e25cbeac12d7867854b8fc4 internal/host/managedboot_linux.go mbSyncDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens a root-owned directory to fsync it file:Open@47 fc9bc492fa32b963b98ad1dea24c07a65b2b35d00a25ac2adbafeb16af745c09 |
| @legacy 18b5c362804794bc0a0cd961c8fe3e8cc956d9f1226860396bf699db780a978b internal/host/managedboot_linux.go mbWalk legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=openat walk from the root anchor with O_NOFOLLOW|O_DIRECTORY; each component must be owned by root and not group/other writable file:Fstat@1243,file:Open@130,file:Openat@485,file:Openat@785 b43bc7a16c1f5e8c0e7cc2bb72ece46aef4b5185f2c2775c4fd6c8b865b878d4 |
| @legacy 2a8f31244c853b7c1a63b960e002329b81b78146a5c4a5c85e8ae941896cf2c4 internal/host/managedboot_linux.go mbWriteRootFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_EXCL|O_NOFOLLOW temp beside the target in a verified root-owned dir, fsync, renameat, dir fsync; read is crypto/rand for the temp suffix file:Openat@381,file:Read@247 edbd584d636a3c49fe2c388052d1e42dca7864a2d25e521d2424207cbe3a77a7 |
| -@legacy eeedaf8a4350e05bf9cef635133e1d3f389ce5d50e2a6c8a321fa4adc1cf8856 internal/managedboot/cloudinit_v1.sh.tmpl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=Task 1's frozen v1 cloud-init script, now in the root binary because host imports managedboot; embedded and rendered by the console only, never executed by the root binary file:external@0 6877e48b72303dee895c728dec553be27733f9f954ddd62973ca545a2fc3508f |
| +@legacy 9b6042aea6143f48108baf2bdde5e66f0c3543ecbfc0e644fe0afcf1d1e766ce internal/host/managedboot_linux.go var mbFsyncFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens the root-only staged stable binary O_NOFOLLOW to fsync its 0755 mode before the rename file:Open@56 a5e042e5a244004666d709757dbd06c9554a168b24ce56d889b6125306fbd4c8 |
| +@legacy a5d107d35061875218cfbed83b426f9b1189588e5e04bb02f2131cbbd170e15f internal/host/managedunits.go declaredNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the root-owned named-units declaration (/etc/carlos/named-units.json) with appconfig's decoder for unit names only; absent declares none file:ReadFile@70 1d77b71af724c3649de4bc9281478e628d4b1904837abf0e2aab1c05bc1fdf89 |
| +@legacy 4596c66f1dbb2f63dbdff10b74464815e196a6822dca94a5119dcebe7a4222d0 internal/instancectl/managedadmit.go Server.handleManagedAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the relayed ready object body (4 KiB cap, PeerOK-guarded socket) and hands it to root's verified commit; nothing read is trusted before managedboot verifies it file:ReadAll@154 be3c345bd231384a9a13648c6a9ea99bd7b745803cc79400f538e84b17c80a04 |
| +@legacy 63ef8cb36801572b7fccbc5b7df89d0663fe42d01317f58faa8586c7dd8f8072 internal/managedboot/admission_linux.go createMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_CREAT|O_EXCL|O_NOFOLLOW create of the admitted marker in the verified root 0700 dir (the commit point); an existing marker must pass openOwnedFile file:Openat@64 d9686d48ff25888045c3ad773a46b3069edf9f29b4856d2c19155a2d3bab3a4d |
| +@legacy cd91d9b1fdadfa0693b5c86daa4ecb876ac545529f9cbf2fee52a06b84397945 internal/managedboot/admission_linux.go openAdmissionDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW|O_DIRECTORY openat walk to /var/lib/carlos-managed-root; ancestors root-owned without g/o write, the dir root:root 0700 file:Fstat@592,file:Open@112,file:Openat@348 b4d74177ee8d9e1f8c2b84d508c1af07aee79b4b96235021c6f82310d64a8a95 |
| +@legacy 539a276737045b83c1cce5f03a5c2ff6a13a8ed58dc3abdeb29acd9a8d7a877a internal/managedboot/admission_linux.go openOwnedFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW|O_NONBLOCK openat + fstat: regular, nlink 1, root:root, mode 0600 file:Fstat@246,file:Openat@90 12c06f48e2c9485db495425980fc708ea02405009d67f47e4bd79efdd3a4936f |
| +@legacy babd6f849203f1f19f87019f74e89ebcb299619c7934acbc460fb7c12a443360 internal/managedboot/admission_linux.go readAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads admission.json (4 KiB cap) through openOwnedFile and re-verifies it with the identity's release key file:ReadAll@217 29b380055f916ed936dfb93f4c10038b63238ec9457acb1105f620ab5151ddb7 |
| +@legacy 4ac10098384575d8bae36abc76a24eb6d0cba251a3e7e9121299daf611f9ad98 internal/managedboot/admission_linux.go writeAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_EXCL|O_NOFOLLOW temp in the verified dir, fsync, renameat2 RENAME_NOREPLACE (link fallback), dir fsync; the read is crypto/rand for the temp suffix file:Openat@266,file:Read@137 630607347195c991bb1445bea77069f5638ba90af0b6212349def6f24ddf0bfd |
| +@legacy 8917484e3d13f33f5dc6ac247a6df0dca134e5a3e92e6520f817b4c59e32395e internal/managedboot/cloudinit_v1.sh.tmpl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=Task 1's frozen v1 cloud-init script; fix round 1 orders carlos-managed-boot.service After=cloud-init.service cloud-init-network.service so it runs after cloud-init rewrites the user data; rendered by the console only, never executed by the root binary file:external@0 6d696b09eb91245e489f9bb3f10b036d5a1bf49bb64923f83a7a285865c6ebb0 |
| @legacy ed4c367f8dec4ef61337a3038660df6fc76d193ca5a52845eb52293a0019cbf0 internal/managedboot/identity_linux.go loadIdentity legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW openat walk to /etc/carlos/managed-box.json; every component root-owned and not g/o writable, regular nlink 1, 4 KiB cap, strict canonical parse file:Fstat@811,file:Open@113,file:Openat@531,file:ReadAll@1154 842deb9a3240dc261a6ef4902f57259f4bd86c00ac6d7403e74f8eb7fe5abd13 |
| @legacy 157b519285db956490e07b1212d058405fdf98a4b86425339c25186b80549512 internal/managedboot/units.go ensureDropIn legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat/read of root-owned systemd drop-ins under /etc/systemd/system to keep them exact; rewrite via temp+fsync+rename file:Lstat@123,file:Lstat@508,file:Open@1280,file:OpenFile@876,file:Read@736,file:ReadFile@608 2b5ae8af638d357059e3984138599565fa7b4baf3fe7c1082f12a690b6e94867 |
| +internal/host/agent.go fastConvergeLoop authority B3 rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): every pass context carries the box's lifetime judge (provision.WithLifetimes) and the reconcile config is boxProvisionConfig's; read sites unchanged, offsets moved; B3 authority retained;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 12: its pass config is now BoxProvisionConfig(reg, os.Getenv, judge, configure) (BoxProvisionConfig replaces boxProvisionConfig: the hub predicate hubArmed and, on the hub, ReconcileConfig.FleetOwners from hubFleetOwners); a call, no read site; read sites unchanged (2); B3 authority retained.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: wire the coordinator's nonblocking SignalTick to the existing fast tick. No new timer, polling read or authority.;rev3=census-ruling-region-ha-p3b;basis=Bind systemLeg to the existing cached reader fold and handle a nil leg on groups; names-2 rollback gate runs before artifact/request/marker work. Agent-memory evidence only, no new direct or cloud read and no autonomous group update.;rev3=census-ruling-restart-new-box-gap;basis=restart leg closure moved into armRestartLegs (same reg.List + restartRequestLeg); also wires restartGain; read moved, not added;rev3=census-ruling-agent-start-demo-3;basis=Attach the moved reader to the existing shared change watch and advertise that reader as armed. Census read-site delta: unchanged (2).;rev3=census-ruling-managed-fleets-2b2;basis=sets fastDeps.managedReady from the armed managedJoin (nil on BYO): the joining ready leg, a store-door GET of fleets/<fleet>/boxes/<label>/ready.json and a local root-door relay; requests a full pass on root's 200; no new read in this unit whole:Route@9005 30f3e153833c32995efbd006c561e6adfa6a08a647c21688dd254525fb423de9 |
| +internal/host/agent.go fastTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=observes the change index before any pass (observeIndex), runs the backstop's requested full pass and a scoped pass for moved app scopes (indexTick), and arms the canary pointer gate on the sweep (canaryPointerGate) only on a tick whose own index observation succeeded; read site unchanged, offset moved;rev3=census-ruling-stateless-replicas-1;basis=Call coordinator Tick on the existing tick before convergence; client renews held terms only at the pinned interval. Existing registry read unchanged. Final review I3: signal the owned renewal worker instead of waiting for its sequential console HTTP calls. Existing convergence and record read unchanged.;rev3=census-ruling-region-ha-p3a;basis=Run the optional desired-role reader on the existing tick after observing the armed change index; no new root path or timer, nil reader is unchanged.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: signals the owned replica worker on the existing tick; coalesced asynchronous execution, no timer or bucket scan added. merge of origin/main 7920cccf: Retain main box-role reader pass on the existing tick alongside the replica worker signal; merge-only body change, unchanged read sites.;rev3=census-ruling-restart-new-box-gap;basis=calls the optional restartGain hook (restartGainSeed) once per existing tick before the serial read; no new root path, timer or read kind; nil hook is unchanged;rev3=census-ruling-agent-start-demo-3;basis=Refresh moved notices through the shared watch before normal convergence; no new per-box poll. Census read-site delta: unchanged (1).;rev3=census-ruling-managed-fleets-2b2;basis=calls d.managedReady after the serial read on every tick (nil on BYO, returns at once once admitted); no read of its own added registry:Host@5679 741db8b2f80543447fee068dc520bf8cee4c9da2a3b67dac640236ca46591701 |
| +internal/host/agent.go makeStartRoute authority B3,J1 root-route;kept=B3;scope=protected-decision-only;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is (unit-only path);rev3=census-ruling-managed-fleets-2b2;basis=refuses with errManagedJoining while the armed managedJoin is joining, before any registry read; BYO unchanged registry:Hibernate@451,registry:Unit@467,registry:Unit@520,whole:Route@438 e1dd0e265ebb368d080715ec1ad756fbc12ceffc5e2983b0c15590ea79cde06b |
| +internal/host/agent.go runAdoptUnderRootRelease authority B3,E1,E2,E3 rev3=census-ruling-self-serve-moves-1;basis=root claim/adopt/update controller uid 0: builds root's lifetime judge once from the host-claim switch and hands it to both productionRestartRequestPass calls; read sites unchanged, offsets moved; the preceding B3,E1,E2,E3 classification retained;rev3=census-ruling-claims-cleanup-r1;basis=claims cleanup R1: the claims shutdown timeout is the host constant claimsShutdownLimit (120s) instead of hostbox.RequestLimit (120s); no read added or changed;rev3=census-ruling-named-unit-delivery-114;basis=config sync is appconfig.SyncUnits with productionUnitOps (drop-in root /etc/systemd/system, base dir /etc/carlos/units, the declaration file /etc/carlos/named-units.json, systemctl probe/reload/restart, the config flock); no proof binding and no bucket read for delivery (Paul's ruling on #114: a root-owned declaration decides); the comment at the restart callback rewritten; read sites unchanged;rev3=census-ruling-managed-fleets-2b2;basis=builds managedRootGate("/") (root's RootAdmission: identity + root 0700 admission files, re-verified) and wraps the round-1 start/selected-restart/rollback callbacks, SyncUnits' UnitOps.Restart and named-unit recovery with it; BYO answers admitted, so nothing changes there whole:Route@11535,whole:Route@18986,whole:Route@19022,whole:Route@8743 0f47e28aac84484c163a66330dfad60e222575834275e9ac963fcb5e001a6955 |
| +internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. Fix round 1 Q20: publish Edge.ReplicaSnapshots as a separate in-memory status source, leaving the tenant-visible Upstreams source unchanged. No new external reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Load root-written group marker/configuration, configure signed boot binding and agent receipt completer, wire cancellable admission into departure work and expose cached GroupReaderSnapshot. New indirect boot reads use protected root files; agent-owned receipt controls duplicate initial completion only, never root restart permission. Same five direct sites. Merge 45cebde4 retains the replica health socket lifecycle and setReplicaSource beside GroupReaderSnapshot; no extra read beyond main.;rev3=census-ruling-agent-start-demo-2;basis=agent.go:309-329 opens demo-traffic.db beside the operator-configured registry when a demo domain exists, closes it at shutdown and wires drain-before-purge; :1010-1019 shares the worker and write gate; :1164-1177 installs the fleet identity and closed-until-worker serving callback. One added whole Route pass; the new indirect filesystem/SQL reads are claimed in openDemoTraffic and worker/store units. No request chooses the database pathname.;rev3=census-ruling-region-ha-p1b3b-s;basis=Wire the service duty view to authoritative cached sidecar manifest placement in LifetimeIndex and the edge sidecar projection; missing policy denies duty. Existing instance duty wiring remains.;rev3=census-ruling-region-ha-g2-t3;basis=T3a: wire eb.Page = PageOperator beside OwnerTerminated before departures arm, so suspect-holder pages work if departure setup fails; no new read; existing nine sites and authority unchanged; pages through the existing sink. T3b: publish the same backend through an atomic pointer for the metrics observer, and clear it on return; no new external read or authority.;rev3=census-ruling-agent-start-demo-3;basis=Wire the claim activator and root snapshot client into the demo worker; pass moved readiness to status reporting. Census read-site delta: unchanged (9).;rev3=census-ruling-region-ha-g2-fixes;basis=Wire local pool evidence, live withdrawal activator, startup ingress scan and alias publication, and edge lookup; no new direct sites; new indirect record/claim reads use existing store/judge paths described in ingress helpers.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: starts the existing record-view backstop loop with a departure-inventory listener (non-blocking, coalesced signal) even without an armed RecordView; it requests the existing full pass (backstopFullDue) there. Same nine read sites; no new read or authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Derive one signal-time deadline with a 90-second budget; cap departure stop and startup/seed/service shutdown joins by it. No read added.;rev3=census-ruling-static-sweep-periodic;basis=in the edge-ready callback, publishes e.LargestStaticTree in staticTreeSource for the disk alert line (diskAlertFrac in the metrics loop); in-memory wiring only, no read added; read sites unchanged (9);rev3=census-ruling-managed-fleets-2b2;basis=arms newManagedJoin (LoadIdentity of /etc/carlos/managed-box.json; GET /managed-admission on the root door) on a managed box only; binds its predicate as the activator/exec/edge tenant admission; refuses fixed group admission on a managed box; adds ReconcileConfig.Joining to both provisioning loops; defers the worker boot pass to admission file:Exec@19803,file:Open@2306,file:Statfs@51498,registry:App@13402,registry:Host@47534,whole:Route@13394,whole:Route@46692,whole:Route@47657,whole:Route@47719 857c7571560278f257311191187e354187aad9b826aa1b40bd9d8ff6c4e54fad |
| +internal/host/namedrecovery.go type namedUnitRecovery authority E1 E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.;rev3=census-ruling-managed-fleets-2b2;basis=adds the gate field (managedRootGate on the root pass); data only 2c34aaab93e409a88307749f5625b0075144b32b5b2b88e2857530a5ada4630e |
| +internal/host/systemunits.go ensureSystemUnitsWithGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move unit-repair body here with existing lock/unit/host.env reads; under lock require operator repair permit on groups before writes and each systemctl effect, preserve root masks/drop-in and omit automatic update/recovery units. New indirect protected marker/permit reads, never agent receipt; fixed repair unchanged.;rev3=census-ruling-managed-fleets-2b2;basis=under the apply lock and before any reload/enable, installs the managed admission drop-ins (every WorkloadUnits template + declared named units, from root-owned /etc/carlos/named-units.json) and the control ReadWritePaths drop-in on a managed box; daemon-reload and control try-restart when one was written; BYO no-op file:OpenFile@293,file:ReadFile@5694,file:ReadFile@5827,file:ReadFile@7285,file:Stat@5603 bd2d2bda84d1191ed238d5c1ce3c8c83a59b9e339742660c26baa4e6695ced42 |
| +internal/host/unitops.go InstallNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one carlos writer of /etc/carlos/named-units.json: validates the bytes with appconfig.ValidateDeclarations (the pass's decoder), takes the config-sync flock (<envDir>/.sync.lock, the lock SyncUnits holds for a whole pass), writes <dst>.tmp beside the file with O_CREATE|O_EXCL 0644, fsync, rename over dst, fsync of the directory (file:OpenFile of the temp and file:Open of the directory); root-owned because the verb runs as root;rev3=census-ruling-managed-fleets-2b2;basis=under the config-sync flock, before the declaration is replaced, installs each declared unit's admission drop-in on a managed box (daemon-reload if written); a maintenance unit name is refused; BYO no-op file:Open@1129,file:OpenFile@635 cdbee30a9cb0882520ccf3a7f69c4b6d0845c34234d8a7e4d490569bd5e3639c |
| +internal/instancectl/server.go runWithClaim authority C,D,G Claim instance controller adds held-release RPC dispatch within existing launch/participation execution boundary.;rev3=census-ruling-rootfs-apps-2;basis=takes a RegistryView (HostApp and HostRuntime) for the bare hostApp, and the production Server literal gains HostRuntime, ProbeImage: BuildProbeImage, ProbeImageFile: ProbeImagePath, RootfsProbeOut under /run/carlos-control and DenyEvery: 10s; this body reads nothing new itself; the readers it wires (instanceRegistryHostRuntime, BuildProbeImage, the rootfs probe's output) are decision rows;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 4 and #329 plan 3 Task 5: takes the egress asserter as a parameter, sets it on the production Server literal (Egress) and starts its 30 s Loop beside probeLoop and diskLoop; the literal also names the fixture check ProbeFixturesOK (renamed in plan 2 Task 14). It sets no control drop-in directory: plan 3's ControlDropInDir default (/run/systemd/system.control) was deleted with removeGenControlDropIn in ef38e13b (the P1 EROFS fix), so instance control names systemd's control directory only to read it (TrustedDropinReader). The same four sites (the two exec.CommandContext closures, statfsBytes, the data literal), offsets moved; no read added.;rev3=census-ruling-agent-start-demo-1;basis=Wires root-owned demo config and existing fixed paths into the service.;rev3=census-ruling-region-ha-p3b;basis=Resume root-owned hairpin state before probes/control service work; verify current systemd agent identity and kernel fence/addresses, restore pidfd watch or revoke stale state. Same direct exec/statfs/data sites; indirect inputs are protected root snapshot/state and kernel evidence, never receipt data.;rev3=census-ruling-agent-start-demo-3;basis=Construct the demo snapshot supervisor for configured demo boxes; startup cleanup gates builder readiness. Census read-site delta: unchanged (4).;rev3=census-ruling-managed-fleets-2b2;basis=production Server carries ManagedAdmit=CommitAdmission("/") and ManagedAdmission=RootAdmission("/") on every control service, claims on or off; BYO answers admitted data-literal@2611,file:CommandContext@1132,file:CommandContext@954,file:Statfs@2632 ad39de13bcda127b851ae9b985bedfeac48a85edd7e691b023e08047dda990a1 |
| +internal/instancectl/server.go type Server 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 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-managed-fleets-2b2;basis=adds ManagedAdmit and ManagedAdmission hooks; data only file:Statfs@4501 b0e6f430d3343b7dec415fb351ea4c6e9efa7ace6a0ec62ce1b968839c502c25 |
| +internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry 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=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: collect validated instance records from the existing scan before pool filtering; report source completeness separately. Record reads, writes, scope and removal authority unchanged.;rev3=census-ruling-agent-start-demo-1;basis=Keeps local demo rows for signed cleanup instead of deleting the binding on record absence or trash; normal/hub paths unchanged. Merge integration against origin/main 9bd45488 retains main's HA departure inventory scan and family-completeness reporting alongside the early local-demo retention guard; existing record reads retained.;rev3=census-ruling-stateless-replicas-2;basis=Final fix I1: legacy records now reach the legacy ownership/removal judgement for former set rows; a greater local incarnation remains protected. Current set-record lifetime and membership checks remain. Same record/registry reads and removal writers. TestReplicaReconcileLegacySuccessor covers both boxes with and without the judge; P11 newer/unknown set protections remain covered. merge of origin/main 6be08467: Retain main signed demo retirement ownership alongside replica set retirement and legacy successor recovery; merge-only body change, unchanged read sources.;rev3=census-ruling-agent-start-demo-3;basis=Install durable source claim holds and reconcile fresh destination seed gates; preserve owned pending routes and stop orphan seeds before cleanup. Census read-site delta: +registry:Account, +registry:App, +registry:Host, +registry:ImportGate ×2, +registry:SeedSource ×2, +whole:Route ×4.;rev3=census-ruling-region-ha-g2-fixes;basis=Run guarded pool withdrawal, extract the unchanged judged collection rules into scanInstanceRecords, and publish pre-pool HA ingress including stale refusal names. Existing direct route reads remain; indirect withdrawal reads and deletion are separately claimed.;rev3=census-ruling-managed-fleets-2b2;basis=returns nil before any list, mint or removal while ReconcileConfig.Joining answers true (a joining managed box); ownsRecord also refuses every record then; no read added registry:Account@26361,registry:Account@28231,registry:Account@46997,registry:Account@47043,registry:Account@48672,registry:Account@49049,registry:Account@49275,registry:Account@49342,registry:Account@49388,registry:Account@49481,registry:Account@49523,registry:Account@50171,registry:Account@50429,registry:Account@51331,registry:Account@51379,registry:Account@51788,registry:Account@51834,registry:Account@52079,registry:Account@52504,registry:Account@52992,registry:Account@53336,registry:Account@53938,registry:Account@54131,registry:Account@54543,registry:Account@54722,registry:Account@55046,registry:Account@55611,registry:App@26334,registry:App@28204,registry:App@47017,registry:App@47055,registry:App@48684,registry:App@49061,registry:App@49287,registry:App@49362,registry:App@49400,registry:App@49501,registry:App@50183,registry:App@50441,registry:App@51343,registry:App@51391,registry:App@51808,registry:App@51846,registry:App@52091,registry:App@52516,registry:App@53004,registry:App@53348,registry:App@53950,registry:App@54143,registry:App@54555,registry:App@54734,registry:App@55058,registry:App@55623,registry:Canary@47510,registry:ClaimOwnership@26948,registry:DBPath@36858,registry:DBPath@36873,registry:DBPath@37119,registry:DBPath@37722,registry:DBPath@37735,registry:EgressAllow@25447,registry:FleetBoxes@47471,registry:FleetBoxes@47619,registry:FleetBoxes@54331,registry:Gate@32755,registry:Gate@32895,registry:Gate@33182,registry:Hibernate@31427,registry:Hibernate@31625,registry:Hibernate@31690,registry:Hibernate@32029,registry:Hibernate@32380,registry:Hibernate@32690,registry:HoldOp@17438,registry:HoldOp@53683,registry:HoldOp@53774,registry:HoldOp@53909,registry:HoldOp@54285,registry:Host@15335,registry:Host@17841,registry:Host@17981,registry:Host@46976,registry:Host@47570,registry:Host@48648,registry:Host@49025,registry:Host@49189,registry:Host@49295,registry:Host@50191,registry:Host@50397,registry:Host@51671,registry:Host@51943,registry:Host@52058,registry:Host@52381,registry:Host@52478,registry:Host@52869,registry:Host@52966,registry:Host@53180,registry:Host@53382,registry:Host@53765,registry:Host@53900,registry:Host@54104,registry:Host@54177,registry:Host@54276,registry:Host@54516,registry:Host@54695,registry:Host@54774,registry:Host@54861,registry:Host@55020,registry:Host@55095,registry:Host@55181,registry:Host@55588,registry:ImportGate@34334,registry:ImportGate@34633,registry:Incarnation@17614,registry:Incarnation@47688,registry:Kind@17826,registry:Kind@17966,registry:Kind@27090,registry:Kind@27456,registry:Kind@27738,registry:Kind@27958,registry:Kind@36776,registry:Kind@36789,registry:Kind@36899,registry:Kind@36912,registry:Kind@37633,registry:Kind@37644,registry:Kind@46100,registry:Kind@53171,registry:Kind@53891,registry:Kind@54267,registry:Kind@54507,registry:Kind@54852,registry:Kind@55011,registry:Kind@55172,registry:Platform@47495,registry:PolicyExpiresAt@25472,registry:Pool@46186,registry:Provisioned@26310,registry:Provisioned@28180,registry:Provisioned@46145,registry:RateLimit@33268,registry:RateLimit@33419,registry:RateLimit@33706,registry:Region@46175,registry:ReplicaIncarnation@17322,registry:ReplicaIncarnation@17359,registry:Replication@32114,registry:Replication@32241,registry:Runtime@19010,registry:Runtime@19188,registry:Runtime@21495,registry:Runtime@30794,registry:Runtime@30848,registry:Runtime@31052,registry:Seed@35256,registry:SeedSource@34292,registry:SeedSource@34612,registry:SeedSource@34739,registry:Size@25463,registry:Socket@36824,registry:Socket@36839,registry:Socket@37136,registry:Socket@37692,registry:Socket@37705,registry:Stateless@37793,registry:Unit@36742,registry:Unit@36755,registry:Unit@37659,registry:Unit@37670,whole:ClaimOwnership@26951,whole:ClaimOwnership@26968,whole:Route@15317,whole:Route@15328,whole:Route@15346,whole:Route@16627,whole:Route@17214,whole:Route@17425,whole:Route@17740,whole:Route@18026,whole:Route@18040,whole:Route@18053,whole:Route@18076,whole:Route@19505,whole:Route@19512,whole:Route@19552,whole:Route@19913,whole:Route@20068,whole:Route@20353,whole:Route@20800,whole:Route@20851,whole:Route@20888,whole:Route@22560,whole:Route@22769,whole:Route@23108,whole:Route@23117,whole:Route@23163,whole:Route@25396,whole:Route@25955,whole:Route@26426,whole:Route@26436,whole:Route@26793,whole:Route@26800,whole:Route@26868,whole:Route@27231,whole:Route@27287,whole:Route@27357,whole:Route@27368,whole:Route@27796,whole:Route@28829,whole:Route@31780,whole:Route@34441,whole:Route@36968,whole:Route@37906,whole:Route@38793,whole:Route@38838,whole:Route@38848,whole:Route@39718,whole:Route@40745,whole:Route@46211,whole:Route@46359,whole:Route@47456,whole:Route@47826,whole:Route@48600,whole:Route@48982,whole:Route@50833,whole:Route@53274,whole:Route@54422,whole:Route@54933,whole:Route@55518,whole:Route@55568 5da0a14b597609fa3d212c7e79a3d2895426e238cace01b5770653d9ab9e97fe |
| +internal/provision/sidecar_reconcile.go ReconcileSidecars legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the record walk and its sidecars manifest lookup move unchanged into the pass's scan closure (over a store argument) and the removal phase into its retire closure; over a record view snapshot, a pass that reaches a removal candidate (a sidecar gone or no longer placeable here) removes nothing on the snapshot's word: it runs scan again over the bucket (freshStore) and decides every removal that pass from that walk, by the walk's own rules (unusable records protected before scope, hosts matched across every key, placement from the bucket's record and sidecars manifest against this box's inbound); a walk that cannot read cleanly keeps every row; with no candidate, or disarmed, nothing is read again; the registry sites are main's, moved; relative to main's single walk a removal can only be withheld, never added;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: retain validated sidecar records before scope/manifest filtering for coverage, including hidden/out-of-pool records. No new object reads or sidecar HA authority.;rev3=census-ruling-region-ha-p1b3b-s;basis=Derive canonical sidecar lifetimes from account/app/synthetic host/CreatedAt; collect HA and manifest placement for departures before scope filtering; update a separate family in the existing lifetime index. Existing record reads, key parsing and removal authority remain.;rev3=census-ruling-region-ha-g2-fixes;basis=Run sidecar-scoped pool withdrawal before the existing pass; existing direct reads unchanged, new indirect stop/record/deletion checks are in withdrawal helpers.;rev3=census-ruling-managed-fleets-2b2;basis=returns nil before any list, mint or removal while ReconcileConfig.Joining answers true; no read added registry:Account@12826,registry:Account@13065,registry:Account@14018,registry:Account@14768,registry:App@12799,registry:App@13051,registry:App@13991,registry:App@14754,registry:Args@13643,registry:Args@13914,registry:Channel@13631,registry:ClaimOwnership@13444,registry:Host@10420,registry:Host@16104,registry:Host@16151,registry:Host@16274,registry:Host@16451,registry:Host@16600,registry:Host@16707,registry:Kind@12740,registry:Kind@13014,registry:Kind@13931,registry:Kind@14717,registry:Kind@15937,registry:Pool@16055,registry:Provisioned@12772,registry:Provisioned@13029,registry:Provisioned@13963,registry:Provisioned@14732,registry:Provisioned@15964,registry:Region@16005,whole:ClaimOwnership@13447,whole:ClaimOwnership@13464,whole:Route@10402,whole:Route@10413,whole:Route@10431,whole:Route@10617,whole:Route@10986,whole:Route@10995,whole:Route@12428,whole:Route@13289,whole:Route@13296,whole:Route@13364,whole:Route@13699,whole:Route@14076,whole:Route@15922,whole:Route@16517 5e3401e3cb68a5bd7688a0e53aa0791fa5ac54b4d14bcd7bcc6cd3daf521db5e |
| system.go runSystem authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own;rev3=census-ruling-design-pdf-service;basis=add dispatch for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Adds managed-fleets operator CLI dispatch; no direct read added; existing root command branches unchanged.;rev3=census-ruling-agent-start-demo-2;basis=system.go:62-66 adds the demos family dispatch to the console-only operator client (system_demos.go:19, system_demos_api.go:23); no direct read added and other root commands are unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Dispatches carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback} to internal/host; no read of its own.;rev3=census-ruling-managed-fleets-2b2;basis=adds the managed-boot case, routed to host.RunSystemManagedBoot (root oneshot behind carlos-managed-boot.service on a managed box); no read of its own; every other branch unchanged 81bf5ae3a89ac149f10d064d4e059bf50b5febfc8a1a38a9ce8b6905a89ac13d |
| system.go systemVerb authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own;rev3=census-ruling-design-pdf-service;basis=add recognition for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Recognizes managed-fleets as a CLI family; no read added.;rev3=census-ruling-agent-start-demo-2;basis=system.go:43-57 recognizes demos; parsing only, no direct read added.;rev3=census-ruling-region-ha-p3b2;basis=Recognizes group-maintenance as a system verb; parsing only.;rev3=census-ruling-managed-fleets-2b2;basis=recognizes managed-boot as a system verb; parsing only, no read added 47e70ad5413a92fb584a48b0c3f20f684cb7b965e9238f4dc553ef09abdea9f0 |
| -internal/host/managedboot.go const#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=managed-boot path and limit constants; data only data-literal@523 765b471b3a8004d57f6f1d4d73582e35ee10a1041def47f7209e7ade19023a47 |
| +internal/host/managedboot.go const#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=managed-boot path and limit constants; data only (fix round 1: the 16 MiB scan limit replaced by a 1 MiB scan chunk) data-literal@523 a907fdc54fc74adb2852a2f3060710d4f5ae9e1fe9e7ddf499c73dec7a1b00c1 |
| internal/host/managedboot.go managedBoot.attest legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat and list /data (names only) before anything writes under it, to report absent/empty/count in the enrol request; no file content read file:Lstat@57,file:ReadDir@209 7a32d2fcf1179f2afa5127839bbde21d755de536c8f329b71486c5c8248c174a |
| internal/host/managedboot.go managedBoot.clearStaging legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists root-owned 0700 BootDir for staging.* left by a cut-off boot and shreds them via mbRemoveTree file:ReadDir@62 a7c11f7fdb4b17d34ca99b11cd392ffa787c2d6a30ef0ecdc77ea4f7ac61dcf1 |
| -internal/host/managedboot.go managedBoot.post legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the enrol HTTPS reply body (64 KiB cap) from the frozen console origin; no file read file:ReadAll@600 88bbfb6acf5e7acc4cbcbe05edfa3d379e5d333dc61699d32856d17cf323caec |
| +internal/host/managedboot.go managedBoot.post legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the enrol HTTPS reply body (64 KiB cap) from the frozen console origin; no file read (fix round 1: logs only the transport error class, no value) file:ReadAll@761 9e6d08e04534b683b424b72d3bae6da020c599dd0f739b53a11aae4d33db2263 |
| internal/host/managedboot.go managedBoot.present legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of fixed root-owned paths (BootDir markers, committed dir, seed request); existence only file:Lstat@69 289bacf43547b6913d9aa268c800f975263c9c1fc96f920486c1aca5c6b01940 |
| -internal/host/managedboot.go managedBoot.scrub legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=walks cloud-init trees (/var/lib/cloud, /run/cloud-init, cloud-init logs) and BootDir without following symlinks and shreds regular files holding the used token; nothing read is executed or trusted file:WalkDir@174 605ad097ff1799d6419f167aa2e8bbf98cc97d4b1f25ac81ce20d3210c69aed1 |
| +internal/host/managedboot.go managedBoot.scrub legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=shreds cloud-init's user-data copies by path, then walks cloud-init trees and BootDir without following symlinks and shreds regular files holding the used token (streaming scan, any size); obj.pkl is never removed; nothing read is executed or trusted file:WalkDir@297 cd73c536214bb3b91f3b16df111bbac7dc7d94d5a21c012307abfb551b7b0d9a |
| +internal/host/managedboot.go managedBoot.scrubKnown legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists /var/lib/cloud/instances and lstats user-data.txt, user-data.txt.i, scripts/part-001 in each to shred them; no content read; best effort on the complete path file:Lstat@397,file:ReadDir@106 63db4dc827d5d8f3c6102237c0add9def051233b7e0e4548ac6ab0b59802ddbe |
| internal/host/managedboot.go managedBoot.stage legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=renders host.env/credentials/identity from the checked enrol reply into a fresh root-only staging dir; the read is crypto/rand for the dir suffix file:Read@894 67520ac85f00b62f94ce4fa6ae581d9a12c33c779dea95da59170d18303d3fb7 |
| -internal/host/managedboot.go mbHolds legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat + read (16 MiB cap) of a regular file found by scrub's walk, only to test for the token bytes file:Lstat@69,file:ReadFile@191 88c094012701111d6584143b33807d43ecbe2ea54d730a9571987f0712e8e360 |
| +internal/host/managedboot.go mbHolds legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=streams a regular file opened by mbOpenRegular (O_NOFOLLOW, no FIFO block) in 1 MiB chunks to test for the token bytes; nothing read is trusted file:Read@222 818241afbd14f2aabb05721e9bae1bcd2a460223c5e2a4bdf1df0eb03985137e |
| internal/host/managedboot_linux.go managedBoot.readInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of BootDir (0700 dir check) then mbReadRootFile of boot-input.json (root-owned 0600, no symlink, nlink 1) file:Lstat@81 eff8288c342b21f58c6b2f62c2db67c19cd898111002c1d1c61f6070b04df0d3 |
| -internal/host/managedboot_linux.go mbBreadcrumb legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens /dev/console write-only to emit a value-free breadcrumb line file:OpenFile@92 1772f051eec5a1717430d88bbd86dc31e18ddedd0ac04bcd28680c39c1f2ab3c |
| -internal/host/managedboot_linux.go mbCopyDurable legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=EXDEV fallback of mbMove: opens a root-owned committed file O_NOFOLLOW and copies it durably to its final root path file:Fstat@190,file:OpenFile@304,file:OpenFile@56 02ad0641b21a3de9c7c392f513e799209927638a778db73a186cc4870cd536b9 |
| +internal/host/managedboot_linux.go mbBreadcrumb legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens /dev/console write-only, O_NOCTTY|O_NONBLOCK, to emit a value-free breadcrumb line file:OpenFile@158 8c8acd41204e44bcdd6c75dc52755971ff0f12150027e6e036ccebb8350ce6fc |
| +internal/host/managedboot_linux.go mbDev legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat of a root-owned install directory for its st_dev, so installation is by rename on one filesystem file:Lstat@73 eaab1d9226108f36252919cf537a67752292124c319a74c905100ff41ef2a894 |
| internal/host/managedboot_linux.go mbHashExec legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW open + fstat of /opt/carlos/carlos: regular, nlink 1, root:root 0755, sha256 against the signed digest before first exec file:Fstat@274,file:Open@73 f4236bb074271b622159f0348a465458619cb7ec6051ff8cfdd1664133084729 |
| +internal/host/managedboot_linux.go mbOpenRegular legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_RDONLY|O_NOFOLLOW|O_NONBLOCK open + fstat regular check for scrub's scan file:Fstat@249,file:Open@64 66178b502052a74ca02b6cb0a686303da0e85026a69ee909a220bc8a99b1d099 |
| internal/host/managedboot_linux.go mbReadRootFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=openat beneath an mbWalk-verified root-owned chain, O_NOFOLLOW|O_NONBLOCK, regular, nlink 1, owner root, no g/o write, exact mode, size cap file:Fstat@482,file:Openat@233,file:ReadAll@813 4049413ad34b5e910972b1e05a473d15b380046f16a0ecc8b57f0fec76f6c0d6 |
| internal/host/managedboot_linux.go mbRemoveTree legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lists a root-owned staging dir and shreds its regular files file:ReadDir@201 9fb3f04a9518441c82c251d4960bce3a4494bf5297746b2b9f01e3292b32553a |
| internal/host/managedboot_linux.go mbRun legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=runs argv with exactly the given env from /: nft list table, systemctl, and /opt/carlos/carlos bootstrap after its digest check file:CommandContext@77 c4bb8739c9eab44b2a548cd0a8684cbee4f15a5408322a8df89af1fbe634889e |
| @@ -44,9 +74,21 @@ internal/host/managedboot_linux.go mbShred legacy accepted-legacy accepted-legac |
| internal/host/managedboot_linux.go mbSyncDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens a root-owned directory to fsync it file:Open@47 fc9bc492fa32b963b98ad1dea24c07a65b2b35d00a25ac2adbafeb16af745c09 |
| internal/host/managedboot_linux.go mbWalk legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=openat walk from the root anchor with O_NOFOLLOW|O_DIRECTORY; each component must be owned by root and not group/other writable file:Fstat@1243,file:Open@130,file:Openat@485,file:Openat@785 b43bc7a16c1f5e8c0e7cc2bb72ece46aef4b5185f2c2775c4fd6c8b865b878d4 |
| internal/host/managedboot_linux.go mbWriteRootFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_EXCL|O_NOFOLLOW temp beside the target in a verified root-owned dir, fsync, renameat, dir fsync; read is crypto/rand for the temp suffix file:Openat@381,file:Read@247 edbd584d636a3c49fe2c388052d1e42dca7864a2d25e521d2424207cbe3a77a7 |
| -internal/managedboot/cloudinit_v1.sh.tmpl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=Task 1's frozen v1 cloud-init script, now in the root binary because host imports managedboot; embedded and rendered by the console only, never executed by the root binary file:external@0 6877e48b72303dee895c728dec553be27733f9f954ddd62973ca545a2fc3508f |
| +internal/host/managedboot_linux.go var mbFsyncFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=opens the root-only staged stable binary O_NOFOLLOW to fsync its 0755 mode before the rename file:Open@56 a5e042e5a244004666d709757dbd06c9554a168b24ce56d889b6125306fbd4c8 |
| +internal/host/managedunits.go declaredNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the root-owned named-units declaration (/etc/carlos/named-units.json) with appconfig's decoder for unit names only; absent declares none file:ReadFile@70 1d77b71af724c3649de4bc9281478e628d4b1904837abf0e2aab1c05bc1fdf89 |
| +internal/instancectl/managedadmit.go Server.handleManagedAdmit legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the relayed ready object body (4 KiB cap, PeerOK-guarded socket) and hands it to root's verified commit; nothing read is trusted before managedboot verifies it file:ReadAll@154 be3c345bd231384a9a13648c6a9ea99bd7b745803cc79400f538e84b17c80a04 |
| +internal/managedboot/admission_linux.go createMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_CREAT|O_EXCL|O_NOFOLLOW create of the admitted marker in the verified root 0700 dir (the commit point); an existing marker must pass openOwnedFile file:Openat@64 d9686d48ff25888045c3ad773a46b3069edf9f29b4856d2c19155a2d3bab3a4d |
| +internal/managedboot/admission_linux.go openAdmissionDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW|O_DIRECTORY openat walk to /var/lib/carlos-managed-root; ancestors root-owned without g/o write, the dir root:root 0700 file:Fstat@592,file:Open@112,file:Openat@348 b4d74177ee8d9e1f8c2b84d508c1af07aee79b4b96235021c6f82310d64a8a95 |
| +internal/managedboot/admission_linux.go openOwnedFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW|O_NONBLOCK openat + fstat: regular, nlink 1, root:root, mode 0600 file:Fstat@246,file:Openat@90 12c06f48e2c9485db495425980fc708ea02405009d67f47e4bd79efdd3a4936f |
| +internal/managedboot/admission_linux.go readAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads admission.json (4 KiB cap) through openOwnedFile and re-verifies it with the identity's release key file:ReadAll@217 29b380055f916ed936dfb93f4c10038b63238ec9457acb1105f620ab5151ddb7 |
| +internal/managedboot/admission_linux.go writeAdmission legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_EXCL|O_NOFOLLOW temp in the verified dir, fsync, renameat2 RENAME_NOREPLACE (link fallback), dir fsync; the read is crypto/rand for the temp suffix file:Openat@266,file:Read@137 630607347195c991bb1445bea77069f5638ba90af0b6212349def6f24ddf0bfd |
| +internal/managedboot/cloudinit_v1.sh.tmpl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=Task 1's frozen v1 cloud-init script; fix round 1 orders carlos-managed-boot.service After=cloud-init.service cloud-init-network.service so it runs after cloud-init rewrites the user data; rendered by the console only, never executed by the root binary file:external@0 6d696b09eb91245e489f9bb3f10b036d5a1bf49bb64923f83a7a285865c6ebb0 |
| internal/managedboot/identity_linux.go loadIdentity legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=O_NOFOLLOW openat walk to /etc/carlos/managed-box.json; every component root-owned and not g/o writable, regular nlink 1, 4 KiB cap, strict canonical parse file:Fstat@811,file:Open@113,file:Openat@531,file:ReadAll@1154 842deb9a3240dc261a6ef4902f57259f4bd86c00ac6d7403e74f8eb7fe5abd13 |
| internal/managedboot/units.go ensureDropIn legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=lstat/read of root-owned systemd drop-ins under /etc/systemd/system to keep them exact; rewrite via temp+fsync+rename file:Lstat@123,file:Lstat@508,file:Open@1280,file:OpenFile@876,file:Read@736,file:ReadFile@608 2b5ae8af638d357059e3984138599565fa7b4baf3fe7c1082f12a690b6e94867 |
| +internal/host/namedrecovery_pass.go namedUnitRecovery.passOption authority B3,E1 Production recovery wrapper preserves main exit status for per-host failures; only remaining named routes can probe the census for history selection. Ordinary routes make no census or binding-store reads. Fixtures: TestPlan14ERecoveryOrdinaryPass, TestPlan14Fix4AdoptPerHostFailureExitsZero, TestPlan14Fix5MainEquivalence.;rev3=census-ruling-managed-fleets-2b2;basis=asks the gate before recover; on refusal logs and recovers nothing; the +registry:Host site is rt.Host in the log line, no new read registry:Host@361,registry:Host@435,registry:Host@659,registry:Unit@612,registry:Unit@629,whole:Route@572,whole:Route@604 6afe0db9cbf942b2004d4bd70c9597b6690a3e15bf6fe6c73dca3c32b538abf8 |
| @coverage . 1dcaf53ecd6db0cc4870833eda8d18c2a1604e48c316e16eb153f80f612daefb |
| -@coverage internal/host b4abfbc13f1717118482426e8c0dd4d2a873b3eae02467541e72ba7c5d544585 |
| -@coverage internal/managedboot 89ff44b6b07b39d7450482d099e3b878f166d5951ef83f4334e3ea8a45d12426 |
| +@coverage internal/appconfig 7238cd97ab717ace4651cd2fbf236b8c923e76d5bddfd5235d7ed0d11d1bf325 |
| +@coverage internal/host c0d37204674bedd95b7e9346cf9ec2f4533712cb571c2d82ab27a16c7c315dc9 |
| +@coverage internal/instancectl 5fde749771040c0c78619fce4e20f3a7690c582c77cda96b8eb41bd63b3563b4 |
| +@coverage internal/managedboot d528255a5748efa9a9c63e52a3468a607755b1b97dcbc554760dc6dfea665e04 |
| +@coverage internal/provision 41c4e4c822dd31b7b09c867203add50386cff05a1f88786a44e655aeb295a456 |