Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_sec-agent-sandbox-code-execution

Sandboxing for agent code execution and egress isolation

7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[![Sandboxing for agent code execution and egress isolation — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_sec-agent-sandbox-code-execution/opengraph-image)](https://archos.sageideas.dev/d/dgm_sec-agent-sandbox-code-execution)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_sec-agent-sandbox-code-execution)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_sec-agent-sandbox-code-execution" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Sandboxing for agent code execution and egress isolation — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  src_0[("Client application")]
  n0_1["Guardrails"]
  n1_2["Container runtime"]
  n2_3["Service mesh"]
  n3_4[("Audit log")]
  ctrl_5["OpenTelemetry Collector"]
  sink_6[("Client application")]
  src_0 -->|"1. Stages code · HTTPS"| n0_1
  n0_1 -->|"2. Isolates VM · TCP"| n1_2
  n1_2 -->|"3. Blocks net · HTTPS"| n2_3
  n2_3 -->|"4. Wipes state · TCP"| n3_4
  n3_4 -->|"5. Clean output · HTTPS"| sink_6
  n1_2 -->|"Kills fork · OTLP"| ctrl_5

COMPONENT STACK (7)

  • Client applicationSTATEFUL
    Untrusted LLM code
  • GuardrailsSTATELESS
    Validates tool payload
  • Container runtimeSTATELESS
    Firecracker / gVisor VM
  • Service meshSTATELESS
    Default-deny egress proxy
  • Audit logSTATEFUL
    Destroys ephemeral VM
  • OpenTelemetry CollectorSTATELESS
    Syscall & cgroup traps
  • Client applicationSTATEFUL
    Safe stdout artifact

REQUEST & DATA FLOW (6)

  1. Client application → Guardrails (Stages code)[HTTPS]
  2. Guardrails → Container runtime (Isolates VM)[TCP]
  3. Container runtime → Service mesh (Blocks net)[HTTPS]
  4. Service mesh → Audit log (Wipes state)[TCP]
  5. Audit log → Client application (Clean output)[HTTPS]
  6. Container runtime → OpenTelemetry Collector (Kills fork)[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →