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.
- Understand the context. Who uses the system, for what, and what a wrong answer costs.
- Collect real examples. Take them from logs, pilot users or expert-written cases.
- 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.
- Build evals for the top failure types. Use code checks or AI judges, with a golden set.
- Fix one thing. Change a prompt, a retrieval step, a tool or a rule.
- Measure. Run the evals. Keep the change only if it helps and nothing else gets worse.
- 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.
- Read real outputs
- Group the failures
- Build tests for the biggest group
- Fix
- Measure
- Monitor
- 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
- Take 100 recent outputs and read them with a subject expert.
- Write a one-line note on each failure, then group and count.
- Assign the top failure type to an owner, with a target and a date.
The terms, in plain language
| Term | What it means |
|---|---|
| Error analysis | Reading outputs and sorting failures into types |
| Failure type | A category of error with a common cause |
| Regression | Something that worked before and broke after a change |
| Continuous discovery | Ongoing sampling of production to find new failures |
Further reading
Section 8.3 of the AI Engineering Guide · Last reviewed November 2026




