Skip to main content
November 28, 2026

Suspend-and-Resume Agents: What AWS Infinity Means for Incident Response

Suspend-and-Resume Incident Agents: AWS Infinity

An incident agent spends most of its life waiting: for a log query, a rollout, a human approval, the next alert. In the usual agent loop, every wait keeps a process, a stack and often a connection open. That is fine for one incident, and a poor fit for a fleet of agents.

Infinity takes another approach. AWS announced it on October 23, 2026 as "an early research release", built with UC Berkeley as part of the Hydro project and published under Apache-2.0. The idea comes from async functions: a tool call is an await point. Below is how it works, what the headline number actually measures, and the failure modes to plan for before you put an incident agent on it.

How Infinity Suspends an Agent

Per the AWS post, when an agent calls a tool, the runtime "dispatches the call, saves the conversation, and suspends the agent." When the result arrives, it "resumes the agent from its saved state." The runtime overview calls each step an execution slice: load the thread's history, run one model completion, persist the turn, dispatch the tool, end. The architecture docs say it plainly: "an execution slice never blocks on anything external."

The parts that matter to operators:

  • One input queue. "Everything that can resume an agent arrives as a message on a shared input queue, including user text and tool results." The architecture docs add subscription events, child-thread reports, OAuth challenges and timer wake-ups. Each message carries a group ID, and messages for one thread run in order, one slice at a time.
  • Callback tools. A tool call is an HTTP POST with the arguments and a callback_url. The tool acknowledges at once and posts the result later, "whether it takes 100 milliseconds or three days." This contract is the Reactive Agent Protocol (RAP). Existing MCP servers work "through a backwards compatibility layer."
  • Two stores. A ConversationStore holds history and compaction summaries. A StateStore tracks processed message IDs, so a redelivered message does not run twice.
  • Durable before dispatch. Streamed output is buffered and flushed before a tool is dispatched, so the call is on record before its result can arrive.

Serverless Mode

The README says the same agent code "runs unchanged in a resident process on your laptop and on serverless platforms like AWS Lambda, where scale to zero is the default." In that mode nothing stays in memory between steps. As the AWS post puts it, "When Infinity suspends an agent during a tool call, the serverless function can end."

The reference AWS deployment uses an SQS FIFO queue, one Lambda invocation per step, Aurora DSQL for histories, DynamoDB for deduplication and EventBridge Scheduler for timers. The serverless quickstart ships an InfinityAgent CDK construct that provisions "Lambda, SQS, DSQL, Function URLs, and IAM permissions." Three details to know before you try it: the agent is a Rust binary built for ARM64, the quickstart build calls a fixed Claude Sonnet model through Bedrock, and the deployed agent has no HTTP front end. You talk to it through SQS.

What "75,000 Agents in 8 GB" Measures

The headline claim is that Infinity can "fit 75,000 concurrent agents in the 8 GB of a Raspberry Pi 5." Read the setup before you repeat it. The AWS post says the measured run used "80,000 agents, for a total of 3.2 million completions, on a single thread of an AMD EPYC 9R14 with in-memory stores," and resident memory grew "at about 100 KB per idle agent." The Pi number is arithmetic from that server run, not a test on a Pi.

The benchmark source shows what one agent was. A scripted stand-in model streams about 1.1 KB of text per completion. A mock run_command tool returns a canned test summary, repeated five times, without running anything. Each of the 20 turns is two completions. The memory figure is whole-process RSS divided by agent count, read while all agents are idle, so it covers the runtime baseline as well as the stored histories.

That is a fair benchmark of runtime overhead, not of an incident agent. A real investigation pulls log excerpts, kubectl describe output and metric series into its history. A worked example: if each of 20 turns adds a 20 KB tool result, that is about 400 KB more per agent. With the benchmark's own 100 KB on top, 8 GB holds about 16,000 agents, not 75,000. In serverless mode the history lives in the database instead of RAM, so the cost moves to storage and to the read on every resume.

The lesson still holds: an idle agent costs its history, not a process. Budget by history size.

Why Incident Agents Fit This Model

Here is where an incident agent waits, and what each runtime keeps alive during the wait:

Wait during an incident Usual length Blocking loop keeps Suspended agent keeps
Log or metrics query Seconds Process and connection History in the store
Rollout or canary watch Minutes Process and a polling loop History and a pending callback
Human approval for a restart Minutes to hours Process, until a timeout kills it History and a pending message
Follow-up alert after the fix Hours Usually nothing: the run has ended A subscription that wakes the agent

The last row is the interesting one. Most incident agents today end the run and lose the thread. In Infinity, a RAP subscription persists across hibernation, and by default an incoming event spawns a new child thread to handle it.

Akmatori handles part of this at the incident level. Per the architecture docs, an alert posts to /webhook/alert/{instance_uuid}, and the API server "either attaches the alert to an open incident or creates a new one," so a follow-up alert joins the existing incident instead of starting a blank investigation. Every tool call goes through the MCP Gateway, which checks the run's allowlist. Infinity pushes the same event-driven idea down into the agent loop itself.

It also differs from container-level suspend. Agent Substrate snapshots an actor's filesystem and memory. Infinity persists only the conversation, which is why its idle cost is so small, and why anything not in the history is gone on resume.

Failure Modes to Plan For

  1. Duplicate side effects. Delivery is at-least-once, and the dedup state "makes slices effectively idempotent." The docs do not say your tools are. A remediation tool (restart, scale, roll back) should take an idempotency key derived from the tool call ID and refuse a second run.
  2. Stale context on resume. An agent that resumes three days later reasons from a history written before the world changed. The docs note that a concurrent event can arrive between dispatch and result. For incident agents, make the first step after any long wait a fresh read of current state, before any write.
  3. Callbacks that never come. None of the docs pages we read states a maximum tool duration. A tool that crashes after it acknowledges leaves the agent suspended at zero cost and with zero visibility. Pair every long dispatch with a timer wake-up, which the input queue supports, and treat a fired timer as a failed tool.
  4. An open callback endpoint. The callback_url is an inbound path that can resume an agent with any content. Authenticate it as you would an alert webhook, and treat tool results as untrusted input.
  5. Invisible agents. A suspended agent has no process, so ps, pod counts and CPU graphs show nothing. Watch the queue and the stores instead: pending tool calls, age of the oldest waiting thread, redelivered messages, fired timers.
  6. History growth. Memory and resume cost both grow with history. The local driver compacts at about three quarters of the context window, which controls tokens, not storage. Keep large tool output out of the history and store a pointer to it.

Should You Run It?

Infinity says it is a research release, and its crates are pre-1.0 with breaking changes in recent commits. Treat it as a lab target. It fits best when you have many agents that mostly wait, tools that are slow or human, and an AWS account that already runs SQS and Lambda. It adds little for one or two agents that finish in minutes on fast read-only tools.

Even if you never deploy it, borrow the contract: persist history before every tool dispatch, resume from storage, and put every wake-up on one ordered queue per thread. We compared that pattern with workflow engines in your agent orchestrator is Airflow with extra steps.

Conclusion

Infinity treats a tool call as an await point, so a waiting agent costs one stored conversation and, in Lambda mode, no process at all. The 75,000 figure is extrapolated from a benchmark with tiny scripted histories; size your fleet by your own tool output. Before an incident agent runs on any suspend-and-resume runtime, make remediation tools idempotent, re-read state after long waits, put a timer on every callback, and monitor the queue.

If your team wants AI-assisted incident workflows where follow-up alerts join the open incident, Akmatori helps SRE teams investigate alerts, coordinate response, and automate safe infrastructure actions. Powered by Gcore for global infrastructure reliability.

Automate incident response and prevent on-call burnout with AI-driven agents!