The row-saved-late test only checked that one ai_runs row existed, so it would also pass if the work itself had timed out before the save. It now requires the row to be ok with no error, which holds only when the work ended in time and the save alone ran past the deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>