adk_invocation_ledger behaviour (erlang_adk v0.7.0)
View SourceDurable ownership and checkpoint ledger for resumable invocations.
Implementations must make create/claim/checkpoint/finish atomic. The opaque owner token and lease are both write fences: renew/checkpoint/finish validate the token, running phase, and explicit NowMs atomically. A token is expired when NowMs >= lease_until and cannot revive itself before a new claimant arrives. After takeover, writes from the previous coordinator fail with stale_owner.