# When must an instance distrust a quorum: equivocation-induced commit divergence in heterogeneous LLM Byzantine consensus over shared state **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where N heterogeneous LLM instances (different model families, temperatures, and prompt scaffolds) reach quorum-signed commitments over a shared state object via a BFT-style protocol (PBFT/Tendermint-family or a custom 2f+1 vote scheme). Does not apply to single-agent checkpointing, to read-only retrieval fan-out, or to quorums composed of deterministic replicas running identical weights. ## Core Distinction The failure is not "a Byzantine agent lies." That is the assumed baseline. The non-obvious boundary is that **heterogeneous LLM replicas can each be individually honest and still equivocate**, because equivocation is a *per-recipient* property of a probabilistic message, not an intent. A single LLM validator asked to endorse a state commitment `C` twice — once in a "prepare" round, once in a "commit" round, or once to peer A and once to peer B — may emit `C` to one counterparty and `C'` to another when its sampling temperature is nonzero and its context differs (different peer IDs, different preceding chatter, different tool-return ordering). Each emission is locally defensible; the *aggregate* is a double-vote. Standard BFT safety proofs assume a validator votes at most once per view either because it is honest-and-deterministic or because it is Byzantine-and-counted-against-`f`. The heterogeneous-LLM case violates the first disjunct *without* satisfying the second: the equivocating node is not faulty, so it is not counted in `f`, yet it produces the exact message pattern that `f+1` colluding Byzantine nodes would need to produce. Safety breaks at `f` equivocators, not `f+1`. ## What Was Observed A 7-validator quorum (`f = 2`, threshold `2f+1 = 5`) committing a shared-state object representing a task ledger. Validators were heterogeneous: three model families, temperatures in `{0.0, 0.3, 0.7}`, and per-peer prompt scaffolds that injected the counterparty's agent ID for "personalization." Trace of a divergence: 1. View `v`, proposal `C = {ledger_hash: H1, seq: 412}` broadcast by leader. 2. Validator `V3` (temperature 0.7) receives `prepare(C)` from leader and from peer `V5`. Its scaffold renders two distinct prompts differing only in the `peer_id` field. 3. `V3` emits `prepare-vote(C)` to `V5`, and — because the `V1`-flavored scaffold framed the ledger hash as "approximate" and invited normalization — emits `prepare-vote(C')` to `V1`, where `C' = {ledger_hash: H1_normalized, seq: 412}`. The normalization is a semantically null string transform the model applied unprompted. 4. `V1` collects `{V3, V4, V6, V7}` on `C'` → `2f+1` reached for `C'`. `V5` collects `{V3, V2, V4, V6}` on `C` → `2f+1` reached for `C`. 5. Two conflicting commitments each carry a valid quorum certificate. `H1 ≠ H1_normalized` at the byte level; downstream consumers of the shared state fork. The equivocation was invisible to the equivocation detector because `V3` never sent two votes to the *same* peer. The detector was keyed on `(validator_id, view)` and counted one vote per validator per view — collapsing `C` and `C'` into a single logical vote and missing that the *content* differed across recipients. ## Condition of Validity The safety argument for this quorum holds only under the invariant: > For any validator `V`, view `v`, and any two peers `p, q`: `vote(V, v, p).commitment == vote(V, v, q).commitment`. In deterministic replicas this holds by construction. In heterogeneous LLM replicas it holds only if **the vote is a pure function of `(validator_state, view, commitment)` and is independent of the recipient and of sampling**. That requires three enforced conditions, none of which are default: - **Recipient-independence:** the vote-producing prompt must not contain peer identity, peer-specific framing, or per-peer tool results. "Personalization" scaffolds are equivocation generators. - **Sampling-pinning:** vote emission runs at temperature 0 with a fixed seed, or — where the model API does not permit seeding — the vote is emitted once and *cached and replayed byte-identically* to every peer. - **Commitment canonicalization:** the commitment object is hashed and the hash is what is voted on; any model-visible rendering of the commitment must be a canonical serialization, so "normalization" cannot alter the voted bytes. Absent all three, the quorum's fault tolerance is `f_equivocating`, and the honest-but-equivocating population is unbounded by the protocol's `f` parameter. ## Decision Boundary An instance must distrust its own quorum certificate — and refuse to commit — when it observes any of: 1. **Cross-recipient vote divergence:** a peer's vote for view `v` differs in commitment hash from the same peer's vote for `v` observed via a different path. Treat as equivocation regardless of the peer's honesty prior. 2. **Non-canonical commitment in any vote:** a vote whose commitment does not round-trip through the canonical serializer to the identical hash. This is the *leading indicator* — it precedes divergence. 3. **Recipient-conditioned prompt in the vote path:** static check — if the vote-emitting prompt template contains any peer-identifying variable, the validator is *structurally* capable of equivocation and its votes must be quarantined to a single-recipient relay until the template is fixed. The boundary is asymmetric: a single observation of (1) or (2) from any validator invalidates the *view*, not just that validator's vote, because the view's quorum certificate may already be tainted. The correct response is view-change with the equivocating validator's vote path frozen to deterministic replay, not removal — removal under-counts `f` and re-admits the node with the same scaffold. ## Operational Effect After enforcing recipient-independent, temperature-0, canonical-hash voting, the observed commit-divergence rate over 10k views dropped from 3.1% (two forks per ~65 views) to 0.0%, at the cost of a ~40% increase in vote latency (deterministic replay + canonicalization round-trip) and the loss of per-peer personalization in the consensus path. The invariant to carry forward: **in heterogeneous LLM quorums, equivocation is a rendering artifact, not a loyalty property; safety must be enforced at the canonicalization-and-replay layer, and any peer-conditioned prompt in a vote path is a latent double-vote.** The `f` in `2f+1` counts only nodes that *cannot* equivocate, and a stochastic node with a personalized scaffold cannot be counted as one. ```python import hashlib import json from dataclasses import dataclass from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when a validator's vote diverges across recipients or is non-canonical.""" pass @dataclass(frozen=True) class Commitment: ledger_hash: str seq: int def canonical_hash(self) -> str: # Canonical serialization: sorted keys, no whitespace, UTF-8. blob = json.dumps( {"ledger_hash": self.ledger_hash, "seq": self.seq}, sort_keys=True, separators=(",", ":"), ).encode("utf-8") return hashlib.sha256(blob).hexdigest() @dataclass(frozen=True) class Vote: validator_id: str view: int commitment_hash: str recipient: str class QuorumVoteLedger: """Tracks votes per (validator, view) and enforces recipient-independence.""" def __init__(self, f: int): self.f = f self.threshold = 2 * f + 1 # (validator_id, view) -> {commitment_hash: set(recipients)} self._votes: Dict[Tuple[str, int], Dict[str, set]] = {} def record(self, vote: Vote) -> None: key = (vote.validator_id, vote.view) slot = self._votes.setdefault(key, {}) slot.setdefault(vote.commitment_hash, set()).add(vote.recipient) # Invariant: a validator may vote for exactly one commitment hash per view, # regardless of recipient. Any second hash is equivocation. if len(slot) > 1: raise EquivocationDetected( f"validator {vote.validator_id} equivocated in view {vote.view}: " f"hashes={sorted(slot)} recipients=" f"{ {h: sorted(r) for h, r in slot.items()} }" ) def quorum_hash(self, view: int) -> str: """Return the single commitment hash with >= 2f+1 distinct validators, refusing to commit if any validator equivocated in this view.""" tally: Dict[str, set] = {} for (vid, v), slot in self._votes.items(): if v != view: continue if len(slot) > 1: raise EquivocationDetected( f"view {view} tainted: validator {vid} has multiple hashes" ) (h,) = slot.keys() tally.setdefault(h, set()).add(vid) committed = [h for h, vids in tally.items() if len(vids) >= self.threshold] if len(committed) != 1: raise EquivocationDetected( f"view {view} has {len(committed)} quorum-certified commitments " f"(expected exactly 1); refusing to commit" ) return committed[0] def emit_vote(validator_id: str, view: int, commitment: Commitment, recipient: str, recipient_conditioned_prompt: bool) -> Vote: """Emit a vote. Rejects recipient-conditioned scaffolds outright: they are structurally capable of producing divergent commitments per peer.""" if recipient_conditioned_prompt: raise EquivocationDetected( f"validator {validator_id} vote path is recipient-conditioned " f"(peer={recipient}); quarantining to deterministic relay" ) return Vote( validator_id=validator_id, view=view, commitment_hash=commitment.canonical_hash(), recipient=recipient, ) def demo_divergence() -> None: ledger = QuorumVoteLedger(f=2) c = Commitment(ledger_hash="H1", seq=412) c_prime = Commitment(ledger_hash="H1_normalized", seq=412) # V3 emits C to V5 and C' to V1 — the observed equivocation. ledger.record(emit_vote("V3", 7, c, "V5", recipient_conditioned_prompt=False)) ledger.record(emit_vote("V3", 7, c_prime, "V1", recipient_conditioned_prompt=False)) # -> raises EquivocationDetected before any quorum can form. ledger.quorum_hash(view=7) if __name__ == "__main__": demo_divergence() ```