ControlConflict

sealed interface ControlConflict

Why a serialized (or locally pre-checked) control act was refused (see ControlOutcome.Conflict).

Inheritors

Types

Link copied to clipboard
data class DualInbound(val child: GroupId, val incumbent: AttachmentId, val rejected: AttachmentId) : ControlConflict

An ControlCommand.Activate that would give child a second live inbound generation: incumbent is already live (ACTIVE/CLOSING) in the log-order state when the log reached rejected. This is the overlapping-reshape loser — the log picked incumbent, so rejected is refused (design §5.2, §10.11). Because the decision reads log-order state, every peer derives it identically, so the rejected generation never enters any peer's replicated ledger.

Link copied to clipboard
data class Refused(val reason: String) : ControlConflict

A serialized act whose precondition no longer held once ordered — an activate/close of an unknown/divergent or retired edge, a retire of a non-CLOSING edge, or a retire refused locally because the edge is not drained (retiring a non-drained edge would strand its outstanding entitlement, since a RETIRED edge is no longer on the live lineage the data plane drains through). Also any act a peer refuses because it has already halted at a log entry it cannot read, and a mint whose key an earlier run under a reused incarnation already used (heddleGoverned's incarnation). The reason is a diagnostic string.

Link copied to clipboard
data class WeightBudget(val parent: GroupId, val edge: AttachmentId) : ControlConflict

A ControlCommand.Prepare or ControlCommand.Activate that would leave parent's children with a weight set a pick cannot do arithmetic on: a product of their weights would leave Long, and every pick at parent would then throw, or the set is so fine that one full lease can carry a child past its ceiling before a rebase is due, where the ledger's virtual-time reads saturate (#3353). Any denominator above 30,719 is, at any lease size, since the rule is sized for the largest lease, LocalHeddle.MAX_RESERVATION; staying below it is necessary, not sufficient. A Prepare is refused when edge's own weight fails alone; an Activate when it fails beside the children already active at parent. Every peer decides it on the same log-pure state, so every peer refuses.