carlos / platform Public

census: stop-policy gate rows, bootstrap 9B8 re-digest (#528)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9e2b7fd5eca41756cf0db9f1bcccb67314539879 parent 7fd56cc
4 files changed, +37 −7
  • docs/superpowers/notes/census-proposal-instance-stop-528.md +17 −2
  • internal/provision/region_ha_p3b_census_test.go +4 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv +15 −3

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-instance-stop-528.md b/docs/superpowers/notes/census-proposal-instance-stop-528.md
index fb37ae4eb..7c744965e 100644
--- a/docs/superpowers/notes/census-proposal-instance-stop-528.md
+++ b/docs/superpowers/notes/census-proposal-instance-stop-528.md
@@ -1,10 +1,14 @@
# Census approval: instance-stop-528
-Ruling `census-ruling-instance-stop-528`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-instance-stop-528`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
+| `internal/host/bootstrap.go` `bootstrapWithGroup` | body | unchanged (3) | the #528 stop-policy gate (Paul's ruling A): a live bootstrap takes the stop-policy lock (/opt/carlos/system/stop-policy.lock, root-only path under the platform opt dir, O_NOFOLLOW) before rewriting units and calls pinStopPolicies before its reload: it reads systemctl list-units and show output for running carlos-instance*@ units (systemd's own state; unit names validated: one @, .service suffix, no / or NUL) and the just-written root templates under etc/systemd/system, and writes root-owned pins under /run/systemd/system/<unit>.d/; no tenant-writable path read |
| `internal/host/claimunit_template.go` `const claimBoundTemplate` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos): at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
+| `internal/host/systemapply.go` `systemApplier.install` | body | unchanged (0) | the #528 stop-policy gate (Paul's ruling A): the apply takes the stop-policy lock (fixed root-only path under the opt dir) from before the binary swap to after installUnits and releases it before any rollback; its own reads unchanged |
+| `internal/host/systemapply.go` `systemApplier.installUnits` | body | unchanged (6) | the #528 stop-policy gate (Paul's ruling A): pinStopPolicies before daemon-reload: reads systemctl list-units/show output for running carlos-instance*@ units and the staged root templates (the apply's own staging dir), writes root-owned pins under the runtime unit dir; a read failure refuses the install |
+| `internal/host/systemapply.go` `systemApplier.restoreFiles` | body | unchanged (1) | the #528 stop-policy gate (Paul's ruling A): the rollback takes the stop-policy lock from before the binary swap back to after installUnits; no new read |
| `internal/host/units/carlos-instance-cmd@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
| `internal/host/units/carlos-instance-gen@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
| `internal/host/units/carlos-instance-rootfs-cmd@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
@@ -16,6 +20,7 @@ Ruling `census-ruling-instance-stop-528`. The independent reviewer approves or r
| `internal/host/units/carlos-instance-sidecar@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
| `internal/host/units/carlos-instance-tty@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
| `internal/host/units/carlos-instance@.service` `external` | body | unchanged (1) | KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added |
+| `internal/instancectl/server.go` `runWithClaim` | body | unchanged (4) | the #528 stop-policy gate (Paul's ruling A): instance-control's systemctl becomes PinAwareSystemctl: a start takes the shared stop-policy lock and removes /run/systemd/system/<unit>.d/99-carlos-stop-pin.conf for the units it starts (names from instance-control's own validated unit names; arguments with / or NUL or not ending .service are skipped), then daemon-reload; no read of tenant input |
Envelopes re-pinned: `internal/activator`, `internal/host`, `internal/host/units`, `internal/instancectl`, `internal/instanceexec`.
@@ -23,7 +28,11 @@ Review: a model from the other family than the author reads the branch's diff ag
Recorded dispositions, which each change must still satisfy:
+- `internal/host/bootstrap.go` `bootstrapWithGroup`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.
- `internal/host/claimunit_template.go` `const claimBoundTemplate`: authority, task E2. Basis: PROPOSED E51: Root-only bound-unit template is held inside the claim renderer; ordinary bootstrap never enumerates or installs it.
+- `internal/host/systemapply.go` `systemApplier.install`: authority, task F,J4. Basis: 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.
+- `internal/host/systemapply.go` `systemApplier.installUnits`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.
+- `internal/host/systemapply.go` `systemApplier.restoreFiles`: authority, task F,J4. Basis: 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.
- `internal/host/units/carlos-instance-cmd@.service` `external`: legacy, task accepted-legacy. Basis: 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)
- `internal/host/units/carlos-instance-gen@.service` `external`: legacy, task accepted-legacy. Basis: 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)
- `internal/host/units/carlos-instance-rootfs-cmd@.service` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=a rootfs unit template (embedded in the carlos binary, installed under /etc/systemd/system by root's unit install as the other templates are, applied by PID 1 as root; its process runs as user carlos);basis=root-input (J4, as carlos-instance-cmd@.service, accepted at census-ruling-carlos-run): new (rootfs Plan 2 Task 4): the rootfs cmd unit (oneshot, TimeoutStartSec=6h5m, the cmd log sockets), binding /run/carlos-control/exe/%I/rootfs/cmd/. The template carries the binary template's hardening block restated for an image root (ProtectSystem=strict, the /data, /run/carlos and /opt/carlos tmpfs mounts read-only, PrivateDevices=, PrivateIPC=, ProtectControlGroups=strict, PrivatePIDs=, RestrictNamespaces=, NoNewPrivileges=, an empty CapabilityBoundingSet=, the IPAddressDeny= list, MemoryDenyWriteExecute=yes) plus RootImage= with RootImageOptions=ro,nosuid,nodev; what PID 1 mounts for it: the image, a link root's ensureRootfsExe made under /run/carlos-control/exe (root's, never in any instance's namespace) to the image validateStagedImage checked; root's launch.json and resolv.conf copy from the same root-only directory, read-only; the platform binary, read-only; the instance's own two directories. Provenance: the RootImage= path is fixed and root-controlled (a link root made to the image validateStagedImage checked), but the image's contents are tenant-built: PID 1 and the kernel mount a tenant-produced squashfs (read-only, nosuid, nodev) as the unit's root, after root has checked its bytes against root's own staged manifest; that mount is the new authority this template carries. The tenant also writes its own two directories; it names no path PID 1 or root opens;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 restated rootfs block (byte-identical across the rootfs units)
@@ -35,7 +44,13 @@ Recorded dispositions, which each change must still satisfy:
- `internal/host/units/carlos-instance-sidecar@.service` `external`: legacy, task accepted-legacy. Basis: 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)
- `internal/host/units/carlos-instance-tty@.service` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5, new: the binary tty template, carlos-instance-cmd@.service outside six named lines held by TestTTYTemplateEqualsCmdOutsideTheNamedLines: Description (tty), ExecStart/ExecStopPost instance-exec/instance-exit tty %I (the same root binary as every template), StandardInput=file:/run/carlos/logs/%I.tty.sock replacing the cmd StandardOutput socket (PID 1 opens it as root on the nosymfollow logs mount, as the cmd streams), StandardOutput=journal, StandardError=journal, and BindReadOnlyPaths sources tty-app/tty-live under /run/carlos-control/exe/%I (root-only exe layout, as cmd-app/cmd-live). Same namespace block byte for byte, runs as carlos. Task 6: POST /tty (handleOneShot(RoleTTY), claimAwareLegacy) starts it, after the role lock, the loaded-state refusal and refuseStagedExe; the tty-app/tty-live sources are laid out by ensureCmdExeAt(RoleTTY) and removed by removeCmdExe(RoleTTY) at /stop role=tty and /sweep;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)
- `internal/host/units/carlos-instance@.service` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: one namespace-block line added after TemporaryFileSystem=/dev/mqueue:ro, TemporaryFileSystem=/dev/pts:ro (with its comment): PID 1 mounts an empty read-only tmpfs over the private /dev/pts, hiding the host devpts PrivateDevices= binds in; no bind source, Exec line, user or path read by root added; the block stays byte-identical across the binary templates (TestInstanceTemplatesShareOneNamespace);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)
+- `internal/instancectl/server.go` `runWithClaim`: authority, task C,D,G. Basis: Claim instance controller adds held-release RPC dispatch within existing launch/participation execution boundary.;rev3=census-ruling-rootfs-apps-2;basis=takes a RegistryView (HostApp and HostRuntime) for the bare hostApp, and the production Server literal gains HostRuntime, ProbeImage: BuildProbeImage, ProbeImageFile: ProbeImagePath, RootfsProbeOut under /run/carlos-control and DenyEvery: 10s; this body reads nothing new itself; the readers it wires (instanceRegistryHostRuntime, BuildProbeImage, the rootfs probe's output) are decision rows;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 4 and #329 plan 3 Task 5: takes the egress asserter as a parameter, sets it on the production Server literal (Egress) and starts its 30 s Loop beside probeLoop and diskLoop; the literal also names the fixture check ProbeFixturesOK (renamed in plan 2 Task 14). It sets no control drop-in directory: plan 3's ControlDropInDir default (/run/systemd/system.control) was deleted with removeGenControlDropIn in ef38e13b (the P1 EROFS fix), so instance control names systemd's control directory only to read it (TrustedDropinReader). The same four sites (the two exec.CommandContext closures, statfsBytes, the data literal), offsets moved; no read added.;rev3=census-ruling-agent-start-demo-1;basis=Wires root-owned demo config and existing fixed paths into the service.;rev3=census-ruling-region-ha-p3b;basis=Resume root-owned hairpin state before probes/control service work; verify current systemd agent identity and kernel fence/addresses, restore pidfd watch or revoke stale state. Same direct exec/statfs/data sites; indirect inputs are protected root snapshot/state and kernel evidence, never receipt data.;rev3=census-ruling-agent-start-demo-3;basis=Construct the demo snapshot supervisor for configured demo boxes; startup cleanup gates builder readiness. Census read-site delta: unchanged (4).
-Seal: `b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c` → `e7c0d40feb6a1cdf4926bee4d7e7465114a5b1b72093f8effb59cc79e860fb34`.
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/host/stoppolicy.go:pinStopPoliciesOf`: reads +file:Lstat, +file:ReadFile; written legacy, accepted-legacy, frozen
+- new `internal/instancectl/stoppolicy_linux.go:LockStopPolicy`: reads +file:OpenFile; written legacy, accepted-legacy, frozen
+
+Seal: `b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c` → `f75ad8548c3dd987b8a445d183f424312e477ba39c2eef71ebee22b4c7aebb2d`.
Overlay: `internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/region_ha_p3b_census_test.go b/internal/provision/region_ha_p3b_census_test.go
index d2c46c5a5..86c8672fb 100644
--- a/internal/provision/region_ha_p3b_census_test.go
+++ b/internal/provision/region_ha_p3b_census_test.go
@@ -13,7 +13,10 @@ func regionHAP3bWriteCensusInventory() []censusEntry {
entries[i] = censusEntry{
File: "internal/host/bootstrap.go", Unit: "bootstrapWithGroup",
Class: "key-site", Kinds: "lit:instances",
- Digest: "d9b7fc46e56bef323e21d60f03cc6d346b6e2d55eb5e76b294d6fb66b41e96cc",
+ // Re-digested for #528's stop-policy gate (the stop lock and
+ // pins before the reload); its record-write literals are
+ // unchanged.
+ Digest: "93e94627b712b2063dadf6d210864a1447416b365a45e7364c78aaedf0022a0d",
}
return entries
}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 28be4fd18..7d472a2f4 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -127,4 +127,4 @@ plan14-root-reads-agent-login-link.tsv e820ef22ac677cd49aa9ca3f70d6bca9dea061bce
plan14-root-reads-fix-activator-backoff-flake.tsv feba66806ddfcbdfaf369d72413bb18e75162263b6f82f117fccf1b75497986a
plan14-root-reads-region-ha-dr5.tsv f19eb78c1da1475cbf8e11a3d6c394d828aa1c8f88ae24469fe8d473581b934b
plan14-root-reads-instance-syscall-filter.tsv b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c
-plan14-root-reads-instance-stop-528.tsv e7c0d40feb6a1cdf4926bee4d7e7465114a5b1b72093f8effb59cc79e860fb34
+plan14-root-reads-instance-stop-528.tsv f75ad8548c3dd987b8a445d183f424312e477ba39c2eef71ebee22b4c7aebb2d
diff --git a/internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv b/internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv
index fce1f2dfa..9e719ee7a 100644
--- a/internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv
+++ b/internal/provision/testdata/plan14-root-reads-instance-stop-528.tsv
@@ -1,5 +1,8 @@
# Census overlay instance-stop-528, written by census-propose (#369). census-ruling-instance-stop-528, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-instance-stop-528.md.
-# 12 body, 0 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 17 body, 0 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 2 new dispositions: 0 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 0fb3c8ffb1f8ad18b7be342180e272fcf5649142300d4313c67dd830d35a9912 internal/host/bootstrap.go bootstrapWithGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.;rev3=census-ruling-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): a live bootstrap takes the stop-policy lock (/opt/carlos/system/stop-policy.lock, root-only path under the platform opt dir, O_NOFOLLOW) before rewriting units and calls pinStopPolicies before its reload: it reads systemctl list-units and show output for running carlos-instance*@ units (systemd's own state; unit names validated: one @, .service suffix, no / or NUL) and the just-written root templates under etc/systemd/system, and writes root-owned pins under /run/systemd/system/<unit>.d/; no tenant-writable path read file:Command@12407,file:ReadFile@564,file:ReadFile@7461 93e94627b712b2063dadf6d210864a1447416b365a45e7364c78aaedf0022a0d
+@legacy e1aeca24ebb56038a61292f34e568d779ad282f5ba26cd24860e6900fbb1fcc9 internal/host/systemapply.go systemApplier.installUnits legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.;rev3=census-ruling-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): pinStopPolicies before daemon-reload: reads systemctl list-units/show output for running carlos-instance*@ units and the staged root templates (the apply's own staging dir), writes root-owned pins under the runtime unit dir; a read failure refuses the install file:ReadDir@1436,file:ReadFile@2027,file:ReadFile@5378,file:ReadFile@960,file:Stat@2685,file:Stat@3978 c4266e5c0151c91ebb7022fca4b4b64d1221c3a829ab42bdf4ff04d35b722012
@legacy 5a6b74ed1a02335c7c9d0111f4f19ac8b240c0fed874a4ad6c9ce1090b6ad634 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-instance-stop-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 b9b64d4f3b5237e7d457dfe8f85d7c3a078ebe7282e903838109f2fa17b6097e
@legacy 01dd033db81b8ddc7abfe9b26cdd1f6db00cb8ed385d6f4a79d3dbc74080c748 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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 750392d965ef0f9289d1316d62fe9189c6c4f7e13977e720e8b2810a314be37e
@legacy 29ac04dd348ecbfcc580b7f2913c1517bc7e2675eb81fccadc5ba370f26e203a internal/host/units/carlos-instance-rootfs-cmd@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=a rootfs unit template (embedded in the carlos binary, installed under /etc/systemd/system by root's unit install as the other templates are, applied by PID 1 as root; its process runs as user carlos);basis=root-input (J4, as carlos-instance-cmd@.service, accepted at census-ruling-carlos-run): new (rootfs Plan 2 Task 4): the rootfs cmd unit (oneshot, TimeoutStartSec=6h5m, the cmd log sockets), binding /run/carlos-control/exe/%I/rootfs/cmd/. The template carries the binary template's hardening block restated for an image root (ProtectSystem=strict, the /data, /run/carlos and /opt/carlos tmpfs mounts read-only, PrivateDevices=, PrivateIPC=, ProtectControlGroups=strict, PrivatePIDs=, RestrictNamespaces=, NoNewPrivileges=, an empty CapabilityBoundingSet=, the IPAddressDeny= list, MemoryDenyWriteExecute=yes) plus RootImage= with RootImageOptions=ro,nosuid,nodev; what PID 1 mounts for it: the image, a link root's ensureRootfsExe made under /run/carlos-control/exe (root's, never in any instance's namespace) to the image validateStagedImage checked; root's launch.json and resolv.conf copy from the same root-only directory, read-only; the platform binary, read-only; the instance's own two directories. Provenance: the RootImage= path is fixed and root-controlled (a link root made to the image validateStagedImage checked), but the image's contents are tenant-built: PID 1 and the kernel mount a tenant-produced squashfs (read-only, nosuid, nodev) as the unit's root, after root has checked its bytes against root's own staged manifest; that mount is the new authority this template carries. The tenant also writes its own two directories; it names no path PID 1 or root opens;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 restated rootfs block (byte-identical across the rootfs units);rev3=census-ruling-instance-stop-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 edf498d72c227f3360c900d25d279cb26218dd17deb82d503470574a53420f50
@@ -11,7 +14,13 @@
@legacy e068fcaec18439fbc7c4185a4e3a318185cbd5184b8325d6465a2e5d6d5806ca internal/host/units/carlos-instance-sidecar@.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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 7d46db690a09e3e1a6b8ecf8939afc5ff5af48c9d7032d8b753c7bcad3f00af6
@legacy c4575c787ea8a0bbd07677f9fef0ee676b4055a944c6be30262dc82f09251396 internal/host/units/carlos-instance-tty@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5, new: the binary tty template, carlos-instance-cmd@.service outside six named lines held by TestTTYTemplateEqualsCmdOutsideTheNamedLines: Description (tty), ExecStart/ExecStopPost instance-exec/instance-exit tty %I (the same root binary as every template), StandardInput=file:/run/carlos/logs/%I.tty.sock replacing the cmd StandardOutput socket (PID 1 opens it as root on the nosymfollow logs mount, as the cmd streams), StandardOutput=journal, StandardError=journal, and BindReadOnlyPaths sources tty-app/tty-live under /run/carlos-control/exe/%I (root-only exe layout, as cmd-app/cmd-live). Same namespace block byte for byte, runs as carlos. Task 6: POST /tty (handleOneShot(RoleTTY), claimAwareLegacy) starts it, after the role lock, the loaded-state refusal and refuseStagedExe; the tty-app/tty-live sources are laid out by ensureCmdExeAt(RoleTTY) and removed by removeCmdExe(RoleTTY) at /stop role=tty and /sweep;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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 a3b688a17ec9e304e9327a3231f4975d0ea3262878fb2f40545fed68e53051c7
@legacy b92e9607055fa8e88ec7017c373e62f48f7298d2d530eeb48822e1b72be80d11 internal/host/units/carlos-instance@.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: one namespace-block line added after TemporaryFileSystem=/dev/mqueue:ro, TemporaryFileSystem=/dev/pts:ro (with its comment): PID 1 mounts an empty read-only tmpfs over the private /dev/pts, hiding the host devpts PrivateDevices= binds in; no bind source, Exec line, user or path read by root added; the block stays byte-identical across the binary templates (TestInstanceTemplatesShareOneNamespace);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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 026b90583594efb32c30fe4e55d958be031f2245b9b0a0d38d00f0c5e300d09c
+@legacy c00f6ec339ec4bdcb188361dd6eb9438cad2a9579bf2e77e7fbe5b4e33d0384f internal/host/stoppolicy.go pinStopPoliciesOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-instance-stop-528;basis=new, the #528 stop-policy gate (Paul's ruling A): run by root before an install's reload. Reads: systemctl list-units/show output for running units matching a fixed pattern (systemd's own state; unit names checked: one @, .service suffix, no / or NUL), Lstat of its own pin path under the runtime unit dir (root-only /run/systemd/system), and ReadFile of the template in the installer's own template dir (the apply's staging or the root-written /etc/systemd/system). Writes root-owned pins. No path a tenant, app or box agent can create, write or name file:Lstat@733,file:ReadFile@1115 1125a16cb06401d24d0221cc915130e93bdecbcd9e57d4fb0d2ad3dd22cef3f6
+@legacy 70852abfd60eefbcd9bd24794ec6ee06c5709359830b57cc97dda8e8259332bf internal/instancectl/stoppolicy_linux.go LockStopPolicy legacy accepted-legacy accepted-legacy;rev3=census-ruling-instance-stop-528;basis=new, the #528 stop-policy gate (Paul's ruling A): root opens (O_CREAT|O_NOFOLLOW|O_CLOEXEC, 0600) the fixed lock file /opt/carlos/system/stop-policy.lock under the root-owned platform opt dir and flocks it; the path is a constant, never input file:OpenFile@163 f303ed2d99107f3b68049e456d95f4cb4417645867b794e84d5e0d36663dc251
+internal/host/bootstrap.go bootstrapWithGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.;rev3=census-ruling-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): a live bootstrap takes the stop-policy lock (/opt/carlos/system/stop-policy.lock, root-only path under the platform opt dir, O_NOFOLLOW) before rewriting units and calls pinStopPolicies before its reload: it reads systemctl list-units and show output for running carlos-instance*@ units (systemd's own state; unit names validated: one @, .service suffix, no / or NUL) and the just-written root templates under etc/systemd/system, and writes root-owned pins under /run/systemd/system/<unit>.d/; no tenant-writable path read file:Command@12407,file:ReadFile@564,file:ReadFile@7461 93e94627b712b2063dadf6d210864a1447416b365a45e7364c78aaedf0022a0d
internal/host/claimunit_template.go const claimBoundTemplate authority E2 PROPOSED E51: Root-only bound-unit template is held inside the claim renderer; ordinary bootstrap never enumerates or installs it.;rev3=census-ruling-instance-stop-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos): at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added data-literal@27 f27e8b84e958fb621ec875ca37ccfbedd5aecb9f13f74c8211475e27420e6700
+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-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): the apply takes the stop-policy lock (fixed root-only path under the opt dir) from before the binary swap to after installUnits and releases it before any rollback; its own reads unchanged 26ba8cb9cd5a278e5c10bdadc7909322bf6025dbae587e280b9a7ea433c1e9f1
+internal/host/systemapply.go systemApplier.installUnits legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.;rev3=census-ruling-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): pinStopPolicies before daemon-reload: reads systemctl list-units/show output for running carlos-instance*@ units and the staged root templates (the apply's own staging dir), writes root-owned pins under the runtime unit dir; a read failure refuses the install file:ReadDir@1436,file:ReadFile@2027,file:ReadFile@5378,file:ReadFile@960,file:Stat@2685,file:Stat@3978 c4266e5c0151c91ebb7022fca4b4b64d1221c3a829ab42bdf4ff04d35b722012
+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-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): the rollback takes the stop-policy lock from before the binary swap back to after installUnits; no new read file:Stat@330 c6f3b84a71af802295383d23b0ea2a3c60a3d2e67f9c7a46f9246b217e55b6b2
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-instance-stop-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 b9b64d4f3b5237e7d457dfe8f85d7c3a078ebe7282e903838109f2fa17b6097e
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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 750392d965ef0f9289d1316d62fe9189c6c4f7e13977e720e8b2810a314be37e
internal/host/units/carlos-instance-rootfs-cmd@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=a rootfs unit template (embedded in the carlos binary, installed under /etc/systemd/system by root's unit install as the other templates are, applied by PID 1 as root; its process runs as user carlos);basis=root-input (J4, as carlos-instance-cmd@.service, accepted at census-ruling-carlos-run): new (rootfs Plan 2 Task 4): the rootfs cmd unit (oneshot, TimeoutStartSec=6h5m, the cmd log sockets), binding /run/carlos-control/exe/%I/rootfs/cmd/. The template carries the binary template's hardening block restated for an image root (ProtectSystem=strict, the /data, /run/carlos and /opt/carlos tmpfs mounts read-only, PrivateDevices=, PrivateIPC=, ProtectControlGroups=strict, PrivatePIDs=, RestrictNamespaces=, NoNewPrivileges=, an empty CapabilityBoundingSet=, the IPAddressDeny= list, MemoryDenyWriteExecute=yes) plus RootImage= with RootImageOptions=ro,nosuid,nodev; what PID 1 mounts for it: the image, a link root's ensureRootfsExe made under /run/carlos-control/exe (root's, never in any instance's namespace) to the image validateStagedImage checked; root's launch.json and resolv.conf copy from the same root-only directory, read-only; the platform binary, read-only; the instance's own two directories. Provenance: the RootImage= path is fixed and root-controlled (a link root made to the image validateStagedImage checked), but the image's contents are tenant-built: PID 1 and the kernel mount a tenant-produced squashfs (read-only, nosuid, nodev) as the unit's root, after root has checked its bytes against root's own staged manifest; that mount is the new authority this template carries. The tenant also writes its own two directories; it names no path PID 1 or root opens;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 restated rootfs block (byte-identical across the rootfs units);rev3=census-ruling-instance-stop-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 edf498d72c227f3360c900d25d279cb26218dd17deb82d503470574a53420f50
@@ -23,8 +32,11 @@ internal/host/units/carlos-instance-seed@.service external legacy accepted-legac
internal/host/units/carlos-instance-sidecar@.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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 7d46db690a09e3e1a6b8ecf8939afc5ff5af48c9d7032d8b753c7bcad3f00af6
internal/host/units/carlos-instance-tty@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5, new: the binary tty template, carlos-instance-cmd@.service outside six named lines held by TestTTYTemplateEqualsCmdOutsideTheNamedLines: Description (tty), ExecStart/ExecStopPost instance-exec/instance-exit tty %I (the same root binary as every template), StandardInput=file:/run/carlos/logs/%I.tty.sock replacing the cmd StandardOutput socket (PID 1 opens it as root on the nosymfollow logs mount, as the cmd streams), StandardOutput=journal, StandardError=journal, and BindReadOnlyPaths sources tty-app/tty-live under /run/carlos-control/exe/%I (root-only exe layout, as cmd-app/cmd-live). Same namespace block byte for byte, runs as carlos. Task 6: POST /tty (handleOneShot(RoleTTY), claimAwareLegacy) starts it, after the role lock, the loaded-state refusal and refuseStagedExe; the tty-app/tty-live sources are laid out by ensureCmdExeAt(RoleTTY) and removed by removeCmdExe(RoleTTY) at /stop role=tty and /sweep;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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 a3b688a17ec9e304e9327a3231f4975d0ea3262878fb2f40545fed68e53051c7
internal/host/units/carlos-instance@.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: one namespace-block line added after TemporaryFileSystem=/dev/mqueue:ro, TemporaryFileSystem=/dev/pts:ro (with its comment): PID 1 mounts an empty read-only tmpfs over the private /dev/pts, hiding the host devpts PrivateDevices= binds in; no bind source, Exec line, user or path read by root added; the block stays byte-identical across the binary templates (TestInstanceTemplatesShareOneNamespace);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-528;basis=KillMode=mixed becomes KillMode=control-group plus Environment=CARLOS_INIT_STOP=cgroup (#528; the variable reaches the unit's own trampoline only, run as carlos), with its comment: at stop PID 1 sends the SIGTERM to every process of the unit's own cgroup, not the main process alone, then SIGKILL after TimeoutStopSec as before; no bind source, Exec line, user, mount or path read by root added file:external@0 026b90583594efb32c30fe4e55d958be031f2245b9b0a0d38d00f0c5e300d09c
+internal/instancectl/server.go runWithClaim authority C,D,G Claim instance controller adds held-release RPC dispatch within existing launch/participation execution boundary.;rev3=census-ruling-rootfs-apps-2;basis=takes a RegistryView (HostApp and HostRuntime) for the bare hostApp, and the production Server literal gains HostRuntime, ProbeImage: BuildProbeImage, ProbeImageFile: ProbeImagePath, RootfsProbeOut under /run/carlos-control and DenyEvery: 10s; this body reads nothing new itself; the readers it wires (instanceRegistryHostRuntime, BuildProbeImage, the rootfs probe's output) are decision rows;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 4 and #329 plan 3 Task 5: takes the egress asserter as a parameter, sets it on the production Server literal (Egress) and starts its 30 s Loop beside probeLoop and diskLoop; the literal also names the fixture check ProbeFixturesOK (renamed in plan 2 Task 14). It sets no control drop-in directory: plan 3's ControlDropInDir default (/run/systemd/system.control) was deleted with removeGenControlDropIn in ef38e13b (the P1 EROFS fix), so instance control names systemd's control directory only to read it (TrustedDropinReader). The same four sites (the two exec.CommandContext closures, statfsBytes, the data literal), offsets moved; no read added.;rev3=census-ruling-agent-start-demo-1;basis=Wires root-owned demo config and existing fixed paths into the service.;rev3=census-ruling-region-ha-p3b;basis=Resume root-owned hairpin state before probes/control service work; verify current systemd agent identity and kernel fence/addresses, restore pidfd watch or revoke stale state. Same direct exec/statfs/data sites; indirect inputs are protected root snapshot/state and kernel evidence, never receipt data.;rev3=census-ruling-agent-start-demo-3;basis=Construct the demo snapshot supervisor for configured demo boxes; startup cleanup gates builder readiness. Census read-site delta: unchanged (4).;rev3=census-ruling-instance-stop-528;basis=the #528 stop-policy gate (Paul's ruling A): instance-control's systemctl becomes PinAwareSystemctl: a start takes the shared stop-policy lock and removes /run/systemd/system/<unit>.d/99-carlos-stop-pin.conf for the units it starts (names from instance-control's own validated unit names; arguments with / or NUL or not ending .service are skipped), then daemon-reload; no read of tenant input data-literal@2407,file:CommandContext@1159,file:CommandContext@1338,file:Statfs@2428 d8e6ea4cff6e52a45100bc40d3b2f5edb1d8b027b04703c14b5c0ec42e5d950e
+internal/host/stoppolicy.go pinStopPoliciesOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-instance-stop-528;basis=new, the #528 stop-policy gate (Paul's ruling A): run by root before an install's reload. Reads: systemctl list-units/show output for running units matching a fixed pattern (systemd's own state; unit names checked: one @, .service suffix, no / or NUL), Lstat of its own pin path under the runtime unit dir (root-only /run/systemd/system), and ReadFile of the template in the installer's own template dir (the apply's staging or the root-written /etc/systemd/system). Writes root-owned pins. No path a tenant, app or box agent can create, write or name file:Lstat@733,file:ReadFile@1115 1125a16cb06401d24d0221cc915130e93bdecbcd9e57d4fb0d2ad3dd22cef3f6
+internal/instancectl/stoppolicy_linux.go LockStopPolicy legacy accepted-legacy accepted-legacy;rev3=census-ruling-instance-stop-528;basis=new, the #528 stop-policy gate (Paul's ruling A): root opens (O_CREAT|O_NOFOLLOW|O_CLOEXEC, 0600) the fixed lock file /opt/carlos/system/stop-policy.lock under the root-owned platform opt dir and flocks it; the path is a constant, never input file:OpenFile@163 f303ed2d99107f3b68049e456d95f4cb4417645867b794e84d5e0d36663dc251
@coverage internal/activator 25d3191cc2ac60e488640dbdd27afafb1afe40593ab3ad0649598af9e4aa3514
-@coverage internal/host d6e73a80c1c36019ec40077bba957be829838cd3efaa1a0fee72553d3e891cdb
+@coverage internal/host 04c7cbd625083e0a4482216202b03d4b0ed8b5a96d307f67f08a100f9208f0e6
@coverage internal/host/units 022cd78b80e53171b9658357b6aa3f5de873a4b489da85207b61344580464b83
-@coverage internal/instancectl 6c733ab44e8601cbae95ac9280e08c6c450e5d1b45b3bacffdbb6967adbd425c
+@coverage internal/instancectl c729447ad3c4b78ab910a43382d4e904a2f3d524812c3adb50b914d962fd563d
@coverage internal/instanceexec 7cb751af98d4f2593d02b74f9bdd2025774332a5011f99537ed4e51bb50430fd