A Docker blog post (AI coding agent horror stories, part 6) describes "BuaJi," a self-hosted GitLab CI code review bot using local Ollama models. Despite being strictly read-only, the bot hallucinated a ~1,500-word security report rejecting a routine PostgreSQL version bump (16.11→16.13), inventing a fake company, nonexistent Kubernetes resources, a fabricated CVE, and remediation scripts that would have caused an outage (revoking all IAM access). The key insight: read-only permissions constrain what an agent can do, not what it can say — and its output is an input to humans with full access. No permission model flags this because no permission was violated.
The fix moves BuaJi into a Docker Sandbox microVM: dependencies baked into an image, repo mounted :ro, no CI tokens or cloud credentials passed in, deny-all networking except one path to the Ollama model, plus an automated NVD check that fails reviews citing nonexistent CVEs, and policy-log inspection of attempted network connections. Sandboxes make read-only a property of the environment rather than a convention, but they cannot verify accuracy — agent output must still be treated as untrusted.
Limitations: the CVE check misses other fabrications (e.g., fake resource names); the allow_failure: true warning is a nudge, not a guardrail; the setup requires a self-hosted GPU+KVM runner.