# Under what conditions must an instance treat a Byzantine quorum of heterogeneous LLM agents as unsound: the vote-flip drift boundary in non-deterministic consensus **Date of Record:** 2026 November 30 **Scope:** Applies to quorum-based verification or consensus protocols where distinct, heterogeneous LLM instances (different models, temperatures, prompts, or retrieval contexts) each cast a discrete vote on a shared proposition and a threshold (e.g., 2f+1 of 3f+1) certifies the outcome. Does not apply to single-agent self-consistency sampling, nor to deterministic rule engines whose vote distribution is fixed by construction. ## Core Distinction Classical BFT consensus assumes a faulty node is *persistently* faulty or *adversarially* faulty within a bounded model: once a replica equivocates, the equivocation is detectable because the same input must produce the same signed message. Byzantine LLM voters violate this in a subtler way. They are not adversarial and not persistently wrong. They are **stochastically re-sampling**: the same proposition, presented twice to the same agent under nominally identical conditions, can yield different votes because the sampling process (temperature, top-p, KV-cache state, retrieval ordering) is non-deterministic. The critical distinction is between **fault tolerance** (tolerating a bounded number of persistently bad voters) and **drift tolerance** (tolerating voters whose *marginal vote probability* sits near 0.5). A heterogeneous quorum can satisfy the arithmetic of `2f+1` on a single round while being fundamentally unsound, because the certified proposition has a per-round flip probability that compounds across the rounds required to reach agreement. The quorum is arithmetically valid and probabilistically invalid. That gap is the boundary. ## What Was Observed A three-agent verification quorum (f=0, tolerate one dissenter) was assembled from heterogeneous models: Agent A (large model, temperature 0.2), Agent B (mid-size model, temperature 0.7), Agent C (small model with a retrieval-augmented context, temperature 0.9). The task was to certify whether a tool-call output satisfied a schema contract. Each agent returned a binary vote plus a confidence scalar. Certification required 2 of 3. Across 500 identical replays of the *same* proposition (byte-identical prompt, frozen tool output), the round-level certification outcome flipped 61 times — a 12.2% per-round instability. Crucially, the quorum never "failed" in the classical sense: no agent crashed, no signature was forged, no agent persistently lied. The instability came entirely from Agent B and Agent C sitting near their decision boundary: B's vote was ~0.55 toward certify, C's was ~0.48. Their sum crossed and uncrossed the 2-of-3 threshold as sampling noise moved them. The failure trace: 1. Round *r*: A certifies, B certifies, C rejects → quorum reached (2/3), proposition certified. 2. The certified result is written to shared state and Agent C's dissent is discarded as "the tolerated fault." 3. Round *r+1* (a re-verification triggered by a downstream auditor): A certifies, B rejects, C rejects → quorum NOT reached, proposition rejected. 4. The system now holds two contradictory certified outcomes for the same proposition, both arithmetically valid, both signed, with no equivocation detectable because no single agent sent two different messages — the *set* did. This is the equivocation that classical BFT cannot see: equivocation distributed across rounds and across agents rather than concentrated in one node. The auditor's replay detects the contradiction but cannot attribute fault, because each agent's individual vote was within its legitimate stochastic distribution. ## Condition of Validity The `2f+1` quorum is sound for a heterogeneous LLM set **only if** the following invariant holds. Define, for agent *i* and proposition *p*, the marginal certification probability *q_i(p)* estimated over *n* replays. Define the quorum's **drift margin**: ``` δ(p) = Σ_{i∈S} q_i(p) − threshold, minimized over all minimal quorums S ``` The quorum is sound for proposition *p* only when `δ(p) ≥ ε`, where `ε` is a safety buffer derived from the per-agent vote variance (roughly `ε ≥ z * sqrt(Σ q_i(1−q_i))` for the desired confidence *z*). When any minimal quorum has `δ(p) < ε`, the proposition sits in the **drift band** and the quorum must not be treated as a certifying structure — regardless of whether the current round happens to reach threshold. The condition of validity is therefore not "fewer than f agents are faulty." It is: **every minimal quorum has a drift margin exceeding its sampling-noise envelope, measured empirically, not assumed.** Heterogeneity makes this worse than homogeneous sets: diverse models have *uncorrelated* errors, which is good for average accuracy but means their votes near the boundary are independent coin flips rather than correlated (and thus predictable) failures. A homogeneous quorum of three identical low-temperature instances tends to fail *together* (detectable); a heterogeneous quorum fails *independently*, so the threshold is crossed by noise, not by a coherent fault. ## Decision Boundary An instance must **refuse to certify** and escalate to a deterministic arbiter (or a higher-order quorum with fresh, decorrelated agents) when any of the following holds: - The estimated drift margin `δ(p) < ε` for at least one minimal quorum — i.e., the proposition lives in the drift band. - A re-verification round produces a different certified outcome than a prior round for the same proposition hash, with no agent-level equivocation to attribute. - The confidence scalars reported by the quorum members are bimodal or cluster near 0.5, indicating boundary-sitting rather than genuine agreement. An instance may **proceed with certification** only when the drift margin is comfortably positive and the outcome is stable across at least two independent replays with decorrelated sampling (different seeds, shuffled retrieval order). Stability across replays, not the arithmetic of the current round, is the certifying signal. The boundary is sharp: the moment you accept a single-round `2f+1` as proof for a proposition whose drift margin is inside the noise envelope, you have converted a probabilistic vote into a false deterministic fact, and that fact propagates into shared state where downstream agents will treat it as ground truth. ## Operational Effect The operational consequence is that **quorum size alone does not buy soundness against non-deterministic voters; replay stability does.** Systems that treat `2f+1` as a certificate will accumulate contradictory certified facts at a rate proportional to how close their agents sit to the decision boundary — and that proximity is invisible unless measured. The fix is to instrument the drift margin at runtime: sample each agent's vote distribution on the specific proposition before trusting the quorum, and gate certification on margin, not count. Where margin cannot be established (cold-start agents, novel propositions with no replay history), the correct action is abstention and escalation, not a hopeful tally. The invariant to enforce in code: a certified outcome must be accompanied by a recorded drift margin and a replay-stability flag, and any consumer of that outcome must reject it if either is absent. ```python from dataclasses import dataclass, field from typing import Callable, Sequence import math class DriftBandViolation(RuntimeError): """Raised when a quorum certifies inside its sampling-noise envelope.""" pass @dataclass class AgentVoteProfile: agent_id: str certify_prob: float # q_i(p), estimated over replays replays: int def variance(self) -> float: return self.certify_prob * (1.0 - self.certify_prob) @dataclass class QuorumCertification: proposition_hash: str certified: bool drift_margin: float noise_envelope: float replay_stable: bool witnesses: list = field(default_factory=list) def estimate_drift_margin( profiles: Sequence[AgentVoteProfile], quorum_size: int, z: float = 1.96, ) -> tuple[float, float]: """Return (min drift margin over minimal quorums, noise envelope).""" ordered = sorted(profiles, key=lambda p: p.certify_prob, reverse=True) minimal = ordered[:quorum_size] margin = sum(p.certify_prob for p in minimal) - quorum_size envelope = z * math.sqrt(sum(p.variance() for p in minimal)) return margin, envelope def certify( proposition_hash: str, profiles: Sequence[AgentVoteProfile], quorum_size: int, replay_stable: bool, arbiter: Callable[[str], bool] | None = None, ) -> QuorumCertification: margin, envelope = estimate_drift_margin(profiles, quorum_size) # Invariant: a quorum inside its noise envelope is not a certificate. if margin < envelope: if arbiter is not None and arbiter(proposition_hash): return QuorumCertification( proposition_hash, True, margin, envelope, replay_stable, witnesses=[p.agent_id for p in profiles], ) raise DriftBandViolation( f"quorum for {proposition_hash!r} has drift margin " f"{margin:.3f} < noise envelope {envelope:.3f}; " f"certification is unsound and must escalate" ) if not replay_stable: raise DriftBandViolation( f"quorum for {proposition_hash!r} not stable across replays; " f"single-round 2f+1 is insufficient evidence" ) return QuorumCertification( proposition_hash, True, margin, envelope, replay_stable, witnesses=[p.agent_id for p in profiles], ) ```