carlos / platform Public

census: managed fleets 2b-2 tasks 2-4

Joint root-read proposal after rebasing Task 4 onto Task 3's fix
round; seal 2a3c4f73. Record-write layer merged (Task 3 re-pins plus
Task 4's ensureFleetKey and NewServer digest).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b454d88af57ffb766faecaa901a761b3218004bd parent b06b6fd
3 files changed, +22 −11
  • docs/superpowers/notes/census-proposal-managed-fleets-2b2.md +8 −4
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv +13 −6
diff --git a/docs/superpowers/notes/census-proposal-managed-fleets-2b2.md b/docs/superpowers/notes/census-proposal-managed-fleets-2b2.md
index 25eb0d288..bf36e06f7 100644
--- a/docs/superpowers/notes/census-proposal-managed-fleets-2b2.md
+++ b/docs/superpowers/notes/census-proposal-managed-fleets-2b2.md
@@ -1,6 +1,6 @@
# Census approval: managed-fleets-2b2
-Ruling `census-ruling-managed-fleets-2b2`. The independent reviewer approves or rejects every change below, 31 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-managed-fleets-2b2`. The independent reviewer approves or rejects every change below, 33 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -9,6 +9,7 @@ Ruling `census-ruling-managed-fleets-2b2`. The independent reviewer approves or
| `internal/host/agent.go` `makeStartRoute` | body | unchanged (4) | refuses with errManagedJoining while the armed managedJoin is joining, before any registry read; BYO unchanged |
| `internal/host/agent.go` `runAdoptUnderRootRelease` | body | unchanged (4) | 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 |
| `internal/host/agent.go` `runAgent` | body | unchanged (9) | decides the managed join before any admission is armed (armManagedJoin: LoadIdentity of /etc/carlos/managed-box.json, GET /managed-admission on the root door); a managed box never builds fixedAdmission; an identity error, CARLOS_GROUP_ADMISSION=1 or group configuration on a managed box is one refused join (every predicate closed, no Fatalf); binds its predicate as the activator/exec/edge admission; adds ReconcileConfig.Joining to both provisioning loops; the worker boot pass runs once, at admission (whenAdmitted) |
+| `internal/host/agent.go` `statusTick` | body | unchanged (4) | after the label override, sets box.ManagedKey = managedKeyHeartbeat(): the code from root's /etc/carlos/managed-key-status.json read through managedboot.LoadKeyStatus (O_NOFOLLOW walk, every component root-owned and not g/o writable, regular nlink 1, 1 KiB cap, canonical known code only, else status_unreadable); a value copied into the bucket-private heartbeat, nothing root decides on; no other read added |
| `internal/host/bootstrap.go` `bootstrapWithGroup` | body | unchanged (3) | on the live root, or a staging root holding a valid managed identity, gates the unit set it is about to write (managedGateUnits: root-owned admission drop-ins for every non-maintenance unit and the declared named units via the trusted mb* walk, control drop-in, daemon-reload when live) before writing any unit file; any failure fails the bootstrap; BYO no-op |
| `internal/host/namedrecovery.go` `type namedUnitRecovery` | body | unchanged (0) | adds the gate field (managedRootGate on the root pass); data only |
| `internal/host/systemapply.go` `systemApplier.installUnits` | body | unchanged (6) | before publishing the target build's staged units, gates them (every staged non-maintenance unit, a new template included, beside this binary's units and the declared named units) via managedGateEtc and daemon-reload; any failure fails the apply with no unit published; BYO no-op |
@@ -22,7 +23,7 @@ Ruling `census-ruling-managed-fleets-2b2`. The independent reviewer approves or
| `system.go` `systemVerb` | body | unchanged (0) | recognizes managed-boot as a system verb; parsing only, no read added |
| `internal/host/namedrecovery_pass.go` `namedUnitRecovery.passOption` | sites | +whole:Route | asks refusedByGate before recover; on refusal recovers nothing; the whole:Route site is the route handed to refusedByGate for its log line, no new read |
-Envelopes re-pinned: `.`, `internal/appconfig`, `internal/host`, `internal/instancectl`, `internal/managedboot`, `internal/provision`.
+Envelopes re-pinned: `.`, `internal/appconfig`, `internal/host`, `internal/instancectl`, `internal/managedboot`, `internal/provision`, `internal/status`.
Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
@@ -33,6 +34,7 @@ Recorded dispositions, which each change must still satisfy:
- `internal/host/agent.go` `makeStartRoute`: authority, task B3,J1. Basis: 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)
- `internal/host/agent.go` `runAdoptUnderRootRelease`: authority, task B3,E1,E2,E3. Basis: 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
- `internal/host/agent.go` `runAgent`: authority, task B,C,D,F. Basis: 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)
+- `internal/host/agent.go` `statusTick`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added
- `internal/host/bootstrap.go` `bootstrapWithGroup`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.
- `internal/host/namedrecovery.go` `type namedUnitRecovery`: authority, task E1. Basis: 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.
- `internal/host/systemapply.go` `systemApplier.installUnits`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.
@@ -70,6 +72,8 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/host/managedboot_linux.go:mbWalk`: reads +file:Fstat, +file:Open, +file:Openat ×2; written legacy, accepted-legacy, frozen
- new `internal/host/managedboot_linux.go:mbWriteRootFile`: reads +file:Openat, +file:Read; written legacy, accepted-legacy, frozen
- new `internal/host/managedboot_linux.go:var mbFsyncFile`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/host/managedkey.go:readFleetKeyObject`: reads +file:Open, +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/host/managedkey.go:registerFleetKey`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/host/namedrecovery_pass.go:namedUnitRecovery.refusedByGate`: reads +registry:Host; written legacy, accepted-legacy, frozen
- new `internal/instancectl/managedadmit.go:Server.handleManagedAdmit`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/managedboot/admission_linux.go:createMarker`: reads +file:Openat; written legacy, accepted-legacy, frozen
@@ -78,8 +82,8 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/managedboot/admission_linux.go:readAdmission`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/managedboot/admission_linux.go:writeAdmission`: reads +file:Openat, +file:Read; written legacy, accepted-legacy, frozen
- new `internal/managedboot/cloudinit_v1.sh.tmpl:external`: reads +file:external; written legacy, accepted-legacy, frozen
-- new `internal/managedboot/identity_linux.go:loadIdentity`: reads +file:Fstat, +file:Open, +file:Openat, +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/managedboot/identity_linux.go:readRootOwned`: reads +file:Fstat, +file:Open, +file:Openat, +file:ReadAll; written legacy, accepted-legacy, frozen
-Seal: `d467adec3d86ae220afe98269aa226e87adba1b83e31eda214ceea0f02720a98` → `2e19c2cedef028cc03379bf625b817e20be92f57bed6397786b08ec3a0809ef2`.
+Seal: `d467adec3d86ae220afe98269aa226e87adba1b83e31eda214ceea0f02720a98` → `2a3c4f73d2b9b38e7c916a8cea5ffe376e67b13912f92286a88ff0ec9eb5dc70`.
Overlay: `internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index f34726ea5..d548930b6 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -131,4 +131,4 @@ plan14-root-reads-instance-restore-658-cli.tsv b970bb28c5a633d2572a1da549030e925
plan14-root-reads-instance-stop-execstop-528.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
plan14-root-reads-region-ha-shutting-down-retry.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
plan14-root-reads-managed-fleets-2b1.tsv d467adec3d86ae220afe98269aa226e87adba1b83e31eda214ceea0f02720a98
-plan14-root-reads-managed-fleets-2b2.tsv 2e19c2cedef028cc03379bf625b817e20be92f57bed6397786b08ec3a0809ef2
+plan14-root-reads-managed-fleets-2b2.tsv 2a3c4f73d2b9b38e7c916a8cea5ffe376e67b13912f92286a88ff0ec9eb5dc70
diff --git a/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv b/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv
index 8ea57b04e..7de81fbed 100644
--- a/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv
+++ b/internal/provision/testdata/plan14-root-reads-managed-fleets-2b2.tsv
@@ -1,7 +1,8 @@
# 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.
-# 16 body, 1 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 31 new dispositions: 0 reads re-frozen at their disposition with the claim, 31 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 17 body, 1 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 33 new dispositions: 0 reads re-frozen at their disposition with the claim, 33 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 d7079356852c9f7ddb9065bcfeca1de8e9b7da221d9974226a085fed756dee65 internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added;rev3=census-ruling-managed-fleets-2b2;basis=after the label override, sets box.ManagedKey = managedKeyHeartbeat(): the code from root's /etc/carlos/managed-key-status.json read through managedboot.LoadKeyStatus (O_NOFOLLOW walk, every component root-owned and not g/o writable, regular nlink 1, 1 KiB cap, canonical known code only, else status_unreadable); a value copied into the bucket-private heartbeat, nothing root decides on; no other read added whole:Route@1029,whole:Route@1593,whole:RouteAlias@958,whole:RouteAlias@968 9ef5ba8b7a1425c3b2aa27c5eb81c87652607d55f224e6f50b31e1d2b84b952a
@legacy 4a126816b099b642d35432e5bd31c0f69b5ca8efd70296eee65f2c9e4a5d4d59 internal/host/bootstrap.go bootstrapWithGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.;rev3=census-ruling-managed-fleets-2b2;basis=on the live root, or a staging root holding a valid managed identity, gates the unit set it is about to write (managedGateUnits: root-owned admission drop-ins for every non-maintenance unit and the declared named units via the trusted mb* walk, control drop-in, daemon-reload when live) before writing any unit file; any failure fails the bootstrap; BYO no-op file:Command@12657,file:ReadFile@564,file:ReadFile@7711 710ca018c8f6f9e77067dc41389606c6d53312058f7710aab68ecfc991207ec7
@legacy 370e60a0e99076d73fcc9b34d0794a7cd29952a3b1b771d43e7f25b4392cc0ae internal/host/systemapply.go systemApplier.installUnits legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.;rev3=census-ruling-managed-fleets-2b2;basis=before publishing the target build's staged units, gates them (every staged non-maintenance unit, a new template included, beside this binary's units and the declared named units) via managedGateEtc and daemon-reload; any failure fails the apply with no unit published; BYO no-op file:ReadDir@1436,file:ReadFile@2746,file:ReadFile@5781,file:ReadFile@960,file:Stat@3404,file:Stat@4697 1a196cf7e0967ffc2a1f59f7cd9c7fc4da942da229981b681f6c7a5374f91141
@legacy 585e39b756c0bb12b95d38e3002a222d095e45394b2ae376da9597208d0018ee 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 write, reload, enable or start: on a managed box gates this binary's whole unit set (every non-maintenance unit, plus declared named units read through the trusted mb* walk) with root-owned admission drop-ins and the control ReadWritePaths drop-in via managedGateEtc, then daemon-reload; any failure returns before any unit is published; control try-restart when its drop-in was rewritten; BYO no-op file:OpenFile@293,file:ReadFile@5703,file:ReadFile@5836,file:ReadFile@7294,file:Stat@5612 4d969e1060cb2d90e179f39ddb002210e58934b8de17de3423bc8b2e9f2cff8a
@@ -31,6 +32,8 @@
@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 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 6c7c1a054a1c8c04df93db0eb482d44f7e96ea4f9a31594074e33406f9dae4db internal/host/managedkey.go readFleetKeyObject legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=fix round 1: streams the fleet-writable key object via release.Opener through io.LimitReader(MaxFleetKeyObject+1 = 4097 bytes), closes it, excess is refused (object_invalid); a store without Opener is refused, never read whole with Store.Get file:Open@248,file:ReadAll@359 8bc59d353eaa02b03f1173485a082394a98dfc3af6b8759b9044063ac881abea
+@legacy 1686e47fa8e2f0e8d3a783576a07149703221fada59147d0b6bd09e51e1a40e4 internal/host/managedkey.go registerFleetKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the managed key door's HTTPS reply (4 KiB cap) from the frozen console origin; a 200 counts only when it names the box's fleet and the fingerprint of the key it sent; no file read file:ReadAll@859 21c44ffea28a26abe3cab22d52eb05f5de00a6e4ab4918cd2c2f854b21bae268
@legacy 546ee981858c17a0f97bfdbf0876af4ce6e2759676829c4b32a24c3eb9e30c73 internal/host/namedrecovery_pass.go namedUnitRecovery.refusedByGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=asks the root-pass gate (RootAdmission: root-owned identity and 0700 admission files) and logs the route's host on refusal; no other read registry:Host@189 5d7654da0ef597f013a35b8a9d1ac8e6949dd1c16c312ceaf153e70efb6bf5d2
@legacy 990d95df0a6c4c4b16db5e8ee97de3f6a83aefd86a1f3316d9139a537d890103 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; a refusal on its merits answers 403, an I/O failure 500; nothing read is trusted before managedboot verifies it file:ReadAll@154 4674d8ada6ad219d2fecccf37666c2c862240f845db1000874b8082c1f692c18
@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
@@ -39,12 +42,13 @@
@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 ba8b61b68d4becc173795a6579e2801c7332411d2ebb5cc7b85c9c49812e05ca internal/managedboot/identity_linux.go readRootOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=the O_NOFOLLOW openat walk moved out of loadIdentity unchanged (every component owned by the expected uid, not g/o writable; regular, nlink 1, size cap), parameterised by path and limit; callers: loadIdentity (/etc/carlos/managed-box.json, 4 KiB) and loadKeyStatus (/etc/carlos/managed-key-status.json, 1 KiB) file:Fstat@775,file:Open@130,file:Openat@532,file:ReadAll@1099 3f2a099882de9ffaac6189a3a844f3a3026cf02398ed7d6d247ae9461de29a09
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=decides the managed join before any admission is armed (armManagedJoin: LoadIdentity of /etc/carlos/managed-box.json, GET /managed-admission on the root door); a managed box never builds fixedAdmission; an identity error, CARLOS_GROUP_ADMISSION=1 or group configuration on a managed box is one refused join (every predicate closed, no Fatalf); binds its predicate as the activator/exec/edge admission; adds ReconcileConfig.Joining to both provisioning loops; the worker boot pass runs once, at admission (whenAdmitted) file:Exec@19879,file:Open@2382,file:Statfs@51562,registry:App@13478,registry:Host@47598,whole:Route@13470,whole:Route@46756,whole:Route@47721,whole:Route@47783 b12a67998829ab716013e51bd2b3a64dab3418583aac4758071c15e6568fb48c
+internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 7 (ruling 5a): sets p.AliasesRead false, then true only when the existing reg.ListAliases succeeds, so the heartbeat tells no alias rows from a failed read; the caller's value is never trusted; no read added;rev3=census-ruling-managed-fleets-2b2;basis=after the label override, sets box.ManagedKey = managedKeyHeartbeat(): the code from root's /etc/carlos/managed-key-status.json read through managedboot.LoadKeyStatus (O_NOFOLLOW walk, every component root-owned and not g/o writable, regular nlink 1, 1 KiB cap, canonical known code only, else status_unreadable); a value copied into the bucket-private heartbeat, nothing root decides on; no other read added whole:Route@1029,whole:Route@1593,whole:RouteAlias@958,whole:RouteAlias@968 9ef5ba8b7a1425c3b2aa27c5eb81c87652607d55f224e6f50b31e1d2b84b952a
internal/host/bootstrap.go bootstrapWithGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.;rev3=census-ruling-managed-fleets-2b2;basis=on the live root, or a staging root holding a valid managed identity, gates the unit set it is about to write (managedGateUnits: root-owned admission drop-ins for every non-maintenance unit and the declared named units via the trusted mb* walk, control drop-in, daemon-reload when live) before writing any unit file; any failure fails the bootstrap; BYO no-op file:Command@12657,file:ReadFile@564,file:ReadFile@7711 710ca018c8f6f9e77067dc41389606c6d53312058f7710aab68ecfc991207ec7
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/systemapply.go systemApplier.installUnits legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.;rev3=census-ruling-managed-fleets-2b2;basis=before publishing the target build's staged units, gates them (every staged non-maintenance unit, a new template included, beside this binary's units and the declared named units) via managedGateEtc and daemon-reload; any failure fails the apply with no unit published; BYO no-op file:ReadDir@1436,file:ReadFile@2746,file:ReadFile@5781,file:ReadFile@960,file:Stat@3404,file:Stat@4697 1a196cf7e0967ffc2a1f59f7cd9c7fc4da942da229981b681f6c7a5374f91141
@@ -78,6 +82,8 @@ internal/host/managedboot_linux.go mbSyncDir legacy accepted-legacy accepted-leg
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/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/managedkey.go readFleetKeyObject legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=fix round 1: streams the fleet-writable key object via release.Opener through io.LimitReader(MaxFleetKeyObject+1 = 4097 bytes), closes it, excess is refused (object_invalid); a store without Opener is refused, never read whole with Store.Get file:Open@248,file:ReadAll@359 8bc59d353eaa02b03f1173485a082394a98dfc3af6b8759b9044063ac881abea
+internal/host/managedkey.go registerFleetKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=reads the managed key door's HTTPS reply (4 KiB cap) from the frozen console origin; a 200 counts only when it names the box's fleet and the fingerprint of the key it sent; no file read file:ReadAll@859 21c44ffea28a26abe3cab22d52eb05f5de00a6e4ab4918cd2c2f854b21bae268
internal/host/namedrecovery_pass.go namedUnitRecovery.refusedByGate legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=asks the root-pass gate (RootAdmission: root-owned identity and 0700 admission files) and logs the route's host on refusal; no other read registry:Host@189 5d7654da0ef597f013a35b8a9d1ac8e6949dd1c16c312ceaf153e70efb6bf5d2
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; a refusal on its merits answers 403, an I/O failure 500; nothing read is trusted before managedboot verifies it file:ReadAll@154 4674d8ada6ad219d2fecccf37666c2c862240f845db1000874b8082c1f692c18
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
@@ -86,11 +92,12 @@ internal/managedboot/admission_linux.go openOwnedFile legacy accepted-legacy acc
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/identity_linux.go readRootOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2b2;basis=the O_NOFOLLOW openat walk moved out of loadIdentity unchanged (every component owned by the expected uid, not g/o writable; regular, nlink 1, size cap), parameterised by path and limit; callers: loadIdentity (/etc/carlos/managed-box.json, 4 KiB) and loadKeyStatus (/etc/carlos/managed-key-status.json, 1 KiB) file:Fstat@775,file:Open@130,file:Openat@532,file:ReadAll@1099 3f2a099882de9ffaac6189a3a844f3a3026cf02398ed7d6d247ae9461de29a09
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 refusedByGate before recover; on refusal recovers nothing; the whole:Route site is the route handed to refusedByGate for its log line, no new read registry:Host@333,registry:Host@557,registry:Unit@510,registry:Unit@527,whole:Route@273,whole:Route@470,whole:Route@502 3e50e426466ebfd148adea21d70fba68fa86cf5d9e4d226953f6fe4abe3a5ea5
@coverage . 1dcaf53ecd6db0cc4870833eda8d18c2a1604e48c316e16eb153f80f612daefb
@coverage internal/appconfig 7238cd97ab717ace4651cd2fbf236b8c923e76d5bddfd5235d7ed0d11d1bf325
-@coverage internal/host bda550cf8847ade3cc8c6b1796a7e65fe1c97bc04d3f7c532d9fa0f4a2cf42d2
+@coverage internal/host 6fe01bf2bfcf46b4bf8308b575ef57a78145689b3453b66eee7856fa9cd729f3
@coverage internal/instancectl a43bb997d24941b7153600d3a4b7a513324ee659454dce215cb400cb5e64a9f6
-@coverage internal/managedboot 4044413b4bd3b0d90c512b0889ab6c6dbae4ae3eed3cc00cd981e864e741a61a
+@coverage internal/managedboot c791f182f5d56d79c8337b78aa3ea71199238d5922fdfc4392bd1dde1f01b321
@coverage internal/provision 41c4e4c822dd31b7b09c867203add50386cff05a1f88786a44e655aeb295a456
+@coverage internal/status 7a4d4c3475f74524fccd5db7fa928be845dc677b57accf96bf8e1b4ad47cf158