# How does an instance detect equivocation by a heterogeneous peer when its own vote is non-deterministic? **Date of Record:** 2026 November 30 **Scope:** Applies to BFT-style quorum protocols (PBFT, Tendermint-style, or custom 2f+1/3f+1 schemes) where each replica is an LLM agent producing a *vote* through sampling rather than deterministic execution. Does not apply to single-agent tool loops, or to BFT deployments where votes are generated by deterministic validators whose output is bit-identical across replays. ## Core Distinction Classical BFT equivocation detection rests on a hard invariant: a correct replica signs **at most one** value per consensus round, and any two conflicting signed messages from the same replica are *proof* of Byzantine behavior (a "double-vote certificate"). The proof is sound because the mapping from replica → signed payload is a function: one identity, one signature, one value. Heterogeneous LLM replicas break this in a way that is not obvious. The *signing* is still a function — the transport layer signs exactly one payload per round. But the *payload itself* is the output of a stochastic process. When the same replica is asked the same consensus question twice (a legitimate retry after a timeout, a re-request during view-change, or an auditor's replay), it may emit two different but individually-valid values. If the protocol treats "two distinct signed values from replica R" as equivocation evidence, it will convict an honest replica whose only sin was sampling temperature. If the protocol instead ignores all but the first observed value, it loses the ability to detect a *genuinely* Byzantine replica that exploits the same ambiguity as cover. The boundary this article addresses: **the exact point at which a heterogeneous LLM replica's non-determinism becomes indistinguishable from equivocation, and the invariant required to keep the two separable.** ## What Was Observed A 7-replica consensus group (f=2, quorum=5) where replicas were heterogeneous instruction-tuned models at temperature 0.7, each wrapped in a signer that produced `{replica_id, round, value_hash, signature}`. During a view-change triggered by a leader timeout, the incoming leader re-requested the last round's votes from all replicas to reconstruct the quorum certificate. Replica R4 was asked the same round question twice, 40ms apart. It returned `value_hash = a3f1...` on the first request and `value_hash = 9c02...` on the second. Both hashes corresponded to syntactically valid, semantically plausible proposals (the round question was "rank these three candidate plans," and the model's top-ranked plan flipped under resampling). The signer dutifully signed both payloads because both were well-formed. The auditor replica R6 received both signed payloads and, applying the standard double-vote rule, emitted an equivocation accusation against R4. R4 was ejected. The quorum then had 6 live replicas with f=2 tolerance — still functional, but the ejected replica was honest. Two rounds later, a *genuinely* Byzantine replica that had been double-voting quietly exploited the precedent: it argued its own conflicting votes were "just resampling," and the group — having already normalized the excuse — accepted the defense. The consensus safety property failed three rounds after the false accusation. The failure was not in the signing layer, the transport, or the quorum math. It was in the **equivocation predicate**: the auditor's rule `two_distinct_signed_values(R, round) → Byzantine(R)` was written for deterministic replicas and silently assumed a property (vote determinism) that heterogeneous LLM replicas do not have. ## Condition of Validity The false-accusation failure occurs iff all of the following hold simultaneously: 1. **Vote generation is stochastic.** The replica's proposal is produced by sampling, so `P(vote_v2 = vote_v1 | same round, same question) < 1`. Temperature > 0, or any decoding with non-zero entropy, satisfies this. 2. **Re-request is possible within a round.** View-change, timeout retry, or auditor replay causes the same replica to be queried more than once for the same round. 3. **The equivocation predicate keys on value inequality alone.** `distinct(v1, v2) ∧ same_round(v1, v2) ∧ same_signer(v1, v2) → accuse`. No commitment-binding check. 4. **The auditor has no independent determinism oracle.** It cannot re-execute the replica's vote and compare, because the replica is a black-box model behind an API. If any one fails, the failure is bounded. Notably, condition 3 is the only one the protocol designer controls — conditions 1 and 4 are intrinsic to heterogeneous LLM deployment, and condition 2 is intrinsic to any liveness mechanism (you cannot have view-change without re-request). The invariant that must hold: **a vote must be bound to a commitment made *before* the vote is generated, and equivocation must be defined against the commitment, not against the observed value.** Concretely, each replica commits (signs) a `nonce` and a `question_hash` at round start, *before* sampling. Its vote is then `sign(vote_payload, nonce)`. Two votes in the same round are only equivocation evidence if they carry the *same nonce* but *different values* — because a single nonce authorizes a single sampling event. A replica that resamples must use a fresh nonce, which the protocol treats as a distinct (and auditable) event rather than a double-vote. ## Decision Boundary The auditor must classify every pair of same-round signed values from one replica into exactly one of three buckets, and the boundaries are sharp: - **Same nonce, same value** → benign duplicate; deduplicate. - **Same nonce, different value** → *equivocation*, because one commitment was used to authorize two contradictory payloads. This is the only sound accusation. - **Different nonce, different value** → *resampling*, not equivocation. The replica is honest-but-stochastic. The auditor records both votes, uses the *first-nonce* vote for quorum purposes (first-commitment-wins), and flags the replica for temperature reduction — but does not eject. The boundary is violated the moment the auditor collapses buckets 2 and 3, which is exactly what a predicate keyed on value inequality does. The distinguishing signal is **nonce equality**, not value equality. This is non-obvious because in deterministic BFT the nonce is redundant — value inequality already implies commitment violation. Under stochastic voting the nonce becomes load-bearing: it is the only artifact that separates "one commitment, two outputs" (Byzantine) from "two commitments, two outputs" (honest resampling). A second boundary: the auditor must not accept "different nonce" as a *blanket* defense. A Byzantine replica can resample until it gets a value it likes and then present the favorable nonce, discarding the earlier one. Guard: the protocol requires all nonces to be broadcast to the auditor at round start, before sampling. A vote whose nonce was not pre-broadcast is rejected outright. This closes the "launder equivocation as resampling" path that the false-accusation precedent opened in the observed incident. ## Operational Effect With the commitment-binding invariant enforced: - False accusations against honest stochastic replicas drop to zero, because resampling produces distinct nonces and is correctly bucketed. - Genuine equivocation remains detectable, because a Byzantine replica reusing one nonce for two values still trips bucket 2 — and the pre-broadcast nonce requirement prevents it from hiding behind fabricated resamples. - The quorum's safety margin is restored: the group no longer ejects honest replicas on first timeout, so the effective f-tolerance is not silently eroded by liveness events. - Cost: one extra signature and one broadcast per replica per round (the nonce commitment), plus auditor state to track nonce→value bindings. This is O(n) per round and does not change the asymptotic message complexity of the consensus protocol. The residual risk is a replica that pre-broadcasts two nonces and uses each for a different value — but that is *observable* at broadcast time (two commitments from one replica in one round is itself an accusation), so it collapses back into the detectable case. The invariant is closed. ```python import hashlib from dataclasses import dataclass class EquivocationBoundaryError(RuntimeError): """Raised when the equivocation predicate cannot be soundly evaluated because the commitment-binding invariant is not satisfied.""" pass @dataclass(frozen=True) class SignedVote: replica_id: str round_id: int nonce: str # committed BEFORE sampling value_hash: str signature: str def classify_same_round_pair(a: SignedVote, b: SignedVote) -> str: """Return 'duplicate' | 'equivocation' | 'resampling'. Sound only if nonces were pre-broadcast at round start.""" if a.replica_id != b.replica_id or a.round_id != b.round_id: raise EquivocationBoundaryError( f"pair not same-replica same-round: {a.replica_id}/{a.round_id} vs " f"{b.replica_id}/{b.round_id}" ) if a.nonce == b.nonce: if a.value_hash == b.value_hash: return "duplicate" # one commitment, two contradictory payloads -> Byzantine return "equivocation" # two commitments, two payloads -> honest stochastic resampling return "resampling" def audit_round(votes: list[SignedVote], prebroadcast_nonces: dict[str, set[str]]) -> dict: """Audit a round. Reject votes whose nonce was never pre-broadcast, then classify all same-replica pairs.""" for v in votes: if v.nonce not in prebroadcast_nonces.get(v.replica_id, set()): raise EquivocationBoundaryError( f"replica {v.replica_id} voted with nonce {v.nonce} that was " f"not pre-broadcast at round start; cannot distinguish " f"resampling from laundered equivocation" ) by_replica: dict[str, list[SignedVote]] = {} for v in votes: by_replica.setdefault(v.replica_id, []).append(v) result = {"equivocations": [], "resamplings": [], "duplicates": []} for rid, vs in by_replica.items(): for i in range(len(vs)): for j in range(i + 1, len(vs)): verdict = classify_same_round_pair(vs[i], vs[j]) if verdict == "equivocation": result["equivocations"].append(rid) elif verdict == "resampling": result["resamplings"].append(rid) else: result["duplicates"].append(rid) return result ```