Repository navigation
docs(demos): the VM multi-user demo runbook (#370) - #412
Conversation
The epic's walkthrough: P6 and P4 on one VM, two GitHub users logging in with mocactl, a curl/git research turn on each user's own key, cross-user session refusals, then the host switched to the microVM tier. Folds in the B plan's runbook notes (login expiry and SH_API_TOKEN_TTL_SECONDS, device_flow_disabled, the tenancy caveat) and orders the acts around one-tier-per-host: container tier first, P4 last, because switching back needs a setup-vm.sh re-run that loses every session (rossoctl#410). Drafted, not yet performed end to end; Act 5 is the record to fill in. The research act uses deploy/vm/README.md's prompt and research-smoke.sh from rossoctl#411, which must merge first. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
The research smoke and prompt are on main now, so drop the merge-first notes. The login step quotes mocactl's new operator-fix message (rossoctl#405), and the fix list marks it fixed. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
6449ab8 to
a2a5254
Compare
Performed 2026-10-01 on the shared KVM rig at main @ 03d2ee8: every act held. One person played both users with two GitHub accounts on one laptop; two people on two laptops is not yet tried. The run's outputs replace the illustrative ones, and Act 5 is filled in. Step fixes it found: pull the sandbox image in 0a (setup-vm.sh never pulls; the rig's predated rossoctl#372), approve user 2's device code in a private window, list session ids in 3a (the TUI titles both users' sessions by the same prompt), point 4c at the hostname and kernel suffix (host and guest are both 6.18.44), and the records' order in 0d. Fix list items 4-9 are new. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
…and rossoctl#415 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
huang195
left a comment
There was a problem hiding this comment.
Summary
Most of the runbook checks out against the source at 03d2ee8. That covers the env vars and their defaults, the Redis keys, the identical 404 for another user's session and a made-up id, the audit fields, the vmpool: exec line, the seven doctor checks, the jq filter's frame fields, the section cross-references, and every cited issue number. A re-run of setup-vm.sh without the 0a variables also keeps the client id and the 4-hour TTL.
One must-fix: Cleanup says the microVM workspaces get reclaimed after 8 h, but nothing reclaims them once the worker is stopped. Six suggestions:
- four steps that fail or mislead as pasted: the 16 GiB install, the P4 smoke's mock-model drop-in,
mocactlon a fresh laptop, and user 2's terminal on one laptop; - two corrections to "Notes and limits": where a direct-mode secret actually goes, and the container tier hopping by itself.
Author: pdettori (MEMBER — maintainer)
Areas reviewed: Docs. The runbook's claims were checked against deploy/vm, deploy/microvm, packages/mocactl, packages/control-plane, packages/knative-server, harness and remote-worker.
Agent/IDE config (.claude/.vscode): none
Commits: 4 commits, all signed-off: yes
CI status: passing
| `sudo systemctl restart sh-control-plane`. Delete the research smoke's leftover subject record | ||
| (fix list 7): the file in `/var/lib/moca-control-plane/` named by the first 16 hex digits of | ||
| `sha256` of the subject the smoke printed. The research directories go with the containers, which | ||
| the re-run recreated. The microVM workspaces under `/srv/workspaces` stay until idle reclaim (8 h); |
There was a problem hiding this comment.
must-fix: nothing reclaims these. Cleanup's first command stops the worker. Idle reclaim walks only the worker's in-memory runs map (remote-worker/internal/vmpool/sweep.go:36), and a restarted worker never picks the directories up again (vmpool/workspace.go:83-85: "a restarted worker starts with an empty runs map and never sweeps a directory it does not know about"). Deleting the sessions on the laptops doesn't help either: cascadeDelete touches only Redis (packages/control-plane/src/ownership.ts:240-246).
So both users' workspaces (the clones, notes.txt, the commits) stay on the host indefinitely. The PR body says the rig's were removed by hand. Suggest the page says the same, the way P4-ON-P6.md's smoke cleanup does:
sudo rm -rf /srv/workspaces/<session id> # each session from 4d and 4eOn a host that stays P4-only (the last paragraph), reclaim does run, but only if the worker isn't restarted in those 8 h.
There was a problem hiding this comment.
Fixed in baab165. Cleanup now opens with deleting the run's /srv/workspaces/ directories by hand, says why nothing else will (the in-memory runs map, a restarted worker never sweeping unknown directories, cascadeDelete touching only Redis), and notes that on a host staying P4-only reclaim runs only if the worker isn't restarted within 8 h. On the rig they were removed by hand, as the PR body says.
|
|
||
| ```bash | ||
| sudo podman rm -f $(sudo podman ps -a --format '{{.Names}}' --filter 'name=^sh-sandbox-') | ||
| cd /opt/serverless-harness && sudo deploy/microvm/setup-microvm.sh # under 24 GiB: MICROVM_MAX_COMMITTED_MB=8192 |
There was a problem hiding this comment.
suggestion: as pasted, this fails on the rig the page was run on. The budget is only in a trailing comment, so the command installs the shipped unit, whose AssertMemory=>=23G (deploy/microvm/microvm-worker.service:95) refuses to start on 16 GiB. P4-ON-P6.md's "Install" writes it as two commands:
sudo deploy/microvm/setup-microvm.sh # a >= 24 GiB host
sudo MICROVM_MAX_COMMITTED_MB=8192 deploy/microvm/setup-microvm.sh # a smaller host (16 GiB here)8192 is the value for the 16 GiB rig, not advice for any host under 24 GiB.
There was a problem hiding this comment.
Fixed in baab165: two commands, as P4-ON-P6.md writes them (a >= 24 GiB host / MICROVM_MAX_COMMITTED_MB=8192 for the 16 GiB rig), with a note that the unit's memory assertion refuses a smaller host and that 8192 is the rig's value, not a rule for every size.
| cd /opt/serverless-harness && sudo deploy/microvm/setup-microvm.sh # under 24 GiB: MICROVM_MAX_COMMITTED_MB=8192 | ||
| ``` | ||
|
|
||
| 3. **Rehearse it:** `p4-turn-smoke.sh --auth --failure-paths` ("Automated check"), then its |
There was a problem hiding this comment.
suggestion: "then its cleanup" points at the four-deletes block. It doesn't cover P4-ON-P6.md's separate "Afterwards, point the supervisor back at the real model" step: removing sh-supervisor.service.d/90-p4-smoke.conf and /etc/serverless-harness/p4-smoke.env, restarting sh-supervisor, and stopping p4-mock-anthropic. Step 4's setup-vm.sh re-run doesn't undo it, because the script only touches sh-control-plane.service.d. 0d doesn't check SH_MODEL either. If it's missed, the supervisor stays on mock-p4, and the research rehearsal right after fails with no obvious cause. Worth naming both cleanups here.
There was a problem hiding this comment.
Fixed in baab165. Step 3 now names both cleanups: pointing the supervisor back at the real model (remove 90-p4-smoke.conf and p4-smoke.env, restart sh-supervisor, stop p4-mock-anthropic), and the deletes block. It says the step-4 re-run doesn't undo the first and 0d doesn't check it, so a miss leaves the supervisor on mock-p4. (On the rig both were done; the drop-in removal was in the cleanup script.)
| `remote-worker/internal/exec/runner.go` ignores `workspace_key`, #408). The fix is MI1 S5, owner | ||
| binding. | ||
| - **Direct credential mode.** With no injector on this VM, a user's real inference secret reaches | ||
| the shared sandbox worker for the length of a turn. MI1 S2's grants replace this. |
There was a problem hiding this comment.
suggestion: this is the wrong process. The resolved credential goes to the harness turn worker, the knative-server process sh-supervisor forks and every user shares (packages/knative-server/src/server.ts:94 upstreamCredential: auth.credential), which puts it in the model request's headers. The sandbox worker never receives it. Exec carries only command, stdin, timeout_s, streaming and workspace_key (proto/sandbox/v1/sandbox.proto), and the sandbox env allowlist is LANG, LC_ALL, LC_CTYPE, TZ (packages/k8s-sandbox/src/sandbox-env.ts:13).
In a room this decides the answer to "can the agent's bash read my key?" (no), and it names the real exposure: one harness process holds every user's key. Suggest: "reaches the shared harness worker for the length of a turn".
There was a problem hiding this comment.
Fixed in baab165, and thanks: this is the one that matters in a room. The bullet now says:
- the secret reaches the shared harness worker, the
knative-serverprocesssh-supervisorruns for every user, and goes in the model request's headers; - the sandbox never receives it: an Exec carries the command, stdin, timeout and workspace key, and the env allowlist is
LANG,LC_ALL,LC_CTYPEandTZ.
So the agent's bash can't read a key, but one harness process holds every user's key during their turns.
| `moca-egress`. | ||
| - **P4 has no internet** (#277) **and no grant binding** (MI1 S4). Its workspaces are per session, | ||
| but any holder of the relay's exec token can target any of them. | ||
| - **One tier per host.** A session re-selects its sandbox every turn, and presence records carry no |
There was a problem hiding this comment.
suggestion: the container tier hops by itself, with no second tier attached. Each sh-sandbox-N has its own /workspace and no volume (deploy/vm/setup-vm.sh:787-793). Selection is least-load with no session affinity (orderByLoad, harness/src/select-sandbox.ts:193-198, re-run every turn). So once two turns overlap, a container session's next turn can land on the other container, without its files. On an idle host, ties go to the same container, which is why 2d found both directories in sh-sandbox-1.
That doesn't break the demo (no container act depends on files across turns), but this bullet implies files survive across turns on one tier. Saying so also makes 4d's contrast stronger.
There was a problem hiding this comment.
Fixed in baab165: a new bullet, 'A container session can lose its files between turns', with least-load selection and no affinity, a /workspace per container and no shared volume, overlapping turns landing on the other container, and ties going to the same container on an idle host (which explains 2d). It points to 4d's per-session workspace as the contrast. The 'one tier per host' bullet now covers only the cross-tier hop.
| cd /opt/serverless-harness && sudo ./deploy/vm/setup-vm.sh | ||
| ``` | ||
|
|
||
| The `HDEL` answered `0` on the run: the worker's record was already gone, removed when it |
There was a problem hiding this comment.
nit: the HDEL can't act as a backstop here. The very next line, setup-vm.sh, runs start_redis, i.e. podman run --name sh-redis --replace with no volume (deploy/vm/setup-vm.sh:234). That wipes sh:sandbox:records whatever it held. The same applies to Cleanup. It only matters for a switch done without a re-run.
There was a problem hiding this comment.
Fixed in baab165. The note now says the HDEL is a no-op either way, because the setup-vm.sh re-run on the next line recreates Redis, and that it matters only for a switch made without a re-run. I also dropped it from Cleanup, where the same re-run follows.
| The run passed 13/13 on a raw Anthropic key. It leaves its minted subject's empty record in | ||
| `/var/lib/moca-control-plane/` (fix list): delete it in Cleanup. | ||
|
|
||
| **Rehearse one real login** from a laptop (1a, 1b). The smokes mint their tokens, so they never |
There was a problem hiding this comment.
nit: this rehearsal comes before 0c restricts the SSH accounts, so 1a's own check ("A +PONG means 0c does not apply to this account: stop and fix it") fails for it. Move it after 0c.
There was a problem hiding this comment.
Fixed in baab165: the rehearsal login moved to the end of 0c, through one of the restricted accounts, so 1a's own check passes for it.
| - The research turn: `deploy/vm/research-smoke.sh` (#411, `VM_RESEARCH_SMOKE=1`). | ||
| - The P4 tier with auth on: `deploy/microvm/p4-turn-smoke.sh --auth` (#409). | ||
|
|
||
| On this rig, `sudo` does not find podman-static under `/usr/local/bin`, so every `sudo podman` and |
There was a problem hiding this comment.
nit: this contradicts deploy/microvm/P4-ON-P6.md:56 ("The verified host's secure_path included /usr/local/bin"), apparently for the same rig, so one of them is stale. Also, 4b's sudo timeout 60 sh -c '… podman …' (line 495) is neither a sudo podman nor a sudo ./deploy command, so this note doesn't obviously cover it. Without the prefix, the loop prints podman: not found for 60 s and exits 124.
There was a problem hiding this comment.
You're right, and the stale one was mine. The rig's secure_path does include /usr/local/bin, so P4-ON-P6.md is correct; I'd been adding the env PATH prefix out of habit.
Fixed in baab165. The note now says the commands run as written on the rig. It gives the prefix only for a host where sudo podman isn't found, names 4b's sudo timeout … sh -c loop explicitly, and describes how that loop fails without it: podman: not found for 60 s, then exit 124.
| | 3 | **The switch back to containers loses every session.** It needs a `setup-vm.sh` re-run, which recreates `sh-redis` with no volume. | #410. The demo switches once, to P4, and only Cleanup goes back. | | ||
| | 4 | **`setup-vm.sh` never pulls the sandbox image.** A host keeps running whatever `:latest` it pulled first. The rig's predated #372 (`HOME=/workspace`). | #414. 0a pulls by hand meanwhile. | | ||
| | 5 | **The guest has no git identity.** On the P4 tier, the agent's first `git commit` fails (`exit=128`) until it sets one. The container tier's #372 image has a writable `HOME`, but no identity either. | #415: a system gitconfig in the image. | | ||
| | 6 | **Sessions show only their first prompt.** Two users running the same prompt get identical-looking lists, so 3a cannot be shown in the TUI. The rows also read `0 turns · local history` after a headless `mocactl run`. | Open. Show a short session id; count turns from the server. #406 adds `sessions`. | |
| ## Cleanup | ||
|
|
||
| **On each laptop:** delete this run's sessions in **Sessions** (`ctrl+x l`, then `d`), remove | ||
| `"${XDG_CONFIG_HOME:-$HOME/.config}/mocactl/auth.json"` to log out, `rm -f "$API_HDR"`, and close |
There was a problem hiding this comment.
nit, three small Cleanup gaps:
rm -f "$API_HDR"only works in the shell that ran 3a. Anywhere else it is a silent no-op, and a file holding a live 4-hour bearer token stays in$TMPDIR. Removing it at the end of 3a's block avoids that.- The subject-record delete (line 691) gives no command, and the file is
<16 hex>.json, not the bare hash (packages/control-plane/src/file-store.ts:57). P4-ON-P6.md'sprintf %s "$subject" | sha256sum | cut -c1-16pattern fits. - Removing the
Matchblock needssudo sshd -t && sudo systemctl reload sshdto take effect.
There was a problem hiding this comment.
All three are fixed in baab165. 3a's block ends with rm -f of its header file, and Cleanup no longer relies on it. The subject-record delete is now a command, with the printf | sha256sum | cut -c1-16 pattern and the .json suffix. Removing the Match block is followed by sshd -t and a reload (ssh or sshd).
Must-fix: nothing reclaims the microVM workspaces once the worker stops, so Cleanup now deletes them by hand first. Also: the 16 GiB install as two commands; the P4 smoke's mock-model drop-in named as its own cleanup; mocactl's alias from QUICKSTART, and user 2's SH_CONTROL_PLANE_URL; the direct-mode secret reaches the harness worker, not the sandbox; container sessions can hop between containers by themselves; the sudo secure_path note corrected (the rig needs no prefix); both expired-login messages; the HDEL is a no-op before a setup-vm.sh re-run; the rehearsal login after 0c; 3a removes its header file; Cleanup's subject-record and sshd reload commands. Fix list items 6-8 link rossoctl#417, rossoctl#418, rossoctl#419. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
huang195
left a comment
There was a problem hiding this comment.
Summary
Re-review at baab165. All 13 threads are addressed, and the fixes hold up against main @ 03d2ee8, which hasn't moved since the first review. The must-fix is resolved. Cleanup now runs rm -rf /srv/workspaces/<session id> by hand first. That path is the worker's key (remote-worker/internal/vmpool/workspace.go:35-40), and it's the same delete P4-ON-P6.md's smoke cleanup runs while the worker is up.
Also checked and correct:
- the subject-record command:
subjectHashissha256(subject)cut to 16 hex digits, and the smoke's subject isresearch-smoke:research-<epoch>-<pid>; - both login messages, and the local expiry check that produces the first (
packages/mocactl/src/core/auth.ts:53); - the alias (
QUICKSTART.md:79); start_redisrunning on everysetup-vm.shre-run;- the sshd reload (the acceptance doc's form);
- #417 to #419.
One new suggestion: Cleanup's userdel with two names fails as pasted. Five nits: a cross-reference the rehearsal move left behind, where env PATH goes, the budget pointer, the rehearsal tunnel, and ls /srv/workspaces/ on a shared host.
Author: pdettori (MEMBER — maintainer)
Areas reviewed: Docs: the delta 22ad5d9..baab165, plus a full re-read of the page. Claims were checked against deploy/vm, deploy/microvm, packages/mocactl, packages/control-plane, harness, remote-worker and proto.
Agent/IDE config (.claude/.vscode): none
Commits: 5 commits, all signed-off: yes
CI status: passing on baab165
| sudo rm -f "/var/lib/moca-control-plane/$(printf %s "$S" | sha256sum | cut -c1-16).json" | ||
| ``` | ||
|
|
||
| **Remove the participants' SSH accounts:** `sudo userdel -r user1 user2`. Then delete their |
There was a problem hiding this comment.
suggestion: userdel takes exactly one login. As written, this prints its usage, exits 2 and removes neither account. I checked it with shadow 4.13; AL2023's shadow-utils has the same argument check. One per account:
sudo userdel -r user1
sudo userdel -r user2It also refuses an account that still has a process (user user1 is currently used by process …), such as an open tunnel. So it belongs after the laptops' -O exit, where it already is.
There was a problem hiding this comment.
Fixed in 3526a9a: one userdel -r per account. That is also what ran on the rig; the page had drifted from it. The page now also says userdel refuses an account that still has a process, such as an open tunnel, so it comes after the laptops' -O exit. On the rig it ran only after the owner closed the tunnel and both accounts showed no processes.
| > the rest of the line names the fix (#405): `device_flow_disabled` means the OAuth app's **Enable | ||
| > Device Flow** box is unticked, and `GitHub knows no OAuth app with client id …` means | ||
| > `SH_GITHUB_CLIENT_ID` is mistyped. Both are fixed on the VM and on GitHub; nothing the user does | ||
| > helps. 0b's rehearsal login catches both. |
There was a problem hiding this comment.
nit: the rehearsal login moved to 0c, so this should say "0c's rehearsal login".
|
|
||
| **`sudo` must find podman.** The rig's `secure_path` includes `/usr/local/bin`, where podman-static | ||
| installs, so the commands on this page run as written. If `sudo podman version` says | ||
| `command not found` on your host, prefix every `sudo` command here with `env PATH="/usr/local/bin:$PATH"`, |
There was a problem hiding this comment.
nit: "prefix every sudo command here with env PATH=…" can be read as env PATH=… sudo podman …, which does nothing: sudo looks commands up in secure_path, not the caller's PATH. The env goes after sudo. The old text and P4-ON-P6.md:54-55 spell it out: sudo env PATH="/usr/local/bin:$PATH" ….
There was a problem hiding this comment.
Fixed in 3526a9a. The note now says env PATH=… goes after sudo, with the full form, sudo env PATH="/usr/local/bin:$PATH" podman …, and says why it does nothing before sudo: sudo looks commands up in its secure_path, not the caller's PATH.
|
|
||
| Use one of the two. The shipped unit asserts at least 23G of memory and refuses to start on a | ||
| smaller host, so a 16 GiB host needs the budget. 8192 is the 16 GiB rig's value; on another size, | ||
| pick it from `P4-ON-P6.md`, "Install". |
There was a problem hiding this comment.
nit: "pick it from P4-ON-P6.md, Install" leads nowhere. Install's only figure is this same 8192 for 16 GiB, and its Prerequisites (line 62) point back at Install. The bounds are in the script. The budget must be above the unit's 4096 MiB reserve (setup-microvm.sh:78-80), and the drop-in asserts 90% of the budget as physical memory (setup-microvm.sh:177). Name those, or drop the pointer.
There was a problem hiding this comment.
Fixed in 3526a9a. I dropped the pointer and named the script's two bounds instead:
- the budget must be above the unit's 4096 MiB reserve, or
setup-microvm.shrefuses it; - the drop-in asserts 90% of the budget as physical memory, so the host needs at least that much.
| accounts, `user1` and `user2`, created with `useradd -m -s /usr/sbin/nologin` and an | ||
| `authorized_keys` each. | ||
|
|
||
| **Then rehearse one real login** from a laptop, through one of those accounts (1a, 1b). This comes |
There was a problem hiding this comment.
nit: say to close the rehearsal tunnel afterwards, with Cleanup's ssh -S ~/.ssh/moca-tunnel -O exit <account>@<vm>. Left open overnight, its master still holds local 8090 and 8080 on the day. Then 1a's -M -S finds the control socket taken, and ExitOnForwardFailure=yes makes it exit on the bind failure.
There was a problem hiding this comment.
Fixed in 3526a9a. 0c's rehearsal now ends by closing its tunnel, with Cleanup's -O exit, and says what happens otherwise: an overnight tunnel still holds 8090 and 8080 on the day, and 1a's tunnel exits on the bind failure.
| the running worker's in-memory list. The worker restarts with an empty list and never sweeps a | ||
| directory it doesn't know about, and deleting a session touches only Redis. So the users' files | ||
| (notes, commits) would stay on the host indefinitely. Use the session ids from 4c to 4f, and | ||
| `ls /srv/workspaces/` to find any others from the run: |
There was a problem hiding this comment.
nit: on a host that was P4-only before the demo, like the rig, /srv/workspaces/ also holds workspaces from before it. ls -lt (newest first) sorts the run's apart from those before anything is rm -rf'd.
There was a problem hiding this comment.
Fixed in 3526a9a: Cleanup lists sudo ls -lt /srv/workspaces/ before the rm -rf, and says why. On a host that ran P4 before the demo, the directory also holds earlier workspaces. On the rig there were five, which is how the run's extra one from 17:26 was told apart from them.
One userdel per account (it takes a single login, and refuses one with a live tunnel); env PATH goes after sudo; the microVM budget's two bounds instead of a pointer that led nowhere; close the rehearsal tunnel; "0c's rehearsal login"; ls -lt to tell the run's workspaces from older ones on a shared host. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Part of epic #370: the demo runbook,
docs/demos/vm-multi-user-demo.md. Items A–D (#366, #367, #368, #369) supplied its pieces. It is rebased onmain@ 03d2ee8, after #411 (the research turn) and #413 (the #405 login hint) landed.Performed end to end on the KVM rig, 2026-10-01
The runbook was run in full on the shared KVM rig, at
main@ 03d2ee8 plus this page:m8i.xlarge, Amazon Linux 2023, 16 GiB;Every act held. The run's outputs replace the illustrative ones, and Act 5 records it.
One person played both users, with two GitHub accounts on one laptop: two
XDG_CONFIG_HOMEdirectories and one tunnel. Two people on two laptops was not tried. The page says so.p4-turn-smoke.sh --auth --failure-pathspassed 34/34, and its cleanup's four deletes answered 204.research-smoke.shpassed 13/13 on a raw Anthropic key. Both tunnel accounts were refused a shell, and their Redis forward wasadministratively prohibited. The running config matched 0d.github:6678093andgithub:228572680logged in through the device flow.doctorpassed all seven checks for both.git cloneandcurl -oin a container sandbox. Each answered03d2ee8c067d,v26.10.0,2026-09-21, which equalsgit ls-remoteand nodejs.org's index. The audit shows each turn spent its own user's credential (anthropic,anthropic-dev). Both research directories landed insh-sandbox-1, which shows the shared-/workspacelimit live.that session no longer exists, or is not yours, exit 1), and the owner resumed normally.moca_microvm_0alone, in 2 s, with no new login. The guest reportedLinux (none) 6.18.44+, the host6.18.44-99.149.amzn2023. Each user's workspace survived across VMs: user 1 had 3 Execs in 3 VMs, user 2 the same. User 2 saw only their own commit. The guest's curl failed withcurl: (6) Could not resolve host: nodejs.org.What the run changed in the runbook
setup-vm.shnever pulls, and the rig's:latestpredated feat: per-user inference credential headers and sandbox research tooling (#368 phase 1) #372 (HOME=/workspace). Filed as deploy/vm: setup-vm.sh never pulls the sandbox image, so a host runs a stale :latest #414.sudo env PATHnote for podman-static;session_createdentries.run;research-smoke.shleaving an empty subject record;The acts
mocactl login, each user's own credential,doctor.mocactl run --json | jq. The answer checked against the world. The audit stream. The shared/workspace.uname -acontainer versus guest, a workspace that outlives its VMs (journal evidence), a workspace per user, and no network in the guest (P4.1: implement microVM egress transport (vsock → shared proxy) #277).Act order follows one tier per host
A host serves one tier at a time. Switching back to containers needs a
setup-vm.shre-run, which recreatessh-redisand loses every session (#410). So:The run confirmed that this works: the relay kept the worker's token through the prep re-run, and the containers' presence records went the moment they disconnected.
Notes and limits (from the epic)
setup-vm.shre-run forgets every session (deploy/vm: setup-vm.sh re-run recreates sh-redis (no volume) and loses every session #410).Testing
The rig afterwards
It is restored to the state it was found in: P4-only, its earlier checkout, and
control-plane.envandsshd_configfrom backups. The tunnel accounts, the run's sessions, workspaces and smoke leftovers are removed.Two exceptions:
:latest;🤖 Generated with Claude Code