How to Measure AI Agent Reliability for Data Operations
The metrics, sample sizes and thresholds that decide how much autonomy a data agent gets
To measure AI agent reliability, run the agent on a fixed set of real tasks several times each, score every run against a frozen expected result, and report the success rate with a confidence interval, split by task type. A single accuracy figure hides the number that matters most for data operations: how often the agent fails without anyone noticing. The same framing appears in reliability engineering, where Google's SRE book on embracing risk treats an acceptable failure rate as a business decision tied to cost, not a goal of perfection.
Key Takeaways
- •Reliability is a property of a task type, not of an agent. An agent can be safe for 'summarize this schema diff' and unsafe for 'drop this column'.
- •Measure silent failures separately. An agent that is wrong 3% of the time and says so is more useful than one that is wrong 1% of the time and sounds sure.
- •With n clean trials and zero failures, the 95% upper bound on the true failure rate is roughly 3/n (the rule of three). Thirty clean runs only prove the failure rate is below about 10%.
- •Set the required reliability by blast radius and reversibility, then map it to an autonomy level: suggest, act with approval, or act and report.
- •Reliability is not a launch gate. Re-measure it from production outcomes and move the autonomy dial in both directions.
How to measure AI agent reliability for data operations
We have seen one sentence from a recent discussion get quoted often: "I'd rather have an AI agent that's always wrong than one that's right 97% of the time." It sounds like a joke, and it is a precise statement of the problem. An agent that is always wrong is easy to handle. You stop using it, or you put a human on every output. An agent that is right 97% of the time trains people to stop checking, and the 3% reaches production. In data work that means a bad join in a revenue table, a dropped column, or an access policy applied to the wrong schema.
So the first design decision is what reliability means for your platform. We use four measurements, and we report them separately rather than blending them into one score.
- •Task success rate: the share of runs whose final output matches the frozen expected result, for one task type at a time.
- •Consistency: the share of tasks the agent gets right on every one of k repeated runs. If an agent solves a task in 1 of 5 runs, a reviewer cannot trust any single answer.
- •Silent failure rate: the share of wrong outputs that the agent presented as complete, with no flag, caveat or escalation. This is the number to drive down first.
- •Escalation quality: when the agent hands off to a human, how often was a hand-off warranted (precision), and how often did it hand off when it should have (recall).
We lean on the second and third measurements because they are the ones a demo never shows. A model that passes a task once looks identical to a model that passes it every time, until the one run that matters.
Step 1: Define the task types and the cost of being wrong
List the actions the agent can take and group them into task types with the same failure cost. Read-only questions, such as "What changed in the orders schema since last deploy?" or "Show freshness scores for all gold tables", are one group. Proposals, such as a migration script or a fix for a failed DAG, are another. Writes, such as applying a migration or changing a grant, are a third.
For each type, write down two things: the blast radius (how many tables, dashboards or consumers a wrong action touches) and reversibility (whether you can undo it in minutes, or only by restoring from backup). A wrong answer to "Who has access to PII columns in analytics?" is a wrong report. A wrong answer to a revoke or grant is an incident. Our Governance Agent and Schema Agent are scoped along these lines, which is why we cover them in separate evaluations rather than one aggregate.
Step 2: Build a golden set from your own history
Public benchmarks do not know your warehouse. Build the evaluation set from your own past work: closed incidents, merged migrations, and the questions your team actually asked in the last quarter. For each item, freeze the input state and the expected result, and store both. Include the awkward cases on purpose: ambiguous column names, a stale catalog entry, a partial backfill.
A few rules we follow. Freeze expected answers before you run the agent, so nobody tunes the answer key to the output. Keep a held-out slice you never use while improving prompts or skills. Label each item with its task type from Step 1. Thirty to fifty items per task type is a workable start for finding gross problems, but it is not enough to certify a high reliability level, as Step 4 shows.
Step 3: Run repeated trials, not single passes
Agents are not deterministic, so one pass over the golden set measures one sample of a distribution. Run every item at least five times, in a clean environment, with the same tool access the agent will have in production. Record the outcome of each run, the tools it called, and whether it flagged uncertainty.
Because every Data Workers agent is an MCP server, the tool surface is explicit and loggable. The MCP specification defines tools as discrete, schema-described calls, so you can score not only the final answer but also which calls the agent made and whether any went outside its allowed scope. If you run the evaluation from Claude Code or Cursor, the tool-call trace comes from the same client your engineers use. Refer to the Claude Code documentation for how those sessions and tool permissions are configured.
Step 4: Score with a confidence interval
Report each rate with an interval, not a point estimate. The quick version is the rule of three: if the agent succeeds on all n independent trials, the 95% upper bound on the failure rate is about 3/n. After 30 clean runs you can only say the failure rate is probably under 10%. To claim under 1% you need about 300 clean runs of that task type. This is general statistics, not something specific to agents, and it is the reason a small demo set cannot justify autonomy.
If you have some failures, use a Wilson interval on the success rate, and compute it per task type. Two practical consequences follow. First, expensive, high-risk task types need more trials, so build more golden items there. Second, if the interval is wide, the honest answer is "we do not know yet", and the agent stays at a lower autonomy level until the data narrows it.
Step 5: Map reliability to an autonomy level
Reliability is only useful if it changes what the agent is allowed to do. We use a per-domain autonomy dial. The thresholds below are our opinion and starting points, not an industry standard. Tune them to your own cost of failure.
| Autonomy level | What the agent does | Evidence we want before enabling it | Typical task types |
|---|---|---|---|
| Observe | Answers questions and reports findings. Read-only. | Success rate lower bound in the high 80s%, silent failures reviewed weekly | Schema diff questions, freshness reports, lineage lookups |
| Propose | Drafts a fix, migration or policy for a human to approve. | Lower bound above roughly 90%, near-zero silent failures on the held-out set | Pipeline fixes, migration scripts, RBAC policy drafts |
| Act with approval | Executes after a named approver confirms, with an audit trail. | Lower bound above roughly 95%, reversible actions only, rollback tested | Retrying a DAG, applying a reviewed migration |
| Act and report | Executes, then notifies. Humans review after the fact. | Hundreds of clean trials, small blast radius, automatic rollback, ongoing monitoring | Low-risk, easily reversed operational fixes |
The dial is set per domain, not per platform. A team can run the Quality Agent at "act and report" for routine test failures while keeping schema changes at "propose". This is how the Autonomous Data Conductor is meant to reduce data operations toward zero: not by flipping one switch to autonomous, but by moving each domain up the dial as its measured reliability earns it. We described the general approach in our pages on autonomous data operations, and the thresholds above are the evidence side of that story.
Step 6: Monitor in production and move the dial both ways
A golden set goes stale. Schemas change, models update, and the mix of questions shifts. Treat production as a continuous evaluation. Log every agent action with its inputs, outputs and the human decision that followed. Sample a fixed percentage of "act and report" actions for review. Track the rate at which humans override or reverse the agent, because an override is a labeled failure you did not have to build.
Define demotion rules in advance. For example: if the silent failure rate on a task type exceeds its threshold in any rolling window, the domain drops one level automatically until the set is re-run. Promotion should be just as explicit. This keeps the autonomy dial from becoming a one-way ratchet that nobody revisits.
For incident work specifically, the useful reference point is time saved per incident. We estimate that a typical data incident takes 2 to 4 hours of human effort from detection to fix. In our own early pilot testing, 60% of incidents were resolved by the agents before a human was notified. That is pilot data from a limited set of environments, not a benchmark, and it is the reason we insist on measuring per task type before widening any domain's autonomy. Our Incidents Agent, Schema Agent and Pipeline Agent are evaluated as a chain: the diagnosis, the blast-radius map and the deployed fix are each scored on their own.
Common mistakes when measuring agent reliability
- •Using one aggregate accuracy number across task types with very different failure costs.
- •Scoring only the final answer and ignoring unauthorized or unnecessary tool calls on the way.
- •Tuning prompts against the same items used to report results, so the score measures memorization.
- •Counting 'the agent said it was unsure' as a failure, which punishes the behavior you want.
- •Treating the first clean week in production as proof, rather than as the start of a sample.
If you want to see this run on your own data, our Orchestration Agent coordinates the other agents and can replay a golden set across them from Claude Code or Cursor. Start read-only, which is the default in the open-source edition, and let the numbers decide what comes next.
Frequently Asked Questions
How reliable does a data agent need to be before it runs without review? It depends on blast radius and reversibility, not on a universal number. For reversible, low-impact actions we look for a lower confidence bound well above 95% on a large trial count, plus a tested rollback. For irreversible actions such as dropping a column or changing grants, our opinion is that the agent should stay at propose or approve regardless of its score.
How many test runs do I need to trust an AI agent? Enough that the confidence interval is narrower than the risk you can accept. By the rule of three, 30 clean runs bound the failure rate under about 10%, and 300 clean runs bound it under about 1%, both at 95% confidence. Run each task type separately, because one task's results say little about another's.
What is a silent failure, and why does it matter most? A silent failure is a wrong output the agent presents as complete and correct. It matters most because it bypasses review: humans check outputs the agent flags, and rarely check outputs it does not. Track the share of wrong outputs that carried no warning, and treat reducing it as the first reliability goal.
Should we measure reliability once or continuously? Continuously. Run the full golden set before enabling or widening autonomy, then use production overrides, reversals and sampled reviews as an ongoing signal. Re-run the set after model, prompt, skill or schema changes, and demote a domain automatically if its failure rate crosses its threshold.
Can we run these evaluations from Claude Code or Cursor? Yes. Every Data Workers agent is an MCP server, so a golden-set run is a series of tool calls from any MCP-compatible client, including Claude Code, Cursor, Windsurf and VS Code. The call trace gives you the tool-level data you need to score scope and behavior as well as the final answer.