pub struct QuorumContract {
pub members: Vec<Delegation>,
pub threshold: u32,
pub resolver: QuorumResolver,
}Expand description
quorum — accept the first k completions and resolve them into one
outcome (R0.7 wave 3). The threshold is a hard floor: if fewer than k
members can still complete, the pattern settles
CoordinationStatus::Unreachable — it fails open with the evidence
journaled, and never silently downgrades k.
Fields§
§members: Vec<Delegation>The member assignments. Member names must be unique.
threshold: u32The acceptance threshold: the pattern settles as soon as this many
members have completed. Must be within 1..=members.len().
resolver: QuorumResolverHow the accepted results become the outcome.
Implementations§
Source§impl QuorumContract
impl QuorumContract
Sourcepub fn validate(&self) -> Result<(), CoordinationViolation>
pub fn validate(&self) -> Result<(), CoordinationViolation>
Structural validation enforced at submission: a non-empty member set
with unique names, a threshold inside 1..=members.len(), and a
resolver wave 3 can honor. The threshold is checked exactly and never
clamped — a silent clamp would change the pattern’s semantics without
a journaled decision.