carlos / platform Public

census: re-propose w6-ingress-drain after the armed-box dry check

6c818b56 runs the guard's dry check before the drain ask only when
host.env arms the drain (CARLOS_REGION_HA on, CARLOS_INGRESS_TARGET_GROUPS
set, read by root through the ingressArmed hook). The install and
restoreFiles claims now say so and name the two root env reads;
internal/host re-pinned. Same 32 units.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 59d6ec8efbaf5b6abd2ddf3b9e7230b2918adcb4 parent 6c818b5
3 files changed, +7 −7
  • docs/superpowers/notes/census-claims-w6-ingress-drain.tsv +2 −2
  • docs/superpowers/notes/census-proposal-w6-ingress-drain.md +2 −2
  • internal/provision/testdata/plan14-root-reads-w6-ingress-drain.tsv +3 −3

CI passed — run details

Intent

Human

<task-notification> <task-id>a74e2bef06f253537</task-id> <tool-use-id>toolu_01Rrx8q4zMAbMNCfa5U24pcc</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/a74e2bef06f253537.output</output-file> <status>completed</status> <summary>Agent "W6 final review fix wave" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: fixed and committed as 6c818b56, on top of the merge (the branch already had it plus one later commit from another agent). Cause: my F3 dry check (`refusalsBeforeDrain`) ran on every box, so on a box with no drain configured the guard refused before the quiesce. The three failing tests pin the old behaviour: the guard refuses at the rename, after the quiesce, and the paused passes are started again. Fix: the dry check now runs only when host.env sets the box up for the drain (`CARLOS_REGION_HA` on and `CARLOS_INGRESS_TARGET_GROUPS` set). It reads that through a new `ingressArmed` hook, nil in tests unless a test sets it. Other boxes refuse exactly as before, and the guard's own recheck at the rename is unchanged. The F3 test case for a box with the drain set up now turns that on explicitly. Tests: every test in `systemapply*_test.go` and `activation*_test.go` passes, including the three that failed in CI. `go vet` on internal/host passes with and without `-tags rootrunner`, and internal/host builds for darwin and windows. I did not re-run the whole internal/host package. Report: the report file (`final-fixes-report.md`) has not been updated for this follow-up.</result> <usage><subagent_tokens>273751</subagent_tokens><tool_uses>7</tool_uses><duration_ms>228120</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>ab52bb4ec8d87f198</task-id> <tool-use-id>toolu_01LA3Lqoj593AA94qbktdfxK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/ab52bb4ec8d87f198.output</output-file> <status>completed</status> <summary>Agent "Implement W6 Task 11 (census)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>I merged main and re-chained the census. Nothing is pushed. One problem: someone else has uncommitted edits in this worktree that break `go vet` on `internal/host`. **Commits:** - 02dce472 `merge origin/main into w6-ingress-drain`: a merge commit bringing in main up to bd2e9dfa. The fetch went through with no lock problem. - b8711344 `census: re-chain w6-ingress-drain after merging main`: `make census-propose NAME=w6-ingress-drain` rerun with the same claims file. The card has the same 32 units. The envelopes `.`, `internal/activator` and `internal/edge` were re-pinned for main's changes. New seal is 43260792…. **Conflicts:** one, in `internal/provision/testdata/plan14-root-reads-chain.tsv`. I kept main's five new overlay lines in their order and put the w6 line after them, as in 61546731. The rerun of census-propose then rewrote our seal. **Test results:** I ran these on a clean temporary checkout of b8711344, since removed: - The four census tests pass: `TestPlan14RootReadCensus`, `TestCensusScopeIsTheRootBinary`, `TestCensusRebaseCarriesDispositions` and `TestPlan14RootReadCensusRejectsDrift`. `TestPlan14RootReadCensusPropose` skips, as expected. - `go build ./...` succeeds. - `go vet` of `internal/host`, `internal/edge`, `internal/ingresshealth/...` and `internal/hostenv` passes. **The other edits:** someone else has changed three files in this worktree: - `internal/host/systemapply.go` - `internal/host/systemapply_ingress_test.go` - `internal/host/ingressdrain_rootrunner_linux_test.go` With those edits in place, vet fails with `f.a.ingressArmed undefined` at `systemapply_ingress_test.go:140`. I did not touch or commit them. If they land, `internal/host` changes, so `make census-propose` has to be rerun before review. The review brief now names b8711344 and merge base bd2e9dfa, and `task-11-report.md` has a section on this merge.</result> <usage><subagent_tokens>143724</subagent_tokens><tool_uses>50</tool_uses><duration_ms>751768</duration_ms></usage> </task-notification>

Attributed to this commit: 81.0 g CO₂e (10,412,851 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on w6-ingress-drain, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-claims-w6-ingress-drain.tsv b/docs/superpowers/notes/census-claims-w6-ingress-drain.tsv
index 7103aea8e..746135c9d 100644
--- a/docs/superpowers/notes/census-claims-w6-ingress-drain.tsv
+++ b/docs/superpowers/notes/census-claims-w6-ingress-drain.tsv
@@ -13,8 +13,8 @@ internal/edge/edge.go:RunWithActivatorReady the two public servers are built by
internal/host/agent.go:runAgent agent (user carlos), not root. Builds the ingress drain (newIngressDrain) with arming read at ask time from os.Getenv (CARLOS_REGION_HA, CARLOS_INGRESS_TARGET_GROUPS, both from the root-owned host.env), the fixed admission and lease.CurrentSelf (existing IMDS identity); its reader is awstg.Load, the box role's credentials calling ELB DescribeTargetHealth/DescribeTargetGroupAttributes (new AWS reads, by the agent). Wires admission.closeStartsForIngressDrain, the lbhealth drain condition, ingress.setEdge, and ingress.shutdownStarted in WithShutdownStarted. The drain socket (/run/carlos/.ha-drain/drain.sock, agent-user only, existing) is now also served on a fixed box with the drain configured (was group members only), routing /v1/ingress/* to the ingress drain and the group drain verbs to 404 there. armHADepartures now takes fixtureDepartureGetenv() and MakeQueue fixtureDepartureQueue(), which in a production (non-rootrunner) build are os.Getenv and nil, as before. Read sites unchanged (9).
internal/host/group_admission.go:fixedAdmission.bind also sets s.TenantStartsClosed = a.startsClosed.Load, and ExecBackend.TenantStartAllowed now also refuses while startsClosed is set (!startsClosed && (exempt || startAllowed)). New closeStartsForIngressDrain sets the flag (never cleared; the agent exits after the drain) and startAllowed also checks it. Only adds refusals; read sites unchanged (1); no read added.
internal/host/hadrain_socket.go:drainClient.call a non-2xx answer with no JSON error and status 404 now returns errDrainNoRoute (an older agent without the ingress route) instead of the generic error; nothing else changes. Runs only in the agent-user side: the __drain-call child after it drops to the agent's user (now also for op ingress, from root's apply/rollback) and the drain unit's __ingress-drain (User=carlos), which refuses to ask when euid is 0. It dials the existing agent-user-only socket; root never dials it. New caller drainClient.ingressDrain POSTs /v1/ingress/drain. Read sites unchanged (1).
-internal/host/systemapply.go:systemApplier.install root. After its existing refusals and preflight, before the journal, quiesce and swap: refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain. Then ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier.
-internal/host/systemapply.go:systemApplier.restoreFiles root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) then ingressDrainBeforeSwap (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install.
+internal/host/systemapply.go:systemApplier.install root. After its existing refusals and preflight, before the journal, quiesce and swap: only when the new ingressArmed hook answers true (production: ingressDrainConfigured(os.Getenv), i.e. CARLOS_REGION_HA on and CARLOS_INGRESS_TARGET_GROUPS non-empty, both read by root from its own environment, which the unit loads from root-owned /etc/carlos/host.env; new root env reads that only decide whether the dry check runs), refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain; on a box without the key nothing is checked early and the refusals stay at the rename as before. Then, on every box, ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier.
+internal/host/systemapply.go:systemApplier.restoreFiles root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) only when ingressArmed answers true (the same host.env env read as install), then ingressDrainBeforeSwap on every box (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install.
internal/host/systemapply.go:systemApplier.recoverIfNeeded root. Only the call changes: restoreFiles(ctx, j, false), so recovery never asks for the ingress drain or runs the dry check. No read added.
internal/host/units/carlos-edge.service:external adds Upholds=carlos-edge-drain.service in [Unit] (with a comment): systemd starts the drain unit whenever the edge is active. No ExecStart/User/Environment/hardening change. No read added.
internal/host/units/carlos-edge-drain.service:external new unit, installed and enabled by root's bootstrap/apply (enabledUnits; WantedBy=carlos-edge.service), started by the edge's Upholds=. BindsTo= and After= carlos-edge.service; Type=oneshot, RemainAfterExit, ExecStart=/bin/true; ExecStop=-/opt/carlos/carlos __ingress-drain (the root-owned binary, run as User=carlos Group=carlos, no capabilities, NoNewPrivileges, ProtectSystem=strict, AF_UNIX only, @system-service filter, carlos.slice); TimeoutStopSec=170. Its stop dials the agent-user-only drain socket and logs the report; it exits 0 in every case and never runs as root. New read: the drain socket, by the agent's user. Written legacy, accepted-legacy.
diff --git a/docs/superpowers/notes/census-proposal-w6-ingress-drain.md b/docs/superpowers/notes/census-proposal-w6-ingress-drain.md
index eed9b094c..0b9fec270 100644
--- a/docs/superpowers/notes/census-proposal-w6-ingress-drain.md
+++ b/docs/superpowers/notes/census-proposal-w6-ingress-drain.md
@@ -16,9 +16,9 @@ Ruling `census-ruling-w6-ingress-drain`. The independent reviewer approves or re
| `internal/host/agent.go` `runAgent` | body | unchanged (9) | agent (user carlos), not root. Builds the ingress drain (newIngressDrain) with arming read at ask time from os.Getenv (CARLOS_REGION_HA, CARLOS_INGRESS_TARGET_GROUPS, both from the root-owned host.env), the fixed admission and lease.CurrentSelf (existing IMDS identity); its reader is awstg.Load, the box role's credentials calling ELB DescribeTargetHealth/DescribeTargetGroupAttributes (new AWS reads, by the agent). Wires admission.closeStartsForIngressDrain, the lbhealth drain condition, ingress.setEdge, and ingress.shutdownStarted in WithShutdownStarted. The drain socket (/run/carlos/.ha-drain/drain.sock, agent-user only, existing) is now also served on a fixed box with the drain configured (was group members only), routing /v1/ingress/* to the ingress drain and the group drain verbs to 404 there. armHADepartures now takes fixtureDepartureGetenv() and MakeQueue fixtureDepartureQueue(), which in a production (non-rootrunner) build are os.Getenv and nil, as before. Read sites unchanged (9). |
| `internal/host/group_admission.go` `fixedAdmission.bind` | body | unchanged (1) | also sets s.TenantStartsClosed = a.startsClosed.Load, and ExecBackend.TenantStartAllowed now also refuses while startsClosed is set (!startsClosed && (exempt || startAllowed)). New closeStartsForIngressDrain sets the flag (never cleared; the agent exits after the drain) and startAllowed also checks it. Only adds refusals; read sites unchanged (1); no read added. |
| `internal/host/hadrain_socket.go` `drainClient.call` | body | unchanged (1) | a non-2xx answer with no JSON error and status 404 now returns errDrainNoRoute (an older agent without the ingress route) instead of the generic error; nothing else changes. Runs only in the agent-user side: the __drain-call child after it drops to the agent's user (now also for op ingress, from root's apply/rollback) and the drain unit's __ingress-drain (User=carlos), which refuses to ask when euid is 0. It dials the existing agent-user-only socket; root never dials it. New caller drainClient.ingressDrain POSTs /v1/ingress/drain. Read sites unchanged (1). |
-| `internal/host/systemapply.go` `systemApplier.install` | body | unchanged (0) | root. After its existing refusals and preflight, before the journal, quiesce and swap: refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain. Then ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier. |
+| `internal/host/systemapply.go` `systemApplier.install` | body | unchanged (0) | root. After its existing refusals and preflight, before the journal, quiesce and swap: only when the new ingressArmed hook answers true (production: ingressDrainConfigured(os.Getenv), i.e. CARLOS_REGION_HA on and CARLOS_INGRESS_TARGET_GROUPS non-empty, both read by root from its own environment, which the unit loads from root-owned /etc/carlos/host.env; new root env reads that only decide whether the dry check runs), refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain; on a box without the key nothing is checked early and the refusals stay at the rename as before. Then, on every box, ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier. |
| `internal/host/systemapply.go` `systemApplier.recoverIfNeeded` | body | unchanged (0) | root. Only the call changes: restoreFiles(ctx, j, false), so recovery never asks for the ingress drain or runs the dry check. No read added. |
-| `internal/host/systemapply.go` `systemApplier.restoreFiles` | body | unchanged (1) | root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) then ingressDrainBeforeSwap (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install. |
+| `internal/host/systemapply.go` `systemApplier.restoreFiles` | body | unchanged (1) | root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) only when ingressArmed answers true (the same host.env env read as install), then ingressDrainBeforeSwap on every box (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install. |
| `internal/host/units/carlos-edge.service` `external` | body | unchanged (1) | adds Upholds=carlos-edge-drain.service in [Unit] (with a comment): systemd starts the drain unit whenever the edge is active. No ExecStart/User/Environment/hardening change. No read added. |
| `internal/host/units/carlos-instance-cmd@.service` `external` | body | unchanged (1) | adds Before=carlos-edge-drain.service (with a comment) so its stop starts only after the drain unit's stop has finished. Ordering only; no read added. |
| `internal/host/units/carlos-instance-gen@.service` `external` | body | unchanged (1) | adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added. |
diff --git a/internal/provision/testdata/plan14-root-reads-w6-ingress-drain.tsv b/internal/provision/testdata/plan14-root-reads-w6-ingress-drain.tsv
index 2652898c4..624a48cd7 100644
--- a/internal/provision/testdata/plan14-root-reads-w6-ingress-drain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-w6-ingress-drain.tsv
@@ -38,9 +38,9 @@ internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-lega
internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. Fix round 1 Q20: publish Edge.ReplicaSnapshots as a separate in-memory status source, leaving the tenant-visible Upstreams source unchanged. No new external reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Load root-written group marker/configuration, configure signed boot binding and agent receipt completer, wire cancellable admission into departure work and expose cached GroupReaderSnapshot. New indirect boot reads use protected root files; agent-owned receipt controls duplicate initial completion only, never root restart permission. Same five direct sites. Merge 45cebde4 retains the replica health socket lifecycle and setReplicaSource beside GroupReaderSnapshot; no extra read beyond main.;rev3=census-ruling-agent-start-demo-2;basis=agent.go:309-329 opens demo-traffic.db beside the operator-configured registry when a demo domain exists, closes it at shutdown and wires drain-before-purge; :1010-1019 shares the worker and write gate; :1164-1177 installs the fleet identity and closed-until-worker serving callback. One added whole Route pass; the new indirect filesystem/SQL reads are claimed in openDemoTraffic and worker/store units. No request chooses the database pathname.;rev3=census-ruling-region-ha-p1b3b-s;basis=Wire the service duty view to authoritative cached sidecar manifest placement in LifetimeIndex and the edge sidecar projection; missing policy denies duty. Existing instance duty wiring remains.;rev3=census-ruling-region-ha-g2-t3;basis=T3a: wire eb.Page = PageOperator beside OwnerTerminated before departures arm, so suspect-holder pages work if departure setup fails; no new read; existing nine sites and authority unchanged; pages through the existing sink. T3b: publish the same backend through an atomic pointer for the metrics observer, and clear it on return; no new external read or authority.;rev3=census-ruling-agent-start-demo-3;basis=Wire the claim activator and root snapshot client into the demo worker; pass moved readiness to status reporting. Census read-site delta: unchanged (9).;rev3=census-ruling-region-ha-g2-fixes;basis=Wire local pool evidence, live withdrawal activator, startup ingress scan and alias publication, and edge lookup; no new direct sites; new indirect record/claim reads use existing store/judge paths described in ingress helpers.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: starts the existing record-view backstop loop with a departure-inventory listener (non-blocking, coalesced signal) even without an armed RecordView; it requests the existing full pass (backstopFullDue) there. Same nine read sites; no new read or authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Derive one signal-time deadline with a 90-second budget; cap departure stop and startup/seed/service shutdown joins by it. No read added.;rev3=census-ruling-static-sweep-periodic;basis=in the edge-ready callback, publishes e.LargestStaticTree in staticTreeSource for the disk alert line (diskAlertFrac in the metrics loop); in-memory wiring only, no read added; read sites unchanged (9);rev3=census-ruling-edge-page-cache-1;basis=wires the exec backend's CurrentInputs into the edge cache (wireCurrentInputs) and, in the ready hook after armEdgeAssetCache (whose returned store it now keeps), calls armEdgePageCache, which does nothing unless CARLOS_PAGE_CACHE=1; read sites unchanged (9); no read added;rev3=census-ruling-gvisor-demos;basis=Capture sandbox resolution and refusal once; log errors once; gate route admission and BeforeExec before process launch. No new root read. Task 5: pass the once-captured sandbox effective mode/config error into ExecBackend, UnitBackend and the immutable Client expectation. Same startup environment/registry reads; swapArming declines gVisor before placement. Task 8: arm read-only status projection with the existing Client.SandboxStatus callback. Agent status now queries the existing root /ready endpoint; no new root authority or guest-file input. Merge2 e8a1ddde: retain main wireCurrentInputs and armEdgePageCache through the existing asset-store ready hook alongside branch once-captured sandbox mode, wake gates and root status wiring. No new direct read; main page-cache helpers retain their own census overlays.;rev3=census-ruling-region-ha-held-build;basis=wires the drain state: svc.SetDrainingSource(boxDrain.IsDraining), svc.SetPeerDrainView(e.PeerDraining), e.SetPeerDrainedHook(svc.DropHoldersNaming); in-memory only; no read added; region HA held-requests Task 5: on group members, starts the drain driver over the activator, the edge and boxDrain, and serves its root-only drain socket; no read added beyond the socket's own Branch review r1: the drain state follows the root start fence on group members (the fence reader is the existing fenceLocation.read, a root-owned fixed path); e.SetPeerUndrainedHook(svc.AllowHoldersNaming) beside the drained hook (memory only); the drain socket serves only the agent's own user. No read added.;rev3=census-ruling-security-review-mitigations;basis=Wire the cached operator flat-layout choice into the exec backend's new-resident refusal; no read source added, existing authority retained.;rev3=census-ruling-w6-ingress-drain;basis=agent (user carlos), not root. Builds the ingress drain (newIngressDrain) with arming read at ask time from os.Getenv (CARLOS_REGION_HA, CARLOS_INGRESS_TARGET_GROUPS, both from the root-owned host.env), the fixed admission and lease.CurrentSelf (existing IMDS identity); its reader is awstg.Load, the box role's credentials calling ELB DescribeTargetHealth/DescribeTargetGroupAttributes (new AWS reads, by the agent). Wires admission.closeStartsForIngressDrain, the lbhealth drain condition, ingress.setEdge, and ingress.shutdownStarted in WithShutdownStarted. The drain socket (/run/carlos/.ha-drain/drain.sock, agent-user only, existing) is now also served on a fixed box with the drain configured (was group members only), routing /v1/ingress/* to the ingress drain and the group drain verbs to 404 there. armHADepartures now takes fixtureDepartureGetenv() and MakeQueue fixtureDepartureQueue(), which in a production (non-rootrunner) build are os.Getenv and nil, as before. Read sites unchanged (9). file:Exec@20408,file:Open@2191,file:Statfs@54105,registry:App@13287,registry:Host@49748,whole:Route@13279,whole:Route@48095,whole:Route@49871,whole:Route@49933 2d995b5233520099c94eeb11b0909f7a1843a0c44f4a3fedc31a4d17a2bf5221
internal/host/group_admission.go fixedAdmission.bind legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: share the in-memory admission/effective-role predicate with HTTP, service and backend checks; whole Route is used only for fixed-route classification. Refuse without acquire, restore or launch; no new filesystem/store read. Fix R1: also bind the response-phase callback to the same fixedAdmission; invoked by runAgent through wireAgentAdmission before arming the departure consumer. Existing whole Route predicate only; no new external read.;rev3=census-ruling-region-ha-p3b;basis=Bind activator TenantAdmittedFunc to TenantAdmitted so successful hairpin activation is also required before tenant service. Same registry route closure/read, no new input; group has no fixed platform exemption.;rev3=census-ruling-w6-ingress-drain;basis=also sets s.TenantStartsClosed = a.startsClosed.Load, and ExecBackend.TenantStartAllowed now also refuses while startsClosed is set (!startsClosed && (exempt || startAllowed)). New closeStartsForIngressDrain sets the flag (never cleared; the agent exits after the drain) and startAllowed also checks it. Only adds refusals; read sites unchanged (1); no read added. whole:Route@449 f8995e423716b9fe4f0d75ce05d85917ff08e4bc94221f89d23ab98e63f2475f
internal/host/hadrain_socket.go drainClient.call legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: drain call client, run only in the __drain-call child after it drops to the agent user (branch review r1; formerly the root verb client): reads the agent drain socket's HTTP response body, bounded to 4 MiB; not a file read;rev3=census-ruling-w6-ingress-drain;basis=a non-2xx answer with no JSON error and status 404 now returns errDrainNoRoute (an older agent without the ingress route) instead of the generic error; nothing else changes. Runs only in the agent-user side: the __drain-call child after it drops to the agent's user (now also for op ingress, from root's apply/rollback) and the drain unit's __ingress-drain (User=carlos), which refuses to ask when euid is 0. It dials the existing agent-user-only socket; root never dials it. New caller drainClient.ingressDrain POSTs /v1/ingress/drain. Read sites unchanged (1). file:ReadAll@552 91c289b894b29197b051f8a918d36cd8b6df904901af0dd40c2a8a0265f85692
-internal/host/systemapply.go systemApplier.install authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply, root update unit or offline root CLI, uid 0;basis=root verifies staged signature and final locked bounds before rename, then records root accepted floor history only after health succeeds;rev3=census-ruling-region-ha-p1a;basis=root apply, uid 0: comment and error text only around the beginExecutableChange call (the wrapped error now reads "update not begun" instead of "update-begun marker"); the call, its position before the first box-changing step and the deferral on error are unchanged; no read added;rev3=census-ruling-region-ha-p3b;basis=Require groupTarget for the staged new artifact and propagate quiesce refusal before effects. Root-owned operator permit must authorize digest/action/current boot; existing signed image, floor and journal checks remain; no new direct read.;rev3=census-ruling-gvisor-demos;basis=Check staged and previous executable awareness before unit-plan execution. Existing reads unchanged; no unaware prev executes in gvisor mode.;rev3=census-ruling-w6-ingress-drain;basis=root. After its existing refusals and preflight, before the journal, quiesce and swap: refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain. Then ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier. 29acccb331ce7f5dbfb1cc12a5794282e5c4e40544bfd9ab3fcfbf954ed73a97
+internal/host/systemapply.go systemApplier.install authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply, root update unit or offline root CLI, uid 0;basis=root verifies staged signature and final locked bounds before rename, then records root accepted floor history only after health succeeds;rev3=census-ruling-region-ha-p1a;basis=root apply, uid 0: comment and error text only around the beginExecutableChange call (the wrapped error now reads "update not begun" instead of "update-begun marker"); the call, its position before the first box-changing step and the deferral on error are unchanged; no read added;rev3=census-ruling-region-ha-p3b;basis=Require groupTarget for the staged new artifact and propagate quiesce refusal before effects. Root-owned operator permit must authorize digest/action/current boot; existing signed image, floor and journal checks remain; no new direct read.;rev3=census-ruling-gvisor-demos;basis=Check staged and previous executable awareness before unit-plan execution. Existing reads unchanged; no unaware prev executes in gvisor mode.;rev3=census-ruling-w6-ingress-drain;basis=root. After its existing refusals and preflight, before the journal, quiesce and swap: only when the new ingressArmed hook answers true (production: ingressDrainConfigured(os.Getenv), i.e. CARLOS_REGION_HA on and CARLOS_INGRESS_TARGET_GROUPS non-empty, both read by root from its own environment, which the unit loads from root-owned /etc/carlos/host.env; new root env reads that only decide whether the dry check runs), refusalsBeforeDrain(target, running, staged) runs as a dry check the group maintenance permit (requireGroupMaintenance: permit.json under the root maintenance dir), the root protocol check on the staged binary (rootProtocolAllowsBinary: root moves identity, root floor bound) and activationRule (moves floor, hold rule); these are existing reads made earlier as well as again under the guard, and a refusal now returns errSystemRefused before any drain; on a box without the key nothing is checked early and the refusals stay at the rename as before. Then, on every box, ingressDrainBeforeSwap asks the agent for the ingress drain through execIngressDrain: the existing drain-call child (pinned /proc/self/fd/3, empty env, dir /, dropped to the agent user, stdout capped at drainCallMax) with op ingress, bounded by ingressAskBound+10 s (165 s). New root read: the child's JSON answer now carries an ingress report (agent-written), which root only re-encodes and logs (ingressCallLines, oneLine); no decision reads it and every outcome continues. Production askIngressDrain = execIngressDrain set in productionSystemApplier. 7fb706a0351456391990bdc67798272a3b2dec5211ee9cdb3e645c861b330b4d
internal/host/systemapply.go systemApplier.recoverIfNeeded authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply/recover, root systemd units or offline root CLI, uid 0;basis=network-free recovery uses local root floors and rechecks signed image at final forward-completion boundary;rev3=census-ruling-region-ha-p3b;basis=Check root maintenance permit before journal processing; group recovery explicitly targets the operator-authorized old artifact and rollback action, including restart, instead of autonomous forward completion. No new direct site; marker/permit trust is root ownership, exact boot/digest and durable action consumption.;rev3=census-ruling-w6-ingress-drain;basis=root. Only the call changes: restoreFiles(ctx, j, false), so recovery never asks for the ingress drain or runs the dry check. No read added. 72d9fa981930f94b2e9303553e16cda7d2796aae0eb7868aff8e9e6e197ad4b6
-internal/host/systemapply.go systemApplier.restoreFiles authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply/recover, root systemd units or offline root CLI, uid 0;basis=selects signed prev identity and checks staged restore against both root bounds before rename; version sidecar cannot authorize;rev3=census-ruling-region-ha-p3b;basis=Authorize exact previous artifact before restore, propagate quiesce refusal and remove automatic group units from enable list. Existing signature/floor and staged plan reads remain; indirect permit must be root-owned and bind old digest/current boot.;rev3=census-ruling-gvisor-demos;basis=Check prev awareness before quiesce/copy/restore and check the copied restore executable before rename. Existing stat unchanged.;rev3=census-ruling-w6-ingress-drain;basis=root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) then ingressDrainBeforeSwap (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install. file:Stat@442 bfeff15d937d9434998278bedfc9ec07804cd93cbb2b55cbf46917a30b62c675
+internal/host/systemapply.go systemApplier.restoreFiles authority F,J4 rev3=PROPOSED-p3;identity=carlos system apply/recover, root systemd units or offline root CLI, uid 0;basis=selects signed prev identity and checks staged restore against both root bounds before rename; version sidecar cannot authorize;rev3=census-ruling-region-ha-p3b;basis=Authorize exact previous artifact before restore, propagate quiesce refusal and remove automatic group units from enable list. Existing signature/floor and staged plan reads remain; indirect permit must be root-owned and bind old digest/current boot.;rev3=census-ruling-gvisor-demos;basis=Check prev awareness before quiesce/copy/restore and check the copied restore executable before rename. Existing stat unchanged.;rev3=census-ruling-w6-ingress-drain;basis=root. New drain bool parameter (rollback true, recovery false). With drain, after the restore's existing sandbox, prev identity and activation rule checks and before its quiesce: refusalsBeforeDrain(prevVersion, running, prev) (the same dry check as install, on carlos.prev) only when ingressArmed answers true (the same host.env env read as install), then ingressDrainBeforeSwap on every box (the agent-user child ask, log only). Without drain nothing changes. Read sites unchanged (1); new read is the logged ingress report as in install. file:Stat@442 f088ab79e7d6163d723f10de6c1a8c499900f9e7eaed3264a0bab7309b870ccd
internal/host/units/carlos-edge.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 fix round 2: keep edge after control service, socket and D-Bus with TimeoutStopSec=120, but do not Want or Require control: its start probe needs the edge cgroup, so the agent socket-activates it after edge starts. Static ordering only; no new root read, input, command, path or capability. Instance templates unchanged.;rev3=census-ruling-w6-ingress-drain;basis=adds Upholds=carlos-edge-drain.service in [Unit] (with a comment): systemd starts the drain unit whenever the edge is active. No ExecStart/User/Environment/hardening change. No read added. file:external@0 2a46d33c2018cac63ad009fd68d2fd585df2fa501eeb6c054b0e6d329dc5cb0e
internal/host/units/carlos-instance-cmd@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the cmd unit template (applied by PID 1 as root; its process runs as carlos): extends the J4 seed pattern to the run role. The template equals the seed template outside named lines, and the template-equality test pins that. Root lays out a staged executable validated by the same refuseStagedExe the seed and generation paths use, then starts this unit, which runs as carlos with the instance's own reach. No new trust of registry, /data or agent-asserted content beyond the seed path;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: the same one namespace-block line, TemporaryFileSystem=/dev/pts:ro, as carlos-instance@.service; nothing else;rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment) so its stop starts only after the drain unit's stop has finished. Ordering only; no read added. file:external@0 4bcdb96cf8413daa91271c43c5f56153424223f1b2a4c8de56fef7f00f0f6bbf
internal/host/units/carlos-instance-gen@.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: the same one namespace-block line, TemporaryFileSystem=/dev/pts:ro, as carlos-instance@.service; nothing else;rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-instance-stop-execstop-528;basis=one line added after ExecStart=, ExecStop=-+/opt/carlos/carlos instance-stop $MAINPID (#528, Paul's option 2), plus TimeoutStopFailureMode=kill after TimeoutStopSec=20: PID 1 runs the platform binary's instance-stop as root (the + prefix) at a stop with $MAINPID, a value systemd supplies; instance-stop reads only that argument, /proc/self/cgroup and /proc/<MAINPID>/cgroup (kernel-written), and acts only through a pidfd on the unit's own main process (refused unless in the unit's own cgroup); no bind source, user, mount or tenant-writable path read added;rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added. file:external@0 b6869d38d279a3c122e666deff6e790b6f9ab9ab5e0d79cf10afebcbdcc71870
@@ -65,7 +65,7 @@ internal/host/units/carlos-edge-drain.service external legacy accepted-legacy ac
@coverage infra/modules/region-host/tests 5d24bab8b66914310f2b2c3dbc19aa0a0e7b30171e5e9798620a899714867bfa
@coverage internal/activator 9535f20dc637e296cd8e5407d5952c18820c842e9ded16d75177a502cdc19c0c
@coverage internal/edge 12053812f3f64e8927bbd47550ec99ac4e9298feec18feb11827cc9b5b1d4d96
-@coverage internal/host bb519ea8b84e4308e702340e7f070c4a6057d7525a1bf014ad7d65709e886d93
+@coverage internal/host e640bd5eb030fb5c4d82de8fa32e650f1161d9d1a10a1c6d714797dbda592abd
@coverage internal/host/units 32dc8a675442c1f83efe571bec8b4d21a7b56bc2d00a56ecfd835daca4863908
@coverage internal/hostenv 929347fa96e8d823188c664383f3b4b81adc771959c831d6e9a0b7f58d900ffa
@coverage internal/ingresshealth e087e82f48535a86e363671835f8a2bba20ee2253ee9a33fada5a8e8987f9ab8