Execution Runtime Architecture
A2Labs intelligently routes incoming code payloads between in-browser WebAssembly runtimes and server-side ephemeral container sandboxes based on task capability requirements and security bounds.
┌───────────────────────────────┐
│ A2Labs Client Engine │
│ (Code Payload Ingestion) │
└───────────────┬───────────────┘
│
▼
┌───────────────────────────────┐
│ Runtime Capability Router │
│ (Parses AST & Requirements) │
└───────┬───────────────┬───────┘
│ │
[Client-Side WASM] │ │ [Isolated Kernel]
▼ ▼
┌──────────────────────────┐ ┌──────────────────────────┐
│ Browser Runtime │ │ Sandbox Runtime │
│ (Pyodide 3.12 / V8) │ │ (Docker with gVisor) │
├──────────────────────────┤ ├──────────────────────────┤
│ • Zero network latency │ │ • GCC 14.2 / Node 22 │
│ • In-memory execution │ │ • 512MB RAM / 1 vCPU cap │
│ • Client CPU utilization │ │ • Ephemeral Linux rootfs │
│ • Local tab security │ │ • Restricted network │
└─────────────┬────────────┘ └────────────┬─────────────┘
│ │
└─────────────┬──────────────┘
│
▼
┌───────────────────────────────┐
│ Unified Telemetry Stream │
│ (Stdout, Stderr, Metrics) │
└───────────────────────────────┘Runtime Engine Specifications
Client-Side WebAssembly Execution
For Python workloads, JSON processing, regex evaluation, and pure JavaScript algorithms, A2Labs initializes Pyodide inside a dedicated browser Web Worker.
- Instant spin-up: 0ms queue time
- Memory heap: Browser isolated memory space
- Privacy: Payload never transmitted to remote server
SECURITY ARCHITECTURE
First-Class Isolation & Abuse Prevention
A2Labs never exposes host filesystem access or unrestricted commands. Every sandbox instance is governed by strict isolation boundaries.
Linux PID and user namespaces isolate running containers. Processes cannot discover or send signals to other jobs running on the cluster.
Sandboxes mount a read-only root image with an in-memory tmpfs scratchpad. Any written artifacts are completely wiped immediately upon exit.
Hard Linux cgroups cap RAM at 512MB and CPU at 1 core. Attempts to exceed memory limits trigger the kernel Out-Of-Memory (OOM) killer without host impact.
Outbound network traffic is strictly filtered by iptables rules. Access to private metadata endpoints (169.254.169.254) and LAN subnets is blocked.
Synchronous jobs time out at 30 seconds with an automatic SIGTERM/SIGKILL sequence to prevent runaway infinite loops or mining scripts.
Containers are destroyed immediately after execution finishes. No residual state, keys, or lingering connections survive container death.
Test the Runtimes in Action
Open the interactive playground or launch a dedicated 512MB Linux container.