Agent code errors cause damage in 24.6% of recoveries
A check for the same call again finds 75% of the writes that were made again, but only 41% of all damage.
Researchers measured the result when an error stops an AI agent in the middle of a code block. If some writes are done, the agent writes the block again and continues. In recorded AppWorld tests with ten models, the authors estimate this. In 24.6% of such errors, the recovery causes damage at the end of the test.
How it works
A code block can make some writes to an external service. If an error stops it, a new try can do the same writes again. It can also erase data of the user or make an incorrect first write, such as an order for the incorrect product.
The numbers
In 200 candidate tests, the condition of the database showed that 145 stopped in the middle. Of 143 with a clear result, 30 had a recovery that caused damage. Two thirds of these made the same effect again.
What is not known
In a small pilot with one local model, identifiers that the model made did not decrease damage. The model made a new identifier for the same task. An identity from the call content finds all the writes that cause damage in about half of those recoveries, but none of the incorrect first writes.
Insight: A check for writes made again misses a third of the damage
Related studies found that agents recover in only 47% of tests, and that a clean history can decrease task success from 45% to 28%. This paper adds that a third of the damage is not a write made again. The next move is to examine the condition of the external system and not the record of the agent. A retry check is not sufficient.
Sources
Posted