The Production Gap: 5 Patterns for Building Long-Running AI Agents

Addy Osmani and Shubham Saboo (Google Cloud), published in Turing Post ยท email ยท 2026-05-22 source โ†— Reader ๐Ÿ–ฅ๏ธ

Agent Governance (Internal)Agent MemoryAgent-to-Agent ProtocolsHuman-in-the-LoopLong-Running & Managed AgentsMCP (Model Context Protocol)Multi-Agent Orchestration
To survive contact with real production workloads, AI agents must be redesigned as long-running, stateful server processes โ€” using checkpoint-and-resume, in-place delegated approval, governed multi-layer memory, ambient event-driven processing, and fleet orchestration with A2A/MCP interoperability โ€” because most current agent architectures are 'secretly stateless' and silently reconstruct context from scratch on every turn.

practical ยท argumentative โ€” A practical/prescriptive guest post: it argues for adopting five architectural patterns when building production agents whose work spans days. The piece is also clearly a sponsored articulation of the Google Cloud Agent Runtime / Gemini Enterprise Agent Platform product narrative โ€” its prescriptions are framework-tinged even when the patterns themselves are platform-neutral.

Structure

PartRole
Framing / 'the production gap'Diagnosis โ€” establishes the problem that demos hide and that production work (multi-day insurance claims, week-long sales sequences, financial reconciliation) exposes: agents reconstruct context per interaction and lose reasoning chain, soft signals, and confidence gradients.
Vendor anchorContext โ€” announces Google Cloud Agent Runtime support for long-running agents up to seven days. Frames the patterns as 'what we've seen work in production.'
Pattern 1: Checkpoint-and-ResumeSub-thesis + evidence โ€” argues for treating agents as long-running server processes that checkpoint progress at calibrated granularity; supported by a google.adk code example (DocumentProcessor checkpointing every 50 docs).
Pattern 2: Delegated Approval (Human-in-the-Loop, Done Right)Sub-thesis + critique โ€” argues that JSON-serialized webhook HITL is broken because it loses implicit reasoning context; instead the agent should pause in place, retain full execution state, consume zero compute while waiting, resume on sub-second cold start.
Pattern 3: Memory-Layered Context (and Why You Have to Govern It)Sub-thesis + risk argument โ€” distinguishes long-term knowledge-base memory from working memory and introduces the failure mode of 'memory drift'; argues for three governance mechanisms (agent identity, centralized registry, boundary-enforced policy).
Pattern 4: Ambient ProcessingSub-thesis + examples โ€” argues for event-driven, human-free agents (Pub/Sub content moderation, BigQuery data quality, support-ticket triage) and adds an architectural rule: externalize policies into the governance layer instead of hardcoding into agents.
Pattern 5: Fleet OrchestrationSub-thesis โ€” argues for a coordinator/worker decomposition (sales prospecting example: research, scoring, sequencing, outreach, follow-up), declaratively expressed as graph-based workflows so the structure is enforced by the framework rather than by an LLM-followed system prompt.
A2A and MCP: The Interoperability LayerBridge argument โ€” patterns alone are insufficient because organizations consume agents built by other teams/companies; A2A standardizes agent-to-agent comms, MCP standardizes agent-to-tool/data comms; agent cards + registry enable discovery without bespoke integration.
How to choose / closingDecision rule + prediction โ€” diagnostic question: 'what is the longest uninterrupted unit of work your agent needs to perform?'; closes with a competitive-advantage claim that companies building stateless agents will be refactoring in 12 months.
Vendor CTADisclosure โ€” explicitly a guest post sponsored by Google Cloud promoting the Gemini Enterprise Agent Platform.

Key terms

Propositions

Arguments

You must redesign agents as long-running, stateful server processes. strength: high
Explicit premises:
Implicit premises:
Inferences:
Human-in-the-loop must be implemented as in-place pause, not webhook-serialized handoff. strength: high
Explicit premises:
Implicit premises:
Inferences:
Memory must be layered and governed at the boundary. strength: high
Explicit premises:
Implicit premises:
Inferences:
Policies must live in an external governance layer, not in agent code/prompts. strength: high
Explicit premises:
Implicit premises:
Inferences:
Multi-agent coordination should be expressed declaratively as a graph, not in prompts. strength: high
Explicit premises:
Implicit premises:
Inferences:
Open protocols (A2A + MCP) are necessary to capture the value of cross-team and cross-org agent fleets. strength: high
Explicit premises:
Implicit premises:
Inferences:
Companies building stateful, governed, interoperable agents will out-compound companies building stateless agents.
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents