# Why does an instance of a heterogeneous LLM quorum lose Byzantine safety when a single agent's sampling temperature crosses the vote-flip threshold mid-round? **Date of Record:** 2026 November 30 **Scope:** Applies to BFT-style consensus protocols (PBFT, HotStuff-style, or quorum-vote aggregators) where the voting members are LLM instances with heterogeneous models, prompts, and sampling parameters, and where votes are derived from free-form generation rather than deterministic function evaluation. Does not apply to quorums of deterministic oracles or to single-agent self-consistency voting. ## Core Distinction The failure is not "an LLM hallucinated a vote." It is that **Byzantine fault tolerance assumes faulty nodes are statically bounded at `f < n/3`, but a probabilistic voter's fault status is a function of its sampling configuration, which can change between rounds without any node being malicious.** A homogeneous quorum of deterministic voters has a stable fault set. A heterogeneous LLM quorum has a *fault set that is a random variable*, and the variance is driven by per-agent temperature, top-p, and prompt drift — not by adversarial behavior. The invariant that breaks: BFT safety requires that the set of nodes that can equivocate (send different votes to different replicas) be bounded and known. When a single agent's temperature crosses a threshold where its output distribution over {approve, reject} becomes bimodal across replicas, that agent *becomes* a Byzantine equivocator — not because it is compromised, but because its sampling is non-deterministic and the replicas each sample it independently. The quorum's `f` count is now understated by one, and safety margin `n - f` shrinks below the 2f+1 threshold. ## What Was Observed A 7-node quorum (n=7, tolerating f=2) running a HotStuff-style two-phase commit over a tool-call authorization decision. Six agents were pinned at temperature 0.0 with identical system prompts. One agent (the "auditor") ran at temperature 0.9 to "encourage diverse reasoning." All seven received the identical proposal and were asked to emit `VOTE: APPROVE` or `VOTE: REJECT`. During a 200-round soak, the auditor emitted APPROVE to replicas A, B, C and REJECT to replicas D, E, F within the *same round* on 14 occasions (7% of rounds). The protocol's equivocation detector — which assumed equivocation implies malice — flagged the auditor as Byzantine and quarantined it. But the quarantine was applied per-replica, not globally: replicas A–C had already counted the APPROVE, replicas D–F had counted the REJECT. The prepare phase reached quorum (5/7) on APPROVE at A–C plus two honest nodes, while the commit phase reached quorum on REJECT at D–F plus two *different* honest nodes. Two conflicting decisions committed in the same view. The root cause: at temperature 0.9, the auditor's logit gap between APPROVE and REJECT on borderline proposals was ~0.4 nats. Per-replica sampling variance exceeded that gap, so the vote was effectively a coin flip. The protocol treated a coin flip as a stable vote. ## Condition of Validity The safety proof holds only when, for every agent `i` and every round `r`, the vote `v_i(r)` is a *deterministic function of the proposal and the agent's state*. For LLM voters this requires one of: 1. **Temperature pinned to 0.0** and top-p = 1.0 across all replicas, with a fixed seed where the inference backend supports it, AND 2. **Vote commitment before broadcast**: the agent emits a signed hash of its vote, and the protocol rejects any replica that presents a different pre-image for the same `(agent, round)` tuple, AND 3. **A per-agent equivocation budget** `e_i` such that `sum(e_i) < f`, reserving fault-tolerance capacity for probabilistic (non-malicious) equivocation. If any agent runs at temperature > 0 with a logit gap smaller than the sampling noise floor on the proposal distribution, condition 1 fails and the Byzantine bound `f` is silently violated. The margin `n - 3f` must be recomputed as `n - 3f - sum(e_i)`; when this goes negative, the quorum is *structurally* unable to guarantee safety regardless of honest-majority assumptions. ## Decision Boundary The boundary is crossed when the per-agent vote-flip probability `p_flip` (probability that two independent samples from the same agent on the same proposal disagree) exceeds `(n - 3f) / n`. For n=7, f=2, that is `1/7 ≈ 0.143`. The auditor's measured `p_flip` was 0.07 averaged but 0.31 on borderline proposals — the *conditional* flip rate on the proposal subclass that matters. Averaging over all proposals masks the boundary crossing. Operational rule: **never average `p_flip` across proposal difficulty.** Measure it per proposal-class (borderline vs. clear), and if any class exceeds the threshold, that agent must be demoted to temperature 0.0 or excluded from the quorum count. A single agent at `p_flip = 0.31` on 20% of proposals reduces effective `n` by 1.4 nodes on average, which for n=7, f=2 leaves `n_eff - 3f = 5.6 - 6 < 0` — safety is gone. ## Operational Effect The observed effect was a **split-brain commit**: two conflicting tool-call authorizations both reached quorum and both were dispatched to the execution layer. The downstream tool executed twice with contradictory arguments (one APPROVE authorized a `delete`, one REJECT should have blocked it). The equivocation detector's per-replica quarantine arrived *after* both commits, so it detected the fault but could not prevent the double-execution. Recovery required a manual reconciliation pass and a rollback of the second dispatch. The architectural guardrail is a **vote-commitment pre-phase**: before any replica counts a vote, it must receive a signed commitment `H(vote || agent_id || round || nonce)` from the agent, and the protocol must collect a commitment-quorum *before* collecting a vote-quorum. Any agent that cannot produce a consistent commitment across replicas is excluded from the round's `n` before the safety proof is applied. This converts probabilistic equivocation from a silent safety violation into a detectable pre-commit failure, restoring the static-`f` assumption the protocol depends on. ```python import hashlib from dataclasses import dataclass class QuorumSafetyViolation(RuntimeError): """Raised when probabilistic equivocation shrinks the effective quorum below the BFT safety margin.""" pass @dataclass class VoteCommitment: agent_id: str round_id: int vote: str # "APPROVE" | "REJECT" nonce: str def digest(self) -> str: payload = f"{self.agent_id}|{self.round_id}|{self.vote}|{self.nonce}" return hashlib.sha256(payload.encode()).hexdigest() def check_quorum_safety( n: int, f: int, per_agent_flip_rate: dict[str, float], ) -> None: """ Recompute the effective fault bound after accounting for probabilistic equivocation. Raises if the safety margin n - 3f goes non-positive. """ equivocation_budget = sum(per_agent_flip_rate.values()) effective_margin = n - 3 * f - equivocation_budget if effective_margin <= 0: raise QuorumSafetyViolation( f"effective margin {effective_margin:.2f} <= 0: " f"n={n}, f={f}, equivocation_budget={equivocation_budget:.2f}. " f"Quorum cannot guarantee safety; demote high-flip agents to temp 0.0." ) def verify_commitment_consistency( commitments_by_replica: dict[str, list[VoteCommitment]], ) -> None: """ Enforce that every agent produced one consistent commitment digest across all replicas in the round. Any divergence is a pre-commit equivocation and the agent must be excluded before vote counting. """ for agent_id, commitments in commitments_by_replica.items(): digests = {c.digest() for c in commitments} if len(digests) > 1: raise QuorumSafetyViolation( f"agent {agent_id} emitted {len(digests)} distinct commitment " f"digests across replicas in round {commitments[0].round_id}: " f"probabilistic equivocation detected pre-commit. " f"Exclude from effective n before applying safety proof." ) ```