gvisor demos: design rev 5 with Paul's round 4 cut
Round 4 (Astra, e577d5dc): one P1. Paul: cut as recommended. gVisor mode requires the recovery guard executor and its trigger files to be absent; an operator rule covers pre-gVisor binaries. No further design round.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+27
−6
docs/superpowers/specs/2026-11-08-gvisor-demos-design.md+27 −6
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 ca0d54f5a..9830565aa 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 4) |
| +# gVisor sandbox for anonymous demos: design (2026-11-08, rev 5) |
| Discussion: amadan carlos/platform #527. Spike: `~/.cache/gvisor-spike/REPORT.md` |
| and `astra-integration.md` (2026-11-07, runsc release-20261102.0, systrap, t4g). |
| @@ -10,7 +10,9 @@ repeated families. Paul ruled 2026-11-08, "A-D as recommended" (via platform-f6) |
| A exec-sandbox floor and no fence, B one root stop-uncertain verb, C no generation |
| overlap for gVisor demos, D no new exit record kind. Rev 3 applies them; see §15. |
| Round 3 (Astra, 77e2943c, NOT READY: 2 P1, 2 P2) is answered in rev 4; see §17. |
| -A round 4 needs Paul's go. |
| +Round 4 (Paul's go, narrow; Astra, e577d5dc, NOT READY: 1 P1) was answered by a cut |
| +Paul accepted 2026-11-08, "Cut as recommended" (via platform-f6); rev 5 applies it |
| +with no further design round (§18). |
| ## 1. What a user gets, and when |
| @@ -342,16 +344,29 @@ box whose effective mode is gVisor. This is the moves/seeds floor pattern |
| (a) no system-apply journal is open (`/opt/carlos/system/router/journal.json` |
| absent): the first roll onto this release is driven by the old updater process, |
| whose own in-process rollback has no floor, so gVisor waits until that roll has |
| - finished; (b) the guard executor (`/opt/carlos/system/guard/carlos`, the recovery |
| - unit's first branch) is absent or aware; (c) the installed |
| + finished; (b) the guard executor (`/opt/carlos/system/guard/carlos`) and every file |
| + the recovery unit's first branch tests to run it |
| + (`/var/lib/carlos-claims/authority/exec/census.json` and |
| + `/opt/carlos/system/guard/moves`, as files or links) are ABSENT (round 4 P1, Paul's |
| + cut): with them absent the first branch cannot fire, and the second branch |
| + carries the exec-sandbox check. This only narrows ruling 5's refusal of host-claims |
| + mode to the exact paths the shell tests; (c) the installed |
| `carlos-system-recover.service` is byte-identical to this binary's embedded copy. |
| Otherwise Ready fails with `EXEC-SANDBOX-BASELINE` naming which, and nothing |
| starts. `carlos.prev` may be unaware: after (a) every path that could restore it |
| runs aware code, which refuses it. A journal opened later by this binary is an |
| aware transaction, but Ready still refuses while it is open, so no demo starts |
| mid-update. Dev order: roll the aware release in systemd mode, then set gvisor and |
| - restart. A fresh box whose pointer is unaware never runs an aware binary, so it |
| - never enters gVisor mode. |
| + restart. |
| +- **Operator rule (round 4 P1 case 2, Paul's cut).** A binary older than this |
| + release cannot be made to honour a switch it has never heard of: a box that runs a |
| + pre-gVisor binary with `gvisor` already in host.env (for example re-imaged from an |
| + old pointer with host.env kept) runs demos natively. So `CARLOS_EXEC_SANDBOX=gvisor` |
| + is set only on a box whose `carlos status --layout` already shows the exec-sandbox |
| + line, which only aware binaries print. The internal runbook (`docs/superpowers/ |
| + runbooks/gvisor-demos.md`, written with the build; the switch stays out of public |
| + docs) states it. A bootstrap-script check that would close this in code is a |
| + follow-up discussion, not this build. |
| - **Below the floor:** an operator sets `CARLOS_EXEC_SANDBOX=systemd`, restarts |
| (root drains and reports systemd), then rolls back. The floor binds only while the |
| effective mode is gVisor. |
| @@ -510,3 +525,9 @@ stop-uncertain finds either family; overlap refused in gVisor mode. |
| | 2 stop-uncertain loses the start fence | P1 | termination proof vs future submission | §7: the stop verb is today's fenced `/stop`, family-aware; gVisor gen role refused, so no gen path | |
| | 3 aware marker reader | P2 | capability identification | §7 marker bytes + bounded reader + stripped-build tests | |
| | 4 size report | P2 | logical vs physical limits | §6.2 `readSizeInForce` uses `Physical` and the retained unit | |
| + |
| +## 18. Round 4 answer |
| + |
| +| R4 | Sev | Family | Answer | |
| +|---|---|---|---| |
| +| 1 guard executor and old bootstrap bypass Ready | P1 | no native fallback (activation, recovery) | Paul's cut: guard executor and its trigger files must be absent for gVisor mode (§7 (b)); operator rule plus runbook for pre-gVisor binaries; bootstrap check filed as a follow-up | |