carlos / platform Public

fix: tolerate missing sandbox directories during updates

Make the rootfs and runsc writable paths optional for the first update
from a binary that cannot create the live sandbox directories. Keep
gVisor refusal classified as EXEC-SANDBOX-RUNSC and cover both modes,
first-adopt directory creation, and ordinary/claim/demo unit rendering.
Co-Authored-By: Astra (gpt-6-astra) via codex
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 56f7d8707764190f44aafcc43963f0d947bd49bd parent f3a9531
10 files changed, +284 −6
  • docs/superpowers/notes/census-proposal-gvisor-update-dirs.md +21 −0
  • internal/host/claimunit_test.go +1 −1
  • internal/host/runsc_update_dirs_linux_test.go +143 −0
  • internal/host/runsc_update_dirs_rootrunner_linux_test.go +106 −0
  • internal/host/runscensure.go +1 −1
  • internal/host/runscensure_test.go +2 −2
  • internal/host/units/carlos-instance-control.service +1 −1
  • internal/host/units/carlos-runsc.service +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-gvisor-update-dirs.tsv +7 −0
diff --git a/docs/superpowers/notes/census-proposal-gvisor-update-dirs.md b/docs/superpowers/notes/census-proposal-gvisor-update-dirs.md
new file mode 100644
index 000000000..8b0f45eb1
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-gvisor-update-dirs.md
@@ -0,0 +1,21 @@
+# Census approval: gvisor-update-dirs
+
+Ruling `census-ruling-gvisor-update-dirs`. 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).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/host/units/carlos-instance-control.service` `external` | body | unchanged (1) | Make the existing /var/lib/carlos/oci-rootfs writable-path entry optional when absent so old updaters can start the new control unit; retain ProtectSystem=strict and the same path and environment. No new root read. |
+| `internal/host/units/carlos-runsc.service` `external` | body | unchanged (1) | Make the existing /opt/carlos/runsc writable-path entry optional when absent so systemd-mode installation exits successfully on old boxes; gvisor still refuses absent runtime directories with EXEC-SANDBOX-RUNSC. No new path or root read. |
+
+Envelopes re-pinned: `internal/host`, `internal/host/units`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/host/units/carlos-instance-control.service` `external`: authority, task B3,C,D,E1,J4. Basis: root-input;kept=B3,C,D,E1;scope=protected-decision-only;rev3=census-ruling-agent-start-demo-3;basis=Correct the runtime-write comment to include escaped demo snapshot .mount units alongside per-generation drop-ins; service directives are unchanged.;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 final fix: retain After=nftables.service without Wants or Requires; add Restart=on-failure and RestartSec=1 so a crashed control restarts before a later edge stop can block socket activation and shutdown proofs; rewrap the header and explain this ordering. Same ExecStart and protections; no new root read, input, path, command or capability.;rev3=census-ruling-gvisor-demos;basis=Add Wants/After installer and narrowly writable rootfs parent. Keep one host.env EnvironmentFile and other hardening.
+- `internal/host/units/carlos-runsc.service` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Root oneshot reads fixed root-owned host.env through its applet and installs compiled runtime set only under /opt/carlos/runsc; no RemainAfterExit.
+
+Seal: `7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652` → `b21be069ef08ec94a356aeee4cccac4cbfff06fe93b04b32f75879f4d6efba90`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-gvisor-update-dirs.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/host/claimunit_test.go b/internal/host/claimunit_test.go
index 12faff98f..9015c23d4 100644
--- a/internal/host/claimunit_test.go
+++ b/internal/host/claimunit_test.go
@@ -81,7 +81,7 @@ func TestClaimControlUnitInstallers(t *testing.T) {
"EnvironmentFile": {"-/etc/carlos/host.env"},
"StateDirectory": {"carlos-claims"},
"StateDirectoryMode": {"0700"},
- "ReadWritePaths": {"/run/carlos-control /run/carlos /var/lib/carlos-claims /var/lib/carlos-release/private /run/systemd/system /data /opt/carlos /etc/systemd/system /sys/fs/cgroup", "/var/lib/carlos/oci-rootfs"},
+ "ReadWritePaths": {"/run/carlos-control /run/carlos /var/lib/carlos-claims /var/lib/carlos-release/private /run/systemd/system /data /opt/carlos /etc/systemd/system /sys/fs/cgroup", "-/var/lib/carlos/oci-rootfs"},
"RestrictAddressFamilies": {"AF_UNIX AF_INET AF_INET6"},
"ProtectSystem": {"strict"},
"ProtectHome": {"yes"},
diff --git a/internal/host/runsc_update_dirs_linux_test.go b/internal/host/runsc_update_dirs_linux_test.go
new file mode 100644
index 000000000..6f51f156e
--- /dev/null
+++ b/internal/host/runsc_update_dirs_linux_test.go
@@ -0,0 +1,143 @@
+package host
+
+import (
+ "context"
+ "errors"
+ "os"
+ "path/filepath"
+ "strings"
+ "syscall"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/demo"
+ "github.com/carlosframework/platform/internal/execsandbox"
+)
+
+func TestSandboxUpdateUnitsWithMissingDirectories(t *testing.T) {
+ root := t.TempDir()
+ for _, cfg := range []claimUnitSettings{{}, {enabled: true, data: "/data", opt: "/opt/carlos"}, {demo: demo.Config{Account: "demo", Fleet: "dev", Domain: "demo.example"}}, {demo: demo.Config{Account: "demo", Fleet: "dev", Domain: "demo.example", BuildWorker: true}}} {
+ for name, path := range map[string]string{claimControlUnit: "/var/lib/carlos/oci-rootfs", "carlos-runsc.service": "/opt/carlos/runsc"} {
+ raw, err := unitsFS.ReadFile("units/" + name)
+ if err != nil {
+ t.Fatal(err)
+ }
+ installed := claimUnitContent(name, raw, cfg)
+ target := filepath.Join(root, "etc/systemd/system", name)
+ if err := os.MkdirAll(filepath.Dir(target), 0755); err != nil {
+ t.Fatal(err)
+ }
+ if err := writeFileDurable(target, installed, 0644); err != nil {
+ t.Fatal(err)
+ }
+ got, err := os.ReadFile(target)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(string(got), "ReadWritePaths=-"+path+"\n") || strings.Contains(string(got), "ReadWritePaths="+path+"\n") {
+ t.Errorf("%s requires missing directory %s", name, path)
+ }
+ if _, err := os.Lstat(filepath.Join(root, path)); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("old updater created %s: %v", path, err)
+ }
+ }
+ }
+}
+
+func TestSandboxUpdateAdoptCreatesDirectories(t *testing.T) {
+ for _, mode := range []string{"systemd", "gvisor"} {
+ t.Run(mode, func(t *testing.T) {
+ root := t.TempDir()
+ etc, opt := filepath.Join(root, "etc"), filepath.Join(root, "opt/carlos")
+ unitDir := filepath.Join(etc, "systemd/system")
+ for _, dir := range []string{unitDir, filepath.Join(etc, "carlos")} {
+ if err := os.MkdirAll(dir, 0755); err != nil {
+ t.Fatal(err)
+ }
+ }
+ if err := os.WriteFile(filepath.Join(etc, "carlos/host.env"), []byte("CARLOS_EXEC_SANDBOX="+mode+"\n"), 0600); err != nil {
+ t.Fatal(err)
+ }
+ for _, name := range systemUnitFiles {
+ raw, err := unitsFS.ReadFile("units/" + name)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := os.WriteFile(filepath.Join(unitDir, name), raw, 0644); err != nil {
+ t.Fatal(err)
+ }
+ }
+ paths := map[string]os.FileMode{filepath.Join(root, "var/lib/carlos/oci-rootfs"): 0700, filepath.Join(opt, "runsc"): 0755}
+ for path := range paths {
+ if _, err := os.Lstat(path); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("not an old box: %s: %v", path, err)
+ }
+ }
+ probe := func(args ...string) (string, error) {
+ if args[1] == dbReadSocketUnit {
+ if args[0] == "is-active" {
+ return "inactive", systemctlExit(3)
+ }
+ return "disabled", systemctlExit(1)
+ }
+ if args[0] == "is-active" {
+ return "active", nil
+ }
+ return "enabled", nil
+ }
+ call := func(args ...string) (string, error) {
+ t.Errorf("already armed box changed units: %v", args)
+ return "", nil
+ }
+ ensureSystemUnits(etc, filepath.Join(systemRootDir(opt), systemLockFile), call, probe, t.Logf)
+ for path, mode := range paths {
+ st, err := os.Lstat(path)
+ if err != nil {
+ t.Fatal(err)
+ }
+ stat := st.Sys().(*syscall.Stat_t)
+ if !st.IsDir() || st.Mode().Perm() != mode || stat.Uid != uint32(os.Geteuid()) || stat.Gid != uint32(os.Getegid()) {
+ t.Fatalf("%s: mode=%v uid=%d gid=%d", path, st.Mode(), stat.Uid, stat.Gid)
+ }
+ t.Logf("%s mode=%04o uid=%d gid=%d", path, st.Mode().Perm(), stat.Uid, stat.Gid)
+ }
+ })
+ }
+}
+
+func TestRunscEnsureMissingDirectory(t *testing.T) {
+ const root = "/opt/carlos/runsc"
+ if _, err := os.Lstat(root); !errors.Is(err, os.ErrNotExist) {
+ t.Skipf("requires absent %s: %v", root, err)
+ }
+ for _, mode := range []string{"systemd", "gvisor"} {
+ t.Run(mode, func(t *testing.T) {
+ getenv := func(k string) string {
+ if k == "CARLOS_EXEC_SANDBOX" {
+ return mode
+ }
+ return ""
+ }
+ err := ensureRunsc(context.Background(), getenv, nil, func(context.Context, ...string) (string, error) {
+ t.Error("missing runtime reached systemctl")
+ return "", nil
+ })
+ if mode == "systemd" {
+ if err != nil {
+ t.Fatal(err)
+ }
+ } else if !errors.Is(err, execsandbox.ErrRunsc) || !strings.Contains(err.Error(), root) {
+ t.Fatalf("want EXEC-SANDBOX-RUNSC with directory, got %v", err)
+ }
+ if _, err := os.Lstat(root); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("created runtime directory: %v", err)
+ }
+ })
+ }
+ r := &runscReadiness{next: time.Now().Add(time.Hour)}
+ for range 2 {
+ if err := r.check(context.Background()); !errors.Is(err, execsandbox.ErrRunsc) {
+ t.Fatalf("Ready accepted missing runtime: %v", err)
+ }
+ }
+}
diff --git a/internal/host/runsc_update_dirs_rootrunner_linux_test.go b/internal/host/runsc_update_dirs_rootrunner_linux_test.go
new file mode 100644
index 000000000..68fe21394
--- /dev/null
+++ b/internal/host/runsc_update_dirs_rootrunner_linux_test.go
@@ -0,0 +1,106 @@
+//go:build linux && rootrunner
+
+package host
+
+import (
+ "errors"
+ "os"
+ "os/exec"
+ "path/filepath"
+ "strings"
+ "testing"
+)
+
+func TestRootSandboxUpdateDirectories(t *testing.T) {
+ if os.Geteuid() != 0 {
+ t.Fatal("requires root")
+ }
+ for _, path := range []string{"/opt/carlos", "/var/lib/carlos/oci-rootfs", "/etc/carlos/host.env"} {
+ if _, err := os.Lstat(path); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("requires absent %s: %v", path, err)
+ }
+ }
+ scratch := "/root/.cache/gvisor-demos/updatedirs"
+ if err := os.MkdirAll(scratch, 0700); err != nil {
+ t.Fatal(err)
+ }
+ t.Setenv("TMPDIR", scratch)
+ t.Run("missing", TestRunscEnsureMissingDirectory)
+ if err := os.Mkdir("/opt/carlos", 0755); err != nil {
+ t.Fatal(err)
+ }
+ t.Cleanup(func() {
+ if err := os.RemoveAll("/opt/carlos"); err != nil {
+ t.Error(err)
+ }
+ })
+ binary, err := os.Executable()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := copyFileDurable(binary, "/opt/carlos/updatedirs.test", 0755); err != nil {
+ t.Fatal(err)
+ }
+ wrapper := "#!/bin/sh\nexec /opt/carlos/updatedirs.test -test.run=^TestRootSandboxUpdateRunscPayload$ -test.v\n"
+ if err := os.WriteFile("/opt/carlos/carlos", []byte(wrapper), 0755); err != nil {
+ t.Fatal(err)
+ }
+ names := []string{claimControlUnit, "carlos-runsc.service", instanceControlSocket, "data-instances.mount", "run-carlos-instances.mount", "run-carlos-logs.mount"}
+ var installed []string
+ t.Cleanup(func() {
+ out, err := exec.Command("systemctl", "stop", "carlos-runsc.service").CombinedOutput()
+ if err != nil {
+ t.Errorf("stop: %v: %s", err, out)
+ }
+ for _, path := range installed {
+ if err := os.Remove(path); err != nil {
+ t.Error(err)
+ }
+ }
+ out, err = exec.Command("systemctl", "daemon-reload").CombinedOutput()
+ if err != nil {
+ t.Errorf("reload: %v: %s", err, out)
+ }
+ })
+ for _, name := range names {
+ for _, dir := range []string{"/etc/systemd/system", "/run/systemd/system", "/usr/lib/systemd/system"} {
+ if _, err := os.Lstat(filepath.Join(dir, name)); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("preexisting unit %s: %v", name, err)
+ }
+ }
+ raw, err := unitsFS.ReadFile("units/" + name)
+ if err != nil {
+ t.Fatal(err)
+ }
+ path := filepath.Join("/run/systemd/system", name)
+ if err := os.WriteFile(path, raw, 0644); err != nil {
+ t.Fatal(err)
+ }
+ installed = append(installed, path)
+ }
+ for _, args := range [][]string{{"systemd-analyze", "verify", "/run/systemd/system/" + claimControlUnit, "/run/systemd/system/carlos-runsc.service"}, {"systemctl", "daemon-reload"}, {"systemctl", "start", "carlos-runsc.service"}} {
+ out, err := exec.Command(args[0], args[1:]...).CombinedOutput()
+ t.Logf("%s: %s", strings.Join(args, " "), out)
+ if err != nil {
+ t.Fatal(err)
+ }
+ }
+ out, err := exec.Command("systemctl", "show", "carlos-runsc.service", "-p", "Result", "-p", "ExecMainStatus").CombinedOutput()
+ if err != nil || !strings.Contains(string(out), "Result=success") || !strings.Contains(string(out), "ExecMainStatus=0") {
+ t.Fatalf("runsc unit: %v: %s", err, out)
+ }
+ t.Log(string(out))
+ for _, path := range []string{"/opt/carlos/runsc", "/var/lib/carlos/oci-rootfs"} {
+ if _, err := os.Lstat(path); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("systemd mode created %s: %v", path, err)
+ }
+ }
+ t.Run("adopt", TestSandboxUpdateAdoptCreatesDirectories)
+}
+
+func TestRootSandboxUpdateRunscPayload(t *testing.T) {
+ if _, err := os.Lstat("/opt/carlos/runsc"); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("runtime directory present: %v", err)
+ }
+ RunSystemRunscEnsure(nil)
+}
diff --git a/internal/host/runscensure.go b/internal/host/runscensure.go
index 763301fbb..52a43bf6b 100644
--- a/internal/host/runscensure.go
+++ b/internal/host/runscensure.go
@@ -58,7 +58,7 @@ func ensureRunsc(ctx context.Context, getenv func(string) string, store release.
}
root := filepath.Dir(execsandbox.RunscDir(pin))
if err := execsandbox.CheckRootDir(root); err != nil {
- return err
+ return fmt.Errorf("%w: %v", execsandbox.ErrRunsc, err)
}
// The oneshot and any manual retry share one lock under the only writable root.
lock, err := openRunscLock(filepath.Join(root, ".install.lock"))
diff --git a/internal/host/runscensure_test.go b/internal/host/runscensure_test.go
index 68b97bde6..3dff29352 100644
--- a/internal/host/runscensure_test.go
+++ b/internal/host/runscensure_test.go
@@ -256,7 +256,7 @@ func TestRunscUnitsAndDirectories(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- want := "[Unit]\nDescription=carlos pinned runsc installation\nBefore=carlos-instance-control.service\n[Service]\nType=oneshot\nUser=root\nGroup=root\nExecStart=/opt/carlos/carlos system runsc-ensure\nEnvironmentFile=-/etc/carlos/host.env\nTimeoutStartSec=120\nProtectSystem=strict\nReadWritePaths=/opt/carlos/runsc\nProtectHome=yes\nPrivateDevices=yes\nNoNewPrivileges=yes\nRestrictAddressFamilies=AF_UNIX AF_INET AF_INET6\nUMask=0077\n"
+ want := "[Unit]\nDescription=carlos pinned runsc installation\nBefore=carlos-instance-control.service\n[Service]\nType=oneshot\nUser=root\nGroup=root\nExecStart=/opt/carlos/carlos system runsc-ensure\nEnvironmentFile=-/etc/carlos/host.env\nTimeoutStartSec=120\nProtectSystem=strict\nReadWritePaths=-/opt/carlos/runsc\nProtectHome=yes\nPrivateDevices=yes\nNoNewPrivileges=yes\nRestrictAddressFamilies=AF_UNIX AF_INET AF_INET6\nUMask=0077\n"
if string(raw) != want {
t.Fatal("installer unit differs from contract")
}
@@ -266,7 +266,7 @@ func TestRunscUnitsAndDirectories(t *testing.T) {
}
for _, settings := range []claimUnitSettings{{}, {enabled: true, data: "/data", opt: "/opt/carlos"}} {
rendered := string(claimUnitContent(claimControlUnit, control, settings))
- for _, line := range []string{"EnvironmentFile=-/etc/carlos/host.env\n", "Wants=carlos-runsc.service\n", "After=data-instances.mount run-carlos-instances.mount run-carlos-logs.mount carlos-runsc.service\n", "ReadWritePaths=/var/lib/carlos/oci-rootfs\n"} {
+ for _, line := range []string{"EnvironmentFile=-/etc/carlos/host.env\n", "Wants=carlos-runsc.service\n", "After=data-instances.mount run-carlos-instances.mount run-carlos-logs.mount carlos-runsc.service\n", "ReadWritePaths=-/var/lib/carlos/oci-rootfs\n"} {
if strings.Count(rendered, line) != 1 {
t.Fatalf("control lacks exactly one %q", line)
}
diff --git a/internal/host/units/carlos-instance-control.service b/internal/host/units/carlos-instance-control.service
index 4636f281e..dc47099a4 100644
--- a/internal/host/units/carlos-instance-control.service
+++ b/internal/host/units/carlos-instance-control.service
@@ -45,7 +45,7 @@ ProtectSystem=strict
# /run/systemd/system: per-generation runtime drop-ins (zero-downtime
# deploys, plan 2 D1) and escaped .mount units for demo snapshot disks.
ReadWritePaths=/run/carlos-control /run/systemd/system
-ReadWritePaths=/var/lib/carlos/oci-rootfs
+ReadWritePaths=-/var/lib/carlos/oci-rootfs
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
diff --git a/internal/host/units/carlos-runsc.service b/internal/host/units/carlos-runsc.service
index b420839c0..7bf3432c4 100644
--- a/internal/host/units/carlos-runsc.service
+++ b/internal/host/units/carlos-runsc.service
@@ -9,7 +9,7 @@ ExecStart=/opt/carlos/carlos system runsc-ensure
EnvironmentFile=-/etc/carlos/host.env
TimeoutStartSec=120
ProtectSystem=strict
-ReadWritePaths=/opt/carlos/runsc
+ReadWritePaths=-/opt/carlos/runsc
ProtectHome=yes
PrivateDevices=yes
NoNewPrivileges=yes
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 4c12aba2c..ce19358c3 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -136,3 +136,4 @@ plan14-root-reads-edge-page-cache-1.tsv 2774b43ac5970e4340339b859204bce5eb9f83d4
plan14-root-reads-cli-default-console-carloku.tsv 2774b43ac5970e4340339b859204bce5eb9f83d4c2551f0984e919a2853d0216
plan14-root-reads-gvisor-demos.tsv f05716181a82721b38cba9b2d89c47925dc2ca426e5c4876ebf1df7b45895ee3
plan14-root-reads-dns-fresh-lookup-724.tsv 7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652
+plan14-root-reads-gvisor-update-dirs.tsv b21be069ef08ec94a356aeee4cccac4cbfff06fe93b04b32f75879f4d6efba90
diff --git a/internal/provision/testdata/plan14-root-reads-gvisor-update-dirs.tsv b/internal/provision/testdata/plan14-root-reads-gvisor-update-dirs.tsv
new file mode 100644
index 000000000..534033de9
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-gvisor-update-dirs.tsv
@@ -0,0 +1,7 @@
+# Census overlay gvisor-update-dirs, written by census-propose (#369). census-ruling-gvisor-update-dirs, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-gvisor-update-dirs.md.
+# 2 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 2a09834a13b7680f82c908ba234f22ec57d6132d078ab506dd434bc8b39f979f internal/host/units/carlos-runsc.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Root oneshot reads fixed root-owned host.env through its applet and installs compiled runtime set only under /opt/carlos/runsc; no RemainAfterExit.;rev3=census-ruling-gvisor-update-dirs;basis=Make the existing /opt/carlos/runsc writable-path entry optional when absent so systemd-mode installation exits successfully on old boxes; gvisor still refuses absent runtime directories with EXEC-SANDBOX-RUNSC. No new path or root read. file:external@0 04810deed46d3bbfaf189b86e44cf68bf716f09b7ea3349ef007c4bceb085431
+internal/host/units/carlos-instance-control.service external authority B3,C,D,E1,J4 root-input;kept=B3,C,D,E1;scope=protected-decision-only;rev3=census-ruling-agent-start-demo-3;basis=Correct the runtime-write comment to include escaped demo snapshot .mount units alongside per-generation drop-ins; service directives are unchanged.;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 final fix: retain After=nftables.service without Wants or Requires; add Restart=on-failure and RestartSec=1 so a crashed control restarts before a later edge stop can block socket activation and shutdown proofs; rewrap the header and explain this ordering. Same ExecStart and protections; no new root read, input, path, command or capability.;rev3=census-ruling-gvisor-demos;basis=Add Wants/After installer and narrowly writable rootfs parent. Keep one host.env EnvironmentFile and other hardening.;rev3=census-ruling-gvisor-update-dirs;basis=Make the existing /var/lib/carlos/oci-rootfs writable-path entry optional when absent so old updaters can start the new control unit; retain ProtectSystem=strict and the same path and environment. No new root read. file:external@0 b9d8a5520b25dc0508a0c2684d39445dfc45085776cdbb51159ecb1cee93b39c
+internal/host/units/carlos-runsc.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Root oneshot reads fixed root-owned host.env through its applet and installs compiled runtime set only under /opt/carlos/runsc; no RemainAfterExit.;rev3=census-ruling-gvisor-update-dirs;basis=Make the existing /opt/carlos/runsc writable-path entry optional when absent so systemd-mode installation exits successfully on old boxes; gvisor still refuses absent runtime directories with EXEC-SANDBOX-RUNSC. No new path or root read. file:external@0 04810deed46d3bbfaf189b86e44cf68bf716f09b7ea3349ef007c4bceb085431
+@coverage internal/host 75675fb32a8efd8ec4ab6b7eaf3283ed72aeaeb56a82f0096081734e5e08d8d5
+@coverage internal/host/units da7a1e3e835538ee4b56d31d0e19d671aa2b80d40d4ac3e5341806aaab13cf19