VM: Booting Linux 7.x… Sandbox: Idle Generator: Instant Blueprints

Browser-Native Voicebox · Unkernel Linux 7.x + Opaque Mini-App Sandbox + WebMCP

VM Runtime Mini-Apps

The original Voicebox harness paired a browser room with a local Node.js daemon to run shell commands and mount model-generated HTML mini-apps. This lab replaces that local daemon with a real Unkernel Linux 7.x kernel booted silently inside a browser Dedicated Worker (zero network, 9p /workspace, and host command /run/kw/bin/launch-app). Generated mini-apps run in an opaque <iframe sandbox="allow-scripts"> with connect-src 'none', reach Linux only through a scoped MessagePort allowlist, and register dynamic WebMCP tools back into the Room.

Why this matters

Model-generated HTML/JS interfaces cannot be trusted with ambient origin storage, outbound network access, or raw shell execution. Putting a local Node daemon behind a web app also adds installation friction and runs commands with full host user privileges.

What this opens up

Zero-install, software-on-demand workspaces delivered by a URL: speak or type a task, save HTML to /workspace/apps/ inside an offline browser Linux VM, mount it in an opaque null-origin iframe, execute allowlisted Linux tools (awk, grep, sha256sum, wc, sort, head), and drive the UI back through WebMCP tools.

How the tests work

Launch any of the 3 instant blueprint apps (or invoke Launch via Linux /run/kw/bin/launch-app), call its registered WebMCP tools from the right-hand panel, edit the live HTML/JS code drawer to re-mount immediately, and run the Hostile Runtime App Attack Probe to verify network, DOM, and VM escapes all fail closed.

Voice & Prompt Room

Launch an instant blueprint app, trigger /run/kw/bin/launch-app from Linux, or generate custom mini-app HTML via voice/prompt and an optional model provider.

Room Event & Voicebox Transcript

    Active Opaque Sandbox Mini-App

    Waiting for Linux VM boot to mount default mini-app…

    origin: pending connect-src: 'none'
    Live Mini-App HTML/JS Source Drawer (Edit & Re-Mount Immediately)

    Modify the mini-app markup, CSS, Linux window.vmBridge.exec(...) calls, or document.modelContext.registerTool(...) schema below, then save to /workspace/apps/ and re-mount in a fresh opaque iframe.

    Registered WebMCP Tools

    Dynamic tools published by the active mini-app via document.modelContext.registerTool() over its MessagePort.

    0 tools
    Last WebMCP Tool Response
    Register and call a mini-app tool above to inspect structured output.

    Linux 9p /workspace Files

    Live MemoryFs mounted at /workspace inside the offline unkernel Dedicated Worker.

    Select a /workspace file to inspect its current bytes in Linux
    Booting Linux VM…

    MessagePort Bridge & VM Policy Audit Log

    Every vmBridge file read/write, allowlisted Linux command, WebMCP registration, and blocked escape attempt crossing the sandbox boundary.

    0 events
    Time Decision Operation Target Detail
    Containment Architecture: Offline Unkernel Linux 7.x Worker + Scoped MessagePort Allowlist + Opaque Mini-App Iframe
    Host Room (Main Origin)

    Voice input (SpeechRecognition), prompt router, optional model provider, WebMCP tool caller, and public/lib/mini-app-host.js policy broker.

    Strict CSP (no unsafe-inline) No API keys in VM or iframe
    Dedicated Worker: Unkernel Linux 7.x

    public/daemon-worker.js boots unkernel.wasm (memoryMiB: 112, zero network) with 9p MemoryFs at /workspace and host command /run/kw/bin/launch-app.

    net: undefined /workspace/apps/*.html awk · grep · sha256sum · wc · sort · head
    Opaque Sandbox Iframe (origin = "null")

    <iframe sandbox="allow-scripts" src="/sandbox/mini-app"> enforces default-src 'none'; connect-src 'none'. Talks to Linux only over a transferred MessagePort.

    window.vmBridge document.modelContext.registerTool fetch() / parent DOM / rm -rf blocked
    Key terms & further reading
    Unkernel (Linux 7.x in WebAssembly)
    A real Linux 7.x kernel compiled to WebAssembly with an MMU and 9p host mounts, executing inside a browser Worker via WebAssembly JSPI without a server.
    Opaque Sandboxed Iframe
    An <iframe sandbox="allow-scripts"> without allow-same-origin runs at a unique "null" origin, blocking access to parent DOM, cookies, and origin storage.
    MessagePort Capability Bridge
    A transferred MessageChannel port acts as an unforgeable private pipe where the host enforces path confinement and command allowlists before forwarding calls to Linux.
    WebMCP (document.modelContext)
    A web-native tool registration pattern allowing a rendered page or mini-app to declare structured callable tools and JSON schemas to an enclosing agent loop.
    Voicebox Runtime Mini-Apps
    Paul Kinlan's browser voice harness pattern where generated HTML files are saved to a shelf, mounted inside sandboxed iframes, and scripted back via WebMCP.
    WebAssembly JSPI
    JavaScript Promise Integration (WebAssembly.Suspending) lets compiled C kernel code suspend across asynchronous browser I/O without blocking the main UI thread.