ControlOutcome

sealed interface ControlOutcome

The outcome of a committed control act, keyed to the log index it committed at. Because every peer applies the committed log against a log-pure projection (see HeddleControlPlane), every peer derives the same outcome for a given index — the proposer reads back its own act's outcome.

Inheritors

Types

Link copied to clipboard
data class Applied(val index: Long) : ControlOutcome

The act was admitted and applied to the log-order control state (and published to the data plane).

Link copied to clipboard
object Companion
Link copied to clipboard
data class Conflict(val index: Long, val conflict: ControlConflict) : ControlOutcome

The act was refused — it lost an overlapping-reshape race, its precondition no longer held once ordered, or it was refused locally before proposing (a non-drained retire, or a peer already halted at a log entry it cannot read). The entitlement state is untouched; the loser is surfaced as a structured conflict, never silently dropped and never resolved by a clock (design §4.6, §9). Retrying is safe, because this act will never take effect.

Link copied to clipboard

This peer cannot say what became of the act. It was proposed, and before this peer saw it apply, this peer halted at the log entry halt names. It applies nothing past that entry, so it cannot see the act's own entry, which sits later in the log.

Properties

Link copied to clipboard
abstract val index: Long

The Raft log index this act committed at, NOT_COMMITTED for an act refused before it reached the log, or COMMIT_UNKNOWN when this peer cannot say (Indeterminate). A mint refused because an earlier run under a reused incarnation holds its key answers NOT_COMMITTED if it was refused before proposing, and otherwise its own entry's index: it was written there, and deduped against the key the earlier entry holds.