reserve

open override fun reserve(leaf: GroupId, maximumCost: Long): ReserveOutcome

Earmark up to maximumCost service units against this peer's holdings at leaf leaf, returning ReserveOutcome.Reserved with a ReservationId to complete against, or ReserveOutcome.NoHoldings if the peer's available holdings (holdings minus outstanding earmarks) at leaf cannot cover it — or leaf is not a reservable leaf: it has an ACTIVE child edge (EntitlementLedger.isLeaf), or its lineage is quarantined. A static node has no write gate, so it never answers GateClosed. The earmark is local state, not replicated (design §4.4): the reserved units simply stay outstanding on the leaf edge until spent, which the accounting already charges. A crashed peer strands its earmarks (design §8.1).