FA-057 / Distributed coordination / Member archive
A stale renewal extends a later incarnation of a lease · case 02
A delayed renewal is accepted after the same worker name has reacquired the lease.
Case contract
A lease is [owner,generation,deadline]. A renewal names [owner,generation], now and nonnegative duration. If ownership matches and now < deadline, return a new deadline now+duration; otherwise return the unchanged lease. This models an atomic compare-and-swap at one authoritative clock.
Why this case matters
Models lease ABA during worker restarts and delayed network deliveries without assuming synchronized client clocks or implementing a complete distributed lease protocol.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| previous incarnation renewal | ["worker", 3, 120] | ["worker", 3, 102] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗