The last two lessons checked outcomes. Most of the time that is right: an agent may reach a correct refund by more than one good path, and a test that demands one exact sequence of tools fails good agents. The starter test does exactly that.
But some steps are requirements, not implementation details:
- Refunds above Rs 5,000 must wait for the customer to confirm. The state must not change before the confirmation.
- Some tools must never be used for a refund, whatever the outcome.
Your task
Replace the exact-sequence test with an outcome test, then add tests for the two required behaviours. On submit your tests run against two working agents that take different paths, an agent that skips confirmation, and one that uses a banned tool.