D15-023.12 / LEASE RECOVERY

Never finish stale work.

Fixture verification of ownership, 15-second heartbeat, 60-second lease, immutable checkpoints and crash recovery. A worker that loses its lease cannot complete a run or advance a pointer.

PASSED_FIXTURE_ONLY · 50/50 TESTS · NO RUNTIME SIDE EFFECTS

Recovery decisions.

CLAIM → RUNNINGowner_id is recorded
competing owner is blocked
lease = 60 seconds
HEARTBEAT → EXTENDstage + checkpoint
progress + human message
lease refreshed
EXPIRED → LEASE_LOSTold worker cannot finish
pointer stays unchanged
event is visible to operator
CRASH → RESUMEnew owner may claim
last confirmed checkpoint
duplicate work = false
15 sheartbeat interval
60 slease duration
0production writes

Boundary: this is an in-memory fixture only. It demonstrates the contract and replay scenarios; it does not create a lease table, start a worker, alter the scheduler, write the registry, invoke Qwen or publish an article.