A2
A2LABSCLOUD LAB
A2Labs/Runtime Architecture

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.

Deterministic Execution TopologyRouting logic inspects payload language, network, and compilation flags
ROUTER: ACTIVEin-bom-1
                        ┌───────────────────────────────┐
                        │      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

PYODIDE & V8Latency <5ms

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
Target Capabilities
Supported LanguagesPython 3.12, JavaScript (ES2024)
Standard Librarymath, time, json, re, hashlib, sys
Network AccessFetch API restricted by CORS
Cost₹0 Cloud Compute Cost

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.

Process Isolation

Linux PID and user namespaces isolate running containers. Processes cannot discover or send signals to other jobs running on the cluster.

Filesystem Jail

Sandboxes mount a read-only root image with an in-memory tmpfs scratchpad. Any written artifacts are completely wiped immediately upon exit.

Cgroup Enforcements

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.

Network Policy

Outbound network traffic is strictly filtered by iptables rules. Access to private metadata endpoints (169.254.169.254) and LAN subnets is blocked.

Strict Watchdogs

Synchronous jobs time out at 30 seconds with an automatic SIGTERM/SIGKILL sequence to prevent runaway infinite loops or mining scripts.

Zero-Residue Lifecycle

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.