AgentSandbox
Isolate agent execution with resource limits and egress controls
Mechanism
Execution isolation for AI Agents treating them as untrusted insiders. The Agent runs in a containerized environment (gVisor, Firecracker microVM) with: resource quotas (CPU, memory, time), network egress allowlists, filesystem restrictions, and comprehensive logging. Code generated by the Agent is executed in this Sandbox, preventing impact on production systems even if the agent is compromised or generates malicious code. It wraps the execution Context with InputGuard to sanitize ingress data and OutputGuard to prevent exfiltration, effectively placing the Agent in a digital quarantine.
Invariants
- Network egress is whitelist-only.
- The sandboxed process cannot reach the host filesystem.
- Declares resource quotas for CPU, memory and time.
- Every action inside the Sandbox is logged.
Signature
- Sandbox(Agent)
Preconditions
- Resource limits defined
- Untrusted code/agent
Postconditions
- Execution completed or terminated by supervisor
Failure modes
- Sandbox Escape: Exploiting container vulnerabilities.
- Quota Starvation: Legitimate tasks failing due to overly restrictive limits.
- Log Blindness: Missing critical events in Audit logs.
Where this came from
—
Builds on
- Agent references
- Audit references
- Sandbox references
- Context references
- OutputGuard composes_with
- InputGuard composes_with
Used by
- EmpathySim references
- MentalSim references
Related
Identity
- Ref:
AgentSandbox#1594 - Hash: sema:AgentSandbox#mh:SHA-256:1594a10a882956e4b8501764091e1d5025ba0b405cce34b7ef931bb17e5c634a
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository