You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A real exec mode: sprites as containers on k3d, with long-lived services and a working per-sprite URL #22
spritzer's exec is a scripted interpreter (echo > path, cat, rm, true/false, ./risky.sh, echo-back) over an in-memory filesystem. That is right for checkpoint-as-compensation tests. But nothing real can run on a sprite: not a provisioning script, not node, not a long-lived service. A per-sprite URL is returned (/s/<name>), but nothing listens behind it. So spritzer cannot host an arugula studio box locally, and fountain-ops' laptop data plane cannot complete a turn (fountain-ops#91; its status page records spritzer answering -32601 to ACP initialize).
Change
Add an opt-in real mode beside today's interpreter, which stays the default so chant's existing Sprites tests keep their meaning.
SPRITZER_EXEC=container (name open): each sprite is a container. On k3d that is a pod in spritzer's namespace from a configurable image (SPRITZER_SPRITE_IMAGE, default a Debian image with node and git). Create, exec, destroy and list map onto it. Exec runs the real command over the same framed WebSocket (stdin, stdout, stderr, exit), with cwd and env.
Services that outlive an exec: whatever sprite-env services (or the Sprites services API wisp implements) needs so a box's door, hud and chud box keep running. Match wisp's surface where the real Sprites API is silent.
The per-sprite URL /s/<name> (and <name>.<host>) proxies HTTP and WebSocket to the sprite's published port, 8080 by default, as Sprites does.
Checkpoint and restore in real mode: a filesystem snapshot of the container, or refuse clearly if that is out of scope.
ACP initialize for fountain turns falls out of real exec, because claude-agent-acp actually runs.
Acceptance
On k3d with real mode, the following all work through spritzer's Sprites API:
create a sprite, then run uname -a and a multi-line shell script and get their real output;
start python3 -m http.server 8080 as a service, fetch it through the sprite URL, and still fetch it after the exec that started it has ended;
destroy the sprite, after which its pod is gone.
Interpreter mode is unchanged: the existing test suite passes as-is.
Check
A new integration test runs against a k3d cluster (CI or just e2e-real) and asserts the steps above. arugula-salad/studio's spritzer+k3d local option then boots a box on it; see the studio tracking issue arugula-salad/studio#29.
Activity