AI Eval Suite: Build One for Every Change

Pipeline diagram of an AI eval suite running on every pull request

An AI eval suite is a test suite for behavior that varies, and it’s the fix for the most common AI bug: nothing crashes, the model just answers a little worse than yesterday. A prompt, model version or retrieval setting changed, and no unit test noticed because unit tests check exact outputs. Here is how engineering teams build one that runs on every change.

Log everything first

The best test cases come from real traffic, and only recorded traffic is usable. Record the full transcript, meaning each model call, each tool call along with its inputs and outputs, and where things ended up. Store the prompt version and the model version with each trace. Without them, nobody can tell which change caused a regression.

Anthropic’s vocabulary is a useful shared base. In that framing a task is a single test, a trial is one attempt at it, a grader assigns the score, the transcript logs everything, and the outcome is the end state.

Treat the dataset as code

Keep the test set in the repository, reviewed in pull requests and versioned, because a score is only meaningful if you can say which version of the set produced it. A JSON Lines file works well, with one case per line so changes are easy to read in a diff. Useful fields include who labeled the case, who confirmed it, where it came from, which slice it belongs to and which split.

The split matters. Capability evals target things the system can’t yet do, so they begin with low pass rates. Regression evals protect existing behavior and should pass almost every time. A failing regression set blocks a merge. An improving capability set blocks nothing. Anthropic suggests 20 to 50 simple tasks drawn from real failures as a start.

Code graders first, judges second

Code checks cost nothing, return instantly and don’t drift, so give them every question they can handle, such as output format, end state and whether the right tools were called. Each grader should return a pass or fail plus a reason, so the person on call at 2 a.m. knows why the build broke.

Some questions need judgment, such as whether an answer is supported by retrieved documents. A second language model can grade those if it’s built carefully. Give each judge one question, require pass or fail, have it explain first, and keep the verdict on a separate line that a script can read.

A 2023 study of LLM judges found that the strongest ones matched human preferences more than 80% of the time, similar to how often people agree with one another. It also found three biases: toward an answer’s position, toward longer answers and toward a model’s own output. The practical rule is not to let a model grade its own output, and to test bias on your own data.

Validate the judge against people

Have a trusted expert label 100 to 200 examples for each failure type. Split them into 10% to 20% as prompt examples, 40% to 45% for tuning and 40% to 45% held out for a final test. Measure the true positive rate and the true negative rate separately, not plain accuracy, which can hit 90% on a judge that passes everything. Read every miss by hand, since an ambiguous rubric is the usual cause.

Grading agents

For agents, grade the outcome, not the path. If a refund was issued correctly, it rarely matters which steps came first. Check the path only where a rule demands it, for example never issuing credit before the order lookup.

  • Start each trial from a clean environment so leftover records don’t skew the next one.
  • Run several trials, since outputs vary.
  • Report pass^k, the probability that every one of k tries succeeds. At 75% success per try, three tries in a row succeed about 42% of the time.
  • Fail closed. If a safety check times out, the agent should stop.

Wiring it into CI

Dropbox ran about 150 canonical queries on every pull request for its Dash search tool, judged automatically in under 10 minutes. The full suite reran after merge, and a red line blocked the merge. GitHub runs more than 4,000 offline tests for Copilot, mostly in its CI pipeline.

The hard part is noise. Builds that fail at random get ignored. Repeat each case a few times and go with the majority. Run the suite repeatedly on an unchanged main branch, see how much the score moves, and set the gate outside that range. Run a small set per pull request and the full set nightly.

Report ranges, and sample live traffic

Observing 3% failures in 200 samples leaves the true rate somewhere between roughly 0.6% and 5.4%. Doubling to 400 samples shrinks that window to about 1.3% through 4.7%. Halving the range takes four times the data.

Offline evals also need a live counterpart. Fin replays a few thousand real past conversations through two versions, then ramps changes from 0% to 1% and beyond with health checks. Spotify’s analysis found a naive estimate said an offline eval explained 24% of live variation when the true figure was 60%.

Keep the bill down and the tests portable

Estimate cost by multiplying the number of cases by samples per case, by the count of relevant pull requests, by the price of each judge call. To cut it, move checks from judges to code, trigger evals only for changes to prompts, agent code or model settings, cache repeated outputs, and use a cheap judge to screen with an expensive one for borderline cases.

Store cases and graders in your own repository, in plain formats. OpenAI’s hosted Evals platform went read-only on October 31, 2026, with a shutdown planned for November 30, so teams still on it should export their data now.

Source: falkster.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.