carlos / platform Public

gvisor demos: explicit runsc stop and overlay none (spec rev 5.4)

Root runner 20261108T221438-3cee35: runsc run dies of SIGTERM
without forwarding it, so stop runs runsc kill TERM then runsc wait.
Both overlay modes passed; none joins the asserted argv.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5a9142fb33f6ed258d9551142a81976d4fc7a3ee parent a9522d5
1 file changed, +11 −1
  • docs/superpowers/specs/2026-11-08-gvisor-demos-design.md +11 −1

CI failed — run details

diff --git a/docs/superpowers/specs/2026-11-08-gvisor-demos-design.md b/docs/superpowers/specs/2026-11-08-gvisor-demos-design.md
index 927d992e7..478be7e73 100644
--- a/docs/superpowers/specs/2026-11-08-gvisor-demos-design.md
+++ b/docs/superpowers/specs/2026-11-08-gvisor-demos-design.md
@@ -1,4 +1,4 @@
-# gVisor sandbox for anonymous demos: design (2026-11-08, rev 5.3)
+# gVisor sandbox for anonymous demos: design (2026-11-08, rev 5.4)
Discussion: amadan carlos/platform #527. Spike: `~/.cache/gvisor-spike/REPORT.md`
and `astra-integration.md` (2026-11-07, runsc release-20261102.0, systrap, t4g).
@@ -291,6 +291,16 @@ fit.
### 6.5 Stop, exit and stale state
+**Rev 5.4 (build rulings, root runner `20261108T221438-3cee35`):** `runsc run` does not
+forward SIGTERM to the guest (exit record `code=killed status=TERM`, no guest receipt).
+Graceful stop is explicit: `ExecStop=<runsc> --root=/run/carlos-runsc kill <id> TERM`
+then `ExecStop=<runsc> --root=/run/carlos-runsc wait <id>`, bounded by
+`TimeoutStopSec`, after which systemd kills the whole cgroup. The asserted runsc run
+argv gains `--overlay2=none` (measured: both `none` and `root:memory` pass every
+check; `none` has no writable root layer). The paragraph below is superseded where
+it says runsc forwards TERM.
+
+
`KillMode=mixed`: SIGTERM to runsc, which forwards it to the guest init (trampoline),
which forwards to the app; SIGKILL to the cgroup after `TimeoutStopSec`. The root
runner proves graceful stop and the kill path. The trampoline writes the exit record