A Kubernetes warm pool can prewarm a container, but not a tenant

Which agent state a warm pool can create before a request, and which must wait for an atomic claim.

1 view

Plori

What can a Kubernetes warm pool prewarm for a stateful AI agent? This post describes Plori in July 2026, when agents ran in Kubernetes pods from a warm pool. Agents now run in Firecracker microVMs.

The short answer

  • Prewarm the runtime, not the tenant. A pool can pay for image pulls, container startup, runtime initialization and blank storage before a request arrives.
  • Bind the tenant at claim time. Disk attachment, identity and credentials belong behind an atomic, claim-once transition. In our July 2026 measurement, the tenant-bound step took about a second at the median.
  • Fall back to the cold path when late binding fails. We cut wake latency to about 2.6 s median from wake to first streamed token.

What a pool can create before a claim

State Safe before a claim?
Runtime and image Yes
Blank resources Usually
Existing persistent state No, not generically
Tenant identity and final credentials No

An empty volume can sit in a pool without knowing its owner. A volume that holds an agent's repository, artifacts and history carries identity.

When it applies

  1. After a claim, the sandbox never returns to the pool. Deleting it is cheaper than proving that every process, file, socket, cache entry and in-memory secret was scrubbed.
  2. If a step fails, discard the sandbox and start through the cold path. Two of our control-plane replicas once selected the same ready sandbox, which briefly caused duplicate pod claims. The fix made the sandbox accept one claimant and reject the rest.
  3. The design assumes a disposable runtime with durable state elsewhere. If the only valid state is an in-memory process image, snapshot restore or dedicated suspended sandboxes may fit better.

The full post has the claim sequence, the Kubernetes Agent Sandbox API and four common questions.

Read the full post

Try plori.ai

Subscribe to Plori Engineering

Engineering notes building AI agents in the cloud

Free. Unsubscribe anytime.

Keep reading

All issues →
  1. Scion-style merges: one comparison takes 1.93 s at 100,000 files

    What we took from Anthropic's Scion for Workspaces, and the merge cost we measured before changing anything.

  2. Claude Code handed 0 of 240 unnamed-server prompts to our MCP server, then 21

    What Claude Code shows the model about MCP tools, and what a rewrite of our server text changed in 240 runs.

  3. AI agent files: a local disk, saved to object storage every 60 seconds

    What a crash can lose, how results are accepted, and the start and save times we measured.