13 Jul 2026
From test-driven to eval-driven: testing probabilistic AI systems
Months of prompt tuning, no eval set.
Everyone is saying "evals" right now (founders, junior engineers, job posts, pitch decks etc). Very few have taken the concept into a real use case.
The whole thing comes down to one sentence: these systems are inherently probabilistic. I think people underestimate what that sentence implies. Same input, run it twice, you can get two different outputs (both plausible). So the question we have asked software for decades, "did it work?" (the question every test suite is built on), has no answer anymore. There is no single output to check, only a distribution of behaviours.
So the question itself changes. Instead of "did it work?", an eval asks: across a distribution of inputs, how often does this system behave within acceptable parameters (accuracy, safety, cost, latency etc).
And in practice an eval is a small thing. A set of real inputs (20 is enough to start), a script that runs them through your system, a scorer (exact match where a right answer exists, an LLM judge where it does not), and a threshold you have decided you can live with. Every failure that shows up in production goes back into the input set. You can build the first version of this in a day.
This suite is your safety net. It is what allows you to build complex, non-deterministic software without breaking production every time a user types in an edge-case prompt. It is also how the day-to-day work stays sane: change a prompt and it tells you what improved & what broke, swap a model and you know the same day what regressed (this alone pays for it, given how often models change now).
For founders my point is simpler. A working demo is one datapoint. Knowing how often it works, and what happens to the requests where it does not, is what you can actually promise a customer.
The model is fine in most fragile AI builds I see. What is missing is the harness around it, evals being the first piece, so nobody can say whether the last fix broke something older.
If you are running AI in production and do not have this, it is the first thing I would build. The shift under all of it: test-driven -> eval-driven. Same discipline, applied to a distribution instead of a single output.