Evaluating AI Agents: Golden Sets, Calibrated Judges and the Numbers That Decide
Updated: Oct 14
An evaluation score is a measurement. Before it can support a decision, you need to know what it sampled, what instrument produced it, and how wide the uncertainty is.
The example in this article is a composite scenario, built from patterns common to finance operations. It is not a single real organisation, and its figures are illustrative; the calculations were produced by the script shown.
The finance director at a mid-sized distributor had a simple question. For three months, a read-only agent had been investigating suspected duplicate invoices across the company's legal entities and writing a findings note for a clerk. (Its origin story is in Agent, Workflow, Automation or RPA?.) Could it now go one step further and draft the correcting journal entries for the clerk to approve?
On the autonomy ladder in What Is AI Agent Management?, that's a move from Level 1, Assist, to Level 2, Draft. The evidence offered was a dashboard tile: an automated judge had rated 89% of the agent's findings "correct".
The quality lead asked what the judge had been compared with. Nobody knew. So she took 100 recent findings, had a senior clerk label each one correct or incorrect, and compared those labels with the judge's. The judge agreed with the clerk on 89 of them, which matched the dashboard. But of the 10 findings the clerk marked wrong, the judge had passed 7. The instrument everyone was reading was nearly blind to the thing the director was asking about.
Why a single score feels like enough
Evaluation dashboards are built to summarise, and a percentage summarises well. Judges are attractive for good reasons: human review is slow and expensive, and published research shows strong model judges can match human preferences closely. Zheng and colleagues found that strong LLM judges achieved over 80% agreement with both controlled and crowdsourced human preferences, the same level of agreement humans reach with each other (Zheng et al., 2023).
That finding is real, and it's also about a different question. Agreement on which of two chat answers people prefer is not the same as catching the rare finding that would have posted a wrong journal entry. The same paper names the judge's known weaknesses: position, verbosity and self-enhancement biases, and limited reasoning ability (Zheng et al., 2023). Whether those matter for your task is something you measure, not assume.
An evaluation has four parts, and each can fail
Treat an agent evaluation the way a quality engineer treats any measurement system:
Part | The question | How it fails |
Sample | Is the evaluation set representative of the real work? | Built from the demo, or from cases that are easy to label |
Instrument | Does the scorer (code, judge or person) measure what you think? | An uncalibrated judge; a rubric nobody agreed on |
Metric | Does the number answer the decision's question? | Average quality when the decision is about the worst failures |
Decision rule | What result, at what confidence, changes what you do? | A point estimate read as if it had no uncertainty |
Testing and evaluation overlap but do different jobs. Testing checks specific behaviours, including what an agent must never do, and is pass or fail; How to Test an AI Agent covers that. Evaluation estimates how good the agent is across the distribution of real work, so you can compare versions and decide how much autonomy it has earned. The director's question was an evaluation question.
The sample: a golden set built from real work
A golden set is a fixed collection of real cases with agreed correct answers, used to score every version of an agent the same way. For the investigator, the quality lead built one in a week:
Drawn from production, not from the demo. 400 past investigations sampled from the last six months, stratified by entity pair and invoice type, so rare combinations weren't crowded out.
Labelled by the people who do the job. Two senior clerks labelled each finding against a one-page guide that defined "correct": the duplicate is real, the amounts match the ledger, and every claim in the note cites a record.
Disagreements kept, not averaged. Where the clerks disagreed, they discussed the case and updated the guide, which turned out to be the most valuable part of the exercise.
Refreshed on a schedule. A slice is replaced each quarter so the set keeps up with new suppliers and entities. A held-back slice is never used for tuning.
Synthetic cases have a place, mostly to cover rare situations that real traffic hasn't produced yet. Label them as synthetic, keep them in their own slice, and check a sample against real cases before trusting what they say.
The test: for your current evaluation set, find out where each case came from. If most came from the demo or from the team that built the agent, the set measures the demo.
The instrument: calibrate the judge before you read it
Here is the calibration script the quality lead ran, and its actual output. The counts are the 100 findings both the clerk and the judge labelled.
# Rows: clerk verdict. Columns: judge verdict.
# judge: correct judge: incorrect
HUMAN_CORRECT = dict(j_correct=86, j_incorrect=4)
HUMAN_INCORRECT = dict(j_correct=7, j_incorrect=3)
def kappa(table):
(a, b), (c, d) = table
n = a + b + c + d
observed = (a + d) / n
p_judge, p_human = (a + c) / n, (a + b) / n
expected = p_judge * p_human + (1 - p_judge) * (1 - p_human)
return observed, expected, (observed - expected) / (1 - expected)
raw agreement: 0.89
agreement by chance: 0.84
Cohen's kappa: 0.29
bad findings the judge caught: 3/10

Three numbers, three readings:
Raw agreement (0.89) flatters the judge. Because 90% of findings were correct, a judge that said "correct" to everything would have scored 0.90. Agreement looks high because the task is imbalanced.
Cohen's kappa (0.29) corrects for that. Kappa measures agreement beyond what chance would produce given how often each rater says each label (Cohen, 1960). Here, most of the agreement was the judge and the clerk both saying "correct" to easy cases.
The judge caught 3 of the 10 bad findings. For a decision about drafting journal entries, this is the number that matters. A judge that misses 7 in 10 failures cannot be the evidence for more autonomy.
What to do with an uncalibrated judge. Fix the rubric first: replace "is this finding correct?" with observable checks (does each claim cite a record; do the amounts match the ledger). Move whatever can be checked in code out of the judge entirely. Then re-calibrate. Our recommendation: where possible, use a judge from a different model family to the agent, because self-enhancement bias is one of the documented weaknesses. Calibration mechanics, including rubric design and position swapping, are covered in LLM-as-Judge for Subjective Criteria.
The metrics: answer the decision's question
Agents need more than a quality score, because their output is a set of actions with costs:
Metric | What it measures | How to measure it | When it misleads |
Task completion | The goal was achieved | End state in the system, not the agent's report | When the wrong task was completed |
Finding or answer correctness | The content is right | Golden-set labels; code checks first | When the golden set is easier than real work |
Groundedness | Every claim is supported by a cited record | Claim-by-claim check against sources | When the cited source is itself wrong |
Tool-selection accuracy | Right tool, right arguments | Trajectory labels on a sample | When several paths are equally valid |
Escalation precision and recall | Hands over when it should, and only then | A should-escalate slice of the golden set | When there are too few positive cases |
Consistency | Same result across repeated runs | pass^k over k runs per case | When k is too small to expose flakiness |
Cost per completed task | Spend divided by successful outcomes | Telemetry, including retries | When cost per run hides failed retries |
Latency (p95) | How long the slow cases take | Telemetry | When an average hides the tail |
For the director's question, two metrics carried the decision: agreement with the clerk on findings, and the share of bad findings that would have reached a draft entry. Cost and latency mattered for the business case but not for safety.
The decision rule: size the sample for the bar
Suppose the agreed bar for moving to Level 2 is: the agent's findings agree with the clerk on at least 90% of cases, with 95% confidence. "With confidence" means the lower end of the interval must clear 0.90, not the point estimate. The same script prints what that requires, using the Wilson score interval:
promotion bar: lower 95% bound of agreement-with-clerk >= 0.90
46/50 = 0.92 lower bound 0.812 not yet
93/100 = 0.93 lower bound 0.863 not yet
188/200 = 0.94 lower bound 0.898 not yet
380/400 = 0.95 lower bound 0.924 PASS
An agent agreeing 94% of the time over 200 cases still doesn't clear the bar, because 200 cases can't rule out a true rate a little under 90%. At 95% over 400 cases it clears comfortably. That is why the quality lead's golden set had 400 cases, and why "we checked fifty and it looked great" isn't evidence for a change in autonomy.
Labelling 400 cases costs real clerk time. If that's too much, the options are honest ones: promote for one legal entity first and widen as evidence accumulates; accept a lower bar for a reversible action while sampling every drafted entry; or keep the agent at Level 1 until the set is built. What the numbers rule out is promoting it on a point estimate.
How it ended. With a recalibrated rubric (claims must cite records; amounts checked in code), the judge caught 9 of 10 clerk-flagged failures on a fresh calibration sample. On the 400-case golden set, the agent agreed with the clerks on 381. The director approved Level 2 for drafting only, with every draft reviewed and the clerks' edit rate tracked weekly as the online check.
Offline is the start; online keeps it honest
The golden set is an offline evaluation: a fixed sample, scored before release. Once the agent runs at a new level, add online evaluation:
Sample live work. Review a fixed share of live outputs with the same rubric, every week.
Watch the human signal. At Level 2, the reviewers' edit and rejection rates are the most direct quality measure you have. A rate drifting towards zero can mean the agent improved, or that reviewers stopped looking. Check approval times as well.
Compare versions case by case. When the prompt, model or tools change, score both versions on the same golden set and diff the per-case results, not just the averages.
How to evaluate your own evaluation
Where did each case in your evaluation set come from, and who labelled it?
Has your judge been calibrated against human labels on your task, and what's its kappa?
Of the failures humans flagged, how many did the judge catch?
Which metric answers the decision you're actually facing?
Is your decision rule written down, and does it use the lower confidence bound?
Is there an online check that will notice if quality drops after the change?
How agent evaluation goes wrong
Reading agreement without kappa. On imbalanced tasks, high agreement is cheap.
One number for every decision. Average quality is the wrong metric for "can it act unsupervised?"
A golden set that never changes. It drifts away from real work, and teams start tuning to it.
Evaluating with the agent's own model family as judge, unexamined. It's a known bias; measure it.
Point estimates as decisions. Fifty cases can't distinguish 92% from 85%.
Who owns what
The agent's owner sets the decision rule before the evaluation runs, so results can't move the goalposts. The people who do the job write the labelling guide and label the golden set. QA builds and calibrates the judge, runs the evaluation and publishes the per-case results with intervals. The release or autonomy decision cites the evaluation by version, alongside the test results.
What to do next
Take the judge or score your team relies on most. Have a person label 100 recent outputs, run the calibration script, and report three numbers: raw agreement, kappa, and failures caught out of failures flagged. If the last is low, fix the rubric before anyone uses the score for a decision.
Evaluation tells you how often an agent gets the task right. The Agent Failure Mode Catalogue lists the eighteen ways it can go wrong once it acts, each with a test worth adding to the suite.
Final takeaway
An evaluation earns the right to decide something only when its sample is real, its instrument is calibrated against people, and its uncertainty is smaller than the margin the decision needs. Without those, it's a dashboard tile.
Sources
Zheng, L., Chiang, W.-L., Sheng, Y. et al., Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, arXiv:2306.05685, 2023. Over 80% agreement with human preferences; position, verbosity and self-enhancement biases.
Cohen, J., "A Coefficient of Agreement for Nominal Scales", Educational and Psychological Measurement 20(1), 1960, pp. 37–46.
Wilson, E. B., "Probable Inference, the Law of Succession, and Statistical Inference", Journal of the American Statistical Association 22(158), 1927, pp. 209–212.
Frequently Asked Questions
What is the difference between testing and evaluating an AI agent?
Testing checks that specific behaviours pass or fail, especially what the agent must never do. Evaluation estimates how good the agent is across a representative sample of real work, so you can compare versions and decide how much autonomy it has earned.
Can you trust an LLM as a judge?
Only after calibrating it against human labels on your own task. Check chance-corrected agreement such as Cohen's kappa and, above all, how many of the human-flagged failures the judge actually catches. Raw agreement can look high while the judge misses most failures.
How many test cases do you need to evaluate an agent?
Enough that the lower end of the confidence interval clears the bar your decision needs. With a 0.90 bar and around 95% observed agreement, that is a few hundred labelled cases, not a few dozen.
Part of the Agent Engineering curriculum: eight paths from prompts and context to testing, evaluation and governance.


