at

fun at(ledger: EntitlementLedger, parent: GroupId, roster: Set<ReplicaId>, demanding: Set<AttachmentId>, config: HeddleConfig, @IntroducedAt(version = "0.7.5") peakPositionFraction: Double = 0.0): BoundMetrics

Derive the bound metrics at parent from the merged ledger, the live roster (every peer that can steer entitlement here — including self and currently unreachable peers, since a partitioned peer is exactly the divergence source the bound must count), the set of demanding child edges (those advertising live demand), and the config caps. Pure — a function of the arguments, computed identically on every peer that has merged the same state.

Throws

when the demanding children's weight sum, or one demanding child's reduced share of it, does not fit in a Long. Either needs the weights' common denominator L or their numerator sum S over it to pass Long. LocalHeddle's apply-time weight budget refuses such weight sets; BoundMetrics is still reachable with them through a replicated ledger (HeddleNode).