What a break never loses¶
Across both links and every state, four things hold. They are the invariants the whole linkage design exists to protect, and they are worth stating separately from the mechanisms that produce them.
One owner's writes are accepted at a time¶
A fence token is minted per claim and checked at both links. During a handover two nodes can believe they own a runtime; only one can write, at either end.
The displaced node is refused on the control plane link with
ASSIGNMENT_LEDGER_FENCE_TOKEN_MISMATCH and on the kernel link with
stale_fence, and it stops rather than retrying.
Position is never lost and never advances past a gap¶
Four cursors survive every break, and they are kept separate rather than collapsed:
watch revision what the node has seen from the control plane
assignment leases what it currently owns
telemetry outbox cursor what has been delivered downstream
last_acked_seq what it has confirmed from the kernel
A failed watch returns the revision unchanged. An acknowledgement stops at the last contiguous sequence. Resumption is always from the acknowledged position, because behind is recoverable and ahead is loss.
Evidence is contiguous and gap-evident¶
The kernel's chain continues while nobody is consuming it, so an outage produces delay rather than absence. Every envelope links to its predecessor by digest, so a real gap names the sequence where it happened instead of disappearing.
Compaction requires acknowledgement, so nothing is forgotten before a consumer has confirmed it contiguously.
Every assignment reaches a terminal state¶
Either the original node reports within the 30 second grace window past lease expiry, or the assignment is requeued and the node that claims it reports its own terminal state. The ledger's transitions make a terminal state final, and five of its eight states are terminal.
What is deliberately not guaranteed¶
Stating these keeps the guarantees honest.
Exactly-once execution. A non-idempotent step whose lease lapsed
mid-execution can run twice. This is why the execution admission gate refuses a
retry budget on a non_idempotent_write block, and why a block that requires
an idempotency key must be given one.
Delivery timing. Both links guarantee that what arrives is verifiable and that position is held. Neither guarantees when the other end will answer.
Unbounded absorption. A node absorbs an outage for as long as its declared disk budget allows. Spools rotate and compact under that budget rather than growing without limit.
Where these come from¶
| Invariant | Produced by |
|---|---|
| One owner's writes | The per-claim fence, checked at both links |
| Position held | Separate durable cursors, and resume from the acknowledged point |
| Contiguous evidence | The kernel's sequence and digest chain, plus cumulative acknowledgement |
| Terminal state reached | Lease expiry with requeue, and the completion grace window |
See The two links for where each mechanism lives, and The failure model for what these add up to when a whole component is lost.