Recover a run after a worker stops
Kill a Worker mid-tool-call and another finishes the Run: it reclaims the expired lease, replays the log and settles the dangling call.
how it is kept
- A Worker claims a Run with a lease in one conditional write. Two concurrent claims cannot both win.
- The lease follows process liveness. A separate wall-clock deadline, enforced in the process holding the Attempt, catches the hang a lease cannot see.
- Supervision and execution are separate loops, so a stalled model stream can never block the code that would have timed it out.