carlos / platform Public

census: demo disk slice 1 retention overlay and card

make census-propose NAME=demo-disk-slice1-retention: five changed
units and 14 new ones (root retention in the adopt pass, the agent's
status reads, the stage write check). Claims beside the card. For the
other-family reviewer; not reviewed yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 848366ea4b4bf2fefd9cabde24fc07a844b4b315 parent 8c0f12e
4 files changed, +106 −0
  • docs/superpowers/notes/census-claims-demo-disk-slice1-retention.tsv +19 −0
  • docs/superpowers/notes/census-proposal-demo-disk-slice1-retention.md +44 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-demo-disk-slice1-retention.tsv +42 −0
diff --git a/docs/superpowers/notes/census-claims-demo-disk-slice1-retention.tsv b/docs/superpowers/notes/census-claims-demo-disk-slice1-retention.tsv
new file mode 100644
index 000000000..52a85e035
--- /dev/null
+++ b/docs/superpowers/notes/census-claims-demo-disk-slice1-retention.tsv
@@ -0,0 +1,19 @@
+internal/host/agent.go:runAdoptUnderRootRelease demo disk bound slice 1: release.Pass now runs inside demoRetention.around (productionDemoRetention(reg, generationPins, passLockErr == nil)), still inside pr.around and under the adopt pass lock taken at the top; around adds release.WithBeforeStage(beforeStage) to the pass options and, after the pass, runs demo build retention when a demo route's Version moved or on the hourly (not -stage-only) pass. Never on -config-only or -restart-only, which return before this. No read added in this unit; read sites unchanged
+internal/host/agent.go:statusLoop the agent (carlos-edge.service, user carlos): the status tick also fills Probes.DemoDisk from readDemoDisk(), nil unless CARLOS_DEMO_BOX is set; statfs of /data and /run, and root's public retention record (readDemoBuilds); report only; no store request added; read sites unchanged
+internal/release/adopt.go:PassFilter the stage check's beforeWrite is cfg.stageWriteCheck (generationWriteCheck first, unchanged, then WithBeforeStage's callback for a path that holds nothing yet); no read added in this unit
+internal/release/adopt.go:type passConfig adds the beforeStage callback field, set only by WithBeforeStage (root's adopt pass); reads nothing
+internal/status/snapshot.go:CollectBox copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added
+cli.go:printDemoDisk operator CLI (carlos status --live), not root: prints a published box snapshot's demo_disk numbers; reads only the decoded snapshot in hand
+internal/host/demodisk_status.go:productionDemoDiskProbe the agent (user carlos), not root: opens root's public record directory /var/lib/carlos-release/demo-retention read-only through rootstate.Open(dir, false, true) (every ancestor root-owned, not group or world writable); report only
+internal/host/demodisk_status.go:readDemoBuilds the agent (user carlos): reads the record 'status' from that rootstate store (descriptor read, trusted owner, 1 MiB cap) and decodes it; schema 1 or an error; report only, nothing reads it as authority
+internal/host/demoretention.go:demoRetention.demoAdoptions root adopt pass (uid 0): lists the registry and keeps each demo route's Host and Version, to tell after the pass whether it adopted a demo version; decides only whether retention runs
+internal/host/demoretention.go:demoRetention.demoApp root adopt pass: a route is a demo app on this demo box only when it is marked demo (IsDemo), its app is tmp-demo-*, and its account is the box's CARLOS_DEMO_ACCOUNT from host.env (demo.BoxConfig); retention never selects any other app
+internal/host/demoretention.go:demoRetention.demoAppListed root adopt pass: the pending-output cleanup acts on a path only when a demo route of this box runs that account/app; a registry that does not list counts as listed so the cleanup's own read refuses the stage
+internal/host/demoretention.go:demoRetention.pinSet root adopt pass: the pin set from every source: release.BoxPins over every registry row (live link chains; Version, PrevVersion, GoodVersion, settings references), previous links, release.GenerationPins over the generations file, and root's generation ledger (productionRootGenerationPins). Strict: any source that does not read in full is an error and nothing is deleted. Agent-writable inputs (the registry, the generations file under /data) can only ADD pins, never remove one; the estimate mode (no deletion) only counts
+internal/host/demoretention.go:demoRetention.saveStatus root adopt pass: reads its own previous record from the public root store /var/lib/carlos-release/demo-retention (rootstate, created root-owned 0755, file 0644) to carry the backlog's start, and writes the new record there; status only, never read back as a pin or a decision
+internal/host/demoretention.go:demoRetention.selection root adopt pass: lists <opt>/versions (root-owned version store) and Lstats <ver>/<account>/<app> and its .manifest.json for each demo app; ENOTDIR (an ops app's file named like the account) is not present; decides which demo outputs nothing pins. Deletion is only by removeOutput through instancefs.RemoveAllBeneath (openat2 beneath, no symlinks), per app, never a version directory, and only with the adopt pass lock held
+internal/host/demoretention.go:pinned root adopt pass: an output is pinned when a pin names it, its manifest or a path inside it, under the store's spelling or the real path of its directory (EvalSymlinks of the root-owned version directory)
+internal/host/demoretention.go:previousLinkPins root adopt pass: every <opt>/previous link (root-owned) is a pin at its target and its real path, as release.LivePins reads them for the sweep; an unreadable link is an error and nothing is deleted
+internal/host/demoretention.go:productionDemoRetention root adopt pass: demo.BoxConfig from host.env (root-owned), the version store and generations file paths, root's generation ledger, and the record store opener rootstate.Open(/var/lib/carlos-release/demo-retention, true, true)
+internal/host/statfs_unix.go:filesystemRoom the agent (user carlos): statfs of /data and /run for status and the disk alert; numbers only
+internal/release/adopt.go:passConfig.stageWriteCheck root adopt pass and agent passes: generationWriteCheck unchanged first; then, only when WithBeforeStage is set (root's adopt pass only), Lstat of the VersionPath about to be written and the callback when nothing is there; an error fails the stage (nothing written, route unchanged)
diff --git a/docs/superpowers/notes/census-proposal-demo-disk-slice1-retention.md b/docs/superpowers/notes/census-proposal-demo-disk-slice1-retention.md
new file mode 100644
index 000000000..ec2a72ac8
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-demo-disk-slice1-retention.md
@@ -0,0 +1,44 @@
+# Census approval: demo-disk-slice1-retention
+
+Ruling `census-ruling-demo-disk-slice1-retention`. The independent reviewer approves or rejects every change below, 14 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/host/agent.go` `runAdoptUnderRootRelease` | body | unchanged (4) | demo disk bound slice 1: release.Pass now runs inside demoRetention.around (productionDemoRetention(reg, generationPins, passLockErr == nil)), still inside pr.around and under the adopt pass lock taken at the top; around adds release.WithBeforeStage(beforeStage) to the pass options and, after the pass, runs demo build retention when a demo route's Version moved or on the hourly (not -stage-only) pass. Never on -config-only or -restart-only, which return before this. No read added in this unit; read sites unchanged |
+| `internal/host/agent.go` `statusLoop` | body | unchanged (7) | the agent (carlos-edge.service, user carlos): the status tick also fills Probes.DemoDisk from readDemoDisk(), nil unless CARLOS_DEMO_BOX is set; statfs of /data and /run, and root's public retention record (readDemoBuilds); report only; no store request added; read sites unchanged |
+| `internal/release/adopt.go` `PassFilter` | body | unchanged (75) | the stage check's beforeWrite is cfg.stageWriteCheck (generationWriteCheck first, unchanged, then WithBeforeStage's callback for a path that holds nothing yet); no read added in this unit |
+| `internal/release/adopt.go` `type passConfig` | body | unchanged (0) | adds the beforeStage callback field, set only by WithBeforeStage (root's adopt pass); reads nothing |
+| `internal/status/snapshot.go` `CollectBox` | body | unchanged (28) | copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added |
+
+Envelopes re-pinned: `.`, `internal/host`, `internal/release`, `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.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `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;rev3=census-ruling-sr-followups;basis=#966 census fix: the SyncUnits ack callback is configAckRootFunc(ctx, store) instead of configAckFunc(ctx, store, "adopt"). configAckRootFunc (new, agent.go): on a box with a bucket or dir (doorFleet empty: no fleet identity, or CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR set in the process environment) it returns configAckFunc(ctx, store, "adopt"), the same callback as before #966 (platform-root key, read-then-CAS). On a door box it writes each ack through appconfig.ReplaceConfigAckBlind (new, configack.go) under NewPrefixStore(store, "fleets/<fleet>/"): s.Delete(key) then a create-only s.Put(key, body, ""), returning only errors, which are logged. THE ROOT PASS NO LONGER READS THE FLEET CORNER: it sends exactly DELETE and PUT for fleets/<F>/control/config-ack/<label>/<host>.json and no GET, Open or HEAD of any fleet key; it inspects no body, ETag or listing. Reads only the process environment (doorFleet, BoxLabel), as configAckFunc did. Read sites unchanged;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 4/5: after the restart-only return, calls runNamedUnitsStep, which runs adoptNamedUnitsStep (root reads its own IMDSv2 identity; ssm:GetParameter of /carlos/host/named-units/<instance-id> in that region, operator-written, box role read-only; trusted rootstate reads of /etc/carlos/named-units.json, the console guard marker, root's rollback journal and root history; installs under the config-sync flock), logs, and writes writeNamedUnitsStatus (public root store /var/lib/carlos-named-units), all before ParsePublicKey; config sync moved into adoptConfigSync with a second status write; no input a tenant, app or box agent can write selects the parameter or authorises the install; read sites unchanged;rev3=census-ruling-console-addr-from-install;basis=calls adoptConsoleFleetStep after the named-units step, never fatal (spec §4); no read added here;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; merge of origin/main 65951fbb: main's configAckRootFunc ack, the named-units step (runNamedUnitsStep) with adoptConfigSync, and adoptConsoleFleetStep, not this branch; resolution: adoptConfigSync is handed managedGatedUnitOps(managedGate, productionUnitOps(...)), so SyncUnits' UnitOps.Restart keeps root's gate
+- `internal/host/agent.go` `statusLoop`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's context carries the box's lifetime judge; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 953b9fda (its later changes, regional box names and self-serve moves plan 1 among them, under main's own census rulings), where the tick fills rootfs_ready and rootfs_blocked from armedRootfs.Load().probe, which each tick runs NestedOK's checks and asks the control socket's GET /ready/rootfs (never the store); the same four direct sites;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: takes root's GET /egress reader and fills p.Egress = egressStatusProbe(egressStatus, routes, provision.PolicyReadStates()) and p.SizeCommittedMiB = sizeCommittedMiB(armedSizeSource.Load(), routes); the two added whole:Route sites are the tick's own registry list handed to those two units (decision rows), which read root's control socket and the activator's memory; no store request added; the four existing sites unchanged, offsets moved.;rev3=census-ruling-fleet-alerts-1;basis=the agent (carlos-edge.service, user carlos): the status tick passes os.Geteuid() to alertDeliveryProbe, which fills AlertDelivery.EngineBeat/EngineBeatWhy from engineBeatArmed (the env value and the euid only, no file access, root refused before the path is looked at), and fills Probes.DiskFullETAHours from diskETAProbe(&processDiskTrend, now), a Theil-Sen fit over the metrics loop's in-memory ring of disk readings; the same six sites, no read added, no store request added;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's Probes gain HeldStreams: heldStreamsState(), which calls the edge's in-memory counters function (nil until the edge is ready). No file, bucket or registry access added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: read the detached in-memory replica snapshot source into Probes.ReplicaCopies on the existing five-minute tick. Existing six direct read sites unchanged. No additional bucket request, changed cadence or app lifecycle action.;rev3=census-ruling-agent-start-demo-3;basis=Report moved capability only when the serving edge reports readiness; report claim-seed support only with CARLOS_DEMO_CLAIM=1. Reads the explicit capability flag from the process environment; no new filesystem or registry read.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 fix round 1 (#511 R16 amendment): the status tick also fills Probes.ApplyFinished from systemApplyFinished(release.OptDir()), an Lstat of root's apply journal <opt>/system/router/journal.json in the root-owned, world-readable state directory: finished only when the journal is absent, any other answer unknown and so unfinished. Round 0: Probes.PrevRelease from prevReleaseOf (carlos.prev and carlos.prev.version, the files withMovesFields already reads). Reported in the private BoxMetrics block; no bucket request or cadence change.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: the agent (carlos-edge.service, user carlos): the status tick fills p.OfflineMove = offlineMoveFactsProbe(routes); the added whole:Route site is the tick's own registry list handed to that unit, which under a non-root euid lists the names of root's <opt>/live and nothing else; no store request added.;rev3=census-ruling-platform-mail-submission;basis=Task 3 (plan gap G6 (b)): the status tick also fills Probes.MailerArmed from mailerArmed(mailwire.MailerSocket, 2s): a stat of /run/carlos-mailer/mailer.sock and, only when it is a socket, GET /v1/health on it. The agent (carlos-edge.service, user carlos), not root; reported in the private BoxMetrics block only. The same seven sites; no store request, no read of /etc/carlos-mailer (which uid carlos cannot traverse).;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: the agent (carlos-edge.service, user carlos) fills Probes.NamedUnits from readNamedUnitsStatus: rootstate.Open(/var/lib/carlos-named-units, false, true) status.json, 64 KiB cap, any error nil; report only, nothing reads it as authority; no store request added; the same sites;rev3=census-ruling-console-addr-from-install;basis=sets Probes.ConsoleFleet from consoleFleetProbe (root public store read, edge in-memory state); no read added in this unit
+- `internal/release/adopt.go` `PassFilter`: authority, task B3,E3,J1,E1,E2. Basis: Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink. E7 applies merge ruling 4: unbound no-census routes use the legacy pass and restart; ordinary candidates make no binding store call. Fixtures: TestR2UnguardedERecoveryUpdate, TestR2UnguardedERecoveryIncidentRecipe, TestPlan14ERecoveryBindingRefusalKeepsPromotedFix. E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=resolves protected route inputs before filters, recovery and dispatch on census boxes and bypasses service-owned failure opener only there;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=asks the optional pointer gate (gatePointers) once per channel group before selection and reports each group's pointer outcome to it; only the agent's fast sweep arms a gate (WithPointerGate), so under carlos adopt the gate is nil and the pass is unchanged; a gate can only leave a group out of the pass, never add one; one whole-Route site added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-hunt-release-chain-integrity;basis=a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor that admits only a strictly later stamp or the very pointer it recorded (PointerIdentity, fix round 1), which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); fix round 2: the floor's identity is the sha256 of the exact signed wrapper the pointer was verified from (set at the parse site), and a floor with no identity admits nothing at its own stamp, so the floor only refuses more; no read kind is added to the unit; CI fix: an app channel pointer is now stamped to the millisecond (pointerStampGrain) so a signer's wait past the head it replaces is at most a millisecond; the floor still admits only a strictly later stamp or the pointer it recorded, compared as time.Time, so the rule and the reads are unchanged
+- `internal/release/adopt.go` `type passConfig`: authority, task E2,E3. Basis: E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode, TestPlan14GenerationProductionModeGate, TestPlan14GenerationSnapshotPermitsFreshTree.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=stores the typed census-only root update provider and per-pass resolved input authority;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=adds the unitsToRoot bool set by RootRestartsUnits; reads nothing;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=adds the pointerGate field, set only by WithPointerGate (the agent's fast sweep); reads nothing
+- `internal/status/snapshot.go` `CollectBox`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: copies Probes.OfflineMove into BoxMetrics.OfflineMove (json offline_move, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: copies Probes.NamedUnits into BoxMetrics.NamedUnits (json named_units, omitempty; private) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-seeded-create-2;basis=Copies Probes.SeedsFloor into BoxMetrics.SeedsFloor and counts it in the metrics gate; a pure copy of a value the agent filled, the same 28 read sites, no read added.;rev3=census-ruling-console-addr-from-install;basis=copies Probes.ConsoleFleet into BoxMetrics (private); no read added
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `cli.go:printDemoDisk`: reads +data-literal; written legacy, accepted-legacy, frozen
+- new `internal/host/demodisk_status.go:productionDemoDiskProbe`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/host/demodisk_status.go:readDemoBuilds`: reads +file:Read; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.demoAdoptions`: reads +registry:Host, +registry:Version, +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.demoApp`: reads +registry:App ×3, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.demoAppListed`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.pinSet`: reads +registry:App ×2, +registry:GoodVersion, +registry:PrevVersion, +registry:Version, +whole:Route ×5; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.saveStatus`: reads +file:Read; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:demoRetention.selection`: reads +file:Lstat, +file:ReadDir, +registry:Version, +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:pinned`: reads +file:EvalSymlinks; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:previousLinkPins`: reads +file:EvalSymlinks, +file:ReadDir, +file:Readlink; written legacy, accepted-legacy, frozen
+- new `internal/host/demoretention.go:productionDemoRetention`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/host/statfs_unix.go:filesystemRoom`: reads +file:Statfs; written legacy, accepted-legacy, frozen
+- new `internal/release/adopt.go:passConfig.stageWriteCheck`: reads +file:Lstat; written legacy, accepted-legacy, frozen
+
+Seal: `0fdff597ef83fb9966e07c70b4283001eb97f7dfa71a83a19bde92382192eb6b` → `2372a1fa9c40b4743fdccbffb946d3a90f4d2ca4bb9d9c5cbe536ae601aae313`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-demo-disk-slice1-retention.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 6e51bfc67..33604cf78 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -312,3 +312,4 @@ plan14-root-reads-moved-at-floor-v0-44-1.tsv ed1957bc7d18714e39984e757b73b8c590f
plan14-root-reads-gvisor-slice2-explicit-mode.tsv ed1957bc7d18714e39984e757b73b8c590f1a2a924ca35e20e9041fc09f2ca78
plan14-root-reads-public-share.tsv ed1957bc7d18714e39984e757b73b8c590f1a2a924ca35e20e9041fc09f2ca78
plan14-root-reads-gvisor-slice3-containment.tsv 0fdff597ef83fb9966e07c70b4283001eb97f7dfa71a83a19bde92382192eb6b
+plan14-root-reads-demo-disk-slice1-retention.tsv 2372a1fa9c40b4743fdccbffb946d3a90f4d2ca4bb9d9c5cbe536ae601aae313
diff --git a/internal/provision/testdata/plan14-root-reads-demo-disk-slice1-retention.tsv b/internal/provision/testdata/plan14-root-reads-demo-disk-slice1-retention.tsv
new file mode 100644
index 000000000..569623864
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-demo-disk-slice1-retention.tsv
@@ -0,0 +1,42 @@
+# Census overlay demo-disk-slice1-retention, written by census-propose (#369). census-ruling-demo-disk-slice1-retention, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-demo-disk-slice1-retention.md.
+# 5 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 14 new dispositions: 0 reads re-frozen at their disposition with the claim, 14 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy c7b088568fd27e4c9c9f090b19d9362dca7b0e447695d329364cecf71b1e7971 internal/host/agent.go statusLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's context carries the box's lifetime judge; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 953b9fda (its later changes, regional box names and self-serve moves plan 1 among them, under main's own census rulings), where the tick fills rootfs_ready and rootfs_blocked from armedRootfs.Load().probe, which each tick runs NestedOK's checks and asks the control socket's GET /ready/rootfs (never the store); the same four direct sites;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: takes root's GET /egress reader and fills p.Egress = egressStatusProbe(egressStatus, routes, provision.PolicyReadStates()) and p.SizeCommittedMiB = sizeCommittedMiB(armedSizeSource.Load(), routes); the two added whole:Route sites are the tick's own registry list handed to those two units (decision rows), which read root's control socket and the activator's memory; no store request added; the four existing sites unchanged, offsets moved.;rev3=census-ruling-fleet-alerts-1;basis=the agent (carlos-edge.service, user carlos): the status tick passes os.Geteuid() to alertDeliveryProbe, which fills AlertDelivery.EngineBeat/EngineBeatWhy from engineBeatArmed (the env value and the euid only, no file access, root refused before the path is looked at), and fills Probes.DiskFullETAHours from diskETAProbe(&processDiskTrend, now), a Theil-Sen fit over the metrics loop's in-memory ring of disk readings; the same six sites, no read added, no store request added;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's Probes gain HeldStreams: heldStreamsState(), which calls the edge's in-memory counters function (nil until the edge is ready). No file, bucket or registry access added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: read the detached in-memory replica snapshot source into Probes.ReplicaCopies on the existing five-minute tick. Existing six direct read sites unchanged. No additional bucket request, changed cadence or app lifecycle action.;rev3=census-ruling-agent-start-demo-3;basis=Report moved capability only when the serving edge reports readiness; report claim-seed support only with CARLOS_DEMO_CLAIM=1. Reads the explicit capability flag from the process environment; no new filesystem or registry read.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 fix round 1 (#511 R16 amendment): the status tick also fills Probes.ApplyFinished from systemApplyFinished(release.OptDir()), an Lstat of root's apply journal <opt>/system/router/journal.json in the root-owned, world-readable state directory: finished only when the journal is absent, any other answer unknown and so unfinished. Round 0: Probes.PrevRelease from prevReleaseOf (carlos.prev and carlos.prev.version, the files withMovesFields already reads). Reported in the private BoxMetrics block; no bucket request or cadence change.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: the agent (carlos-edge.service, user carlos): the status tick fills p.OfflineMove = offlineMoveFactsProbe(routes); the added whole:Route site is the tick's own registry list handed to that unit, which under a non-root euid lists the names of root's <opt>/live and nothing else; no store request added.;rev3=census-ruling-platform-mail-submission;basis=Task 3 (plan gap G6 (b)): the status tick also fills Probes.MailerArmed from mailerArmed(mailwire.MailerSocket, 2s): a stat of /run/carlos-mailer/mailer.sock and, only when it is a socket, GET /v1/health on it. The agent (carlos-edge.service, user carlos), not root; reported in the private BoxMetrics block only. The same seven sites; no store request, no read of /etc/carlos-mailer (which uid carlos cannot traverse).;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: the agent (carlos-edge.service, user carlos) fills Probes.NamedUnits from readNamedUnitsStatus: rootstate.Open(/var/lib/carlos-named-units, false, true) status.json, 64 KiB cap, any error nil; report only, nothing reads it as authority; no store request added; the same sites;rev3=census-ruling-console-addr-from-install;basis=sets Probes.ConsoleFleet from consoleFleetProbe (root public store read, edge in-memory state); no read added in this unit;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (carlos-edge.service, user carlos): the status tick also fills Probes.DemoDisk from readDemoDisk(), nil unless CARLOS_DEMO_BOX is set; statfs of /data and /run, and root's public retention record (readDemoBuilds); report only; no store request added; read sites unchanged whole:Route@10707,whole:Route@12781,whole:Route@13062,whole:Route@13420,whole:Route@6583,whole:Route@6610,whole:Route@7918 1b271f453a4718ca5fb64f513ec22acdd2550bc8cb4cfb021ea9c8ec7300df64
+@legacy 0fd651fe1d76c34ae70bec021d3f5e3d6e7ebadac8f1a96350f9e11eb77d8b64 internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: copies Probes.OfflineMove into BoxMetrics.OfflineMove (json offline_move, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: copies Probes.NamedUnits into BoxMetrics.NamedUnits (json named_units, omitempty; private) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-seeded-create-2;basis=Copies Probes.SeedsFloor into BoxMetrics.SeedsFloor and counts it in the metrics gate; a pure copy of a value the agent filled, the same 28 read sites, no read added.;rev3=census-ruling-console-addr-from-install;basis=copies Probes.ConsoleFleet into BoxMetrics (private); no read added;rev3=census-ruling-demo-disk-slice1-retention;basis=copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 f001b427c01c4ee280a8d848eaaf60de952ecdfb3f2c6108f7c105f89a51efbf
+@legacy bb12acb7b402f19403f40d0b9ec14cd97989bb5d93e9a07d111eb6bc3648c582 cli.go printDemoDisk legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=operator CLI (carlos status --live), not root: prints a published box snapshot's demo_disk numbers; reads only the decoded snapshot in hand data-literal@195 ed2577c68d95ca5a6ebba28e905a65115ff335bc36aecca1e2c415ed98fb6fff
+@legacy 247e50229523fd4ee12c49fd765420996ceb6a5bc27924b5f0e0c496faf16b5b internal/host/demodisk_status.go productionDemoDiskProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos), not root: opens root's public record directory /var/lib/carlos-release/demo-retention read-only through rootstate.Open(dir, false, true) (every ancestor root-owned, not group or world writable); report only file:Open@208 f8df171d9a2ff2d96b73c63f4618d035230acc4b8f244dd7f377184686e4933f
+@legacy f6953a7fa7a4f22ae5896f799b9a9bebcbcbecef7b0a39752a60dc8bfff5dd1a internal/host/demodisk_status.go readDemoBuilds legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos): reads the record 'status' from that rootstate store (descriptor read, trusted owner, 1 MiB cap) and decodes it; schema 1 or an error; report only, nothing reads it as authority file:Read@174 213c08b6d79b17ca25b94b815815bd0c7dfbeaa8664aafbfc8419fab2b2679ca
+@legacy 96e466a8a94616a2985e33b8e4355d30cee8510b3254964cd7a1b876c8490258 internal/host/demoretention.go demoRetention.demoAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass (uid 0): lists the registry and keeps each demo route's Host and Version, to tell after the pass whether it adopted a demo version; decides only whether retention runs registry:Host@287,registry:Version@298,whole:Route@237,whole:Route@270 d1ca3b3d0e084d93b09023e7a0bcb6dfa496b80976362f4f5f0a0ce03c215ff8
+@legacy fbc3df3be40ed617dd6917842743d12c37687c3105583582c05823bda53862b8 internal/host/demoretention.go demoRetention.demoApp legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: a route is a demo app on this demo box only when it is marked demo (IsDemo), its app is tmp-demo-*, and its account is the box's CARLOS_DEMO_ACCOUNT from host.env (demo.BoxConfig); retention never selects any other app registry:App@112,registry:App@147,registry:App@324,whole:Route@235 4af8f894c32e176fc4886d743ea6271236c3ba4e687f2b085cb9f20222550555
+@legacy 6bb576d9a4caa82eb6ce3fad9fd81551536c5a0c2eac1eed0832ae183c3d04b2 internal/host/demoretention.go demoRetention.demoAppListed legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: the pending-output cleanup acts on a path only when a demo route of this box runs that account/app; a registry that does not list counts as listed so the cleanup's own read refuses the stage whole:Route@271,whole:Route@306 92b1b3bde40e55e2dd696e52516b5e375e76f663bae01cb5953eb6f3eb64efce
+@legacy 39fee80616ed078b3aac3b19ec28d59ccf2580ae1c6701ccf46505ad7b8f6810 internal/host/demoretention.go demoRetention.pinSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: the pin set from every source: release.BoxPins over every registry row (live link chains; Version, PrevVersion, GoodVersion, settings references), previous links, release.GenerationPins over the generations file, and root's generation ledger (productionRootGenerationPins). Strict: any source that does not read in full is an error and nothing is deleted. Agent-writable inputs (the registry, the generations file under /data) can only ADD pins, never remove one; the estimate mode (no deletion) only counts registry:App@819,registry:App@943,registry:GoodVersion@784,registry:PrevVersion@768,registry:Version@756,whole:Route@1179,whole:Route@423,whole:Route@671,whole:Route@715,whole:Route@935 6d38329b474d0f4dddbcca7d61dc8cf25becc75f7b3d1b93a222479cf239eecb
+@legacy 5b539f056a2aee18af105158c54ab5559b1709831ced2a1598c0352ed9366bca internal/host/demoretention.go demoRetention.saveStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: reads its own previous record from the public root store /var/lib/carlos-release/demo-retention (rootstate, created root-owned 0755, file 0644) to carry the backlog's start, and writes the new record there; status only, never read back as a pin or a decision file:Read@289 5bb8a4f44a6b268632d4351409ea113646844e7224b08d3862b656172a8e28d3
+@legacy 46d3d1fb2037654ffe6f0a289eeba614b876b13a94d7601a8b7dee6ac6e04b97 internal/host/demoretention.go demoRetention.selection legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: lists <opt>/versions (root-owned version store) and Lstats <ver>/<account>/<app> and its .manifest.json for each demo app; ENOTDIR (an ops app's file named like the account) is not present; decides which demo outputs nothing pins. Deletion is only by removeOutput through instancefs.RemoveAllBeneath (openat2 beneath, no symlinks), per app, never a version directory, and only with the adopt pass lock held file:Lstat@1302,file:ReadDir@659,registry:Version@495,whole:Route@386,whole:Route@419,whole:Route@587 ed401bfe4a1ddfeed3a492df8dedfa5b1391f229bfd93efda3e011aa5d8f29db
+@legacy 689041137a1496d034d2b218340c44c16ce7f422dbd7fa481184b56f4e26ff3c internal/host/demoretention.go pinned legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: an output is pinned when a pin names it, its manifest or a path inside it, under the store's spelling or the real path of its directory (EvalSymlinks of the root-owned version directory) file:EvalSymlinks@151 86cb92546860e0251e2e9f0c46feab68ab83d7069f2285d3f260789c6f07ca6b
+@legacy 06875fb1e5da69d6e5231a27c7612738d8d80d2a06d0163ca719a7fd97bb1466 internal/host/demoretention.go previousLinkPins legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: every <opt>/previous link (root-owned) is a pin at its target and its real path, as release.LivePins reads them for the sweep; an unreadable link is an error and nothing is deleted file:EvalSymlinks@559,file:ReadDir@127,file:Readlink@373 6f66df0648b22a40d3d351fd46cd8d67c2629b02ab8399aa9660355483bc2afe
+@legacy 6c35a72bc0403008043937a272bef66a03891902119ce9d1ef1ce3606933dd4c internal/host/demoretention.go productionDemoRetention legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: demo.BoxConfig from host.env (root-owned), the version store and generations file paths, root's generation ledger, and the record store opener rootstate.Open(/var/lib/carlos-release/demo-retention, true, true) file:Open@515 3717758213e219b3daee5301239dae3e5b1a433af47546e950a074ad334a91db
+@legacy 3b974d675442a49c90a22cacd91c82f61317b0a74a137f931aacca7abb9a38cb internal/host/statfs_unix.go filesystemRoom legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos): statfs of /data and /run for status and the disk alert; numbers only file:Statfs@102 bc0b7000ddb11715edd58a955d7950a1c19bfacb315b47d9575f7ac0a0a4a732
+@legacy 36814a480e2c91b2833082a70a5a01292608196aa1c5850793697ae572e3ae00 internal/release/adopt.go passConfig.stageWriteCheck legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass and agent passes: generationWriteCheck unchanged first; then, only when WithBeforeStage is set (root's adopt pass only), Lstat of the VersionPath about to be written and the callback when nothing is there; an error fails the stage (nothing written, route unchanged) file:Lstat@233 92aa097f88dc4c665a3564a8cd981537d2394857967be73230a0ef39648c48fd
+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-sr-followups;basis=#966 census fix: the SyncUnits ack callback is configAckRootFunc(ctx, store) instead of configAckFunc(ctx, store, "adopt"). configAckRootFunc (new, agent.go): on a box with a bucket or dir (doorFleet empty: no fleet identity, or CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR set in the process environment) it returns configAckFunc(ctx, store, "adopt"), the same callback as before #966 (platform-root key, read-then-CAS). On a door box it writes each ack through appconfig.ReplaceConfigAckBlind (new, configack.go) under NewPrefixStore(store, "fleets/<fleet>/"): s.Delete(key) then a create-only s.Put(key, body, ""), returning only errors, which are logged. THE ROOT PASS NO LONGER READS THE FLEET CORNER: it sends exactly DELETE and PUT for fleets/<F>/control/config-ack/<label>/<host>.json and no GET, Open or HEAD of any fleet key; it inspects no body, ETag or listing. Reads only the process environment (doorFleet, BoxLabel), as configAckFunc did. Read sites unchanged;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 4/5: after the restart-only return, calls runNamedUnitsStep, which runs adoptNamedUnitsStep (root reads its own IMDSv2 identity; ssm:GetParameter of /carlos/host/named-units/<instance-id> in that region, operator-written, box role read-only; trusted rootstate reads of /etc/carlos/named-units.json, the console guard marker, root's rollback journal and root history; installs under the config-sync flock), logs, and writes writeNamedUnitsStatus (public root store /var/lib/carlos-named-units), all before ParsePublicKey; config sync moved into adoptConfigSync with a second status write; no input a tenant, app or box agent can write selects the parameter or authorises the install; read sites unchanged;rev3=census-ruling-console-addr-from-install;basis=calls adoptConsoleFleetStep after the named-units step, never fatal (spec §4); no read added here;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; merge of origin/main 65951fbb: main's configAckRootFunc ack, the named-units step (runNamedUnitsStep) with adoptConfigSync, and adoptConsoleFleetStep, not this branch; resolution: adoptConfigSync is handed managedGatedUnitOps(managedGate, productionUnitOps(...)), so SyncUnits' UnitOps.Restart keeps root's gate;rev3=census-ruling-demo-disk-slice1-retention;basis=demo disk bound slice 1: release.Pass now runs inside demoRetention.around (productionDemoRetention(reg, generationPins, passLockErr == nil)), still inside pr.around and under the adopt pass lock taken at the top; around adds release.WithBeforeStage(beforeStage) to the pass options and, after the pass, runs demo build retention when a demo route's Version moved or on the hourly (not -stage-only) pass. Never on -config-only or -restart-only, which return before this. No read added in this unit; read sites unchanged whole:Route@12586,whole:Route@20459,whole:Route@20495,whole:Route@8743 a1f5f583ca88bb172e7c957cfeada75c04c045a52e9d33a671316a4e42b52b7a
+internal/host/agent.go statusLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's context carries the box's lifetime judge; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 953b9fda (its later changes, regional box names and self-serve moves plan 1 among them, under main's own census rulings), where the tick fills rootfs_ready and rootfs_blocked from armedRootfs.Load().probe, which each tick runs NestedOK's checks and asks the control socket's GET /ready/rootfs (never the store); the same four direct sites;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: takes root's GET /egress reader and fills p.Egress = egressStatusProbe(egressStatus, routes, provision.PolicyReadStates()) and p.SizeCommittedMiB = sizeCommittedMiB(armedSizeSource.Load(), routes); the two added whole:Route sites are the tick's own registry list handed to those two units (decision rows), which read root's control socket and the activator's memory; no store request added; the four existing sites unchanged, offsets moved.;rev3=census-ruling-fleet-alerts-1;basis=the agent (carlos-edge.service, user carlos): the status tick passes os.Geteuid() to alertDeliveryProbe, which fills AlertDelivery.EngineBeat/EngineBeatWhy from engineBeatArmed (the env value and the euid only, no file access, root refused before the path is looked at), and fills Probes.DiskFullETAHours from diskETAProbe(&processDiskTrend, now), a Theil-Sen fit over the metrics loop's in-memory ring of disk readings; the same six sites, no read added, no store request added;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): the status tick's Probes gain HeldStreams: heldStreamsState(), which calls the edge's in-memory counters function (nil until the edge is ready). No file, bucket or registry access added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: read the detached in-memory replica snapshot source into Probes.ReplicaCopies on the existing five-minute tick. Existing six direct read sites unchanged. No additional bucket request, changed cadence or app lifecycle action.;rev3=census-ruling-agent-start-demo-3;basis=Report moved capability only when the serving edge reports readiness; report claim-seed support only with CARLOS_DEMO_CLAIM=1. Reads the explicit capability flag from the process environment; no new filesystem or registry read.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 fix round 1 (#511 R16 amendment): the status tick also fills Probes.ApplyFinished from systemApplyFinished(release.OptDir()), an Lstat of root's apply journal <opt>/system/router/journal.json in the root-owned, world-readable state directory: finished only when the journal is absent, any other answer unknown and so unfinished. Round 0: Probes.PrevRelease from prevReleaseOf (carlos.prev and carlos.prev.version, the files withMovesFields already reads). Reported in the private BoxMetrics block; no bucket request or cadence change.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: the agent (carlos-edge.service, user carlos): the status tick fills p.OfflineMove = offlineMoveFactsProbe(routes); the added whole:Route site is the tick's own registry list handed to that unit, which under a non-root euid lists the names of root's <opt>/live and nothing else; no store request added.;rev3=census-ruling-platform-mail-submission;basis=Task 3 (plan gap G6 (b)): the status tick also fills Probes.MailerArmed from mailerArmed(mailwire.MailerSocket, 2s): a stat of /run/carlos-mailer/mailer.sock and, only when it is a socket, GET /v1/health on it. The agent (carlos-edge.service, user carlos), not root; reported in the private BoxMetrics block only. The same seven sites; no store request, no read of /etc/carlos-mailer (which uid carlos cannot traverse).;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: the agent (carlos-edge.service, user carlos) fills Probes.NamedUnits from readNamedUnitsStatus: rootstate.Open(/var/lib/carlos-named-units, false, true) status.json, 64 KiB cap, any error nil; report only, nothing reads it as authority; no store request added; the same sites;rev3=census-ruling-console-addr-from-install;basis=sets Probes.ConsoleFleet from consoleFleetProbe (root public store read, edge in-memory state); no read added in this unit;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (carlos-edge.service, user carlos): the status tick also fills Probes.DemoDisk from readDemoDisk(), nil unless CARLOS_DEMO_BOX is set; statfs of /data and /run, and root's public retention record (readDemoBuilds); report only; no store request added; read sites unchanged whole:Route@10707,whole:Route@12781,whole:Route@13062,whole:Route@13420,whole:Route@6583,whole:Route@6610,whole:Route@7918 1b271f453a4718ca5fb64f513ec22acdd2550bc8cb4cfb021ea9c8ec7300df64
+internal/release/adopt.go PassFilter authority B3,E3,J1,E1,E2 Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink. E7 applies merge ruling 4: unbound no-census routes use the legacy pass and restart; ordinary candidates make no binding store call. Fixtures: TestR2UnguardedERecoveryUpdate, TestR2UnguardedERecoveryIncidentRecipe, TestPlan14ERecoveryBindingRefusalKeepsPromotedFix. E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=resolves protected route inputs before filters, recovery and dispatch on census boxes and bypasses service-owned failure opener only there;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=asks the optional pointer gate (gatePointers) once per channel group before selection and reports each group's pointer outcome to it; only the agent's fast sweep arms a gate (WithPointerGate), so under carlos adopt the gate is nil and the pass is unchanged; a gate can only leave a group out of the pass, never add one; one whole-Route site added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-hunt-release-chain-integrity;basis=a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor that admits only a strictly later stamp or the very pointer it recorded (PointerIdentity, fix round 1), which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); fix round 2: the floor's identity is the sha256 of the exact signed wrapper the pointer was verified from (set at the parse site), and a floor with no identity admits nothing at its own stamp, so the floor only refuses more; no read kind is added to the unit; CI fix: an app channel pointer is now stamped to the millisecond (pointerStampGrain) so a signer's wait past the head it replaces is at most a millisecond; the floor still admits only a strictly later stamp or the pointer it recorded, compared as time.Time, so the rule and the reads are unchanged;rev3=census-ruling-demo-disk-slice1-retention;basis=the stage check's beforeWrite is cfg.stageWriteCheck (generationWriteCheck first, unchanged, then WithBeforeStage's callback for a path that holds nothing yet); no read added in this unit registry:App@10134,registry:App@27173,registry:App@29630,registry:App@30317,registry:App@30554,registry:App@31961,registry:App@6735,registry:App@9993,registry:Hibernate@30200,registry:Host@1061,registry:Host@1426,registry:Host@30370,registry:Host@31286,registry:Host@32014,registry:Host@3413,registry:Host@3480,registry:Host@3576,registry:Host@3611,registry:UpdateSettings@9871,whole:Route@10129,whole:Route@1046,whole:Route@1164,whole:Route@1188,whole:Route@1461,whole:Route@1622,whole:Route@27168,whole:Route@2726,whole:Route@2768,whole:Route@2877,whole:Route@2901,whole:Route@2932,whole:Route@29625,whole:Route@29883,whole:Route@29905,whole:Route@29952,whole:Route@29970,whole:Route@29980,whole:Route@30218,whole:Route@30239,whole:Route@30252,whole:Route@30312,whole:Route@30338,whole:Route@30412,whole:Route@30451,whole:Route@30467,whole:Route@30495,whole:Route@30549,whole:Route@30575,whole:Route@3074,whole:Route@31328,whole:Route@31382,whole:Route@3139,whole:Route@31398,whole:Route@31905,whole:Route@31956,whole:Route@31982,whole:Route@32056,whole:Route@32091,whole:Route@32107,whole:Route@3225,whole:Route@3247,whole:Route@3347,whole:Route@4425,whole:Route@5072,whole:Route@6657,whole:Route@6679,whole:Route@6730,whole:Route@6756,whole:Route@761,whole:Route@803,whole:Route@950,whole:Route@9822,whole:Route@988,whole:Route@9936,whole:Route@9981 2dd0717b7e3467741b6f9ebab282bad96ebbde81a83e54e8b64585e5cdd50067
+internal/release/adopt.go type passConfig authority E2,E3 E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode, TestPlan14GenerationProductionModeGate, TestPlan14GenerationSnapshotPermitsFreshTree.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=stores the typed census-only root update provider and per-pass resolved input authority;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=adds the unitsToRoot bool set by RootRestartsUnits; reads nothing;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=adds the pointerGate field, set only by WithPointerGate (the agent's fast sweep); reads nothing;rev3=census-ruling-demo-disk-slice1-retention;basis=adds the beforeStage callback field, set only by WithBeforeStage (root's adopt pass); reads nothing b74606b6d50ab24289e91dbc36edf9e7058f7bceba544609bf72c67ec07c331e
+internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-offline-move-stage-refusals-339;basis=#339: copies Probes.OfflineMove into BoxMetrics.OfflineMove (json offline_move, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 6: copies Probes.NamedUnits into BoxMetrics.NamedUnits (json named_units, omitempty; private) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-seeded-create-2;basis=Copies Probes.SeedsFloor into BoxMetrics.SeedsFloor and counts it in the metrics gate; a pure copy of a value the agent filled, the same 28 read sites, no read added.;rev3=census-ruling-console-addr-from-install;basis=copies Probes.ConsoleFleet into BoxMetrics (private); no read added;rev3=census-ruling-demo-disk-slice1-retention;basis=copies Probes.DemoDisk into BoxMetrics.DemoDisk (json demo_disk, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 f001b427c01c4ee280a8d848eaaf60de952ecdfb3f2c6108f7c105f89a51efbf
+cli.go printDemoDisk legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=operator CLI (carlos status --live), not root: prints a published box snapshot's demo_disk numbers; reads only the decoded snapshot in hand data-literal@195 ed2577c68d95ca5a6ebba28e905a65115ff335bc36aecca1e2c415ed98fb6fff
+internal/host/demodisk_status.go productionDemoDiskProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos), not root: opens root's public record directory /var/lib/carlos-release/demo-retention read-only through rootstate.Open(dir, false, true) (every ancestor root-owned, not group or world writable); report only file:Open@208 f8df171d9a2ff2d96b73c63f4618d035230acc4b8f244dd7f377184686e4933f
+internal/host/demodisk_status.go readDemoBuilds legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos): reads the record 'status' from that rootstate store (descriptor read, trusted owner, 1 MiB cap) and decodes it; schema 1 or an error; report only, nothing reads it as authority file:Read@174 213c08b6d79b17ca25b94b815815bd0c7dfbeaa8664aafbfc8419fab2b2679ca
+internal/host/demoretention.go demoRetention.demoAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass (uid 0): lists the registry and keeps each demo route's Host and Version, to tell after the pass whether it adopted a demo version; decides only whether retention runs registry:Host@287,registry:Version@298,whole:Route@237,whole:Route@270 d1ca3b3d0e084d93b09023e7a0bcb6dfa496b80976362f4f5f0a0ce03c215ff8
+internal/host/demoretention.go demoRetention.demoApp legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: a route is a demo app on this demo box only when it is marked demo (IsDemo), its app is tmp-demo-*, and its account is the box's CARLOS_DEMO_ACCOUNT from host.env (demo.BoxConfig); retention never selects any other app registry:App@112,registry:App@147,registry:App@324,whole:Route@235 4af8f894c32e176fc4886d743ea6271236c3ba4e687f2b085cb9f20222550555
+internal/host/demoretention.go demoRetention.demoAppListed legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: the pending-output cleanup acts on a path only when a demo route of this box runs that account/app; a registry that does not list counts as listed so the cleanup's own read refuses the stage whole:Route@271,whole:Route@306 92b1b3bde40e55e2dd696e52516b5e375e76f663bae01cb5953eb6f3eb64efce
+internal/host/demoretention.go demoRetention.pinSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: the pin set from every source: release.BoxPins over every registry row (live link chains; Version, PrevVersion, GoodVersion, settings references), previous links, release.GenerationPins over the generations file, and root's generation ledger (productionRootGenerationPins). Strict: any source that does not read in full is an error and nothing is deleted. Agent-writable inputs (the registry, the generations file under /data) can only ADD pins, never remove one; the estimate mode (no deletion) only counts registry:App@819,registry:App@943,registry:GoodVersion@784,registry:PrevVersion@768,registry:Version@756,whole:Route@1179,whole:Route@423,whole:Route@671,whole:Route@715,whole:Route@935 6d38329b474d0f4dddbcca7d61dc8cf25becc75f7b3d1b93a222479cf239eecb
+internal/host/demoretention.go demoRetention.saveStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: reads its own previous record from the public root store /var/lib/carlos-release/demo-retention (rootstate, created root-owned 0755, file 0644) to carry the backlog's start, and writes the new record there; status only, never read back as a pin or a decision file:Read@289 5bb8a4f44a6b268632d4351409ea113646844e7224b08d3862b656172a8e28d3
+internal/host/demoretention.go demoRetention.selection legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: lists <opt>/versions (root-owned version store) and Lstats <ver>/<account>/<app> and its .manifest.json for each demo app; ENOTDIR (an ops app's file named like the account) is not present; decides which demo outputs nothing pins. Deletion is only by removeOutput through instancefs.RemoveAllBeneath (openat2 beneath, no symlinks), per app, never a version directory, and only with the adopt pass lock held file:Lstat@1302,file:ReadDir@659,registry:Version@495,whole:Route@386,whole:Route@419,whole:Route@587 ed401bfe4a1ddfeed3a492df8dedfa5b1391f229bfd93efda3e011aa5d8f29db
+internal/host/demoretention.go pinned legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: an output is pinned when a pin names it, its manifest or a path inside it, under the store's spelling or the real path of its directory (EvalSymlinks of the root-owned version directory) file:EvalSymlinks@151 86cb92546860e0251e2e9f0c46feab68ab83d7069f2285d3f260789c6f07ca6b
+internal/host/demoretention.go previousLinkPins legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: every <opt>/previous link (root-owned) is a pin at its target and its real path, as release.LivePins reads them for the sweep; an unreadable link is an error and nothing is deleted file:EvalSymlinks@559,file:ReadDir@127,file:Readlink@373 6f66df0648b22a40d3d351fd46cd8d67c2629b02ab8399aa9660355483bc2afe
+internal/host/demoretention.go productionDemoRetention legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass: demo.BoxConfig from host.env (root-owned), the version store and generations file paths, root's generation ledger, and the record store opener rootstate.Open(/var/lib/carlos-release/demo-retention, true, true) file:Open@515 3717758213e219b3daee5301239dae3e5b1a433af47546e950a074ad334a91db
+internal/host/statfs_unix.go filesystemRoom legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=the agent (user carlos): statfs of /data and /run for status and the disk alert; numbers only file:Statfs@102 bc0b7000ddb11715edd58a955d7950a1c19bfacb315b47d9575f7ac0a0a4a732
+internal/release/adopt.go passConfig.stageWriteCheck legacy accepted-legacy accepted-legacy;rev3=census-ruling-demo-disk-slice1-retention;basis=root adopt pass and agent passes: generationWriteCheck unchanged first; then, only when WithBeforeStage is set (root's adopt pass only), Lstat of the VersionPath about to be written and the callback when nothing is there; an error fails the stage (nothing written, route unchanged) file:Lstat@233 92aa097f88dc4c665a3564a8cd981537d2394857967be73230a0ef39648c48fd
+@coverage . a1a96539bb89f0a450ee4e9789aa3de12fe26862edf5669cd5448257e237efa7
+@coverage internal/host f9e0ff550888bad3d68010bd4ce0ce340828d7954564a49600bf74629c6f585a
+@coverage internal/release ea6cff951c883e50055f1348e69a4fac49d7bce8579d1d9ad179e049addeeb51
+@coverage internal/status 36efea008597955202072ed20f65880ac10da54c55ac060a925539bbca0e414e