| index 97e9d5878..d9cd41c23 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-named-units-param-114.tsv |
| @@ -2,7 +2,7 @@ |
| # 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 671910e8a3f546f23da131724151d34a9204dc955ee974955a56224d51c9e12b 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); on a failed daemon-reload it also refuses, silently, the unmarked units whose planning probe (plan.probe, already taken) shows drift, through refuseDrifted, the drift check moved out of its tail; no read added or changed whole:Route@2770 9c514e399b294faf245f3345f03b26f7d6d719b66c84cc7aaa8b850531dd88dd |
| @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 |
| @@ -19,8 +19,8 @@ |
| @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/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); on a failed daemon-reload it also refuses, silently, the unmarked units whose planning probe (plan.probe, already taken) shows drift, through refuseDrifted, the drift check moved out of its tail; no read added or changed whole:Route@2770 9c514e399b294faf245f3345f03b26f7d6d719b66c84cc7aaa8b850531dd88dd |
| +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 whole:Route@11764,whole:Route@19060,whole:Route@19096,whole:Route@8425 fd20da7a085fa4f781072fab3929b64395d2b06dfd230dabe79195f82cdb582b |
| 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 |
| @@ -42,9 +42,9 @@ internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-le |
| @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 . 033c7cd2f5f3a746f5a11f3705cbac8cba973a374d73165dcf9eae2bdc02d1bd |
| +@coverage internal/appconfig 615258a24520de307f0d4859029dfbfdd1d3db0fe851d3bd73ed3aaf042b47b8 |
| +@coverage internal/host 7272e9a9fd2cd9b06c440414f70ecc3100f5ac9f8e20780134317d464ef2d3eb |
| @coverage internal/hostenv 6aff95a4e138f3d5a61a3a1c732a481d3641254cde0d045a713f39fe049ac1e7 |
| -@coverage internal/namedunits 3589b17966b77bf77f4d5e8c03fac3432b24f7259095c1cb7cb360940e9c5a1a |
| +@coverage internal/namedunits 808a480231da942e36ea1cda4968be06942374fa098d488cfa220304dd593642 |
| @coverage internal/status 8fc23b0f56d03402b1dd060e2c4d6ad11cea8e27b25b1222a9b706a8e6d019ec |