Skip to content
RasaGet a free license
Menu
Guides for AI teams

Guide

Which fix does a failed agent run need?

Use the final output and run log to decide whether to test a retry, add missing information, or check which record the agent chose.

by Rod Rivera

About 4 minutes to readEvaluation / data specialist

Key takeaways (3)
  • Tag the first observable failure before you choose which part of the agent to change.
  • Check the final artifact after a retry resolves a visible tool error.
  • Compare one change at a time on the same cases and keep the failures that remain.

You ask an agent to update an invoice in a spreadsheet. The sheet comes back with the wrong amount. Check the run log for a save error, a missing amount in the request, or a write to the wrong row. Test a retry after a save error. Supply a missing amount from a trusted source. If the log shows a completed write, check which row the agent selected.

After you test a change, compare the saved invoice with the requested amount. Check that the other invoice amounts stayed the same. A successful save can still leave the sheet wrong.

What the spreadsheet benchmark measured

Jin and colleagues looked at cases where Qwen3.5-9B failed the Spreadsheet benchmark in a setup they call H1. A case counted as recovered if it passed in the matched run under H2, which added feedback and a chance to retry. H2 recovered 21.5% of H1 failures whose logs showed an interface, contract, runtime, or tool error. It recovered 17.4% of H1 failures with no logged error signal. The experiment measures feedback and retry together. Preprint, sections 2 and 4.

Test the result after a successful retry

We used a fictional worksheet with two invoices. The request named the invoice in B2 and set its amount to 125. The writer proposed B3 and tried to save the file in a missing folder. Both first attempts raised a file error. Recovery created the folder in both trials. One trial retried the proposed cell. The other looked up the invoice from the request before selecting a cell.

Recovery in the worksheet fixtureRetry statusB2 after retryB3 after retryExpected state matched
Repeat the proposed writeSuccess100125No
Check the row before writingSuccess125200Yes

Judge the saved result

We compared the saved CSV with the expected cell values. Both retries could report success because both completed a write. Only the second produced the intended output.

Score the requested invoice and the invoice next to it as part of the same comparison. The successful write status is still useful to the engineer handling the file error. The saved values answer whether the customer’s request was carried out.

How to judge a successful retry
FigureHow to judge a successful retry

Choose a comparison from the trace

What you see in a failed runA change to compareWhat to measure afterward
The needed fact never appears in the input or trace.Supply the fact from a verified source.Whether the final answer uses the right fact.
A tool returns an error before it completes its action.Give the agent one bounded recovery step.Whether the tool recovers and the saved output is correct.
The tool completes on the wrong cell or record.Check the chosen target before the action.Whether the intended record changes and other records stay intact.

The table proposes comparisons for your own evaluation. The authors did not run these checks on your system. Their study also cautions against assuming that a skill learned from prior runs will transfer. A skill can exploit shortcuts in one dataset and fail with another model. Preprint, sections 4 and 5.

Keep the input cases fixed

Save the input, trace and final output from each baseline run. Mark the earliest error you can support with the trace and leave uncertain cases unlabeled. Re-run the same cases after changing one part of the agent. Count how often previously failed cases now meet the original task’s success criteria. Check whether cases that used to pass still work.

Review failures that survive the change

Show how to record both worksheet outcomes

Record whether the save completed, which invoice changed, and whether the other invoice kept its original amount. Label a recovered save on the wrong invoice as a successful tool call and an unsuccessful task. That distinction lets the next reviewer see which change helped.