Implementation guide

How to prove an AI agent works – golden sets, LLM-as-judge and regression tests

One thing usually stands between a working pilot and a working deployment: a way to measure quality. Without it you cannot answer the board's question of whether the agent works, nor notice that it started working worse after a model change. This guide covers the method and the concrete artefacts: a reference set, metrics matched to agent type, judging by model, regression tests and a one-page report for the board.

Author: Kacper Włodarczyk, Founder of ALGORCOMPPublished: August 23, 2026Reading time: 15 min readAI / AI AgentsFor: Mid-sized company
How to prove an AI agent works – golden sets, LLM-as-judge and regression tests

Why a demo is not evidence

A demonstration has a built-in methodological flaw: the presenter selects the questions. Not out of bad faith – they simply remember which cases worked and show those. The team sees ten accurate answers and draws a conclusion about overall effectiveness, having in fact seen a sample selected in hindsight.

The scale of the phenomenon is documented. MIT Project NANDA's 2025 report found that 95% of generative AI pilots produced no measurable profit-and-loss impact, while tool testing was very widespread – over 80% of organizations had launched something and around 5% extracted value. The authors called that gap the divide between adoption and transformation.

From an implementation standpoint the conclusion is practical: what separates those two groups is neither a better model nor a bigger budget, but the existence of a feedback loop. A team that measures, improves. A team that does not measure cannot say after a few months whether things are better than at the start – and then the budget disappears at the next review.

There is a second, quieter reason to measure: without a number you cannot defend a project that genuinely works. A manager saying „people are happy” loses to a spreadsheet of savings. A manager saying „on a set of 120 real cases the agent produces a send-ready result in 78% of them, up from 41% at the start” does not have to defend anything.

  • a demonstration shows a hindsight-selected sample, not a cross-section
  • 95% of pilots with no measurable financial impact (MIT NANDA, 2025)
  • the difference comes from a feedback loop, not from budget size
  • without a number you cannot defend even a project that works

The golden set – a reference set from real work

A reference set is a list of input cases together with the correct outcome, approved by the person accountable for the process. Not by the IT team and not by the vendor – by whoever answers day to day for the quality of that work.

The material comes from history. For a customer service agent, that is closed tickets from the last quarter. For a document agent – documents processed manually, together with what was extracted from them. For a sales agent – enquiries somebody has already answered. The rule is simple: if the case did not occur in reality, it does not belong in the set.

The mix should be deliberately uneven. Around 60% typical cases – the ones making up most of the volume. Around 25% hard but regularly occurring: unusual phrasing, incomplete data, two matters in one ticket. And around 15% where the correct answer is refusal or handover to a human. That last group is most often omitted and most diagnostic – an agent that never says „I do not know” is more dangerous than one with a lower score.

On size: 50 cases suffice to start for one narrow process; 150–200 give stable results for an agent covering a broader scope. Above that, the cost of maintaining the set rises while the information gain falls. The set is alive – each quarter you add cases where the agent failed in production, because those are precisely the situations you were unable to anticipate.

  • the correct outcome is approved by the process owner, not by the technical team
  • material drawn exclusively from real work history
  • proportions: ~60% typical, ~25% hard, ~15% requiring refusal or escalation
  • 50 cases to start, 150–200 for a broader scope
  • each quarter, add the cases where the agent failed in production
How to prove an AI agent works – golden sets, LLM-as-judge and regression tests

Metrics matched to agent type

There is no single universal effectiveness measure, because different agents make differently expensive mistakes. An agent that quotes an outdated delivery date in customer service causes a different problem from an agent that reads the wrong account number in a document process.

For a question-answering agent you measure factual accuracy, grounding in a source (whether the answer can be pointed to in a document) and the share of correct refusals. For a document-processing agent – extraction accuracy per field, the share of documents ready without correction, and separately the accuracy on critical fields where an error costs most. For an agent that performs operations – the share of tasks completed correctly without intervention and, most importantly, the share of operations wrongly executed with no signal that anything went wrong.

To each type, add one shared measure: the share of cases where the agent correctly recognized it should not act alone. It translates best into team trust and almost never appears in vendor proposals.

Set the metrics before the first measurement and record them together with an acceptance threshold. The threshold is a business decision, not a technical one: for an assistant suggesting email copy, 85% may be entirely sufficient; for an agent writing to a financial system, 99% is sometimes not enough.

  • different agents make differently expensive mistakes – one measure is not enough
  • always measure critical fields and cases separately
  • shared measure: whether the agent recognizes it should not act alone
  • the acceptance threshold is a business decision, set before measurement
Metrics and thresholds by agent type
Agent typeCore metricsWhat else to measure
Question answeringFactual accuracy, grounding in a sourceShare of correct refusals when data is missing
Document processingPer-field accuracy, documents ready without correctionSeparate accuracy on critical fields
Performing operations in systemsTasks completed correctly without interventionWrong operations executed with no signal of a problem
Supporting sales and contentShare of outputs accepted without reworkTime to a send-ready version

LLM-as-judge – when it works and when the judge is wrong

Manually scoring two hundred cases after every change is unrealistic, so part of the scoring goes to a second model that compares the agent's answer with a reference and issues a verdict. That works – provided you know how wrong the judge tends to be.

Calibration means a human scores a random subset, say forty cases, and you compare their scores with the judge's. What interests you is not only overall agreement but which way the judge leans. The typical biases are well documented: judge models more readily accept longer and more confidently phrased answers, handle numbers and dates less well, and tend to score texts stylistically similar to their own more leniently.

Hence a practical division of labour. Anything checkable deterministically – amounts, dates, document numbers, identifiers, presence of a required field – check with code, not with a model. Leave the judge what requires assessing meaning: whether the answer is substantively consistent with the reference, whether the tone fits, whether an important caveat was omitted.

It also helps for the judge to be a different model from the one being evaluated, and to score against an explicit, written rubric with examples of good and bad ratings. The judge's rubric is a project artefact just like the reference set – it is versioned, because changing it changes every result retroactively.

  • calibrate on 30–50 human-scored cases before first use
  • known biases: preference for longer and more confidently phrased answers
  • check numbers, dates and identifiers with code, not with a model
  • the judge is a different model from the agent, with an explicit versioned rubric
Implementation team reviewing AI agent quality test results

The question „does the agent work” has no answer until somebody writes down what „works” means across fifty concrete cases – and puts their name to it.

Regression tests – where deployments degrade silently

The most underrated risk in running an agent is a change that does not come from you. The model vendor releases a new version, the old one is retired, somebody flips a configuration – and the agent's behaviour changes in a way nobody planned. The change is often small and uneven: 95% of cases behave identically and 5% start coming out differently.

An outage would be easier. Somebody reports an outage. A few percentage points of degradation shows up as the team quietly starting to check results more carefully, then checking all of them, and after a quarter no longer using the tool. Nobody files a ticket, because there is no single event to file.

A regression test solves this with one mechanism: the whole reference set runs automatically after every change to prompts, source data, tool definitions and model version, compared against the previous result, with an alert threshold on any drop. A drop below the threshold blocks the change from shipping – exactly as a failing test blocks code.

Add two habits that cost little and save projects. First: record the model version alongside every result, so you can reconstruct what you measured on. Second: when the vendor announces a version change, run the set on the new version before you are switched over – that turns migration into a decision rather than a surprise.

  • the biggest risk is a model version change that does not come from you
  • degradation is silent – it produces no tickets, only lost team trust
  • the full set runs after every change to prompts, data, tools and model
  • a drop threshold blocks the change, exactly as a failing test blocks code
  • record the model version with each result and test new versions before the switch

Production monitoring and the board report

A reference set measures quality under laboratory conditions. Production brings questions the set does not contain, so a second measurement layer is needed – light but continuous.

The minimum is three automatically collected indicators: the share of cases closed without human involvement, the escalation rate, and the share of cases where a human corrected the agent's output before using it. That last one is the most valuable, because corrections are ready-made material for extending the reference set – the cheapest source of knowledge about where the agent actually fails.

Add a weekly spot check: ten random cases scored by a human. Ten cases is about a quarter of an hour a week, and it catches drift the automation cannot see, because the automation compares against a reference rather than against common sense.

The board report fits on one page and has four items: performance on the reference set compared with the previous quarter and with the starting point, the volume handled by the agent, time saved converted into headcount or currency, and a list of incidents together with the response. The last item matters more than it seems – a board that sees incidents reported and handled trusts the numbers more than a board shown nothing but successes.

It is worth adding one sentence on accountability: who reviews the results and who decides to withdraw the agent should quality fall below the threshold. According to Capgemini Research Institute research, only 48% of organizations have a written split of responsibility between employee and agent – and it is a document whose absence surfaces precisely when it is most needed.

  • three production indicators: closed without a human, escalations, corrections before use
  • human corrections are the cheapest source of new cases for the set
  • a weekly review of ten random cases – a quarter of an hour that catches drift
  • a one-page report: performance, volume, savings, incidents
  • one sentence on who reviews results and who decides to withdraw the agent

Related topics in the knowledge base

Related materials on AI implementation

FAQ

Frequently asked questions about measuring AI agent quality

The questions that come up most often when moving from pilot to production.

How long does building a reference set take?
For one narrow process, typically 3–10 working days of the process owner's time, with the implementation team supporting material preparation. The largest item is not collecting cases but establishing the correct answer where the company does not have one – and that work pays off regardless of the AI project.
Can the vendor build the reference set for us?
They can prepare the structure, the tooling and a first draft, but the correct answers have to be approved by your process owner. A set built entirely on the vendor's side measures what the vendor considers correct – which is precisely the thing you want to verify independently.
What score on the reference set means we can deploy?
There is no universal threshold – it depends on the cost of an error. A practical rule: compare the agent's score with a human's score on the same set. People make mistakes too, and the benchmark „better than the current process at a lower cost” is fairer and easier to defend than an arbitrary percentage.
How often should the full measurement be repeated?
After every change to prompts, source data, tool definitions and model version – that is the regression test, run automatically. Independently of that, plan a full quarterly review where you add production cases to the set and verify that the metrics still reflect what matters to the business.

About this page

Published
August 23, 2026
Last updated
August 23, 2026
Reviewed by
Kacper Włodarczyk, CEO ALGORCOMP
Reading time
15 min read

About the author

Kacper Włodarczyk

Założyciel ALGORCOMP

Założyciel ALGORCOMP. Specjalizuje się we wdrożeniach Microsoft 365 Copilot, Copilot Studio, Power Platform (Power Automate, Power Apps, SharePoint) oraz agentów AI dla średnich firm B2B w Polsce. Prowadzi dziesiątki projektów z zakresu strategii AI, governance Power Platform, automatyzacji obiegu dokumentów i procesów sprzedażowych. W publikacjach koncentruje się na praktycznych aspektach wdrożeń AI w organizacjach — od pierwszego POC do skalowania na całą firmę, ze szczególnym uwzględnieniem bezpieczeństwa danych, zgodności (RODO, NIS2, AI Act) i zwrotu z inwestycji.

Meet the team

Have an agent in pilot and no idea whether it is ready?

Free 30-minute consultation: we walk through the process your agent handles and sketch a reference set – which cases to collect, who approves the correct answers, and which metrics make sense given your cost of an error.

Featured

Related articles