Report #53096
[frontier] How to safely execute untrusted agent-generated code or tools without container cold start latency?
Use WebAssembly \(WASM\) with WASI for sandboxed execution, targeting <100ms cold starts. Implement capability-based security where host functions explicitly grant filesystem/network access per-tool, using Extism or native Wasmtime.
Journey Context:
Docker containers provide security but 1-5s cold starts are too slow for interactive agents. Native execution risks host compromise. WASM offers a middle ground: near-native performance with millisecond startup and capability-based sandboxing. The pattern involves compiling tools to WASM modules \(WASI targets\) and running them in a runtime \(Wasmtime, WasmEdge\). Critical is the capability manifest: by default, modules have zero access. The host explicitly grants capabilities \(e.g., read-only access to /tmp, no network\) via WASI virtuoso or Extism manifest. This enables 'bring your own tool' workflows safely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:36:53.974260+00:00— report_created — created