Brickie Brings Self-Hosted Agent Sandboxes to AWS with Snapshots and Durable Orchestration
By Mr.Xu Community Post
Published:
Summary:Hatchet has open-sourced Brickie, an EKS-first control plane for running agent sandboxes inside a customer's own AWS account. It combines the upstream Kubernetes agent-sandbox operator with Firecracker, gVisor, and Kata Containers isolation options, while adding filesystem snapshots, fork, pause, resume, durable workflow orchestration, and observability through Hatchet. The current snapshot path packages sandbox filesystems with tar and stores them in S3, allowing workflow checkpoints and files
Brickie's core value is not to reinvent Firecracker or gVisor. It combines the Kubernetes execution plane of agent-sandbox, Hatchet's durable workflows, and filesystem-level state management into an agent sandbox control plane that can run inside a customer's AWS account. The initial focus on EKS lets enterprises retain control over IAM, VPCs, compute nodes, and object storage while adopting lifecycle features commonly associated with managed sandbox services.
Separating Sandbox State from Workflow State
Agent systems usually maintain two distinct kinds of state. Workflow state covers session progress, scheduling decisions, retries, and the current position in a durable process. Sandbox state covers the filesystem, including source code, dependencies, intermediate artifacts, and generated outputs. Persisting only one side creates predictable recovery failures: a workflow may resume without finding previously generated files, or a filesystem may survive while the workflow repeats completed steps.
| State layer | Typical contents | Brickie's approach |
| --- | --- | --- |
| Session or workflow state | Process position, retries, task associations | Persisted through Hatchet durable execution |
| Filesystem state | Sandbox disk, dependencies, inputs, outputs | Packed with tar and stored as S3 objects |
| Coordination layer | Links between snapshots and checkpoints | Main extension over the upstream agent-sandbox project |
Durable workflow execution is not equivalent to a filesystem snapshot. The two only become recoverable as one system when snapshots have stable identifiers, checkpoint versions, and a defined publication order.
Architecture: Kubernetes Isolation Meets Durable Orchestration
Based on the release description, Brickie's logical path has four layers:
- Lifecycle control: Operations such as sandbox creation, snapshot, fork, pause, and resume enter the control plane. Hatchet provides durable execution, retry behavior, and cross-step orchestration.
- Kubernetes execution: Brickie builds on the Kubernetes SIGs
agent-sandboxproject. Its operator represents sandbox instances as pods and allows different isolation runtimes to be selected. - Isolation runtime: Upstream options include Firecracker, gVisor, and Kata Containers. Brickie primarily adds lifecycle orchestration and state management rather than replacing those isolation kernels.
- Snapshot storage: The current implementation packages a sandbox filesystem with tar and stores it in S3. Restoration downloads the object, unpacks it, and mounts or injects it back into the sandbox environment.
If the archive size is S, with upload and download bandwidths of B_up and B_down, the basic latency model is:
- Snapshot:
T_snapshot ≈ T_tar + S / B_up + T_S3_put - Restore:
T_restore ≈ S / B_down + T_untar + T_mount_ready
Cold-start time is therefore only one component. Archive size, whether upload blocks the control path, restore consistency, S3 request charges, and cross-region transfer costs may dominate production behavior.
Aligning Filesystem Snapshots with Workflow Checkpoints
A reliable commit protocol must address a race: files can continue changing while tar is running, and a workflow checkpoint could otherwise be written before the corresponding snapshot object. A production-grade protocol would normally quiesce or freeze the filesystem, finish the archive, write a checksum and manifest, treat the object version as an immutable reference, and only then publish the workflow checkpoint that points to it.
Crash recovery must also distinguish committed snapshots, orphaned objects, and temporary volumes awaiting cleanup. The release material does not disclose whether Brickie provides filesystem freezing, checksum manifests, cross-object transactions, garbage collection, or explicit crash-recovery guarantees. Those behaviors should not be inferred solely from the feature names.
The Engineering Limits of Fork, Pause, and Resume
A fork lets several agent branches start from a common execution baseline, but a filesystem snapshot cannot undo external side effects. If one branch has called a payment API, modified a database, or sent a message, restoring the old sandbox disk will not reverse those operations. Reproducible branching requires database branching or point-in-time recovery, controlled network proxies, idempotency keys, and deterministic handling of clocks and random seeds.
Pause should not be interpreted as merely stopping a pod. It may involve compute containers, sidecars, network connections, timers, volume mounts, and runtime state. Whether a paused sandbox can survive node or volume reclamation must be established through fault injection. It also cannot be assumed that pause releases node resources or storage charges.
Engineering Trade-offs
Choosing an Isolation Layer
- Firecracker uses microVMs and hardware virtualization to create a stronger boundary for hostile or multi-tenant code, generally at the cost of higher startup and memory overhead than ordinary containers or user-space kernels.
- gVisor intercepts system calls to reduce the exposed host-kernel surface. It can be operationally lighter, but syscall compatibility and edge behavior must be tested against the agent's real dependencies.
- Kata Containers provides VM isolation behind a container-oriented interface, occupying a middle ground between regular containers and a dedicated microVM. Startup density, image compatibility, and node overhead still require measurement.
These distinctions cannot be reduced to labels. Teams should run representative agent workloads that install dependencies, compile code, use network protocols, and behave concurrently with other tenants. Startup time alone is not a sufficient comparison.
Owning the AWS Account Does Not Automatically Mean Secure Isolation
Running sandboxes in the customer's account can simplify data residency and permission boundaries, but it also transfers responsibility to the EKS nodes, operator, service accounts, and object-storage configuration. A production deployment should use a dedicated account or project, isolated node groups, least-privilege IAM, default-deny egress policies, S3 encryption with customer-managed keys, versioning, and lifecycle rules. Untrusted workloads must not inherit a broadly privileged node role.
Snapshots can contain tokens, source code, caches, and model outputs. Sensitive-data scanning should happen before upload, and objects must remain encrypted with tightly restricted decryption access. Snapshot execution credentials should also be separated from control-plane administration permissions.
tar and S3 Are Simple, but Not Necessarily Scalable
The announcement describes tar and S3 but makes no claim about incremental blocks, content deduplication, or filesystem-level differential synchronization. If every snapshot repackages the entire active filesystem, repeated snapshots approach O(n × S) cumulative storage rather than O(Σ delta_i). Frequent snapshots, large working directories, and many long-lived branches can multiply compression, upload, and restoration costs.
Full archives have practical advantages: the restore path is straightforward, and integrity checks are easier to reason about. Their disadvantages are equally clear. Restore latency grows with archive size, and storage amplification increases as branches age. S3 request fees, retained versions, and egress charges must be included in the total cost of ownership.
Performance Evaluation: Credible Data Is Still Missing
The launch material provides no measurements for cold starts, snapshot latency, restore throughput, concurrency density, failure-recovery time, or cost per task. It is therefore impossible to position Brickie against upstream agent-sandbox or commercial sandbox services using the available evidence.
A useful benchmark should keep container images, dependency-cache state, node types, isolation runtimes, and CPU quotas constant. It should report:
- p50, p95, and p99 sandbox creation and readiness latency;
- tar time, archive size, upload time, download time, unpack time, and mount time;
- end-to-end latency for pause, resume, and fork;
- sandbox density per node and associated CPU, memory, network, and ephemeral-volume usage;
- recovery correctness after interrupted uploads, pod eviction, node restarts, and checkpoint-write failures;
- multi-tenant filesystem isolation, egress restrictions, and cross-tenant credential-access tests.
Managed services and self-hosted EKS deployments use different infrastructure and pricing models, so a single throughput ranking would be misleading. A better evaluation measures the upstream agent-sandbox baseline first, then quantifies the marginal latency and cost added by snapshots and Hatchet orchestration.
Deployment Guidance
- Validate isolation first: Run Firecracker, gVisor, and Kata Containers in a non-production EKS cluster with the dependencies used by real agents, then measure compatibility, density, and node overhead.
- Separate snapshot storage: Use a dedicated S3 bucket with server-side encryption, versioning, access logs, and lifecycle rules. Verify that cleanup cannot delete objects still referenced by live checkpoints.
- Test the consistency protocol: Checksum archived files and inject failures during tar, object upload, and checkpoint publication to ensure recovery never pairs a workflow pointer with the wrong filesystem version.
- Constrain external side effects: Put database writes, message delivery, and paid API calls behind idempotent and compensatable boundaries. A file fork is not a complete transactional rollback.
- Add correlation fields: At minimum, connect workflow run IDs, sandbox IDs, pod UIDs, isolation runtimes, snapshot object versions, and stage-level timings to distinguish slow creation, archiving, and restoration.
- Pin the supply chain: Lock Brickie,
agent-sandbox, operator, and node-image versions, then review licenses, image provenance, admission policies, and upgrade compatibility.
Brickie is currently best positioned as an experimental infrastructure layer for enterprise self-hosted agent sandboxes. Its contribution is not a new isolation primitive, but the integration of Kubernetes sandboxes, durable workflows, and filesystem snapshots under one control plane. Its production value will ultimately depend on snapshot consistency, crash recovery, multi-tenant isolation, and high-frequency snapshot economics, all of which still require same-configuration benchmarks and fault-injection evidence.
— END —Source: GitHub Projects via Hacker News (2026-11-24)
Tags: #Brickie #Hatchet #Agent Sandboxes #EKS #Firecracker
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments