b8cd00f968
Follow-up to @BrunoBza's #93062: 1. Set failed=True only for the new repeated_outer_errors exit reason. Previously the error exit left failed=False, so finalize_turn reported completed=True for a turn that actually failed — incorrect. 2. Don't append_message the assistant response at the break. A thinking- prefill or interim assistant may already be the tail, and appending would create assistant→assistant role-alternation violation. finalize_turn (lines 341-353) handles this safely by checking _tail_role != 'assistant' before appending. 3. Update test to assert failed=True and completed=False for the repeated_outer_errors exit.