# Failures and the controls that stop them

Lesson 2 of [Set and test spending controls for AI agents](https://agentwalletindex.fyi/academy/test-agent-spending-controls.md), 12 minutes.

Each control stops a different failure. Know which control you rely on for which failure. Six failures - A retry loop. The agent repeats a failed call. The session cap and the daily cap stop it. - Price drift. A seller raises a price, or quotes a high one. The per-call cap refuses it. - A wrong reci…

The rest of this lesson is for learners enrolled in the course. [See how Set and test spending controls for AI agents works](https://agentwalletindex.fyi/academy/test-agent-spending-controls.md).

Also on the [web page](https://agentwalletindex.fyi/academy/test-agent-spending-controls/failures-and-the-controls-that-stop-them).
