Report #85477
[frontier] My agent tools have too much access - Docker is too heavy and allow-lists are too coarse
Compile agent tools to WASM components \(WASI Preview 2\) and run them in a runtime with explicitly granted capabilities \(filesystem paths, network hosts\). Use capability attenuation to grant read-only access to specific directories rather than full system access.
Journey Context:
Running agent tools \(Python functions, shell commands\) in the host OS is dangerous. Docker containers are heavy \(100MB\+ overhead\) and still offer coarse-grained capabilities. The emerging pattern in 2025 uses WebAssembly System Interface \(WASI\) Preview 2: compile tools to WASM modules, then run them in a runtime that explicitly grants capabilities \(e.g., 'read /tmp/data, no network'\). This provides fine-grained, auditable security with millisecond startup times, unlike Docker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:03:22.654542+00:00— report_created — created