# What Are Error Analysis and Transcript Reading?

> What error analysis and transcript reading are, how to run them on a failing AI agent, and where they fall short, for your AI interview.

**In short:** Transcript reading means opening the full record of a failed AI run, step by step. Error analysis is the set of steps on top: label the failures, count the labels and fix the biggest group first.

AI and LLM interview question Q271, Evaluation and observability. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-are-error-analysis-and-transcript-reading

## Say it in 30 seconds

Transcript reading means opening the full record of a failed run: each step, tool call and reply. Error analysis is the next part. I sample the failures, label what went wrong, count the labels and fix the biggest group first. Then I keep those failed runs as test cases, so the team is alerted if they come back. The catch is that some failures are the grader's fault, so I read before I blame the model.

## Say it in 2 minutes

An AI agent works in many small steps. It reads a request, calls a tool, reads the result and writes a reply. A score only tells me whether the last answer passed, so I read the full record of each failed run. In that record I can see every tool call and reply, and I can find the first step that went wrong.

Then comes error analysis. I take a sample of failed runs, write a short label for what went wrong in each one, and count the labels. The biggest group is where I start. Once I fix it, I keep the failed run as a test case, so the same failure is caught next time.

Reading has a catch. Some failures are the grader's fault. A grader can reject a right answer, or the task can be unclear, so I check the transcript before I blame the model. Anthropic's engineering team says the same: you need to read transcripts to know whether your graders work.

The limit is time. Human review is slow, and two reviewers can label the same run differently. So I read a steady sample each week, and I automate only the labels that people agree on. I also read a few passing runs, so a lenient grader shows up too.

## What are error analysis and transcript reading, in plain words?

An AI agent does its job in small steps. It reads a request, calls a tool, reads what the tool returned and writes a reply. A score only says whether the last answer passed. Transcript reading and error analysis tell you why the misses happen.

A transcript is the full record of one run: the messages, the tool calls, the tool results and the replies, in order. Reading it is like replaying the tape. Error analysis is the next step. You read many failed runs, label what went wrong in each, count the labels and fix the biggest group first.

Think of a bank's fraud team. They check more than the monthly total. They pull the cases that slipped through, read the case notes and sort the misses by cause before they change any rule. A claims triage agent that sorts insurance claims needs the same habit, because a pass rate hides why the misses happen.

- **Transcript:** The full record of one run: messages, tool calls, tool results and replies.
- **Grader:** The check that scores a run, written in code or done by another model.
- **Failure label:** A short note on what went wrong, such as wrong policy clause.
- **Error analysis:** Labelling and counting failed runs to find the biggest cause.
- **Eval case:** A saved test built from a real failure, so it runs again later.

## What does reading a transcript show that a score hides?

A transcript shows each step of a run: what the agent was asked, which tools it called, what came back and what it said. Anthropic's engineering guide on evals for AI agents defines it as the complete record of one trial, with outputs, tool calls and intermediate results.

Here is a made-up example. Take a claims triage agent that routes insurance claims. The eval shows 86 percent passing, which sounds healthy. The 14 percent that fail look alike in the score. Reading one failed run shows the agent reading a claim note that says: "Damage happened in March, so the 2019 policy applies." That policy had been replaced, so the agent used the wrong clause. The score only said fail. The transcript showed the cause. After the policy table was updated and the agent was pointed at the current terms, wrong-clause failures fell from 14 in every 100 runs to 2 in the next eval.

Anthropic's guide makes the same point. Its team reads transcripts as a regular habit, and it does not take eval scores at face value until someone has read some of them. Microsoft's guidance for machine learning models says that error analysis moves away from one overall accuracy number and finds the groups where errors cluster. Google's rules for machine learning say the same thing in a line.

> "You won't know if your graders are working well unless you read the transcripts and grades from many trials." (Anthropic)
>
> "Error analysis moves away from aggregate accuracy metrics." (Microsoft Learn)
>
> "Rule #26: Look for patterns in the measured errors, and create new features." (Google, Rules of Machine Learning)

## How does error analysis work, step by step?

Run these steps on each failing eval. It is slow on purpose, because the labels tell you what to fix.

*Diagram, From failed runs to a fix: The steps run in order, from failed runs to a fix that a later eval checks. Each arrow is one piece of reviewer work, so the picture shows the order, not the tools.*
1. Pick a sample of failed runs to read.
2. Open the full record of each run and see every step.
3. Write one short label for what went wrong.
4. Count the labels and fix the biggest group first.

1. **Sample the failures:** Pull a set of failed runs from the latest eval, not every run. Include a mix of failure types, so you don't read only the first ten.
2. **Read each transcript:** Open the full record and find the first step that went wrong. The final reply often shows the effect, not the cause.
3. **Tag it:** Write one short label, such as wrong policy clause. Keep the labels few and plain, so two reviewers use them the same way.
4. **Count and rank:** Count each label. The biggest group you can act on is where you start, and the small groups can wait.
5. **Keep the case:** Fix the cause, then save the failed run as an eval case. Anthropic's guide says that turning user-reported failures into test cases keeps the suite close to actual use.

Here is a small tally in plain Python, with made-up counts. The labels stand for a team's reading of 42 failed runs from a claims triage agent after a model change. The counts decide the fix order.

```python
from collections import Counter

# One label per failed run, written by a reviewer after reading its full transcript.
labels = (
    ["wrong policy clause"] * 14
    + ["grader rejected valid answer"] * 9
    + ["asked for info already given"] * 8
    + ["missed fraud flag"] * 6
    + ["tool timeout, retry skipped"] * 5
)

counts = Counter(labels)
total = len(labels)
print(f"Failed runs read: {total}")
for label, n in counts.most_common():
    print(f"{n:>3}  {n / total:6.1%}  {label}")
top, top_n = counts.most_common(1)[0]
print(f"Fix first: {top} ({top_n} of {total})")
```

Output:

```text
Failed runs read: 42
 14   33.3%  wrong policy clause
  9   21.4%  grader rejected valid answer
  8   19.0%  asked for info already given
  6   14.3%  missed fraud flag
  5   11.9%  tool timeout, retry skipped
Fix first: wrong policy clause (14 of 42)
```

The tally puts wrong policy clause first, with 14 runs. The second group, 9 runs, is the grader rejecting a valid answer. That one is a bug in the eval, so it goes to the eval owner before anyone edits the prompt.

## Does a failed run always mean the agent is wrong?

No. Some failed runs are good answers that the grader marked wrong, and some tasks are unclear enough that two readers would score them differently. Anthropic's guide says the transcript is how you tell: it shows whether the agent made a genuine mistake or whether the graders rejected a valid solution.

The same guide says that when grading is unfair or a task is ambiguous, the eval should be revised. So read a few passing runs too, to check that the grader is not being lenient.

> **Tip:** Asked about a failing eval? Say you would read the failed runs first, label them, count the labels and check the grader before you retrain or rewrite the prompt. That order stops you fixing the wrong thing.

## What are the limits of reading by hand?

It is slow, and it takes real reviewer time. Reviewers get tired, and two people can label the same run differently. OpenAI's guide on evaluation best practices lists the same problem for human review of outputs: disagreement among experts, cost and slowness.

Under human evals, OpenAI's guide lists a simple step: skim the outputs to see whether they look better or worse.

So teams sample, re-read after each change, and turn the labels that people agree on into automated checks. Reading stays the way to find new failure types, because an automated check only tests what someone already thought to test.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain meaning: a transcript is the full record of a run, and error analysis is the labelled, counted loop on top of it.
- [ ] Why you read: a score hides the cause of a miss.
- [ ] The steps: sample, read, tag, count, fix, then keep the case.
- [ ] The grader check: some failures are the eval's fault, not the agent's.
- [ ] The limits: reading is slow and reviewers disagree, so automate what is stable.
- [ ] A real example from a team's own failures, and the fix it led to.

**Common traps**

- Trap: "A high pass rate means the agent is fine." Better: Read a sample of the failures first. An overall score hides where the misses cluster.
- Trap: "Just make the prompt longer." Better: Read the failed runs first, so the fix matches the cause. A longer prompt can hide the real problem.
- Trap: "The grader is always right." Better: Graders have bugs too. When a valid answer fails, fix the grader and say so.

## Can you pick the right next step?

**Spot the weak note:** Your team has read 42 failed claim runs. Which label helps the fix most?

A. Bad answer
B. Agent failed
C. Wrong policy clause: cited the 2019 terms, not the 2024 renewal
D. Model error

**Answer:** C. It names the step that went wrong, so the fix is clear and the group can be counted. Labels such as bad answer or model error hide the cause.

**Quick check:** After a model update, your eval pass rate falls from 88 to 81 percent. What do you do first?

A. Lower the pass bar to 80 percent
B. Read the transcripts of the failed runs and label them
C. Switch to a larger model
D. Add more words to the system prompt

**Answer:** B. The score shows that something changed. Reading the transcripts shows which group grew and whether the agent or the grader moved.

## Can you answer these from memory?

**Flash cards**

- **What is a transcript?** The full record of one run: each step, tool call, result and reply.
- **What is error analysis?** Labelling and counting failed runs, then fixing the biggest group first.
- **Why not trust the pass rate alone?** It hides where the misses cluster and whether the grader is wrong.
- **What do you do with a failed run?** Fix the cause, then keep the run as an eval case so it is tested again.
- **Why read transcripts, per Anthropic?** To check that the eval measures what actually matters for the agent.
- **What limits reading by hand?** It is slow, reviewers disagree and tire, and it takes real reviewer time.

## Likely follow-up questions

- Q270 Code vs model vs human graders? https://designervenkat.online/interview/ai/code-vs-model-vs-human-graders
- Q264 When do you need human evaluation? https://designervenkat.online/interview/ai/when-do-you-need-human-evaluation
- Q275 Eval scores dropped but the model is unchanged. How do you debug? (full answer coming)
- Q272 How do you track latency and cost in evals? (full answer coming)
- Q274 What eval and observability tools exist? https://designervenkat.online/interview/ai/what-eval-and-observability-tools-exist
- Q276 How do you evaluate multi-turn chats? (full answer coming)

## Learn it in depth

- [Seeing inside your AI app](https://designervenkat.online/learn/ai-engineering/llm-observability)
- [People as the judges](https://designervenkat.online/learn/ai-engineering/human-evals)
