carlos / platform Public

census: named-units-param-114 overlay and card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7b440f71fd4b23d175524397652176ffbfac2e52 parent 0108032
3 files changed, +108 −0
  • docs/superpowers/notes/census-proposal-named-units-param-114.md +57 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv +50 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-named-units-param-114.md b/docs/superpowers/notes/census-proposal-named-units-param-114.md
new file mode 100644
index 000000000..b23c619f7
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-named-units-param-114.md
@@ -0,0 +1,57 @@
+# Census approval: named-units-param-114
+
+Ruling `census-ruling-named-units-param-114`. The independent reviewer approves or rejects every change below, 11 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/appconfig/unitsync.go` `applyStamped` | body | unchanged (1) | named-units-param-114 Task 5: each print site also records the host's final delivery state in the pass's outcome map (say); no read added or changed |
+| `internal/host/agent.go` `runAdoptUnderRootRelease` | body | unchanged (4) | named-units-param-114 Task 4/5: after the restart-only return, calls 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) and writeNamedUnitsStatus (public root store /var/lib/carlos-named-units) 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 |
+| `internal/host/agent.go` `statusLoop` | body | unchanged (7) | 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 |
+| `internal/host/proofnamed.go` `proofBindingSource.record` | body | unchanged (0) | named-units-param-114 Task 1/2: the declaration decode moved to namedunits.Decode (same DisallowUnknownFields, one document, schema 1, host/app/account checks, errors still os.ErrPermission); the guard comparison uses guardNames over the marker bytes add() already read; add(marker), its error handling and its binding evidence unchanged; no read added |
+| `internal/status/snapshot.go` `CollectBox` | body | unchanged (28) | 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 |
+| `internal/appconfig/sync.go` `SyncWithCallbacks` | sites | +registry:Host ×7 | named-units-param-114 Task 5: +registry:Host x7 are the per-pass outcome tracker keyed by Host of rows already listed (abandon/emit on the tripwire and host-write exits); no new read source, no bucket request |
+| `internal/appconfig/sync.go` `prepareHost` | sites | -file:ReadFile, -registry:App ×4, -registry:Environment ×2, -registry:Host ×11 | named-units-param-114 Task 5: now a wrapper over prepareHostSaying, which holds its reads unchanged (moved, none added) and reports through the outcome tracker |
+| `internal/appconfig/unitsync.go` `planStamped` | sites | +whole:Route | named-units-param-114 Task 5: +whole:Route hands the rows already listed to newUnitOutcomes; no new read |
+| `internal/appconfig/unitsync.go` `prepareStamped` | sites | +registry:Host ×13 | named-units-param-114 Task 5: +registry:Host x13 record the final state keyed by Host of the row being prepared; no new read |
+
+Envelopes re-pinned: `.`, `internal/appconfig`, `internal/host`, `internal/hostenv`, `internal/namedunits`, `internal/status`.
+
+Removed units: the scan finds neither the declaration nor any of its sites.
+
+| unit | recorded disposition | basis | what changed |
+|---|---|---|---|
+| `internal/host/unitops.go` `RunSystemNamedUnits` | legacy, task accepted-legacy | accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: carlos system named-units install <file>: refuses unless euid 0, reads <file> (file:ReadFile of an operator-given path, as root, by root's own choice at the command line) and hands the bytes to InstallNamedUnits; prints the installed path | removed: renamed RunSystemNamedUnitsInstall (Task 7), same euid check and ReadFile of the operator-given file; see that unit |
+
+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.
+
+A removed unit's recorded disposition and basis are in its table above. For a removed unit or a retired envelope, confirm from the diff that the code is deleted and not moved: a read that moved shows on this card as a change to the unit that took it, and a unit moved whole shows as a new unit, a decision. Reject if a check, refusal or validation that root relies on goes with the deleted code and its callers' changes on this card do not account for that.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/appconfig/unitsync.go` `applyStamped`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units, one reload if a marker exists, per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again against the pass's snapshot, then restart and clear the marker; drift reported for unmarked units; the per-mutation re-reads are gone (the file is serialised with the pass by the flock); reads whole Route of the prepared work
+- `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
+- `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).
+- `internal/host/proofnamed.go` `proofBindingSource.record`: authority, task B3. Basis: rev3=PROPOSED-p3;identity=root adoption and rollback proof binder uid 0;basis=binds named-unit provenance to boot-stable file evidence and preserves the original no-census hash shape
+- `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.
+- `internal/appconfig/sync.go` `SyncWithCallbacks`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=takes ops.Lock (the config-sync flock) for the pass; the declaration file is read once under it (planStamped) and that snapshot serves the whole pass; a host the snapshot names, or whose env file a surviving carlos drop-in still loads, is admitted only as its own declaration's deliverable stamp (declaredHostRefusal): any other row for it is refused before any bundle is read and before either writer, its env file untouched; with the declaration file unreadable nothing is delivered to any host and nothing reaped; one tripwire re-reads the file just before the first mutation and a change abandons the pass; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and hosts a surviving drop-in names; reads Host, Backing and Unit of rows already listed
+- `internal/appconfig/sync.go` `prepareHost`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the read, hostname rail, key-loss guard and render half of the former syncHostClaimed (file:ReadFile of <envDir>/<host>.env); reads moved from it, none added; shared by the stamped path
+- `internal/appconfig/unitsync.go` `planStamped`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations, one read of /etc/carlos/named-units.json through rootRead under the pass's flock, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an absent file declares nothing, an empty or invalid file refuses all), the hosts surviving drop-ins still name (referencedEnvHosts, each drop-in read through rootRead), then ops.Probe (one systemctl show), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed
+- `internal/appconfig/unitsync.go` `prepareStamped`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again against the pass's snapshot before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), writePending before any mutation, commitHost of <envDir>/<host>.env, writeDropIn; the per-mutation re-reads are gone; reads Host and Unit of the row
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/appconfig/sync.go:prepareHostSaying`: reads +file:ReadFile, +registry:App ×4, +registry:Environment ×2, +registry:Host ×11, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/appconfig/unitsync.go:newUnitOutcomes`: reads +registry:Host, +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/host/namedunitsfetch.go:namedUnitsFetch.readDst`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/host/namedunitsfetch.go:productionDeclarationBindingInUse`: reads +file:Open ×2; written legacy, accepted-legacy, frozen
+- new `internal/host/namedunitsfetch.go:writeNamedUnitsStatus`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/host/namedunitsprobe.go:readNamedUnitsStatus`: reads +file:Open, +file:Read; written legacy, accepted-legacy, frozen
+- new `internal/host/unitops.go:RunSystemNamedUnitsInstall`: reads +file:ReadFile; written legacy, accepted-legacy, frozen
+- new `internal/host/unitops.go:consoleGuardHost`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
+- new `internal/host/unitops.go:installNamedUnitsLocked`: reads +file:Open, +file:OpenFile; written legacy, accepted-legacy, frozen
+- new `system_namedunits.go:runNamedUnitsPut`: reads +file:ReadFile; written legacy, accepted-legacy, frozen
+- quiet `internal/host/unitops.go:InstallNamedUnits`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+
+Seal: `5d4a5eea79394145fdd59aa5eb87115cc1ee396e02e0ab4b21decd2b3a10e3b4` → `e0d5d675cd54d8228d36e91f0b2888fce8563f0fa15eb758f260e08db6791b60`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-named-units-param-114.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 33351eace..1a10240a1 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -252,3 +252,4 @@ plan14-root-reads-staticcheck-sa1012.tsv 5fcd060180e923773dad3faee7cc60ee250779a
plan14-root-reads-staticcheck-sa1019.tsv f9be26c06eb1c844b91a75f65faa51997048cb2900f3ed078be2ae28c65c0e98
plan14-root-reads-small-fixes-1246-1248.tsv c6d366dcf2211b714977b7a69180289555b362dfe5f36a5780af90b5ece82998
plan14-root-reads-edge-ppv2-idle.tsv 5d4a5eea79394145fdd59aa5eb87115cc1ee396e02e0ab4b21decd2b3a10e3b4
+plan14-root-reads-named-units-param-114.tsv e0d5d675cd54d8228d36e91f0b2888fce8563f0fa15eb758f260e08db6791b60
diff --git a/internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv b/internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv
new file mode 100644
index 000000000..97e9d5878
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv
@@ -0,0 +1,50 @@
+# Census overlay named-units-param-114, written by census-propose (#369). census-ruling-named-units-param-114, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-named-units-param-114.md.
+# 5 body, 4 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 1 removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired.
+# 11 new dispositions: 0 reads re-frozen at their disposition with the claim, 10 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+@legacy 1d440122ea3300122a9509ad938689c8c0b08bd83526eeff2c02828be2dfeb97 internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units, one reload if a marker exists, per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again against the pass's snapshot, then restart and clear the marker; drift reported for unmarked units; the per-mutation re-reads are gone (the file is serialised with the pass by the flock); reads whole Route of the prepared work;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: each print site also records the host's final delivery state in the pass's outcome map (say); no read added or changed whole:Route@2504 499134a437090a29b8ac0445a043d3eeb771e945690a5ab18688137b95b58583
+@legacy 57dde2005bc52b46ef3f91538863c5898308c6e8966b1603b728525430c6004f 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 whole:Route@10554,whole:Route@12628,whole:Route@12909,whole:Route@13267,whole:Route@6583,whole:Route@6610,whole:Route@7918 7aa9b53689106770e14786f56895c1a512e80d6795339eb011ca05b053dd2ecc
+@legacy fbad51a3f42851982631ae927c9fbdc2925130f6ee982d0ec4ec73e822cb0761 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 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 accc8f2f1ffdad842be5f7cc33a3c5d342338f6985f3a348d291f933282b4f15
+@legacy 68f15b1d45f998b87bcc9165cddb294698152a758860d4176fdad257feea8b83 internal/appconfig/sync.go prepareHostSaying legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (named-units-param-114 Task 5): the former prepareHost body unchanged (file:ReadFile of <envDir>/<host>.env, hostname rail, key-loss guard, render), plus outcome reporting; reads moved, none added file:ReadFile@654,registry:App@3638,registry:App@3659,registry:App@3990,registry:App@4048,registry:Environment@3026,registry:Environment@3090,registry:Host@3351,registry:Host@3713,registry:Host@382,registry:Host@399,registry:Host@4158,registry:Host@417,registry:Host@436,registry:Host@461,registry:Host@508,registry:Host@625,registry:Host@753,whole:Route@4118 ad958e2e4c0e472bac54a776b3ec79773bc937ab214335cc2d0af6dbbcb06aa0
+@legacy 3634e925f4591361148c207beb7a50865562ee529b98c926492059689b12a286 internal/appconfig/unitsync.go newUnitOutcomes legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 5): builds the per-pass outcome tracker from the declarations snapshot already loaded and the rows already listed; reads Host of those rows; no file, bucket or socket read registry:Host@359,whole:Route@303,whole:Route@326,whole:Route@341 4d14a359eb0e8066114878f08efbaf0a817d03f426c48e64e2c71d37f0f90b9b
+@legacy b50318900a356854753a98df7d9703f9f670138a7c20887b78bfbcf745ba415a internal/host/namedunitsfetch.go namedUnitsFetch.readDst legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root reads the installed /etc/carlos/named-units.json through rootstate.OpenTrustedFile (root-owned, no symlink, not group/other writable) under the config-sync flock to compare bytes and find the hosts to hold for; a failure holds the install file:ReadAll@233 92d951e8a0bf60a2d9046df932a0663a64cc2effc0f59d3db457a10bec3cfafc
+@legacy 7515728b0a2dc39b1c7b7cea42365ef2ba0038e76911ad2a4c6580b6525dc172 internal/host/namedunitsfetch.go productionDeclarationBindingInUse legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root opens its own rollback journal store (rootstate.Open of /var/lib/carlos-release/private/restarts, private) and its root history store, read-only, to decide whether the release path may still compare the declaration file's identity for a host; no side effects; an error holds the install file:Open@101,file:Open@317 7c6ad46ce025e3d8d4951a3eaeb10f887e31a77b5285fb15cd177207d8b6da21
+@legacy 2b8b9114f91b20e49696c3f7ce6aaa77079c1106268f8f48b32f8451622628f1 internal/host/namedunitsfetch.go writeNamedUnitsStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root writes status.json in its public root store /var/lib/carlos-named-units (rootstate.Open create, public); the open is root's own directory; the record is report only file:Open@137 49264ef4c3af944769de50b8cf70d70740170631626ae91a415000f6ee3e6e66
+@legacy 3a0ab0fd10b5abe212ed95b9382d94230e6d9e9459580ab3b6bd94745b103b53 internal/host/namedunitsprobe.go readNamedUnitsStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 6): the agent (user carlos) reads root's public status.json (rootstate.Open read-only), 64 KiB cap; report only file:Open@76,file:Read@172 f498dbdbb4728957854c78f2af35406b0a7f61cf07a6b1d51b34a5d08a58b917
+@legacy 6597251f71e8dbc9c1fcc5afb3a8b6e34bd800c2b53bdc8697fe419abff5e9dd internal/host/unitops.go RunSystemNamedUnitsInstall legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 7, renamed from RunSystemNamedUnits): carlos system named-units install <file>: refuses unless euid 0, reads the operator-given <file> by root's own choice at the command line and hands it to InstallNamedUnits, which now also runs both decoders and the console guard rule under the lock file:ReadFile@278 2784fefe2b645bfc37b2b01ebbed229e34c7be5181a0700d51c6306fc6ca7440
+@legacy 38194b631c58983449bd3276687fa1a415c16e0300d2b0bf565537fb2a304140 internal/host/unitops.go consoleGuardHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 2/4): root's trusted read (rootstate.OpenTrustedFile, MaxRecord cap) of <opt>/system/guard/console-ready.json, the marker root's guard-arm writes; absent is unguarded, any other failure or a marker naming no valid live host is an error that refuses the install; the host is taken only when the bytes equal release.LiveLink(opt, host) file:ReadAll@276 d241a14edeffd919f3589bb9a2f776037d3be0fef2570b391c3f2fa51f60718f
+@legacy 6f3489594bf332c0512090b44213fe6b409c0d7ebf46e50419595d028ca419aa internal/host/unitops.go installNamedUnitsLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 2): the former InstallNamedUnits write half unchanged: O_EXCL temp file beside /etc/carlos/named-units.json, fsync, rename, directory open and fsync; called only with the config-sync flock held and after validation file:Open@587,file:OpenFile@93 4332bb33d79e9793aba8f99b9cbf7721483d279a605e42925a93ec6830afac75
+@legacy 3e219e637c26f4f0015314cf71d95f5572b5e017f8d896840a308381913a8fae system_namedunits.go runNamedUnitsPut legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 7): operator CLI, not root, off the box: reads the operator-given declaration file and validates it before any AWS call; not in the root binary's root paths file:ReadFile@412 f13d985d5c19ed627e5e8028733bb30481f36e00dc8804ac4fa70f44aad14a50
+@legacy d2255e525047a8f1e77bc83d6c2dc2b7395369965baad0e01531129a149bf8bd internal/appconfig/sync.go SyncWithCallbacks legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=takes ops.Lock (the config-sync flock) for the pass; the declaration file is read once under it (planStamped) and that snapshot serves the whole pass; a host the snapshot names, or whose env file a surviving carlos drop-in still loads, is admitted only as its own declaration's deliverable stamp (declaredHostRefusal): any other row for it is refused before any bundle is read and before either writer, its env file untouched; with the declaration file unreadable nothing is delivered to any host and nothing reaped; one tripwire re-reads the file just before the first mutation and a change abandons the pass; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and hosts a surviving drop-in names; reads Host, Backing and Unit of rows already listed;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +registry:Host x7 are the per-pass outcome tracker keyed by Host of rows already listed (abandon/emit on the tripwire and host-write exits); no new read source, no bucket request data-literal@14354,registry:App@5400,registry:App@8364,registry:Backing@10307,registry:Backing@1031,registry:Backing@14303,registry:Environment@5408,registry:Environment@8372,registry:Environment@8629,registry:Host@10427,registry:Host@1128,registry:Host@11324,registry:Host@11371,registry:Host@11864,registry:Host@11877,registry:Host@1222,registry:Host@12232,registry:Host@1257,registry:Host@13312,registry:Host@13382,registry:Host@13423,registry:Host@13436,registry:Host@13519,registry:Host@13572,registry:Host@13585,registry:Host@14471,registry:Host@14538,registry:Host@2335,registry:Host@5216,registry:Host@8074,registry:Host@8118,registry:Host@8131,registry:Host@8711,registry:Host@8724,registry:Unit@13321,whole:Route@1000,whole:Route@1024,whole:Route@10353,whole:Route@12730,whole:Route@13684,whole:Route@14548,whole:Route@15160,whole:Route@15816,whole:Route@1608,whole:Route@2245,whole:Route@2295,whole:Route@5118,whole:Route@5143,whole:Route@5158,whole:Route@5281,whole:Route@5395,whole:Route@7971,whole:Route@7996,whole:Route@8011,whole:Route@8237,whole:Route@8359 87dfaf73f93b6c1bf86bb0eb80ad397933723d6da6a7de3221fac43b5df7e002
+@legacy 81d49c5e4e5245ae59f8523318caca5a2b9a28f3c7657da82fea997d449a926e internal/appconfig/sync.go prepareHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the read, hostname rail, key-loss guard and render half of the former syncHostClaimed (file:ReadFile of <envDir>/<host>.env); reads moved from it, none added; shared by the stamped path;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: now a wrapper over prepareHostSaying, which holds its reads unchanged (moved, none added) and reports through the outcome tracker whole:Route@164 c6dc65f72f33d6d60e397277e14b1394468a06b6b1d280f289f48c4af33c5355
+@legacy 3c63e8c11dc680b6b81f4f2944e693d48624685c33e3f0595ee2a58ffc70831a internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations, one read of /etc/carlos/named-units.json through rootRead under the pass's flock, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an absent file declares nothing, an empty or invalid file refuses all), the hosts surviving drop-ins still name (referencedEnvHosts, each drop-in read through rootRead), then ops.Probe (one systemctl show), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +whole:Route hands the rows already listed to newUnitOutcomes; no new read registry:Host@527,registry:Host@596,registry:Host@683,registry:Host@731,registry:Host@755,registry:Host@781,registry:Host@850,registry:Unit@650,registry:Unit@815,registry:Unit@840,whole:Route@1357,whole:Route@293,whole:Route@463,whole:Route@497,whole:Route@521,whole:Route@538,whole:Route@568 2dfc9e13cc921ed661dd8fef7a300744c07886b9a9aa666446b08ffec0187fff
+@legacy bcfaa5396bfee80f45125e97eb8b3c033bac15390175729a6391a60af6ae3144 internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again against the pass's snapshot before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), writePending before any mutation, commitHost of <envDir>/<host>.env, writeDropIn; the per-mutation re-reads are gone; reads Host and Unit of the row;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +registry:Host x13 record the final state keyed by Host of the row being prepared; no new read registry:Host@1031,registry:Host@1044,registry:Host@1577,registry:Host@1590,registry:Host@1836,registry:Host@1849,registry:Host@188,registry:Host@2147,registry:Host@2160,registry:Host@2344,registry:Host@2357,registry:Host@2488,registry:Host@2501,registry:Host@2708,registry:Host@2909,registry:Host@3015,registry:Host@3028,registry:Host@3167,registry:Host@3232,registry:Host@3380,registry:Host@3393,registry:Host@3505,registry:Host@3586,registry:Host@3640,registry:Host@476,registry:Host@489,registry:Host@669,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@593 06af2496b1d7574d339d3735487b8f11807f1c145c0479bd29addfd8143c15cf
+internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units, one reload if a marker exists, per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again against the pass's snapshot, then restart and clear the marker; drift reported for unmarked units; the per-mutation re-reads are gone (the file is serialised with the pass by the flock); reads whole Route of the prepared work;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: each print site also records the host's final delivery state in the pass's outcome map (say); no read added or changed whole:Route@2504 499134a437090a29b8ac0445a043d3eeb771e945690a5ab18688137b95b58583
+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 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) and writeNamedUnitsStatus (public root store /var/lib/carlos-named-units) 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 whole:Route@11921,whole:Route@19217,whole:Route@19253,whole:Route@8425 5648230b9f8d3e4048793e3089341565ca199c1e81cf3d5f2ade65d94fd56605
+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 whole:Route@10554,whole:Route@12628,whole:Route@12909,whole:Route@13267,whole:Route@6583,whole:Route@6610,whole:Route@7918 7aa9b53689106770e14786f56895c1a512e80d6795339eb011ca05b053dd2ecc
+internal/host/proofnamed.go proofBindingSource.record authority B3 rev3=PROPOSED-p3;identity=root adoption and rollback proof binder uid 0;basis=binds named-unit provenance to boot-stable file evidence and preserves the original no-census hash shape;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 1/2: the declaration decode moved to namedunits.Decode (same DisallowUnknownFields, one document, schema 1, host/app/account checks, errors still os.ErrPermission); the guard comparison uses guardNames over the marker bytes add() already read; add(marker), its error handling and its binding evidence unchanged; no read added 21a528f71bb3be3f53468c641de4dbbb1205abfe29ffb0a394f3545934aa9a72
+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 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 accc8f2f1ffdad842be5f7cc33a3c5d342338f6985f3a348d291f933282b4f15
+internal/appconfig/sync.go prepareHostSaying legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (named-units-param-114 Task 5): the former prepareHost body unchanged (file:ReadFile of <envDir>/<host>.env, hostname rail, key-loss guard, render), plus outcome reporting; reads moved, none added file:ReadFile@654,registry:App@3638,registry:App@3659,registry:App@3990,registry:App@4048,registry:Environment@3026,registry:Environment@3090,registry:Host@3351,registry:Host@3713,registry:Host@382,registry:Host@399,registry:Host@4158,registry:Host@417,registry:Host@436,registry:Host@461,registry:Host@508,registry:Host@625,registry:Host@753,whole:Route@4118 ad958e2e4c0e472bac54a776b3ec79773bc937ab214335cc2d0af6dbbcb06aa0
+internal/appconfig/unitsync.go newUnitOutcomes legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 5): builds the per-pass outcome tracker from the declarations snapshot already loaded and the rows already listed; reads Host of those rows; no file, bucket or socket read registry:Host@359,whole:Route@303,whole:Route@326,whole:Route@341 4d14a359eb0e8066114878f08efbaf0a817d03f426c48e64e2c71d37f0f90b9b
+internal/host/namedunitsfetch.go namedUnitsFetch.readDst legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root reads the installed /etc/carlos/named-units.json through rootstate.OpenTrustedFile (root-owned, no symlink, not group/other writable) under the config-sync flock to compare bytes and find the hosts to hold for; a failure holds the install file:ReadAll@233 92d951e8a0bf60a2d9046df932a0663a64cc2effc0f59d3db457a10bec3cfafc
+internal/host/namedunitsfetch.go productionDeclarationBindingInUse legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root opens its own rollback journal store (rootstate.Open of /var/lib/carlos-release/private/restarts, private) and its root history store, read-only, to decide whether the release path may still compare the declaration file's identity for a host; no side effects; an error holds the install file:Open@101,file:Open@317 7c6ad46ce025e3d8d4951a3eaeb10f887e31a77b5285fb15cd177207d8b6da21
+internal/host/namedunitsfetch.go writeNamedUnitsStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 4): root writes status.json in its public root store /var/lib/carlos-named-units (rootstate.Open create, public); the open is root's own directory; the record is report only file:Open@137 49264ef4c3af944769de50b8cf70d70740170631626ae91a415000f6ee3e6e66
+internal/host/namedunitsprobe.go readNamedUnitsStatus legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 6): the agent (user carlos) reads root's public status.json (rootstate.Open read-only), 64 KiB cap; report only file:Open@76,file:Read@172 f498dbdbb4728957854c78f2af35406b0a7f61cf07a6b1d51b34a5d08a58b917
+internal/host/unitops.go RunSystemNamedUnitsInstall legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 7, renamed from RunSystemNamedUnits): carlos system named-units install <file>: refuses unless euid 0, reads the operator-given <file> by root's own choice at the command line and hands it to InstallNamedUnits, which now also runs both decoders and the console guard rule under the lock file:ReadFile@278 2784fefe2b645bfc37b2b01ebbed229e34c7be5181a0700d51c6306fc6ca7440
+internal/host/unitops.go consoleGuardHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 2/4): root's trusted read (rootstate.OpenTrustedFile, MaxRecord cap) of <opt>/system/guard/console-ready.json, the marker root's guard-arm writes; absent is unguarded, any other failure or a marker naming no valid live host is an error that refuses the install; the host is taken only when the bytes equal release.LiveLink(opt, host) file:ReadAll@276 d241a14edeffd919f3589bb9a2f776037d3be0fef2570b391c3f2fa51f60718f
+internal/host/unitops.go installNamedUnitsLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 2): the former InstallNamedUnits write half unchanged: O_EXCL temp file beside /etc/carlos/named-units.json, fsync, rename, directory open and fsync; called only with the config-sync flock held and after validation file:Open@587,file:OpenFile@93 4332bb33d79e9793aba8f99b9cbf7721483d279a605e42925a93ec6830afac75
+system_namedunits.go runNamedUnitsPut legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-units-param-114;basis=new (Task 7): operator CLI, not root, off the box: reads the operator-given declaration file and validates it before any AWS call; not in the root binary's root paths file:ReadFile@412 f13d985d5c19ed627e5e8028733bb30481f36e00dc8804ac4fa70f44aad14a50
+internal/appconfig/sync.go SyncWithCallbacks legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=takes ops.Lock (the config-sync flock) for the pass; the declaration file is read once under it (planStamped) and that snapshot serves the whole pass; a host the snapshot names, or whose env file a surviving carlos drop-in still loads, is admitted only as its own declaration's deliverable stamp (declaredHostRefusal): any other row for it is refused before any bundle is read and before either writer, its env file untouched; with the declaration file unreadable nothing is delivered to any host and nothing reaped; one tripwire re-reads the file just before the first mutation and a change abandons the pass; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and hosts a surviving drop-in names; reads Host, Backing and Unit of rows already listed;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +registry:Host x7 are the per-pass outcome tracker keyed by Host of rows already listed (abandon/emit on the tripwire and host-write exits); no new read source, no bucket request data-literal@14354,registry:App@5400,registry:App@8364,registry:Backing@10307,registry:Backing@1031,registry:Backing@14303,registry:Environment@5408,registry:Environment@8372,registry:Environment@8629,registry:Host@10427,registry:Host@1128,registry:Host@11324,registry:Host@11371,registry:Host@11864,registry:Host@11877,registry:Host@1222,registry:Host@12232,registry:Host@1257,registry:Host@13312,registry:Host@13382,registry:Host@13423,registry:Host@13436,registry:Host@13519,registry:Host@13572,registry:Host@13585,registry:Host@14471,registry:Host@14538,registry:Host@2335,registry:Host@5216,registry:Host@8074,registry:Host@8118,registry:Host@8131,registry:Host@8711,registry:Host@8724,registry:Unit@13321,whole:Route@1000,whole:Route@1024,whole:Route@10353,whole:Route@12730,whole:Route@13684,whole:Route@14548,whole:Route@15160,whole:Route@15816,whole:Route@1608,whole:Route@2245,whole:Route@2295,whole:Route@5118,whole:Route@5143,whole:Route@5158,whole:Route@5281,whole:Route@5395,whole:Route@7971,whole:Route@7996,whole:Route@8011,whole:Route@8237,whole:Route@8359 87dfaf73f93b6c1bf86bb0eb80ad397933723d6da6a7de3221fac43b5df7e002
+internal/appconfig/sync.go prepareHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the read, hostname rail, key-loss guard and render half of the former syncHostClaimed (file:ReadFile of <envDir>/<host>.env); reads moved from it, none added; shared by the stamped path;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: now a wrapper over prepareHostSaying, which holds its reads unchanged (moved, none added) and reports through the outcome tracker whole:Route@164 c6dc65f72f33d6d60e397277e14b1394468a06b6b1d280f289f48c4af33c5355
+internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations, one read of /etc/carlos/named-units.json through rootRead under the pass's flock, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an absent file declares nothing, an empty or invalid file refuses all), the hosts surviving drop-ins still name (referencedEnvHosts, each drop-in read through rootRead), then ops.Probe (one systemctl show), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +whole:Route hands the rows already listed to newUnitOutcomes; no new read registry:Host@527,registry:Host@596,registry:Host@683,registry:Host@731,registry:Host@755,registry:Host@781,registry:Host@850,registry:Unit@650,registry:Unit@815,registry:Unit@840,whole:Route@1357,whole:Route@293,whole:Route@463,whole:Route@497,whole:Route@521,whole:Route@538,whole:Route@568 2dfc9e13cc921ed661dd8fef7a300744c07886b9a9aa666446b08ffec0187fff
+internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again against the pass's snapshot before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), writePending before any mutation, commitHost of <envDir>/<host>.env, writeDropIn; the per-mutation re-reads are gone; reads Host and Unit of the row;rev3=census-ruling-named-units-param-114;basis=named-units-param-114 Task 5: +registry:Host x13 record the final state keyed by Host of the row being prepared; no new read registry:Host@1031,registry:Host@1044,registry:Host@1577,registry:Host@1590,registry:Host@1836,registry:Host@1849,registry:Host@188,registry:Host@2147,registry:Host@2160,registry:Host@2344,registry:Host@2357,registry:Host@2488,registry:Host@2501,registry:Host@2708,registry:Host@2909,registry:Host@3015,registry:Host@3028,registry:Host@3167,registry:Host@3232,registry:Host@3380,registry:Host@3393,registry:Host@3505,registry:Host@3586,registry:Host@3640,registry:Host@476,registry:Host@489,registry:Host@669,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@593 06af2496b1d7574d339d3735487b8f11807f1c145c0479bd29addfd8143c15cf
+@remove internal/host/unitops.go InstallNamedUnits
+@removed internal/host/unitops.go InstallNamedUnits H3 census-ruling-named-units-param-114;basis=quiet (Task 2/4): reads moved to installNamedUnitsLocked and consoleGuardHost; it now validates, takes the flock, checks the guard rule under it, then writes
+@remove internal/host/unitops.go RunSystemNamedUnits
+@removed internal/host/unitops.go RunSystemNamedUnits H3 census-ruling-named-units-param-114;absent;basis=removed: renamed RunSystemNamedUnitsInstall (Task 7), same euid check and ReadFile of the operator-given file; see that unit
+@coverage . 68b0082c53fa77b3d7a85bdbb819954325ba3ea4134803f4c6294dabea4fd31d
+@coverage internal/appconfig 9c20b044289405780490e46fadd8b8eb9ca560b4e1a31a0401df9e4089ec4d3e
+@coverage internal/host 82460ff2c81faaf6018a9d6e85b90fedede0299b2eec0a0e1e4f4efbde86572e
+@coverage internal/hostenv 6aff95a4e138f3d5a61a3a1c732a481d3641254cde0d045a713f39fe049ac1e7
+@coverage internal/namedunits 3589b17966b77bf77f4d5e8c03fac3432b24f7259095c1cb7cb360940e9c5a1a
+@coverage internal/status 8fc23b0f56d03402b1dd060e2c4d6ad11cea8e27b25b1222a9b706a8e6d019ec