Every AI agent eventually gets stuck in a debug loop, making each edit worse than the last. Here's why it happens and the 4-step playbook to escape.