| index 32038f1a3..16bb127d7 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv |
| @@ -1,5 +1,5 @@ |
| # Census overlay region-ha-p1a, written by census-propose (#369). census-ruling-region-ha-p1a, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-p1a.md. |
| -# 22 body, 20 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 23 body, 20 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 5 removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired. |
| # 67 new dispositions: 6 reads re-frozen at their disposition with the claim, 59 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 1 other. |
| @legacy 50a1caf6478a988f7cc2853748a70f52ab9adacd7440ec0e6af1faeeeb37c436 internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added registry:Socket@2353,registry:Socket@2458,whole:Route@2303,whole:Route@2355,whole:Route@2460 a28ff1acede04af11be15c16b3a955330ad5a9c91c554ad17297f922a2b5c3e0 |
| @@ -62,7 +62,7 @@ |
| @legacy fb4034a06cf7c64d9376d35fc77c04cb3b06e0654cd5615deb4c335403a1e123 internal/activator/hawake.go haLegacyRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: a route is legacy for HA (sidecar, not provisioned, or a kind other than instance); +registry:Kind, +registry:Provisioned; pure registry:Kind@90,registry:Provisioned@72 3849289a7b85aa83b30c233d7bc0bbaa9699010ff69d5be81e09ca10bcd4e88d |
| @legacy c9f0c3e08f38d54523c24d5a9bec936fcc3a7c38db843d12c4cfd6af25de138b internal/activator/maintenance.go Service.giveBackAfterStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: a failed wake's release when its start left nothing for cleanupFailedWake to prove: a legacy lease goes back as before (giveBack); an HA one only when haHostEmpty reads the slice empty, else it logs, marks the stop uncertain and retains the wake (retainUnprovenWake, sliceOnly) so the reaper retries the slice; +registry:Host x2, +whole:Route x3; no file read registry:Host@261,registry:Host@527,whole:Route@163,whole:Route@347,whole:Route@351 0f7ded83b1c016fa60b2460da96afa24dee87c1c958b6c04617392685dae5659 |
| @legacy d11fe51d596e600c7b2d970c1bf8aebd7697fe938eb2b81ff3d563a0b0036cea internal/activator/maintenance.go Service.retainUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: records an unproven wake in a.unprovenWakes under a.mu, keeping its lease and replica until the reaper's proof holds; no new wake of the host starts meanwhile; +registry:Host, +whole:Route; no I/O registry:Host@169,whole:Route@171 39f0172e985a5f953b4671042934463a1b5ab995e6c55706c7547bcde55d3707 |
| -@legacy 6e43fda90ca6e1501086e093e4b9e2c8f4e38b2f5791a5352f42905bb872aa0f internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record with provision.GetRecord(store, release.RouteAccount(rt), rt.App, rt.Host), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@570,registry:Host@578,whole:Route@565 68c6a9d5692d83895e22bdecd62920de25642980b42ce8f645e15e706b18d4bf |
| +@legacy e20da2269ef9c41ee31a1e7c36a0793c658be50e7084443df943d74f7c1d00c2 internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record through judgedRecord(store, judge, release.RouteAccount(rt), rt.App, rt.Host) (CI fix: provision.ReadRecordJudged under the box's lifetime judge, which also GETs the host's incarnation slot control/host-incarnations/<host>.json from the same deployment store; a record the slot no longer vouches for, or a tombstone, reads as os.ErrNotExist; a nil judge, host claims on, is provision.GetRecord exactly), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@602,registry:Host@610,whole:Route@597 1e0356f60b8e8d81d12bf331e14b8ba313b38b494d12048241209932907ffb79 |
| @legacy 0fa2a631d26760c9191d7637fee557054cfd44e6d6031adea47cd81dd4d7ae9f internal/host/haself.go readInstanceID legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos, at RunAgent's start and its one-minute retry (haSelfNow, haSelfRetry): reads this instance's id from IMDSv2 (PUT /latest/api/token, then the identity document), each body through io.ReadAll capped at 64 KiB (the +file:ReadAll site), within 2 s; the id names the box as owner of the lease locks it writes (lease.SetSelf); IMDS answers only for this instance, no tenant or app input; root never calls it file:ReadAll@514 9f242dc249c36f9a3c1f91d0619434e7d581d1f92f4242f3dfcbcb9ff9cb9eb6 |
| @legacy 5e93c1a0d295aad84d4f8002182c0b15095d280ece886e8740f97c9af2e5d656 internal/host/instancekeys.go haRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: asks the key backfiller for IsHA when it implements it (the activator's classification), else returns the row's sticky HA column (registry:HA, whole:Route); no file read registry:HA@204,whole:Route@189 047888231cc897c4cbe8e9a2a829d4071d824aeb507702fadb4bbbe8950556e3 |
| @legacy b93871eb389cf023b8d7db3020d7953ed7e332257c077fc57283b6801789f0cd internal/host/retiredunits.go retireUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), root (bootstrapWith: carlos bootstrap, or the staging-root/-plan-json path): for each name in the fixed list retiredUnits (carlos-system-join.path, carlos-system-join.service; a name with a slash, "." or ".." is refused) Lstats <root>/etc/systemd/system/<unit>, on the live root runs systemctl disable --now on an installed one, Globs <root>/etc/systemd/system/*.wants/<unit> and *.requires/<unit> and removes those links and the unit file (os.Remove, so a link is removed, never followed), then daemon-reload on the live root if anything went; reads +file:Lstat and +file:Glob x2, all under root's own /etc/systemd/system with names from a compiled-in list; no tenant, app or agent input names or writes them file:Glob@657,file:Glob@760,file:Lstat@356 039b30ae28af150c3470807a72872336e3f1721af9a59684f6fe196bceb9b623 |
| @@ -102,8 +102,9 @@ internal/activator/admintoken.go ensureAdminToken legacy accepted-legacy accepte |
| internal/activator/backend_exec.go ExecBackend.Acquire legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: after the unchanged AdmitConfig gate, the lease acquire moves into acquireClassified (hawake.go, a new unit): a legacy route or a non-HA host takes the same lease.Acquire as before and maps a held lease to errLeaseHeld as before (leaseError); an HA host goes through the containment admission and lease.AcquireHA. A successful acquire marks the host acquiredHere for the process (same-box recovery). The config gate is not weakened; the same three sites, no read added registry:Host@807,whole:Route@382,whole:Route@764 633882c5d34004424ad26f613283954ecb70d077b2542ade220a9012eccaa5f0 |
| internal/activator/instancekey.go ExecBackend.BackfillInstanceKey legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: back to main's body bar a comment: it calls ensureInstanceKeyAt as before, and an HA host's mint decision now lives inside that producer (haMintGuard, final fix F2); the agent's backfill skips HA hosts before this (instancekeys.go); the one +whole:Route of the first proposal is gone; no read added whole:Route@310,whole:Route@325 1ab00497be9d84298e91e4c44e640bb83dc95689d474119628c650e1b7186e3c |
| internal/activator/instancekey.go ensureInstanceKey legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more parameter, guard (nil for every caller but ensureInstanceKeyAt on an HA host), asked once the locked read finds no key and the bucket allows a mint, before anything is minted; its refusal returns InstanceKeyFailed with nothing written. Create-only, fail-closed and defer-on-unknown are unchanged; the one site unchanged, no read added; only adds a refusal file:Stat@4804 67c45c2c28717eb3f5df388c39bd415fe785bbce4c38a08c43908c277cb64cc7 |
| -internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card) file:Exec@16557,file:Open@1150,registry:App@10925,whole:Route@10917,whole:Route@26733 7c62e7d253aa460b8fd2389ef20263175b2cf12f605a8b7980cd506c87165a26 |
| +internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, 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) file:Exec@16567,file:Open@1150,registry:App@10935,whole:Route@10927,whole:Route@26743 063c762919facce12ce2c58a3050554faeace9a2dc21601a3390e3d1bd1fcc90 |
| internal/host/bootstrap.go bootstrapWith authority A,C,G,J4 root-input;kept=A,C,G;scope=protected-decision-only;rev3=census-ruling-region-ha-p1a;basis=root (carlos bootstrap, cloud-init or an operator; also the staging-root and -plan-json path system apply's stagePlan runs): after the units are written, calls retireUnits(root, retiredUnits) (retiredunits.go, a new unit on this card) to disable, stop and remove carlos-system-join.path and .service, which an earlier build installed; an error there fails the bootstrap; enabledUnits (a var, not a census unit) no longer lists carlos-system-join.path; the same two sites, no read added in this body file:ReadFile@461,file:ReadFile@6867 b16f0969ff5d5c394ab5ebceea5fa7236342799ac2c620508b1d7bd20fbcd257 |
| +internal/host/claimcensus.go claimUnitCensus authority C,G,J4 rev3=census-ruling-claim-harness-census;identity=root installation admission controller uid 0;basis=classifies the three exact guard-arm platform drop-in files and the exact activation lock name in the unit directory root as shared regular files alongside shipped units; a lock in a drop-in directory, unknown drop-ins, per-host artifacts and symlinks remain refused;rev3=census-ruling-region-ha-p1a;basis=root installation admission controller uid 0 (the units inventory of the empty-installation and migration censuses; CI fix): for each name in the compiled-in retiredUnits list (carlos-system-join.path, carlos-system-join.service) also classifies the exact unit file as a shared regular file and, for the .path only, the exact link multi-user.target.wants/carlos-system-join.path -> <units>/carlos-system-join.path (retiredUnitLinks, the [Install] WantedBy=multi-user.target of the last build that shipped it). These are box-wide leftovers a box bootstrapped by an earlier build (leo) keeps until a live bootstrap's retireUnits removes them, and main classified the same file and link while they were embedded units, so this restores main's classification rather than widening it. Nothing names a host; a link with any other target, unknown drop-ins, per-host artifacts and other symlinks stay refused; the one site unchanged, no read added file:ReadFile@1029 654a698ce7fd5bb131ef93026c8d062404a4b63c2b8e320f204e299f15216f0e |
| internal/host/systemapply.go RunSystemApply authority D,F,J4 rev3=PROPOSED-claims-on-gate-recover;identity=root apply/recovery uid 0;basis=re-pinned at its class and task, no read of its own: reads CARLOS_HOST_CLAIM from the unit environment through systemApplyGate (hostwrite.Enabled, as the agent does) to pick the update gate window, 120 s with fail-fast claims-on and 20 s unchanged claims-off. Registers local verifier and invokes census-gated release wrapper; absent census executes main apply directly even with leftover release state. TestSystemApplyReadsClaimsModeFromTheUnitEnvironment, TestClaimsOffGateIsUnchangedByAnEdgeThatListensAt22s.;rev3=census-ruling-region-ha-p1a;basis=root apply/recovery, uid 0: the systemApplier literal no longer sets regionHA (the field is deleted) and sets claims and gateWait through a.readEnvironment(os.Getenv), a new method that calls the same systemApplyGate(getenv) as before, so CARLOS_HOST_CLAIM picks the gate window exactly as it did; CARLOS_REGION_HA is no longer read here; no read added af8473132b04909ccf6eb24da48147fc1ffdd176c2227a8aa0bb01b11182c5d2 |
| internal/host/systemapply.go systemApplier.install authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply, root update unit or offline root CLI, uid 0;basis=root verifies staged signature and final locked bounds before rename, then records root accepted floor history only after health succeeds;rev3=census-ruling-region-ha-p1a;basis=root apply, uid 0: comment and error text only around the beginExecutableChange call (the wrapped error now reads "update not begun" instead of "update-begun marker"); the call, its position before the first box-changing step and the deferral on error are unchanged; no read added 8958477cade6f79b1651d0bff49039ccae792d8efd9e6367ce2a69a5706a790d |
| internal/host/systemparticipation.go systemApplier.beginExecutableChange authority D Claims-on or retained root census uses root exclusion; claims-off with no census preserves main participation and recovery behavior. PROPOSED E43: root; release-held context and D3 reservation/census verification under release-before-participation exclusion; no-census effects stay on the legacy path. TestPlan14LaunchVerifierToken, TestPlan14LaunchVerifierCallerOrder, TestPlan14LaunchVerifierNoCensus, TestPlan14LaunchVerifierRootRunner.;rev3=census-ruling-region-ha-p1a;basis=root apply, uid 0: removes the CARLOS_REGION_HA arms (plan Task 4). With no root participation required it now always allows and writes nothing; before, a CARLOS_REGION_HA box went on to the marker path. With participation required it runs the same floor-armed reservation check (unchanged) and otherwise the ledger's WithParticipation BeginUpdate, the path a non-HA box already took. Deleted: the regionHA path, which wrote the update-begun marker under /opt/carlos/system and then deferred the update while hostfloor's CheckParticipation over /data found this box taking part in a claim operation (clearing the marker on that refusal). So one deferral goes, on CARLOS_REGION_HA boxes only: an update is no longer held back by a claim operation's participation files under /data (joining and host claims are gone with this branch and the claims shelving; CheckParticipation and BeginParticipation now have no production caller). Root writes no marker here and no longer calls CheckParticipation over /data; clearUpdateBegun and settleUpdateBegun still remove a marker an older build left. The one site unchanged, no read added file:ReadFile@550 5ff33941bb51d2de03d143f6a7deb9c438a91b63ae0ef0767c8df7fd9d937924 |
| @@ -165,7 +166,7 @@ internal/activator/hawake.go ExecBackend.restoredReplication legacy accepted-leg |
| internal/activator/hawake.go haLegacyRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: a route is legacy for HA (sidecar, not provisioned, or a kind other than instance); +registry:Kind, +registry:Provisioned; pure registry:Kind@90,registry:Provisioned@72 3849289a7b85aa83b30c233d7bc0bbaa9699010ff69d5be81e09ca10bcd4e88d |
| internal/activator/maintenance.go Service.giveBackAfterStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: a failed wake's release when its start left nothing for cleanupFailedWake to prove: a legacy lease goes back as before (giveBack); an HA one only when haHostEmpty reads the slice empty, else it logs, marks the stop uncertain and retains the wake (retainUnprovenWake, sliceOnly) so the reaper retries the slice; +registry:Host x2, +whole:Route x3; no file read registry:Host@261,registry:Host@527,whole:Route@163,whole:Route@347,whole:Route@351 0f7ded83b1c016fa60b2460da96afa24dee87c1c958b6c04617392685dae5659 |
| internal/activator/maintenance.go Service.retainUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F1), the agent as carlos: records an unproven wake in a.unprovenWakes under a.mu, keeping its lease and replica until the reaper's proof holds; no new wake of the host starts meanwhile; +registry:Host, +whole:Route; no I/O registry:Host@169,whole:Route@171 39f0172e985a5f953b4671042934463a1b5ab995e6c55706c7547bcde55d3707 |
| -internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record with provision.GetRecord(store, release.RouteAccount(rt), rt.App, rt.Host), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@570,registry:Host@578,whole:Route@565 68c6a9d5692d83895e22bdecd62920de25642980b42ce8f645e15e706b18d4bf |
| +internal/host/agent.go haRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: activator.Config.Record, the closure the HA classification calls on a lifetime index miss: opens the deployment store once (openDeployStore, kept under a mutex) and reads the host's record through judgedRecord(store, judge, release.RouteAccount(rt), rt.App, rt.Host) (CI fix: provision.ReadRecordJudged under the box's lifetime judge, which also GETs the host's incarnation slot control/host-incarnations/<host>.json from the same deployment store; a record the slot no longer vouches for, or a tombstone, reads as os.ErrNotExist; a nil judge, host claims on, is provision.GetRecord exactly), turned into a lifetime entry by provision.LifetimeEntryOf; the reads are the row it is handed (registry:App, registry:Host, whole:Route); the record is the console-written deployment record the reconcile passes already read; an open or read error is returned and the wake fails closed; root never calls it registry:App@602,registry:Host@610,whole:Route@597 1e0356f60b8e8d81d12bf331e14b8ba313b38b494d12048241209932907ffb79 |
| internal/host/haself.go readInstanceID legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos, at RunAgent's start and its one-minute retry (haSelfNow, haSelfRetry): reads this instance's id from IMDSv2 (PUT /latest/api/token, then the identity document), each body through io.ReadAll capped at 64 KiB (the +file:ReadAll site), within 2 s; the id names the box as owner of the lease locks it writes (lease.SetSelf); IMDS answers only for this instance, no tenant or app input; root never calls it file:ReadAll@514 9f242dc249c36f9a3c1f91d0619434e7d581d1f92f4242f3dfcbcb9ff9cb9eb6 |
| internal/host/instancekeys.go haRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), the agent as carlos: asks the key backfiller for IsHA when it implements it (the activator's classification), else returns the row's sticky HA column (registry:HA, whole:Route); no file read registry:HA@204,whole:Route@189 047888231cc897c4cbe8e9a2a829d4071d824aeb507702fadb4bbbe8950556e3 |
| internal/host/retiredunits.go retireUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (region HA P1a), root (bootstrapWith: carlos bootstrap, or the staging-root/-plan-json path): for each name in the fixed list retiredUnits (carlos-system-join.path, carlos-system-join.service; a name with a slash, "." or ".." is refused) Lstats <root>/etc/systemd/system/<unit>, on the live root runs systemctl disable --now on an installed one, Globs <root>/etc/systemd/system/*.wants/<unit> and *.requires/<unit> and removes those links and the unit file (os.Remove, so a link is removed, never followed), then daemon-reload on the live root if anything went; reads +file:Lstat and +file:Glob x2, all under root's own /etc/systemd/system with names from a compiled-in list; no tenant, app or agent input names or writes them file:Glob@657,file:Glob@760,file:Lstat@356 039b30ae28af150c3470807a72872336e3f1721af9a59684f6fe196bceb9b623 |
| @@ -213,9 +214,9 @@ internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census |
| @remove internal/host/units/carlos-system-join.path external |
| @remove internal/host/units/carlos-system-join.service external |
| @coverage . 6ad916026a2e8f476ce9541fe5909f23c2483c94b4ed5a2bf5e016f1d59c883c |
| -@coverage internal/activator 85fbf27ef51f3df6952b76eb3261091778538f1f0a8c1de123f70e1350371df0 |
| +@coverage internal/activator e50624eb0f9aa7d849856d6ab04e6f6dfaf93134852a50d77acbc343ff2ba4ea |
| @coverage internal/hafresh e78cb0a141bfa97525865bb840f7d74397f788d6fe92d981c6a945f6e3f37faf |
| -@coverage internal/host dad347b4ff31533b43f77521feb783f4e7490a24ec37ea425af2c6846e87d718 |
| +@coverage internal/host a903e4286c9bed514583b6c4130412d492c33b0595d4ac3206185e42e5bc0bc0 |
| @coverage internal/host/units 618e60ad8a32605f8fe5249ee00c0ff059fbf70e35e3fe69779dbc23e51bab18 |
| @coverage internal/hostfiles 134d98da9d4d80ea9962bab1a3e5a5546d277f20c593c6db44ccf9d0f0b937ba |
| @coverage internal/lease fd74eb077f84259c4cf7de57407e3b9a944452dd63adf1e4262ee83a204c712e |