TL;DR
Sandman describes Amazon’s Kubernetes sandbox service for agentic RL, with production records and controlled studies of creation, prewarming, cleanup and grading. Its evidence separates fast sandbox acquisition from training gains: a warm pool lowers acquisition latency but consumes more capacity, while a combined grading change reduces held-out resolve rate in a six-pair comparison.
Why it matters
Agentic RL depends on environment lifecycle and grader reliability as well as GPU throughput. Sandman makes those costs and failure modes measurable, showing why optimizing sandbox startup alone can miss the learner’s actual bottleneck or change the rewards used for training.
Key findings
- 01
Each sandbox is a Kubernetes pod running an unmodified task image with a mounted execution daemon and persistent shell. The provider owns creation, readiness and deletion; an optional shared pool paces creation and supplies warm pods. The SWE integration uses separate rollout and grading sandboxes, with a fresh grading pod as the default.
- 02
Four production campaigns from October 3–17 report 122 training runs, approximately 21,400 B200-hours, and 3.13 million sandboxes: 1.24 million for rollouts and 1.89 million for grading. The studied policy is Qwen3.5-35B-A3B trained with asynchronous GRPO and eight samples per task; most runs use 16 B200 GPUs split equally between learning and inference.
- 03
A controlled ramp held 11,858 concurrent tiny sandboxes at peak, with creates paced at 20–25 per second and median create-to-Ready of 5–7 seconds. Pods requested only 0.1 vCPU and 128 MiB and used a cached 43 MB image. This is control-path capacity evidence, not a demonstration of 11,858 realistic SWE environments or sustained churn.
- 04
In three paired warm-pool experiments, mean per-run median grading acquisition fell from 6.2 seconds to 0.12 seconds, while sandbox vCPU-hours rose to 2.46 times the on-demand arm. Time to step 24 was 9.4% shorter, but the steady-state step-interval difference had a 95% interval spanning -38.4 to +21.0 seconds; the study does not isolate the pool’s contribution to the end-to-end change.
- 05
Tracing 3,734 learner steps found rollout acquisition contributed at most 0.9% of step time on the critical path. Outside incidents and test reruns, grading acquisition and tests at the end of the slowest trajectory mattered more. A fixed-concurrency model estimates 6–14% shorter steps if all sandbox waits vanished; these are modeled counterfactuals, not measured speedups.
- 06
A pre-registered six-pair comparison jointly removed three flagged training tasks, used a capped warm pool with checked grading-pod reuse, and authenticated pooled grading calls. At step 150, mean resolve rate over 112 held-out tasks was 46.1% with this package versus 48.4% without: -2.33 percentage points, with a paired t-interval of -4.22 to -0.43. Evaluation used eight samples per task and averaged passes per valid sample, not pass@8.
- 07
Fast warm hits did not guarantee fast acquisition in that capped configuration. Queue-inclusive grading acquisition averaged 20.3 seconds versus 7.2 seconds for direct creation, because over half of requests waited for paced creates. The reuse package made 1.21 creates per grading versus 1.00 on demand.
- 08
Operational lessons include retaining ownership of creates after caller cancellation, confirming deletion, disabling Kubernetes Service environment injection, and checking reference and empty patches under the job’s grading conditions. Infrastructure failures without a verdict are retried or resampled rather than treated as incorrect-answer rewards.
Evidence & limits
The study covers one shared EKS cluster, one agent harness and primarily SWE-bench-style Python tasks. It has no dedicated-cluster baseline or comprehensive comparison with alternative hosted sandbox services. Cached tiny-pod capacity should not be generalized to full task images.
Production campaigns ran earlier code and only some of the mechanisms described as current defaults. Production scale does not validate every cleanup, access-control, grading or pooling change in the final design.
The warm-pool and checked-reuse A/B studies have three pairs each. The placement contrast has only one sequential pair and is confounded by changing shared-cluster conditions. Replay results hold recorded trajectory timelines fixed.
The six-pair grading comparison changes the task set, grading path and authentication together. It cannot isolate why resolve rate declined. Its exact sign-flip test gives p = 0.0625, despite the paired t-interval excluding zero; neither a universal degradation nor equivalence within three points is established.
Sandbox cost estimates allocate on-demand list-price node shares by requested CPU or memory; they are not observed marginal bills. The modeled savings from removing waits assume generation remains the bottleneck and does not slow at higher throughput.
Containers share the host kernel and run model-written code as root. The authors explicitly do not claim isolation against a malicious co-tenant. Live access probes and state checks are not comprehensive adversarial isolation or clean-state proofs.
The paper promises to open-source the daemon, provider and pool. It does not provide a released Sandman repository link in the reviewed version; implementation availability and independent reproduction remain unverified.
Scaling dimensions
Models, methods & benchmarks
- Models
- Qwen3.5-35B-A3B
- Algorithms
- Sandman, Asynchronous GRPO
- Benchmarks
- SWE-bench Verified, SWE-Gym
Topics