Failed runs are only useful if someone reads them, and the weekly review is where the reading happens. LangSmith tracing keeps the full run tree for every run, with the tool calls, inputs, outputs and errors nested under it, so a week of failures can be grouped by cause instead of counted as a pile. Open the week’s failed runs, group them by error and by step, and fix the single cause that repeats most before touching the one-offs. A review that lists failures without fixing the top cause is a report, not a review.
What you need
- A week of agent runs with tracing on, so failures can be read back
- A list of the week’s failed runs, grouped by error message
- One hour a week set aside for the review
Step 1: Group the week’s failures by cause
Open the failed runs and group them by the error and the step where it happened. Count each group; the biggest group is the review’s subject.
Step 2: Find the fix for the biggest group only
For the biggest group, find the one fix that would have prevented most of them: a tool description, a missing validation, a wrong timeout. Write the fix down before touching anything else.
Step 3: Apply the fix and check next week’s count
Apply that one fix, then compare next week’s count for the same cause with this week’s. If the count does not fall, the fix addressed a symptom, not the cause.
Worked example: synthetic weekly review
The table below is a synthetic example. It shows the expected result of the weekly review; no runs were reviewed.
| Failure cause | This week | Next week |
|---|---|---|
| Tool timeout on lookup | 14 | 3 |
| Bad tool arguments | 6 | 6 |
| Rate limit | 4 | 4 |
| Top cause fixed first | Yes | Pass |
Expected result (UNTESTED). the top cause, tool timeouts, falls from 14 to 3 after the fix, while the other causes wait for their turn. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Tracing must be on for the review to work; runs with tracing off leave no tree to read.
- Grouping by error message hides different causes with the same message, so read a sample run per group.
- Fixing one-offs first feels productive and changes nothing; fix the repeat cause first.
- A review with no follow-up count cannot tell whether the fix worked.
