A coding agent loops between edit, test, and revert without converging. How would you stop it?

Instruction: Explain how you would handle a non-converging test-feedback loop.

Context: Tests how the candidate diagnoses the problem, chooses the safest next step, and reasons through recovery. Explain how you would handle a non-converging test-feedback loop.

Official answer available

Preview the opening of the answer, then unlock the full walkthrough.

I would not let the loop run indefinitely just because the agent is busy. Once the same failure repeats or...

Related Questions