A contract-enforced, sandboxed system for studying AI agent self-replication
AI Replication Sandbox models a replication-aware worker system where autonomous agents can self-replicate under strict, auditable constraints. It provides a simulator-friendly environment for testing replication policies without requiring Docker or Podman — while documenting the exact resource and network boundaries each worker would get in production.
Why does this exist? As AI agents gain autonomy, controlling how and when they spawn copies of themselves is a critical safety challenge. This project provides a testbed for designing and validating those controls.
┌─────────────────────────────────────────────────────┐
│ Controller │
│ ┌──────────┐ ┌──────────┐ ┌────────────────┐ │
│ │ Contract │ │ Registry │ │ Kill Switch │ │
│ │ Engine │ │ & Quotas │ │ & Audit Trail │ │
│ └──────────┘ └──────────┘ └────────────────┘ │
│ ▲ ▲ ▲ │
│ │ sign │ register │ kill │
│ │ │ │ │
│ ┌──────┴────────────┴───────────────┴──────────┐ │
│ │ Manifest (HMAC-signed) │
pip install ai-replication-sandboxfrom ai_sandbox import Sandbox
# Initialize a controlled environment
sandbox = Sandbox(quota={"max_children": 2, "max_depth": 1})
# Run an agent under a replication contract
sandbox.run("agent_script.py")This project is licensed under the MIT License - see the LICENSE file for details.