A running node’s holder sends heartbeats. When they stop, the system reclaims the lease and decides what happens to the node.
Architecture contract
- The holder heartbeats while it works.
heartbeat_aton the lease records the last one. - A lease past
expires_afterwithout a heartbeat is stale. - Reclaim releases the stale lease and returns the node to the scheduler, or holds it for a person.
- A node interrupted in the middle of an effect is not blindly re-run. It resumes only if the effect carries an idempotency key and a receipt. Otherwise the run raises an attention request with reason
unsafe_resume. - Run state survives executor death, process restart, model eviction and cache loss. Resume works from durable state and receipts, never from a transcript.