Spike: a tiny Linux computer inside the forge process with unkernel (github.com/pithings/unkernel).
unkernel is Linux with an arch/wasm port; aarch64 userland runs on an emulated CPU plus a wasm JIT. It runs in Node (npx unkernel). It reports about 0.3 s to an Alpine prompt and 48 MiB RAM, with a block device we can back ourselves, and host commands: JS functions that appear in the guest at /run/kw/bin/NAME. computerplease.dev shows the shape (an SSH-keyed computer with a SQLite disk, and an agent command that runs on the host so secrets and the model never enter the VM).
Time-boxed spike, measured, behind no door yet. Answer with numbers:
Does it boot under Bun 1.4.4 (the README names only Node)? Boot time, and RSS per guest.
In the guest: git clone of a small forge repo, bun install (or npm) of a small app, and a test run. Wall time against native on the same host.
Its disk as blocks in a SQLite table, persisting across stop and start; size on disk for an Alpine image plus one repo.
One host command (e.g. forge calling the forge API with the host's token) proving the token never enters the guest.
Wire the web terminal to one guest over its console or vsock.
What this decides: (a) whether a wasm guest replaces bwrap/Landlock for light agent steps where namespaces are not available; (b) per-person or per-repository computers that sleep at zero cost and wake in under a second; (c) the host-command pattern for keeping secrets out of the sandbox.
Name the licence: kernel GPL-2.0, the npm package MIT AND GPL-2.0-only. Keep it as a separately loaded wasm, never linked into forge source, and say whether that holds for sold forges.
Out of scope: shipping it, Cloudflare. Report in a comment with the numbers, and a recommendation.
Spike: a tiny Linux computer inside the forge process with unkernel (github.com/pithings/unkernel).
unkernel is Linux with an arch/wasm port; aarch64 userland runs on an emulated CPU plus a wasm JIT. It runs in Node (npx unkernel). It reports about 0.3 s to an Alpine prompt and 48 MiB RAM, with a block device we can back ourselves, and host commands: JS functions that appear in the guest at /run/kw/bin/NAME. computerplease.dev shows the shape (an SSH-keyed computer with a SQLite disk, and an
agentcommand that runs on the host so secrets and the model never enter the VM).Time-boxed spike, measured, behind no door yet. Answer with numbers:
bun install(or npm) of a small app, and a test run. Wall time against native on the same host.forgecalling the forge API with the host's token) proving the token never enters the guest.What this decides: (a) whether a wasm guest replaces bwrap/Landlock for light agent steps where namespaces are not available; (b) per-person or per-repository computers that sleep at zero cost and wake in under a second; (c) the host-command pattern for keeping secrets out of the sandbox.
Name the licence: kernel GPL-2.0, the npm package MIT AND GPL-2.0-only. Keep it as a separately loaded wasm, never linked into forge source, and say whether that holds for sold forges. Out of scope: shipping it, Cloudflare. Report in a comment with the numbers, and a recommendation.