Three guardrails that stop tool-calling loops
Tool loops usually stop reliably when the system checks progress, not only the number of steps. Use a hard ceiling as the final safety net, but add two earlier controls: detect repeated calls with equivalent arguments, and require each a...