The Guarantee AI Keeps Breaking

Why the fix for double charges still fails with AI agents.

Databases · AI Infrastructure · Distributed Systems · Computer Science
The Promise That Databases Made and AI Systems Keep Breaking
Every serious database in history was built around a single obsession: never leave the data half-done. The engineers building AI agents forgot to read the manual.
2026

In the early 1980s, a team at IBM was wrestling with an unglamorous problem. Banks were moving money between accounts using computer systems, and sometimes the computer crashed at the worst possible moment, right after subtracting money from one account but before adding it to another. The money was gone. The customer was furious. Nobody could explain what happened.

I. The Four-Letter Contract

The solution they formalized became one of the most consequential ideas in the history of computing. They called it ACID, an acronym for Atomicity, Consistency, Isolation, and Durability. Atomicity says a group of operations is a single unit, with no middle ground between completion and rollback. Consistency says every operation takes the system from one valid state to another and is never allowed to leave the database incoherent. Isolation says two operations happening at once do not interfere, each running as if it has the system to itself. Durability says that once an operation is recorded as complete, it stays complete, even if the power cuts out a millisecond later.

These properties were designed for a world where the most dangerous actor was a power failure or a disk crash. They were not designed for a world where the most dangerous actor is a language model that cannot guarantee it will make the same decision twice. That world arrived anyway, and it brought all four problems with it.

01 The ACID Contract
Four guarantees that define what it means to be trustworthy with data. Formalized in 1983, they remain the foundation of every serious database system built since.
A PROPERTY 01 ATOMICITY A group of operations is a single unit. All complete together, or none at all. No half-finished transactions. C PROPERTY 02 CONSISTENCY Every operation moves the system from one valid state to another. The database is never left incoherent. I PROPERTY 03 ISOLATION Concurrent operations do not interfere with each other. Each transaction runs as if alone. D PROPERTY 04 DURABILITY Once an operation is recorded complete, it stays complete. Even a crash cannot undo it.
The four ACID properties
Formalized 1983, IBM System R
II. The Impossibility at the Center

Before the AI complications, there is a mathematical problem that no engineer has ever solved, and no engineer ever will. It is called exactly-once delivery, and it describes something so intuitive that its impossibility feels like a trick. When one computer sends a message to another, there are only three outcomes: the message arrives once, it arrives more than once because the sender retried after getting no confirmation, or it never arrives at all. Getting it to arrive exactly once, every time, on an unreliable network, is provably impossible. After a sender transmits a message and waits, silence tells it nothing. The receiver might have crashed, the confirmation might be stuck in transit, the message might have been lost. The sender cannot tell, so it retries, and the retry may duplicate the work.

Computer science has a classical illustration called the Two Generals Problem. Two armies need to attack a city simultaneously to succeed, but they can only communicate by messenger, and messengers can be intercepted. Neither general can ever be certain the other received the last message, because any confirmation the second general sends is itself subject to being lost. The loop of uncertainty never closes.

The standard engineering escape is a two-step workaround. First, accept that messages will sometimes arrive more than once, and deliver them at least once. Second, design the receiving system so that receiving the same message twice has the same effect as receiving it once. That property is called idempotency, and it is what lets you click reload on a payment page without being charged twice. At-least-once delivery plus idempotency produces what engineers call "effectively-once" semantics, the closest the industry has ever gotten to the real thing. AI agent systems are now destroying both sides of that workaround simultaneously.

III. How AI Breaks All Four Guarantees

The ACID properties do not fail in AI systems for exotic reasons. Atomicity fails in agent loops when a task requires three external tool calls in sequence, the second call times out, and the orchestrator retries the entire task. The first tool already sent an email and the third already wrote a record, so the retry sends the email again and duplicates the record. There is no rollback mechanism, because the agent framework never imagined itself as a transaction system. Durability fails because the most important inference state lives in volatile GPU memory, specifically the key-value cache holding attention computation for every token processed so far. When a worker crashes, that cache vanishes, and any progress on a long task vanishes with it.

Isolation fails in a way that surprises most people who have not looked closely at production inference. Even at temperature zero, which is supposed to produce deterministic output, a language model served at scale does not return the same answer every time. Researchers at Thinking Machines Lab traced the cause to batch variance: the numerical reductions inside attention and normalization layers are sensitive to floating point rounding, and rounding behavior depends on how many requests are processed in the same batch, which depends in turn on how many other users hit the server that instant. The model's output is a function of other users' traffic. That is an isolation violation in the classical sense, one transaction being influenced by the state of concurrent, unrelated transactions.

Consistency fails across the seam between two storage systems. Modern AI stacks combine a vector database for semantic retrieval with a relational or document database for structured records, and vector databases typically operate under eventual consistency. After a document is updated, there is a window during which old embeddings are still being served from replicas that have not yet received the change. An agent retrieving context during that window is reasoning from a stale premise, and the structured database it writes to afterward reflects a conclusion built on outdated information.

02 Where AI Breaks the Contract
Each guarantee fails for a specific structural reason inside AI infrastructure. The mechanism is different in every case, but the outcome is the same: data the system cannot trust.
THE GUARANTEE WHAT BREAKS IT THE VISIBLE FAILURE A ATOMICITY BROKEN BY Agent retry after partial completion of side effects Duplicate emails sent, duplicate records written C CONSISTENCY BROKEN BY Vector index lags behind the structured database Agents reason from stale embeddings I ISOLATION BROKEN BY Floating point reductions vary with GPU batch size Your output depends on other users' concurrent traffic D DURABILITY BROKEN BY KV cache lives entirely in volatile GPU memory A worker crash erases all agent progress
ACID property
Failure mechanism
IV. Where the Failures Become Visible

Abstract guarantees are easy to discount. The costs become concrete when AI agents start touching money. In 2025, Google announced the Agent Payments Protocol, backed by more than sixty organizations including Mastercard, PayPal, American Express, and Coinbase. The protocol's existence is itself a diagnosis. It was designed because AI agents given access to payment tools had a documented tendency to duplicate transactions, and the root cause is an idempotency failure. An agent retrying a failed tool call rephrases the request, which changes the request body, which generates a new idempotency key, which the payment processor treats as a brand new operation. One engineering account documented an agent that retried a subscription endpoint seventeen times in ninety seconds, each time with a rephrased body, producing seventeen distinct charges before anyone noticed.

The structural scale of these failures is documented in research from UC Berkeley's Sky Computing Lab, which built a benchmark across seven major agent frameworks including AutoGen and analyzed more than 1,600 execution traces. The failure rates ran between 41 and 86.7 percent. The single largest category, nearly 37 percent of cases, was inter-agent misalignment, which is the precise failure mode that isolation and consistency are designed to prevent. Two agents operating on a shared task were working from divergent views of the world, writing conflicting state, and producing results that contradicted each other. Phantom reads, an anomaly that relational databases classified and solved in the 1970s, reappeared in retrieval-augmented generation pipelines where vector index updates lagged behind the queries they were supposed to serve.

Engineer infographic on glass board showing the ACID breakdown in AI systems

A working diagram of the ACID breakdown in modern AI infrastructure. The three zones map the original contract, where each property fails in agent systems, and the layered solution stack being assembled to restore it.

V. Building Systems That Can Actually Be Trusted

The fixes are not new ideas. They are old database concepts applied to a new workload, reached in roughly the same order distributed systems engineers did twenty years ago. The foundation is durable execution: Temporal records every step of an agent workflow as an append-only event log, so a worker that crashes at step 47 of 100 replays the log and resumes at step 48 rather than starting over. On top of that sits deterministic inference, where batch-invariant numerical kernels produce bit-for-bit identical output regardless of how many other requests share the server, at a throughput cost of 25 to 45 percent. That price is necessary, because replay only works correctly if the model returns the same answer it returned before.

The deepest layer is where AI infrastructure meets formal computer science. Neural networks have no way to write an invariant down and refuse to violate it. Symbolic systems do. A constraint solver can hold a rule that says "never authorize a payment without a confirmed mandate" and block any action that breaks it, regardless of what the neural component proposes. Neurosymbolic architectures combine both, and the connection to ACID is not a metaphor: an integrity constraint in a logic program is the consistency property stated formally. The 1983 paper that gave the world ACID was responding to a machine that crashed at the worst possible moment. The work of making AI infrastructure live up to that same standard, on a machine that is non-deterministic by construction, has barely started.

03 The Layered Path Back
Three layers built in dependency order, each restoring a property the agent stack broke. The foundation must be in place before the layer above it means anything.
LAYER 03 / EMERGING Neurosymbolic Invariants A symbolic engine refuses any action that violates a formal rule. RESTORES C LAYER 02 / RECENT Deterministic Inference Batch-invariant kernels produce bit-for-bit identical output every run. RESTORES I LAYER 01 / FOUNDATION Durable Execution An append-only event log replays every workflow after a crash. RESTORES A + D REBUILDING THE CONTRACT, ONE LAYER AT A TIME
Active layers (deployed)
Emerging layer (neurosymbolic)

Key references: Gray, J. and Reuter, A., Transaction Processing: Concepts and Techniques, Morgan Kaufmann, 1992. Haerder, T. and Reuter, A., "Principles of Transaction-Oriented Database Recovery," ACM Computing Surveys 15, 1983. UC Berkeley Sky Computing Lab, MAST benchmark, arXiv:2503.13657, 2025. Thinking Machines Lab, "Defeating Nondeterminism in LLM Inference," 2025. LMSYS, "Towards Deterministic Inference in SGLang," 2025. Google, Agent Payments Protocol announcement, September 2025. Temporal Technologies, Series D announcement, February 2026. DBOS, "Why Postgres is a Good Choice for Durable Workflow Execution," 2025.