Agentic AI
Making AI agents reliable: why operations must outlast the models that run them
When an AI agent crashes mid-task, its replacement needs durable operation records—not just cached reasoning—to avoid duplicating work or losing context.
1/3
The New Stack
When an AI agent processing a customer refund crashes after sending a payment request, the outcome hangs in limbo. Did the payment go through? Should a replacement agent retry, or will it accidentally refund the customer twice? This ambiguity sits at the heart of building reliable autonomous systems—and it demands a different approach than traditional workflow resumption.
Agents reason, and that's the problem#
Unlike conventional workers that resume from a checkpoint in a predetermined workflow, AI agents decide their own next steps by reasoning over the situation. If a replacement agent encounters an incomplete operation with no recorded outcome, it may reconstruct a different plan, choose different parameters, or even opt for an entirely new refund authorization. That flexibility, which makes agents powerful, creates dangerous gaps when operations fail mid-flight.
The core insight: the business operation must outlive the agent that executes it. The refund—its approval, amount, authorization, and status—exists independent of any single model instance. The agent process, its cached reasoning, and its in-memory state are all disposable. The work itself is not.
Building durable operation records#
Before dispatching any request, the application must commit an immutable operation record to a transactional store. This record holds the approved amount, authorization details, an idempotency key sent to the payment provider, the operation's identifier in the provider's metadata, and a status flag that moves from created → dispatched → confirmed or failed.
If the agent crashes, the replacement retrieves this record along with all correlation identifiers. A record stuck in "dispatched" signals an attempted call whose outcome was never written. The replacement inherits the approved operation rather than regenerating it from scratch.
The durable record also enforces guardrails at the tool boundary—the application validates every outbound request against the committed record before it reaches the provider. The agent can propose actions, but only authorized operations with their original parameters pass through. The model cannot redefine what was approved.
Observability across the stack#
When outcomes are unclear, the replacement needs evidence to investigate. A single database holding business data, application telemetry, and agent traces—via tools like ClickHouse—allows a single query to tie an operation to the agent run that dispatched it and any failed HTTP calls. That integration matters because:

