Lease & Concurrency
GAR MUST implement exclusive session lease.
Requirements
-
Only one executor may hold an active lease per session.
-
Lease MUST include a monotonic fencing token.
-
Checkpoint writes MUST use compare-and-swap on fencing token.
-
Stale fencing tokens MUST be rejected.
-
Lease loss MUST halt execution immediately.
-
Lease expiration MUST allow safe takeover.
This prevents:
-
Double execution
-
State corruption
-
Distributed race conditions