“A "goal-based loop" is triggered by a manual prompt and stops when a verifiable exit criterion is met or a maximum number of turns is reached.”