WORK/W-01/EXECUTION ISOLATION

A sandbox should be a boundary. Not a bet.

Building isolated AI-agent sandboxes with Firecracker microVMs — a separate kernel per sandbox, explicit network policy and a capacity-aware host fleet.

PLATFORM ENGINEER / QUANTIPHI
~1.7s
Sandbox creation · approximate result
FIRECRACKERKVMGCP MIGPOSTGRESQLPACKERTERRAFORMGCS
01 / PROBLEM & CONTEXT

Change the isolation model.

Agent code is not ordinary application code. Shared-kernel, pod-per-conversation execution placed different sandboxes on the same host kernel. The platform needed a more explicit execution boundary while keeping sandbox creation fast.

BEFORE / POD PER CONVERSATION
Pod A
Pod B
SHARED HOST KERNEL
AFTER / MICROVM PER SANDBOX
MicroVM A
Own kernel
MicroVM B
Own kernel
KVM / JAILER / HOST
02 / MY ROLE & OWNERSHIP

Platform Ownership

My platform work covered the microVM execution model, host hardening, network isolation, capacity and quota accounting, fleet orchestration, infrastructure automation and workspace persistence.

Spearheaded high-availability AI Agent platform on GKE with Firecracker microVM execution boundaries
Designed automated GitOps pipelines reducing deployment times by ~75%
Managed distributed Qdrant vector databases for massive scale AI search and retrieval
Enforced enterprise security postures using Trivy and Wiz container scanning
Mentored engineers on containerization, kernel isolation, and cloud best practices
04 / APPROACH & ARCHITECTURE

Separate the control plane. Make the boundaries visible.

01 / CONTROL & ALLOCATION

Account before allocating

Transactional capacity coordination and tenant quota enforcement ensure safe, non-blocking burst provisioning without cluster resource starvation.

02 / EXECUTION ISOLATION

Hardware-level boundaries

Dedicated microVM instances with separate guest kernels enforce absolute tenant isolation and prevent noisy-neighbor or privilege escalation issues.

03 / REPEATABLE PROVISIONING

Immutable infrastructure

Standardized base machine images and declarative Terraform definitions establish reproducible, reliable host infrastructure across multi-region environments.

A kernel for each sandbox

Firecracker microVMs provide a separate kernel per sandbox. KVM and the jailer establish the execution boundary, with per-VM cgroups and seccomp constraining resources and system calls.

No implicit network trust

Each VM receives a TAP device. Firewall controls block access to cloud metadata, the VPC and other guests, keeping sandbox execution away from infrastructure and neighboring sandboxes.

Egress is policy, not an open route

A signed-policy HTTPS egress proxy uses an exact FQDN allow-list. Outbound destinations are explicit rather than inherited from host connectivity.

01
Account
Transactional capacity and quota accounting in PostgreSQL.
02
Scale
MIG autoscaling on memory, network and disk utilization.
03
Drain
Safely drain hosts before removing fleet capacity.

Advisory-lock leader election coordinates orchestration. Direct caller-to-host routing keeps execution traffic distinct from the control-plane allocation path.

05 / KEY DECISIONS & TRADE-OFFS

The choices behind the architecture.

MicroVMs over shared-kernel pods
A separate guest kernel makes the sandbox boundary explicit.
Host virtualization and per-VM lifecycle management become platform responsibilities.
Transactional accounting
Capacity and quota allocation live in PostgreSQL transactions.
Provisioning speed must coexist with correct allocation.
Direct host routing
Callers reach the selected host without a load balancer.
Routing belongs to the sandbox lifecycle rather than a generic service endpoint.
Immutable host images
Packer images, Terraform and CI define repeatable infrastructure.
Host changes follow an image and infrastructure delivery workflow.
Persistent workspaces
GCS holds workspace state beyond execution.
Execution isolation and workspace persistence are separate concerns.
06 / RESULT
~1.7s
Approximate sandbox creation time

A stronger execution boundary, without a slow start.

The known provisioning result sits alongside the architectural change: isolated kernels, constrained egress and explicit fleet capacity. No percentile or uptime claim is attached to this timing.

~1.7s sandbox creation time
Supported 50+ AI microservices
99.9% platform uptime
Zero-downtime deployments
More systems. Same intent.