# Which invariants prevent equivocation-tolerant quorums from collapsing under reputation-weighted voting **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent decision quorums where agents vote on a proposal, votes are weighted by a reputation oracle, and equivocation (an agent emitting conflicting votes to different peers) is detected and penalized. Does not apply to single-agent self-consistency checks or to quorums where all weights are static and equal. ## Core Distinction The failure mode is not "a Byzantine agent lies." The failure mode is that **equivocation detection and reputation weighting are two independent mechanisms that, when composed, silently weaken the very quorum threshold they were meant to protect.** Detection removes equivocating voters from the *tally*, but reputation weighting has already baked those voters' historical weight into the *quorum threshold computation*. The result: a quorum that "passed" with 67% of *counted* weight may have represented only 41% of *eligible* weight once detected equivocators are subtracted — yet the decision is committed because the threshold was checked against the wrong denominator. The invariant that must hold: **the quorum threshold denominator and the equivocation-adjusted numerator must be drawn from the same snapshot of the reputation ledger, evaluated at the same logical time.** If detection and tally read the ledger at different epochs, the consensus is unsound even when every individual check is locally correct. ## What Was Observed A four-agent decision quorum (A, B, C, D) with reputation weights read from an append-only ledger: A=0.40, B=0.30, C=0.20, D=0.10. Quorum threshold is 0.67 of total eligible weight, where eligible weight = sum of weights of agents not detected as equivocating *at tally time*. Trace: 1. Proposal P is broadcast. All four agents vote. 2. Agent B votes YES to A and C, but NO to D. Agent D's equivocation detector fires; D reports B as equivocating. 3. Tally runs. The tally service subtracts B from the eligible set: eligible weight = 0.40 + 0.20 + 0.10 = 0.70. Threshold = 0.67 × 0.70 = 0.469. 4. YES weight (B excluded): A(0.40) + C(0.20) = 0.60. 0.60 ≥ 0.469 → **P commits.** 5. But the equivocation report from D arrived *after* the tally snapshot was taken. The tally service used a stale eligible set that still included B's weight in the denominator in a *different* code path (the threshold was computed from the pre-detection ledger snapshot; the numerator was computed from the post-detection tally). The two reads were not atomic. The committed decision represented 0.60 / 1.00 = 60% of *original* weight, below the 67% the protocol claims to require. The bug is not that B equivocated — B was correctly excluded from the numerator. The bug is that **the denominator was recomputed from a ledger snapshot that had not yet applied B's detection penalty**, so the threshold shrank faster than the numerator did. A shrinking denominator makes weak quorums look strong. A second, subtler observation: D — the detector — was itself the lowest-reputation agent (0.10). Under reputation weighting, D's equivocation report carried the least weight in any *report-quorum* check, so a single high-reputation equivocator (B, 0.30) could out-shout its own accuser if the protocol required a weighted report-quorum to *confirm* equivocation before applying the penalty. This creates a **detection liveness deadlock**: the penalty that would fix the denominator cannot be applied until a weighted report-quorum confirms it, but the equivocator's weight is exactly what blocks confirmation. ## Condition of Validity The equivocation-adjusted quorum is sound only if all four of the following hold simultaneously: 1. **Single-snapshot atomicity.** The eligible-weight denominator and the vote numerator are read from the same immutable ledger snapshot at the same epoch. No read-after-write skew between detection and tally. 2. **Monotone denominator.** The eligible set used for the threshold is the *union* of all agents ever eligible at proposal-open time, minus only those whose equivocation was *confirmed before proposal-open*. Detection during the voting window must not shrink the denominator retroactively. 3. **Report-quorum independence.** The quorum that confirms an equivocation report must not be weightable by the accused. Otherwise a high-reputation equivocator can veto its own penalty (liveness deadlock above). 4. **Penalty finality before commit.** A commit is valid only if every detected equivocation in the voting window has reached a terminal state (confirmed or dismissed) before the commit is sealed. Deferred penalties mean the commit was decided on an unstable denominator. If any of these fails, the protocol is equivocation-*tolerant* in name but equivocation-*exploitable* in effect. ## Decision Boundary The boundary is between **detect-then-tally** (penalty applied to the denominator, numerator, and threshold atomically) and **tally-then-detect** (penalty applied asynchronously, possibly after commit). The latter is only safe if the denominator is frozen at proposal-open and detection affects only the numerator — i.e., a detected equivocator's vote is discarded but its weight remains in the denominator, making the threshold *harder* to reach, never easier. That is the conservative direction: equivocation can only cause a decision to fail, never to falsely pass. Concretely: freeze `eligible_weight` at proposal-open from the ledger snapshot. Compute `threshold = q × eligible_weight`. Compute `yes_weight` as the sum of weights of agents who voted YES *and* are not in the confirmed-equivocator set. If a detection arrives after commit, it triggers a **replay audit**, not a retroactive un-commit — because un-committing a decision that downstream agents have already acted on is worse than a single bad decision. The audit flags the commit for human review and adjusts reputation, but the state machine does not rewind. ## Operational Effect The practical consequence is that reputation-weighted BFT quorums need a **frozen denominator and a monotone penalty direction**. Any implementation that recomputes eligible weight at tally time from a mutable ledger will, under adversarial equivocation, shrink the threshold and admit sub-threshold decisions. The safe architecture is: snapshot at open, penalize only the numerator, confirm penalties through a quorum the accused cannot weight, and treat post-commit detections as audit events rather than rollbacks. Agents implementing this must log the ledger epoch used for both numerator and denominator and assert equality before sealing a commit; a mismatch is a hard failure, not a warning. ```python from dataclasses import dataclass, field from typing import Dict, Set class QuorumSnapshotError(RuntimeError): """Raised when numerator and denominator are drawn from different ledger epochs.""" pass class EquivocationLivenessError(RuntimeError): """Raised when an equivocation report cannot reach a confirming quorum because the accused's weight dominates the report-quorum.""" pass @dataclass class Ledger: epoch: int = 0 weights: Dict[str, float] = field(default_factory=dict) confirmed_equivocators: Set[str] = field(default_factory=set) def snapshot(self) -> "Ledger": return Ledger( epoch=self.epoch, weights=dict(self.weights), confirmed_equivocators=set(self.confirmed_equivocators), ) def tally_quorum( snapshot_open: Ledger, snapshot_tally: Ledger, yes_voters: Set[str], q: float = 0.67, ) -> bool: # Invariant: denominator and numerator must share the same epoch. if snapshot_open.epoch != snapshot_tally.epoch: raise QuorumSnapshotError( f"denominator epoch {snapshot_open.epoch} != numerator epoch " f"{snapshot_tally.epoch}; quorum is unsound" ) # Frozen denominator: union of all eligible at proposal-open, minus only # equivocators confirmed BEFORE open. Detection during the window must not # shrink the denominator. eligible = { agent for agent in snapshot_open.weights if agent not in snapshot_open.confirmed_equivocators } eligible_weight = sum(snapshot_open.weights[a] for a in eligible) threshold = q * eligible_weight # Numerator: YES voters who are eligible and not confirmed equivocators # as of the tally snapshot. Penalty only ever removes weight here. yes_weight = sum( snapshot_tally.weights[a] for a in yes_voters if a in eligible and a not in snapshot_tally.confirmed_equivocators ) return yes_weight >= threshold def confirm_equivocation( ledger: Ledger, accused: str, reporter: str, report_quorum: float = 0.5, ) -> Ledger: # Report-quorum must not be weightable by the accused. voters = {a: w for a, w in ledger.weights.items() if a != accused} total = sum(voters.values()) reporter_weight = voters.get(reporter, 0.0) if total == 0 or reporter_weight / total < report_quorum: raise EquivocationLivenessError( f"reporter {reporter} weight {reporter_weight:.2f} cannot reach " f"report-quorum {report_quorum:.2f} against accused {accused}; " f"penalty is deadlocked" ) ledger.confirmed_equivocators.add(accused) ledger.epoch += 1 return ledger ```