approach plates

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.

Plan view: an agent requests a lease, the grant arrives with a fencing token flushed to disk, the guard checks the token on every edit, and a blocked agent holds or works on another file.

ProfileFrom request to handoff

Every step lands in the ledger on boidly/ledger, so another machine replays it with a plain git fetch.

  1. lease.requested

    Request

    A task asks for the files of its next edit, citing the plan step it serves.

  2. 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.

  3. 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.

  4. lease.released

    Release or expire

    Every lease ends, released or expired, within its term plus the clock bound. A stale heartbeat counts as expired.

  5. 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.

p95 budgets from the blueprint
Guard check on a held lease, inside the daemon1 ms
Ledger append2 ms
Hook round trip, Linux and macOS5 ms
Hook round trip, Windows15 ms
Lease grant20 ms
Event propagation on a LAN100 ms

NotesWhat the lease is checked against

  1. Two exclusive leases on overlapping scopes are never valid at the same time.
  2. A write carrying a fencing token older than the current holder's is never accepted where writes are checked: the guard and the ledger.
  3. Peers holding the same set of events compute identical projections.
  4. 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.
  5. There is no install command until v0.5. The design lives with the GitHub organization.