Evaluation-Driven Development

Look at Failures First, Then Build

The teams that improve fastest follow a loop: study real failures, turn them into tests, fix, measure and repeat. Here are the seven steps.

Ranjit Nethi

·

Evaluation-Driven Development

The short version

  • Improvement starts with reading real outputs and sorting the failures into types. This is called error analysis.
  • Each failure type becomes a test. Each fix is kept only if the score improves and nothing else gets worse.
  • The loop never ends. Production keeps showing new failures, and the test set keeps growing.

The idea

Evaluation-driven development puts measurement before building. The cycle has seven steps.

  1. Understand the context. Who uses the system, for what, and what a wrong answer costs.
  2. Collect real examples. Take them from logs, pilot users or expert-written cases.
  3. Do error analysis. Read the outputs one by one. Note what went wrong in plain words, then group the notes into failure types and count them.
  4. Build evals for the top failure types. Use code checks or AI judges, with a golden set.
  5. Fix one thing. Change a prompt, a retrieval step, a tool or a rule.
  6. Measure. Run the evals. Keep the change only if it helps and nothing else gets worse.
  7. Monitor and discover. Sample production traffic, find new failure types and return to step 3.

This is quality improvement as any plant manager knows it. Inspect the defects, sort them by cause, fix the biggest cause first, check that the fix worked, and keep inspecting. Nobody improves a production line by guessing.

  1. Read real outputs
  2. Group the failures
  3. Build tests for the biggest group
  4. Fix
  5. Measure
  6. Monitor
  7. Repeat

The step most often skipped is the third. Teams want to automate grading before they have read their own outputs. Reading 100 real cases usually shows that two or three failure types cause most of the problems, and those are rarely the ones the team expected.

An example

A quoting assistant has a 68 percent acceptance rate from sellers. The team reads 150 rejected drafts. Four failure types account for 80 percent of them: wrong unit of measure (31 percent), outdated lead time (22 percent), missing mandatory clause (15 percent) and tone too informal (12 percent). They build a code check for units and clauses and fix the lead-time lookup. Acceptance rises to 86 percent in a month. Tone, the issue everyone talked about, was the smallest of the four. The figures are illustrative.

Common mistakes

  • Buying an evaluation tool before reading any outputs.
  • Fixing the failure that is easiest to discuss, not the most frequent one.
  • Changing several things at once, so the effect of each is unknown.
  • Treating evaluation as a launch task and not as a routine.

What to do this week

  1. Take 100 recent outputs and read them with a subject expert.
  2. Write a one-line note on each failure, then group and count.
  3. Assign the top failure type to an owner, with a target and a date.

The terms, in plain language

TermWhat it means
Error analysisReading outputs and sorting failures into types
Failure typeA category of error with a common cause
RegressionSomething that worked before and broke after a change
Continuous discoveryOngoing sampling of production to find new failures

Section 8.3 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.