Requesty
Back|AUG '26OBSERVABILITY / AI AGENTS
6 MIN READ|

The agent said it worked and the database row is missing: the verification gap nobody instruments

Last updated

The most valuable engineering post in our social corpus this month was not about a model. A developer spent a month in DMs with more than 40 teams shipping agents in production, LangGraph users, n8n builders, voice and CRM developers, an agency QA lead, asking one question: does anyone verify what an agent did, rather than what it said?

The pattern came back independently from people who had never spoken to each other:

Agent reports success. Tool returns 200 OK. Logs are clean. The database row is missing.

One case was a CRM automation where a downstream validation rule silently rejected some updates with no exception thrown. It took days to two weeks to notice, caught during report reconciliation. The quote worth pinning above a dashboard:

the biggest cost wasn't the data repair, it was the uncertainty window where nobody knew which records were actually reliable.

That is the real cost of this failure class. Not the bad rows. The period during which every row is suspect.

Why your current instrumentation is blind to it

Look at what a typical stack records for a run like this. Request logged. Latency normal. Token count normal. Tool call returned 200. No exception. Agent produced a confident summary. Cost within budget. Every signal green.

The failure is not in any of those layers. It is in the gap between the tool call succeeding and the outcome occurring. HTTP 200 means your request was accepted. It does not mean the record was written, the validation passed, the downstream job ran or the state changed.

Traditional software handles this with assertions, transactions and reconciliation. Agent stacks mostly do not, because the agent's own narration is treated as the report. And an LLM narrating its work is the least reliable witness in the system: it will describe the intended effect of the call it made, because that is what the tool description promised.

This is a distinct problem from the ones the industry currently instruments well. Cost and token accounting is solved. Latency and error rates are solved. Prompt and response logging is solved. Outcome verification is not, and it is the one that produces silent data corruption.

The same shape shows up everywhere once you name it

Browser and computer use. A developer thinking about what to optimise in browser agents listed the hard behaviours, and the first two were noticing that an action silently failed and recovering without repeating the same thing eight times. Their observation that two agents can both fail while one realises after two steps and the other burns fifty is a cost problem and a correctness problem at once.

Scraping and extraction. A team that replaced a generic scraper with a typed tool per site listed the failure mode plainly: sites change and the agent silently starts returning garbage, confidently, and debugging is miserable because the failure is inside a model call rather than in code. Their fix generalises well: derive the schema once, cache it, expose each source as its own typed deterministic tool, and keep the model out of the hot path.

Harness level lying. One developer running local models discovered after months that their agent harness had been misconfigured and only noticed when a better model made the failures implausible enough to investigate. Their line is the general lesson: a weaker model's failures look like model failures, so infrastructure bugs hide behind them indefinitely.

Even model identity is opaque. One developer published evidence that a vendor was silently routing a named model to a newer internal build, identifiable only from a signed field inside the response payload. If the model that answered is not necessarily the model you asked for, then "which model produced this output" is itself something you have to verify rather than assume.

And the aggregate consequence is visible in how teams talk about their work. A developer at a company spending serious money on tokens described 80% of the work going into keeping the software from crashing while pull request volume exploded. Output went up. Confidence did not.

The fix, in four layers

1. Tools assert outcomes, not statuses. This is the highest leverage change and it is in your code, not your gateway. A write tool should read back what it wrote and return the observed state. A tool that triggers a job should return the job's terminal state or an identifier the agent is required to poll. If the tool cannot verify, it should say so in its response so the agent cannot claim success on its behalf.

2. Narrow, typed tools over general capability. Every degree of freedom you give an agent is a place where a silent divergence can occur. A typed tool with a strict schema fails loudly at the boundary. Enforce the shape with structured outputs and keep the contract narrow.

3. Instrument the tool layer, not just the model layer. You need the actual tool call payloads and results retained and queryable, because the after the fact question is always "what did it claim, and what came back." Tool call analytics captures the call level view, session reconstruction rebuilds the whole run as the model experienced it, and logs plus request metadata let you tag a run with the business entity it touched. Tagging is what collapses the uncertainty window: if every run carries the record IDs it claims to have modified, reconciliation becomes a query rather than an investigation.

4. Reconcile on a schedule and alert on divergence. The teams in that thread all discovered the problem through downstream reconciliation. The lesson is to run the reconciliation deliberately and often rather than discovering it when a monthly report fails to balance. Pair it with alerts, performance monitoring and error codes so a rising divergence rate pages someone. Request feedback is the channel for recording that a run was later found wrong, which is the only way you build a dataset of real failures rather than a dataset of exceptions.

Where the gateway helps and where it does not

Be precise about this, because vendors in our category routinely overclaim here.

A gateway cannot know whether your CRM accepted a write. It sits between your application and the model, not between your application and your database. Nobody's routing layer verifies your business outcomes.

What it does give you is the evidence layer that makes verification possible: the full request and response for every call including tool calls and their results, reconstructed per session, attributable to a user, key, feature and entity, retained long enough to answer questions raised two weeks later. That is precisely what was missing in every case above. The teams did not lack judgment, they lacked the record needed to bound the blast radius quickly.

The related discipline is keeping the agent's context clean enough that its self reports mean something. A developer who measured their agent's context found 84% of command output was noise, which both costs money and buries the signal an agent would need to notice its own failure. We wrote up the cost side of that in cache hit rate decides your agent bill.

The trend to watch

Agent adoption is being measured in tokens, and by that measure it is exploding: 7.3 trillion tokens a week on one marketplace, 14x in a year. Token volume is a proxy for activity, not for correctness, and the two are diverging.

The next competitive layer in this stack is not a better model. Late August delivered five open weight releases in nine days at Flash tier prices, and capability is no longer the constraint for most production agent work. The constraint is that we deploy systems whose self reports we cannot check, at a volume where manual review is impossible.

Whoever makes outcome verification routine will unlock more production agent deployment than the next capability jump. Until then, assume your agent is an optimistic narrator and build the check yourself.

For the reliability fundamentals see AI agent reliability and why your gateway is the backbone of production agents, and for how deep real agent traces run in practice, the agentic long tail.

Start routing on Requesty and keep the record that lets you answer which runs were reliable.

Frequently asked questions
What is the agent verification gap?
It is the difference between what an agent reports doing and what measurably happened in your systems. An agent can complete a run with a clean transcript, successful tool responses and no exceptions while the intended side effect never occurred, because a 200 OK from an API means the request was accepted, not that the business outcome was achieved.
Why do standard logs and traces not catch it?
Because nothing errored. Request logging, tracing and token accounting all record a successful run. The failure is semantic: the tool call succeeded and did not do what the agent believed. Detecting it requires comparing the agent's claimed outcome against independent state, which no LLM observability tool does by default.
How long does this class of failure usually go undetected?
In the reported cases, days to two weeks, and it was typically caught during downstream reconciliation such as a report not balancing rather than by monitoring. That detection lag is what makes it expensive.
What is the minimum practical fix?
Make the tool assert the outcome rather than return a status, read back the state you just wrote, and give agents typed narrow tools instead of a generic capability. Then log the tool result payloads so a human can compare claim against effect after the fact.
Related reading

Start building with Requesty

One line of code. 600+ models. Full control.

Speak to founders