Book a call
Model audit

The First 100 Traces: What Error Analysis Actually Finds

How to do error analysis on LLM traces: open coding, the stopping rule, what it costs, and what we found reading 1,000 real conversations.

On this page
Key takeaways
  • Error analysis means reading real traces, noting the first error in each, and grouping the notes into failure categories before writing any automated eval.
  • Practitioners recommend reading at least 100 traces and stopping when new failure categories stop appearing, which for most products takes 200 to 400 traces.
  • A first round of 300 traces at 3 minutes each takes about 20 hours of reading, or roughly $1,850 of a senior engineer's time at $95 an hour.
  • Automated LLM-judge checks are worth building only for the four to seven failure modes that persist after prompt fixes.

Error analysis means reading real conversations from your AI product, noting the first thing that went wrong in each, and grouping those notes into failure categories before you write a single automated test. Practitioners recommend reading at least 100 traces and continuing until new categories stop appearing. The output is a ranked list of how your product actually fails, which tells you what to fix, what to test, and what to ignore.

Most teams agree with this in principle and never do it, because it takes days of careful reading by someone who knows the product. This guide shows the method step by step, with the coding sheet, the stopping rule, and a cost estimate you can take to your team. It also reports what happened when Akmon's reviewers ran the method on 1,000 real conversations.

Why read traces before writing evals?

Because the failures you imagine are rarely the ones your users hit. Teams that start with generic metrics (helpfulness, faithfulness, toxicity) end up measuring things that look fine while users quietly churn over something nobody wrote a test for.

Hamel Husain and Shreya Shankar, whose course and talks have become the reference for this practice, put the goal plainly: improve the product, not run evals perfectly. Their advice, summarized:

  • Start from real traces. Read actual conversations or agent runs from production, not synthetic test cases.
  • Note the first upstream error. In a long agent run, one early mistake causes many later ones. Write down the first and move on.
  • Read at least 100, and keep going until you stop learning anything new.
  • Automate only the persistent failures. Many problems disappear with a prompt change. Build LLM-judge checks for the four to seven failure modes that keep coming back, with binary pass or fail outputs, and align each judge with human labels before trusting it.

The initial rounds take several days. After that, upkeep is about 30 minutes a week.

How do you do open coding on traces?

Read each trace, write a short free-text note about the first thing that went wrong, and don't try to fit it into categories yet. Categories come later, from the notes.

A coding sheet needs only a few columns:

ColumnWhat goes in itExample
Trace IDLink to the full conversation or runconv_48213
Pass / failWould the user be satisfied?Fail
First errorOne sentence, describing what happenedTold the guest check-in is 3 p.m.; the listing says 4 p.m.
CategoryLeft blank in the first 50; filled in laterWrong property fact
Fixable by prompt?Your guess, revisited laterProbably not: the fact was in context
ReviewerWho wrote the noteMR

Rules that keep the notes useful:

  1. One note per trace, about the first error. If the agent misread the question and then called the wrong tool, the note is about misreading the question.
  2. Describe what happened, not why. "Quoted the 2025 price list" is better than "retrieval problem." Diagnosis comes later.
  3. Mark clean traces too. The share of traces with no error is your rough baseline.
  4. One person owns the sheet. Practitioners recommend a single domain expert, often called a benevolent dictator, so the notes stay consistent. Others can read along, but one person decides.

When do you stop reading?

When a batch of traces produces no new failure categories. That point is called theoretical saturation, a term borrowed from qualitative research. In practice:

  1. After the first 50 traces, group the notes into draft categories (axial coding).
  2. Read the next 50. For each trace, either assign it an existing category or create a new one.
  3. Track how many new categories each batch of 50 creates.
  4. Stop when two consecutive batches create none.

Plotting new categories per batch gives you a saturation curve. It falls steeply at first and then flattens. The flat part tells you you've seen the failure modes that occur often enough to matter. Rare failures can still exist past this point, which is why production monitoring continues afterward.

What does error analysis cost?

Mostly reading time, and the reader has to know the product. This estimates the first round:

Reading hours ≈traces × minutes per trace × 1.360(the 1.3 covers categorizing and discussion)

For 300 traces at 3 minutes each, plus 30% for categorizing and discussion, that's about 20 hours of reading, roughly two and a half working days for one person. If that person is a senior engineer at a loaded $95 an hour, the first round costs about $1,850 in time, plus whatever else that engineer didn't ship that week.

Long agent traces take longer. A 40-step tool-using run can take 10 minutes or more to read properly, which is why teams with complex agents rarely get past the first 50.

What do you do with the categories?

Rank them by frequency times cost, then fix in order. A rough triage:

The category is...Do thisWrite an automated check?
Frequent and fixable with a prompt or context changeFix it now, then re-read 50 traces to confirmNo, unless it comes back
Frequent and not fixable by promptingEscalate to retrieval, tools, fine-tuning, or human reviewYes
Rare but expensive (money, safety, legal)Add a guardrail or route to a personYes, and keep humans on it
Rare and cheapLog it and move onNo

Then write automated checks only for the categories in the last two rows. Each check should be a binary pass or fail on one failure mode, and each one needs its own small labeled set to align it with people. Our guide to calibrating an LLM judge covers how big that set should be and how to read the agreement numbers.

Can an LLM do the open coding for you?

Not well, and not first. Asked to review traces on its own, an LLM tends to declare most of them fine, because it doesn't know what your product is supposed to do. It can help in the second pass: once people have written the category list, an LLM can sort new traces into existing categories, with a person checking a sample.

The judgment that makes error analysis valuable is knowing what a good answer looks like for your users. That has to come from someone who knows your product, or someone you've trained to know it.

How Akmon helps

Akmon's reviewers do error analysis as a service, on your traces, in your tools:

  • Trained on your product first. Reviewers learn your docs, policies, and examples of good and bad answers before reading a single trace.
  • Open coding to saturation. We read until new categories stop appearing and hand back the coding sheet, the category list, and the saturation curve.
  • Then the checks. For the persistent categories, we label the alignment sets your LLM judges need, and regrade a sample after each release.

We'll run your first error analysis in a week, on your real traces. Book a call.

FAQ

What is error analysis for LLM applications? Reading real traces of your AI product, noting the first error in each, and grouping the notes into failure categories ranked by frequency. It comes before writing automated evals.

How many traces should I review? At least 100, and keep going until two batches of 50 in a row produce no new failure categories. For most products that's 200 to 400 traces.

What is open coding? Writing a short free-text note about what went wrong in each trace without forcing it into predefined categories. Categories are built afterwards from the notes.

What is theoretical saturation? The point at which reading more traces stops revealing new failure categories. It's the stopping rule for error analysis.

How long does error analysis take? The first round usually takes two to four days of reading for one person who knows the product. Maintaining it takes about 30 minutes a week.

Sources

More
Contact

Want this done for your model?

Tell us what you are working on. We start within hours of kickoff.

Book a call