Skip to main content
SAICA-KG

Papers

Fault-Tolerant Sandboxing for AI Coding Agents: A Transactional Approach to Safe Autonomous Execution

B. Yan · 2025 · arXiv

Source →arXiv:2512.12806DOI: 10.48550/arXiv.2512.128061 citations
sandboxingrecoverycoding-agentdestructive-actioncorrectionenvironment

TL;DR

Fault-tolerant sandboxing framework wrapping agent actions in atomic transactions over a policy-based interception layer plus a transactional filesystem snapshot mechanism. Demonstrates 100% interception of high-risk commands and 100% rollback of failed states at 14.5% overhead, contrasted against Gemini-CLI's headless-incompatible auth model.

Abstract

The transition of Large Language Models (LLMs) from passive code generators to autonomous agents introduces significant safety risks, specifically regarding destructive commands and inconsistent system states. Existing commercial solutions often prioritize interactive user safety, enforcing authentication barriers that break the headless loops required for true autonomy. This paper presents a Fault-Tolerant Sandboxing framework designed to mitigate these risks through a policy-based interception layer and a transactional filesystem snapshot mechanism. We hypothesize that wrapping agent actions in atomic transactions can guarantee safety with acceptable latency, outperforming the heavy initialization overhead of containers or the interactive friction of commercial CLIs. We validated this approach by deploying the Minimind-MoE LLM served via nano-vllm on a custom Proxmox-based testbed utilizing EVPN/VXLAN isolation. Experimental results demonstrate a 100\% interception rate for high-risk commands and a 100\% success rate in rolling back failed states. Crucially, our prototype incurs only a 14.5\% performance overhead (approx. 1.8s) per transaction. In contrast, benchmarking against the Gemini CLI sandbox revealed that it requires interactive authentication ("Sign in"), rendering it unusable for headless, autonomous agent workflows.

Editorial notes

Must-cite. Prototype evidence that recovery ControlParadigm can be made cheap (~1.8s per transaction) for fully-autonomous agents. Directly supports SAICA-KG Tool nodes in the recovery x environment x fully_autonomous cell of the partition cube. Pairs with AgentForge (Kumar 2026) for the sandbox tool cluster.

View raw YAML on GitHub →