Tangled CI runs on microVMs
Tangled's self-hostable CI runner, spindle, adds a microVM engine that boots each workflow in its own QEMU microVM, with NixOS images configurable directly from the workflow YAML (services like Postgres, Docker, flake dependencies, binary caches). A Rust guest agent, shuttle, dials back over vsock and executes steps as an unprivileged user. Host-side proxies give the guest read/write access to Nix caches without credentials, and background uploads mean rebuilt paths are reused on later runs. Isolation comes from unprivileged user/net namespaces, slirp4netns, blackhole routes for RFC 6890 ranges, and a filtering DNS proxy, with a fair resource scheduler and optional per-workflow cgroups for enforcement and clear OOM reporting.
Related posts
- Comparing Different Approaches to Sandboxing
Docker easyNoviceAI agents need strong isolation because hallucinations and prompt injection can lead to destructive commands, and the common sandboxing options trade isolation against cost. chroot isolates only the filesystem and can be escaped by root processes. systemd-nspawn adds process and network isolation but is Linux-only. Containers need privileged mode for Docker-in-Docker, which weakens isolation, and full VMs like Lima cost about 4GB RAM and 30-60s boot per agent. MicroVMs with a dedicated guest kernel and gVisor's user-space syscall interception sit in between, and Docker Sandboxes is pitched as a cross-platform microVM option with hypervisor, network and per-sandbox Docker Engine isolation.
- Why MicroVMs: The Architecture Behind Docker Sandboxes
Docker easyNoviceDocker Sandboxes run each AI coding agent session in a dedicated microVM with its own kernel and a private Docker daemon, giving VM-grade isolation while still allowing docker build, run and compose without socket mounting or host privileges. Full VMs are too slow for ephemeral sessions, containers force privileged Docker-in-Docker, and WASM/V8 isolates offer weaker isolation and no real OS environment. Because Firecracker is Linux/KVM-only, Docker built a new cross-platform VMM on Hypervisor.framework, Windows Hypervisor Platform and KVM to get fast cold starts on developer laptops. File, network and secret policies are set by infrastructure before the agent runs, with credentials injected from outside the VM boundary.
- The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do
Docker mediumAdeptAI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine. Outbound traffic goes through a TLS-intercepting host proxy that enforces domain policies and injects credentials from the host keychain, so secrets never enter the VM. Two limits remain: domain-level allowlists still permit exfiltration via sites like github.com, and the shared workspace lets an agent plant Git hooks, package.json scripts or CI configs that later run on the host. A real Astro build showed no measurable microVM overhead, though a jemalloc dependency failed on 16K-page Apple Silicon VMs. Agent output should be reviewed like an untrusted pull request, for example by diffing .git/hooks and using --branch worktrees.
- Introducing Deno Sandbox
Deno mediumAdeptDeno Sandbox runs untrusted, often LLM-generated code in lightweight Linux microVMs on Deno Deploy that boot in under a second and are created via JavaScript or Python SDKs. Secrets never enter the VM: code sees a placeholder that an outbound proxy swaps for the real key only on requests to approved hosts, and egress allowlists block unlisted hosts at the VM boundary. Sandboxes can deploy straight to Deno Deploy with sandbox.deploy(), persist state with volumes and snapshots, and run with 2 vCPUs, 768 MB to 4 GB of memory and a 30-minute maximum lifetime. A later update says the product is no longer offered to new customers after Deno joined Cloudflare.
- Run CI in your Namespace workspace
Tangled easyNovice
Tangled's spindle CI gains a `namespace` engine that runs workflows on a user's own Namespace workspace with multiarch machines and cache volumes, authenticating via short-lived OIDC tokens exchanged for workspace access instead of stored credentials. A Discord integration now posts issues, PRs, tags and star milestones for public repos. Community-built knots (static-file, Cloudflare Worker, S3-backed) and spindles (Crow CI, OxCaml/OCluster) are highlighted, alongside new themes and Knot 1.20.1, which fixes `go get` on shallow and sha256 repos, auto-requests crawling, and adds `knot doctor` checks.