Files
PaperClipAI/server
cryppadottaandClaude Opus 5.5 c8f9f23680 fix(native): retire a failed run's lapsed claim after a newer run takes over
A native run can fail while its controller on another server still holds
the finalization claim (phase observed). When the task then moves on to a
newer run, nothing could settle that claim:

- the expired-owner pass cannot verify a controller in another process
  space, so it holds the task for the board, naming the old run;
- restart recovery returns issue_execution_lock_changed before it reaches
  the bounded wait that ends unverifiable runs, and writes nothing.

So the check repeated every minute, the hold never cleared, and the task's
automatic continuation and the user's Retry were refused indefinitely.

Restart recovery now retires that claim once the same bounded wait has
passed since the lease lapsed, when a newer run of the task exists. The old
run keeps its failure, the task's lock and the newer run are untouched, and
the hold that names the old run is resolved. No new turn starts here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 03:06:35 +00:00
..