1,000 Agent Tasks in a Sandbox: What Breaks When LLMs Run Code

Kevin Orellana, AWS15:19 · Oct 2026 · 3,147 views
Thumbnail for 1,000 Agent Tasks in a Sandbox: What Breaks When LLMs Run Code Watch on YouTube
TL;DR
  1. 1

    A coding agent ran 1,000 workflows across 10 domains against an AgentCore sandbox, exposing failures in encoding, file access, memory, and permissions.

  2. 2

    Sandbox failures need to be separated from interface failures because agents depend on low-level limits such as memory, CPU, file permissions, persistence, and process controls.

  3. 3

    Remote sandboxes should be tested with broad, agent-generated workflows because local tools and environments can hide failures that appear when agents run in production infrastructure.

Summary

Kevin Orellana describes an overnight experiment in which a coding agent tested Amazon Bedrock AgentCore's code sandbox and cloud browser. He exposed the platform through an MCP server, asked the agent to generate 1,000 workflows across 10 domains, and recorded results in SQLite so multiple runs could be compared. The tests covered file operations, software development tasks, sandbox life cycles, machine learning programs, PDF generation, and browser automation. Failures included incorrect image encoding at the MCP layer, null bytes that disrupted tests, files that could not be retrieved, and browser sessions exhausting memory. Orellana separates interface bugs from sandbox constraints such as permissions, persistence, memory, CPU, seccomp, and eBPF controls. He argues that local testing is insufficient when agents move into remote sandboxes. His practical recommendation is to fuzz-test the remote environment with many domain-specific workflows.

Key ideas
01:04

A coding agent can act as a customer simulator for sandbox testing

Orellana wanted to test AgentCore in the same way customers use it, with agents interacting with a cloud-hosted sandbox rather than with hand-written API checks. He created an interface that coding agents and agent applications could use naturally. Since frontier models already understand MCP, his team built an MCP server in a day or two to expose the platform. Early manual checks included writing and executing a Python file and converting Python code into Java. This gave them a practical way to let an agent exercise the service through ordinary development workflows.

01:37

MCP made the platform accessible to the testing agent

The MCP server wrapped the cloud sandbox environment and exposed the tools the agent needed. The team polished the available tools, ran smoke tests, handled credentials and credential injection, and considered what should happen when a test failed. A failure might come from the service itself or from the MCP layer. This separation mattered because the agent was using the same kind of interface that customers and agent applications would use. The setup was simple: a coding agent sent work through MCP, the sandbox executed it, and findings came back for analysis.

02:27

The test campaign used 1,000 workflows across different customer tasks

The team asked the agent to write 1,000 tests across 10 domains. Orellana says the number was arbitrary and intended to cast a wide net. The tests covered sandbox life cycles, file-system input and output, performance, and software development tasks such as writing Python and Java packages. Individual workflows included end-to-end machine-learning training, generating a PDF report, opening a web page, creating browser tabs, scraping and summarizing pages, taking screenshots, downloading files, and automating a login workflow. The code sandbox and cloud browser needed different tests because their workloads placed different demands on the environment.

03:02

SQLite gave the test results a structure that markdown files could not

The test harness stored findings in SQLite. Orellana chose a database because agents tend to write markdown files, and that approach does not scale cleanly to 1,000 tests. Structured results also made it possible to use concurrency, with multiple subagents running tests locally and saving their results. The system recorded issues such as credential handling and whether a failure came from the service or the MCP interface. Each result corresponded to a workflow a customer might actually run, rather than to an isolated low-level check.

05:11

Some failures belonged to the interface layer and others to the sandbox

Three examples showed why the layers needed to be separated. An image uploaded to the sandbox and then downloaded did not match the original because the encoding layer in MCP was incorrect. A null byte disrupted another test. In a third case, the team wrote files to a specific directory, but the files were unavailable when they tried to retrieve them. Orellana classified the first issue as an interface-layer bug and the file problem as a sandbox-layer issue. The distinction helps teams find whether a tool wrapper or the execution environment caused the failure.

06:11

Sandbox primitives can determine whether an agent finishes its task

Agents often behave differently from a conventional service client because they may download unexpected packages, translate files between formats, or call tools that developers did not anticipate. Their ability to finish depends on the environment's memory, CPU, process permissions, and file systems. Orellana points to file read, write, and execute permissions, mounted file systems, and whether storage is persistent or ephemeral. At a lower level, kernel capabilities, seccomp controls, and eBPF programs can affect process creation, network calls, and access to internal services. Small constraints can accumulate into a failed business workflow.

07:51

Cloud browser workloads exposed memory limits that code tasks did not

The comparison between the code sandbox and cloud browser showed different failure patterns. Browser tests opened many tabs, scraped pages, summarized content, took screenshots, downloaded files, and filled forms. Those tabs were memory-heavy, and many browser sessions failed after exhausting available memory. Orellana did not see the same failure in the code interpreter environment. Mapping failures to sandbox primitives showed that the browser's workload was especially sensitive to memory and session capacity, while other tests exposed file-system permissions and persistence problems.

10:55

Agent-generated tests reveal low-level failures that ordinary tests can miss

Orellana says language models can write unit and integration tests, but their limits become visible when an agent must operate within low-level sandbox controls. A workflow can be logically correct while failing because a package cannot be installed in the expected location, a Rust binary is unavailable, or a process cannot start. He recommends asking an agent to complete a wide set of workflows and inspecting the failures. The method is a form of fuzz testing for the whole agent environment, where unexpected tool use and varied tasks expose constraints that narrow tests may not exercise.

12:00

Remote agent environments need testing that local workstations cannot provide

Developers often run coding agents locally, but scaling them across many workspaces can put pressure on a laptop. Moving those agents into remote sandboxes changes the available tools and locally running applications. Orellana describes an AgentCore release that lets customers SSH into a sandbox to inspect what is happening, with a coding agent potentially doing that investigation instead of a person. He also cites research showing that environment controls can change benchmark outcomes and that broken tools can greatly reduce an agent's effectiveness. His recommendation is to test remote sandboxes with broad domain workflows, not only local checks.

"We store them in a SQLite database just because agents are pretty prone to write markdown files but that doesn't really scale when you have a thousand tests that you want to run."03:11
Who should watch
  • You run coding agents inside a cloud sandbox and need to know whether failures come from your tool interface or the execution environment.
  • Your local agent tests pass, but the remote environment has different memory, file-system, process, or network constraints.
  • You are building a test harness for agent workflows and want a way to record many concurrent runs without relying on markdown files.