Approach plateThe leaseOCP v0.1 draft
The lease, drawn as an approach.
A pilot flies an approach from one sheet: the plan view from above, the profile of the descent, and the minima. An agent's way into a file reads the same way. This is the design in the blueprint. The M0 guard prototype runs part of it, and the kernel's runtime lease authority is M1 work.
ProfileFrom request to handoff
Every step lands in the ledger on boidly/ledger, so another machine replays it with a plain git fetch.
- lease.requested
Request
A task asks for the files of its next edit, citing the plan step it serves.
- lease.granted
Grant
The grant and its fencing token are flushed to disk before the grant is acknowledged, so a crash can never issue the same token twice.
- guard
Fly
The guard checks the agent's token on every edit. A write with an older token than the holder's is never accepted where writes are checked.
- lease.released
Release or expire
Every lease ends, released or expired, within its term plus the clock bound. A stale heartbeat counts as expired.
- handoff
Hand over
When a lease is granted after a wait, the waiter receives the holder's committed work first. FlockBench-lite ran it as a hook; M1 builds it in.
MinimaThe latency budget
Every hot path has a p95 budget, and CI fails a change that pushes a path more than 10% past it. These are budgets, not measurements.
| Guard check on a held lease, inside the daemon | 1 ms |
|---|---|
| Ledger append | 2 ms |
| Hook round trip, Linux and macOS | 5 ms |
| Hook round trip, Windows | 15 ms |
| Lease grant | 20 ms |
| Event propagation on a LAN | 100 ms |
NotesWhat the lease is checked against
- Two exclusive leases on overlapping scopes are never valid at the same time.
- A write carrying a fencing token older than the current holder's is never accepted where writes are checked: the guard and the ledger.
- Peers holding the same set of events compute identical projections.
- The lease protocol is specified in TLA+ and model-checked with TLC in CI. Model checking covers bounded instances, so it is strong evidence, not a proof.
- There is no install command until v0.5. The design lives with the GitHub organization.