Hand an agent direct control of a live data system and it safely completes 17.9% of incidents. A human doing the same jobs passes 93.4% [1]. That 75.5-point gap is the whole case for an anti-corruption layer — a fixed gate between the model and every write. The agent should never be the process that commits. And the same gate, it turns out, is the cheaper way to run tool access.
At a glance
This article is about where an agent’s write lands. For anyone wiring agents into finance, payroll or stock systems, the evidence says the write path needs a fixed code-side gate rather than a tool call straight from the model — and that gate also cuts token cost.
The write path is where reliability breaks
In July 2026, a test set built to mirror production data systems put autonomous agents in charge of real repairs — the kind of test where a wrong move corrupts a record rather than failing a quiz. Across 848 runs, the best agent passed the safety checks in 17.9% of cases; a human passed 93.4% [1]. Safety fell from 19.6% on easy cases to 7.6% on hard ones [1]. The harder the case, the wider the gap — and hard cases are exactly the ones that reach a system of record, the database a business treats as the truth about its money and stock.
The cause is structural, not a tuning problem. An agent is a chance writer: the same prompt can produce a valid call or a plausible near-miss, and you cannot tell them apart from the outside. A second benchmark, run in August 2025, found the same ceiling on the read side. Across 11 real tool servers built on the Model Context Protocol (MCP — the standard plug that lets a model call outside software), the best model finished 43.72% of tasks, with Grok-4 at 33.33% and Claude-4.0-Sonnet at 29.44% [2]. If the best model stumbles on more than half of well-set tool tasks, it cannot be the last step before a write.
My reading, held loosely, is that the model should propose and never commit. Schema checks, idempotency keys and an audit trail belong in a fixed gate: the agent drafts the write, the gate decides whether it lands. Anthropic’s own engineering work points the same way, for a reason that surprises most teams — cost. When tool access moves out of the model’s context and into code, one sample task dropped from 150,000 to 2,000 tokens, a 98.7% saving [3]. Think of the model’s context as a desk you pay for by the sheet: every tool definition you pile on it is a per-turn fee. The gate that protects the record also stops that fee.
By the numbers
- 75.5 points: the safe-repair gap between a human (93.4%) and the best agent (17.9%) on live data systems [1].
- 43.72%: the best model’s task completion across 11 real MCP tool servers [2].
- 2,000 tokens: one sample task’s cost after tool access moved into code, down from a 150,000-token bill [3].
Where this bites
The field notes keep landing on the same wound. In one case, four procurement agents chained together booked purchase orders straight into the accounting system. A vendor link timed out, two agents stayed committed, and $410,000 of phantom stock needed manual scripts to undo [4]. In another, an insurer’s claims agents hit a 25-year-old mainframe with direct data access and stalled it with lock fights — two processes each waiting on data the other holds. A message-bus gate then buffered 45,000 daily queries into batch updates, and the mainframe stopped seizing [4].
I have read both of those post-mortems more than once, and neither fix was a model upgrade. The teams cut the agent’s power to a proposal. They put schema checks between the proposal and the record, so a malformed write dies at the gate instead of in the ledger. They made each write idempotent at the gate — a retry produces the same result once, not twice — so a timeout cannot double-book. And they kept the audit trail at that layer, because the model’s own say-so is not proof of what it did.
What I am watching next is whether vendors ship the write gate as a default part rather than a pattern you assemble by hand. Anthropic’s code-run pattern already moves tool access out of the prompt [3]. If the next round of agent platforms does the same, the anti-corruption layer stops being something you build and starts being something you configure.
Durable execution is not a transaction covers the other half of this boundary — the state a durable journal and a gate must carry once you do mediate the write.
The catch
The gate is not free, and the numbers have edges. The 17.9% comes from lab-built dirty systems under a fixed 50-turn budget, not your traffic [1]. The human side of the comparison is one expert, not a panel [1]. The 98.7% token figure is one worked sample from the vendor’s own post, not a third-party count [3].
A strict gate also rejects valid-but-unusual writes, and someone has to triage what it holds. If your agents only ever read, or the writes land in a system that can absorb a bad draft, the layer may be overhead. But for writes to records you cannot undo — a finance posting, a payment, a payroll run — I would not bet on the model’s judgment as the final check. The gap between 17.9% and 93.4% is too wide for that bet, and the gate that closes it costs less to run than the tool calls it replaces.
Related reading
- Agent Memory Poisoning — more on Autonomous & Agentic Workflows
- Your Agent’s 84,000-Write Mistake — more on Autonomous & Agentic Workflows
- 68 Loops Your Runtime Never Stopped — more on Autonomous & Agentic Workflows
Sources
- [1] Junming Chen, Junyang Jiang, Xu Chen, Zibo Liang and Kai Zheng, “DBA-Bench: A Production-Fidelity Benchmark for LLM-Based Database Operations Agents” (arXiv:2607.22165v1, 2026-07) — across 848 automated runs, Diagnosis/Outcome/Safe Pass at 32.7%/19.6%/12.4%; best automated Safe Pass 17.9% vs 93.4% human reference (75.5-point gap); Easy 19.6% → Hard 7.6% (https://arxiv.org/html/2607.22165v1)
- [2] Yuanhao Wu et al., “MCP-Universe: Benchmarking Large Language Models with Real-World Model Context Protocol Servers” (arXiv:2508.14704, 2025-08) — 11 real servers, 6 domains; GPT-5 43.72%, Grok-4 33.33%, Claude-4.0-Sonnet 29.44% overall success (https://arxiv.org/abs/2508.14704)
- [3] Anthropic Engineering, “Code execution with MCP” (2025-11) — in the worked example, tool mediation moved into code drops token usage from 150,000 to 2,000 tokens, a 98.7% saving (https://www.anthropic.com/engineering/code-execution-with-mcp)
- [4] Field notes — context/growth_os/customer-truth.md §multi_agent_enterprise_fabric: Anecdote 1 (four chained procurement agents, $410,000 phantom inventory from uncommitted reversals) and Anecdote 3 (message-bus gateway buffering 45,000 daily agent queries in front of a mainframe core)