The final whistle — knowing when to stop.
The hardest step in the loop is the one that ends it.
Every turn, the agent faces the same fork: enough, or go again? Getting that wrong in either direction is costly. Stop too early and the verdict rests on too little. Never stop and the loop runs forever — calling tools, burning time and money, sometimes circling the same ground.
So agents stop on a condition, set in advance: enough evidence to be confident, a limit on turns, a budget or time ceiling. “I have enough” has to be a rule the loop can check — not a feeling it might never arrive at.
Give the same review four different stop rules and see where each one leaves it.
A stop is a decision, not an accident.
Confidence is the stop you want — quit the moment the evidence settles it. But confidence may never arrive, so real agents pair it with a hard backstop: a cap on turns, a budget, a timeout. One rule to stop well, another to stop at all.
A loop with no exit is the classic agent failure — endless calls, mounting cost, no verdict. Deciding in advance what “done” means is what keeps an autonomous agent from running away with your time and money.