blog.rust.gay

AWS AgentCore's next-gen runtime restores sessions from snapshots and scales to zero

On November 12, 2026, AWS announced that new runtimes in Amazon Bedrock AgentCore use the next generation of the AgentCore runtime by default. The headline features are snapshot restore, scale-to-zero, and a large improvement in session start time: on a 2 GB image, AWS says sessions now start in under 2 seconds at P75, down from 29.7 seconds on the previous generation.

Those numbers are aimed at a real problem. Agents are not stateless request handlers. A useful agent may compile a codebase, drive a browser, or load a local model inside a session, and it may pause for minutes or hours between steps while it waits for a user, an API, or another agent. The infrastructure has to keep the session's state alive, start work quickly when it resumes, and avoid billing for capacity that is idle. AWS is positioning the new runtime as a way to do all three without giving up the isolation that multi-tenant agent workloads need.

The announcement is a product update, not a research paper, so the details are deliberately compact. What follows is what AWS says, plus an analysis of what the changes imply for teams building on AgentCore.

What changed in the runtime

The previous generation of AgentCore runtime started a session and kept it running while the agent worked. The new runtime changes the lifecycle in three ways.

First, it restores each session from a snapshot of the initialized agent. That means the runtime does not have to redo the agent's startup work from scratch every time a session resumes. AWS describes the snapshot as a snapshot of "your initialized agent," which suggests that the captured state includes the agent's setup, not just a conversation transcript.

Second, it scales compute and memory with the work. Instead of provisioning a fixed size for the life of the session, the runtime can allocate more resources when the agent is doing something heavy and less when it is idle.

Third, it scales idle agents to zero. When an agent is not doing work, it can be scaled down completely, and AWS says memory is reclaimed within minutes of release. For multi-turn agents, AWS claims up to 68% less billed memory per session.

Each session still runs in its own hardware-isolated Firecracker microVM. That is important: the efficiency gains are not achieved by packing many agents into one shared process. The isolation model is unchanged, which matters for teams running untrusted or multi-tenant workloads.

The announcement also lists the kinds of work the runtime is meant to support: compiling a large codebase, driving a browser, and loading a local model inside the session. Those are all workloads that are heavy, stateful, and bursty. They are also workloads where a 29.7-second cold start is not a minor inconvenience; it is a product-level failure.

Snapshot restore and session state

The most interesting claim is snapshot restore, because it changes what "session" means.

In a conventional serverless model, a function starts, runs, and exits. State lives outside the function, in a database, object store, or queue. That model is simple and scalable, but it is a poor fit for an agent that has spent ten minutes loading a model, warming a cache, or setting up a browser. Rebuilding that state on every invocation is wasteful, and serializing it to an external store can be slow and lossy.

AgentCore's snapshot restore is an attempt to keep the initialized state inside the session boundary. AWS says the runtime restores a session from a snapshot of the initialized agent. If that works as advertised, an agent can pause after a heavy setup step and resume without paying the setup cost again. That is valuable for long-running, multi-step tasks: a coding agent that has indexed a repository, a browser agent that has logged in and navigated to a workflow, or a model-backed agent that has loaded weights into memory.

The trade-offs are the usual ones for snapshot-based systems. Snapshots have to be stored somewhere, and restoring them has to be faster than rebuilding the state. The snapshot has to be consistent enough that the agent does not resume with a half-written file, a stale connection, or a corrupted cache. And the snapshot mechanism has to respect the isolation boundary: one tenant's snapshot must not leak into another tenant's session.

AWS's announcement does not go into those details. It says the runtime restores from a snapshot and that memory is reclaimed within minutes of release. Teams evaluating the feature should test the specific state their agents depend on: open file handles, network connections, in-memory caches, and any tool state that is not captured by a simple serialization.

There is also a semantic question about what counts as "initialized." An agent that is initialized with a model and a tool list is different from an agent that is initialized with a user's session, permissions, and partial task progress. The announcement's wording suggests the former, but the value for multi-turn agents depends on the latter. The 68% billed-memory claim is a hint that AWS is thinking about multi-turn sessions, but the announcement does not break down which parts of the state are snapshotted.

Scale-to-zero and the cost model

Scale-to-zero is the feature with the clearest economic story.

An agent that is waiting for a human, a scheduled event, or a slow external API does not need compute. If the platform bills for provisioned capacity, the operator pays for that wait. If the platform can scale the session to zero and restore it later, the operator pays only for the work and the stored state. AWS says idle agents scale to zero and memory is reclaimed within minutes of release, and it quantifies the benefit for multi-turn agents as up to 68% less billed memory per session.

That is a meaningful change for agent economics, but it is not the same as "free idle time." Snapshots and storage have a cost, and restoring a session has a latency cost. The net benefit depends on the ratio of active time to idle time, the size of the snapshot, and the price of storage versus compute. A short-lived agent that runs continuously will see little benefit; a long-lived agent that spends most of its time waiting will see a lot.

The scale-to-zero model also changes how teams design agents. If idle time is cheap, it becomes reasonable to keep a session alive for a long-running workflow, a periodic task, or a human-in-the-loop approval. If idle time is expensive, teams will be pushed toward stateless designs that externalize state. The new runtime lowers the cost of the first pattern, which may encourage more ambitious, longer-running agents.

There is a capacity-planning angle as well. Scale-to-zero helps with cost, but it does not remove the need to think about concurrency. If many agents wake up at once, the platform has to have capacity to start them. The sub-two-second start time is important here: it reduces the window in which a burst of resumes looks like a cold-start problem. But it does not eliminate the underlying limit on how many sessions a region can run at once.

Firecracker isolation

The announcement is careful to say that every session still runs in its own hardware-isolated Firecracker microVM. That is the security foundation of the product, and it is worth explaining why it matters for agents.

An agent runtime often executes code the platform did not write: user-provided tools, generated code, browser automation, and model outputs that may be turned into actions. A shared process or a shared container is a weak boundary for that kind of workload. A microVM gives each session its own kernel and hardware-level isolation, so a compromise in one session is less likely to reach another.

Firecracker is AWS's lightweight virtualization technology, designed to start microVMs quickly with low overhead. The combination of microVM isolation and fast startup is what makes scale-to-zero practical: if starting a session were slow, scaling to zero would be a latency disaster. AWS is arguing that the new runtime gets the cost benefits of scale-to-zero without trading away the isolation model.

The announcement does not claim that the isolation is new. It says "still runs in its own hardware-isolated Firecracker microVM," which is a continuity message: the efficiency changes are in the lifecycle, not in the security boundary. That is the right way to read it. Teams that already trusted AgentCore's isolation should not assume it has weakened, but they should still verify their own threat model, especially if they run untrusted tools inside a session.

Capacity, regions, and migration

The new runtime supports sessions up to 8 vCPU and 32 GB of memory, and container images up to 10 GB. Those limits define the kinds of workloads that fit. A 10 GB image is large enough for a substantial toolchain, a browser, or a local model, but it is not unlimited. A 32 GB memory ceiling is generous for many agents, but a large local model plus a browser plus a build environment can exceed it.

The regional footprint is broad. AWS lists US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), South America (São Paulo), Europe (Frankfurt, Ireland, London, Milan, Paris, Spain, Stockholm), and Asia Pacific (Malaysia, Mumbai, Seoul, Singapore, Sydney, Thailand, Tokyo). The new runtime is the default in those regions. Existing runtimes stay on the current version until they are moved.

Migration is explicit. To move an existing runtime, or to use the next generation in a region where it is not the default yet, set platformVersion to V2 when creating or updating a runtime. To keep a new runtime on the current version, set platformVersion to V1. That gives teams a way to opt in and a way to opt out, which is important for production systems that cannot absorb a lifecycle change without testing.

The migration checklist is not in the announcement, but the changes imply one. Teams should verify that their session state snapshots and restores correctly, that their container image fits within 10 GB, that their peak workload fits within 8 vCPU and 32 GB, and that their idle/active pattern actually benefits from scale-to-zero. They should also test the resume path, not just the cold-start path, because the value of snapshot restore depends on how reliably a session comes back.

What to watch

The new runtime is a meaningful step for agent infrastructure, but several questions will determine how useful it is in practice.

First, snapshot fidelity. The announcement says a session is restored from a snapshot of the initialized agent. The useful question is which parts of the state are captured and which have to be rebuilt. Teams should look for documentation on what is included, what is excluded, and how failures are handled.

Second, restore latency. The sub-two-second figure is for a 2 GB image at P75. That is a strong number, but it is a single point. Watch for data on larger images, larger memory footprints, and the tail latency that matters for interactive agents.

Third, cost transparency. The 68% billed-memory reduction is a useful headline, but the total cost includes snapshot storage, restore operations, and any minimum billing for idle sessions. Teams should build a model from their own workload rather than assume the headline applies.

Fourth, the V1-to-V2 boundary. AWS says existing runtimes stay on the current version until moved. That is good for stability, but it also means the ecosystem will run two lifecycle models for a while. Watch for differences in behavior, limits, and pricing between V1 and V2.

Fifth, the competitive response. Agent runtimes are a crowded space, and other cloud providers will likely respond with their own snapshot and scale-to-zero features. The interesting comparison will not be the cold-start number alone, but the combination of isolation, state fidelity, and cost.

AWS's announcement is a product update, so it should be judged as one. It does not prove that snapshot restore works for every agent, and it does not settle the economics of long-running sessions. It does show that AWS is treating agent state as a first-class infrastructure problem, and that it is willing to change the runtime lifecycle to make stateful agents cheaper. For teams building agents that spend most of their time waiting, that is worth testing.

Sources


← back to posts