A practical catalog by Addy Osmani and Shubham Saboo of the design patterns that “separate working long-running agents from demos.” The patterns aren’t Google-specific but map cleanly onto Agent Platform primitives. They compose: a real production system uses several of them at once.
The opening question is always the same: what’s the longest uninterrupted unit of work your agent needs to perform? Minutes — you don’t need long-running agents. Hours or days — these patterns are where to start.
1. Checkpoint-and-resume
The failure they fix. The most common multi-day failure is context loss. Agent processes 200 documents over four hours, hits an error on document 201, and without a checkpoint you start from scratch.
The pattern. Treat the agent like a long-running server process: write intermediate state to disk, checkpoint every N units of work, recover from failures. Persistent filesystems (Agent Runtime sandbox, Cursor’s worktree, your own volume) give you the substrate. The hard part is choosing the right checkpoint granularity — not every step (too much overhead, files become unreadable) and not only at the end (defeats the purpose). Pick a meaningful unit: per-document, per-feature, per-test-pass.
Connections. This is the operational form of the file-as-state principle: every git commit + claude-progress.txt append is a checkpoint. The Ralph Loop checkpoints implicitly via its task list.
2. Delegated approval (human-in-the-loop)
The failure they fix. Most “human-in-the-loop” implementations are: serialize state to JSON, fire a webhook, hope someone responds. The state goes stale, the notification gets buried, the agent re-deserializes into a slightly different world.
The pattern. Long-running runtimes let the agent pause in place with full execution state intact — reasoning chain, working memory, tool history, pending action. Hours of human time pass, the agent consumes zero compute, it resumes with sub-second latency once approval lands.
Key
The unit of pause is not “save state to JSON and reconstruct it.” It’s “the session is durable; the brain detaches; nothing else changes.” This is exactly what Brain Hands Session Split enables.
Mission Control is Google’s inbox for this; Anthropic’s Managed Agents has the same shape; the pattern is vendor-agnostic.
3. Memory-layered context
The failure they fix. A seven-day agent needs more than session state. Conversation history fills; long-term knowledge is lost across runs.
The pattern. Layer memory by retention and access pattern:
- Session state — the current run
- Memory Profiles / low-latency lookups — recent, hot
- Memory Bank / curated long-term — what the agent has learned that survives runs
Memory drift
“The agent learns a procedural shortcut from a few atypical interactions and starts applying it broadly.” This is the failure mode you’ll hit in production. Memories sampled from a handful of weird sessions become the agent’s default behaviour.
The mitigation: govern memory like you govern microservices.
- Agent Identity controls who can read and write which banks
- Agent Registry tracks which version of which agent is running
- Agent Gateway enforces policy on the wire
The auditing question stops being “what are my agents doing?” and becomes “what are my agents remembering, and how is that changing their behavior?”
This is a meaningful evolution of Agent Memory: when memory is durable and shared, it becomes a policy surface, not a technical detail.
4. Ambient processing
The failure they fix. Not every long-running agent talks to a human. Some sit on a Pub/Sub stream, a BigQuery table, an inbox — acting on events as they arrive: content moderation, anomaly detection, inbox triage. Hardcoding policy into each agent means every policy change is a redeploy.
The pattern. Define policy in the Gateway, not in the agent. The fleet picks up policy changes without redeploys. Ambient agents run unsupervised for long stretches; the only sane way to update a hundred of them is to update the policy layer once.
Connections. This is the same logic as composable CLIs: policy as a separate concern from execution. The Gateway is the policy compiler; agents are the runtime.
5. Fleet orchestration
The failure they fix. In real systems you rarely have one agent. You have a coordinator and specialists (a Lead Researcher, a Scoring Agent, an Outreach Agent), each running independently for different durations.
The pattern. The same coordinator/worker shape distributed systems have used for decades — but with three things that are new:
- Each specialist gets its own Identity (so the Outreach Agent can’t read financial data meant for Scoring)
- Each gets its own policy enforcement and Registry entry
- Workflows are declared as graphs (ADK does this), so a bad deployment in one specialist doesn’t cascade to the others
This is the production-grade form of Multi-Agent Systems: not “spawn workers from an orchestrator prompt,” but “deploy a specialist with its own identity, version, and policy boundary.”
The patterns compose
A compliance system might use:
- Checkpointing for document processing
- Delegated approval for review gates
- Memory layering for cross-session knowledge
- Fleet orchestration to coordinate the specialists
…all at once. The patterns are not exclusive, they’re layers.
How this maps to the convergent architecture
| Pattern | What it requires of the platform |
|---|---|
| Checkpoint-and-resume | Persistent filesystem in the hands; durable session log |
| Delegated approval | Detachable brain (process can pause without losing state) |
| Memory-layered context | Managed memory tier (Memory Bank or equivalent); identity scoping |
| Ambient processing | Policy gateway separable from agent code |
| Fleet orchestration | Per-agent identity + registry + declarative workflow primitives |
Read the table the other way: the reason production platforms expose these specific primitives is that these are the patterns they’re enabling. The architecture follows the patterns it has to support.
Related
- Long-Running Agents — umbrella; the patterns are the production answer to the three walls
- Gemini Enterprise Agent Platform — the named services these patterns map onto
- Brain Hands Session Split — what makes delegated-approval and checkpointing work
- Agent Memory — what memory-layered context generalises to
- Multi-Agent Systems — the foundation under fleet orchestration
- Long-Running Agents - Initializer + Coding Pattern — checkpointing implemented at the file level for coding agents
- CLI Design for AI Agents — composability principle echoed in ambient processing’s policy-in-gateway design
Sources
- Long-Running AI Agents — Osmani + Saboo’s five-pattern catalog