Topic 5 of 6 · 4 min read
Knowing when to stop reviewing traces
Goal: Decide from a review log whether trace review has reached saturation or needs another sample.
Keep reviewing traces until new traces stop producing new kinds of failure, which is called saturation, and review again after any big change. The goal is not a fixed number of traces; it is that you stop learning.
Check yourself · 1 of 3
What does saturation mean in trace review?
Why it matters
Stop too early and you fix the three modes you happened to see while a fourth, common one stays hidden. Never stop and error analysis becomes a permanent chore. A simple rule based on a review log keeps the effort bounded.
How to decide
- Start with a batch. The Hamel Husain and Shreya Shankar FAQ suggests about 100 traces as a reasonable first sample. Fewer is fine for a tiny app, more for a varied one.
- Log as you go. For each trace, record the note and whether it created a new failure mode or fell into an existing one.
- Watch the new-mode rate. If the last 20 traces added no new mode, you are close to saturation. If every few traces add one, keep going.
- Sample broadly. Include different user types, languages, long and short inputs and rare intents. Saturation on an easy sample is false comfort.
- Re-open after change. A new model, a new prompt, a new tool or a new kind of user can create new failures. Review a fresh sample each time.
A review log can be as small as a JSON lines file:
{"trace": "t-081", "verdict": "fail", "note": "Quoted Pro price for Starter", "mode": "wrong-plan-price", "new_mode": false}
{"trace": "t-082", "verdict": "fail", "note": "Booked a hotel with no confirmation step", "mode": "no-confirmation", "new_mode": true}
{"trace": "t-083", "verdict": "pass", "note": "", "mode": null, "new_mode": false}
Counting new_mode: true over the last 20 lines gives the signal.
Before and after
A team reviews 30 traces, finds four modes and stops. A week later users complain about a fifth mode that only shows up for orders with more than one item. Their sample had no multi-item orders. Their second attempt samples by order type and review continues until 25 new traces add nothing.
What goes wrong
- Stopping at a round number. "We did 50" says nothing about whether the last 10 taught you anything.
- Sampling only easy traffic. Saturation then describes your sample, not your users.
- Reviewing once and never again. A model upgrade can change the failure profile overnight.
- Reviewing forever. If new notes only restate existing modes, spend the time fixing instead.
Examples
Reading the log
A log of 90 reviewed traces shows new modes at traces 2, 5, 9, 14, 31 and 47, and none after. The last 43 traces added nothing. That is a sign of saturation for this sample, so the team moves to ranking and fixing.
False saturation
A code-review bot is reviewed on 100 traces, all Python. No new modes appear after the first 40. The next week it fails on Go files in ways nobody saw. The sample was saturated for Python, not for the product.
Key points
- Stop when new traces stop producing new failure modes, not at a fixed count.
- Keep a review log that records whether each trace created a new mode.
- Sample across user types, languages and input shapes so saturation is real.
- Review a fresh sample after a new model, prompt, tool or user group.
- Once new notes only repeat known modes, move on to fixing.
Common mistakes
- Ending review at a round number such as 50 or 100 without checking the new-mode rate.
- Sampling only the traffic that is easiest to read.
- Treating one review as permanent after a model or prompt change.
- Continuing to label long after new notes add no new modes.
Check yourself · 2 of 3
Which event is a good reason to review a fresh sample of traces?
Check yourself · 3 of 3
In a review log, the last 25 reviewed traces added no new failure mode, but all 100 traces came from one customer segment. What do you conclude?
Practice items, not counted towards your mastery.
Start here
- LLM Evals: Everything You Need to Know (Hamel Husain and Shreya Shankar) (opens in a new tab)ArticleFree
Practical answers on reading traces, open coding, sample sizes and when to build an evaluator.
- A Field Guide to Rapidly Improving AI Products (Hamel Husain) (opens in a new tab)ArticleFree
Argues that looking at data and counting failure modes beats generic metrics, with worked examples.
- An LLM-as-Judge Won't Save The Product, Fixing Your Process Will (Eugene Yan) (opens in a new tab)ArticleFree
Shows why labeling real outputs and iterating on the process matters more than any judge prompt.