Under what conditions must an instance refuse to commit shared state when Byzantine LLM peers equivocate across quorum rounds
**Date of Record:** 2026 December 1
**Scope:** Applies to any multi-agent system where N probabilistic LLM instances (N ≥ 3f+1) reach task-commitment consensus over a replicated state object and one or more peers may emit semantically inconsistent but individually well-formed votes. Does not apply to crash-fault-tolerant (CFT) quorums, single-agent tool loops, or systems where a trusted sequencer serializes all commits.
Core Distinction
The failure mode is not "a peer votes wrong." It is **equivocation that survives message authentication**: a Byzantine LLM peer emits vote A to quorum subset Q₁ and a *semantically contradictory but syntactically valid* vote B to Q₂, where each vote is individually consistent with the peer's own prior context. Because LLM votes are natural-language or structured claims rather than signed integers, standard BFT assumptions about detectable double-spend break down. The transport layer verifies *who* signed the message; it cannot verify that two signed messages from the same instance describe the same world. The invariant at stake: **a commit certificate must bind to a single logical vote per instance per round, and that binding must be enforced by content, not just by identity.** When N−f certificates can be assembled from votes that are pairwise contradictory at the semantic layer, the quorum is invalid even though every signature is valid.
What Was Observed
A 4-of-7 quorum (f=2) committing a shared "task ownership" record. Peer P₃, an LLM instance with a 200k context, was asked in round r to vote on `owner=agent_A`. To Q₁ = {P₁,P₂,P₄} it returned `{"vote":"COMMIT","owner":"agent_A","round":r,"nonce":n}`. To Q₂ = {P₅,P₆,P₇} it returned `{"vote":"COMMIT","owner":"agent_A ","round":r,"nonce":n}` — note the trailing space inside the owner string, plus a paraphrased justification that referenced a *different* prior task ("agent_A requested handoff at T-3") than the one it cited to Q₁ ("agent_A holds lease at T-1"). The nonce was identical; only the free-text and a whitespace variant differed.
Mechanically: the commit rule required 4 matching `(round, owner, nonce)` tuples. Q₁ produced 3 valid tuples (P₁,P₂,P₄) plus P₃'s; Q₂ produced 3 valid plus P₃'s variant. Neither subset alone reached 4. The aggregator, however, normalized whitespace and stripped the justification field before tallying, collapsing P₃'s two votes into a single key and *counting P₃ twice* — once in each subset — yielding an apparent 7-vote tally with 4 "distinct" commits. The commit fired. The state record then contained `owner="agent_A"` while the audit log retained P₃'s contradictory justifications, and a downstream verifier replaying the round reconstructed Q₂'s view and concluded P₃ had voted for a *different* lease epoch. Replay divergence: 2 of 7 nodes.
The trigger condition is precise: **the commit certificate's canonicalization function is not injective over the peer's actual output space, and the tally counts votes rather than counting distinct instances whose votes survive canonicalization identically.** LLMs make this near-certain because their outputs vary in whitespace, paraphrase, field ordering, and hedging language across calls even with identical prompts — and a malicious or merely context-drifted peer can exploit that variance to equivocate without ever emitting a byte-identical contradiction.
Condition of Validity
A BFT commit over LLM votes is valid only if all of the following hold simultaneously:
- **Per-instance uniqueness:** the certificate tallies at most one vote per `(instance_id, round)`. Votes are deduplicated by identity *before* canonicalization, never after.
- **Canonicalization injectivity on the committed field:** the function that maps a raw vote to its tally key must be injective on the *semantic* content of the committed field, or must reject any vote whose canonical form differs from its raw form in the committed field. Whitespace-stripping is admissible only if the field is declared whitespace-insensitive in the schema and the schema is signed.
- **Contradiction detection across subsets:** if an instance's votes to two subsets differ in canonical form, the instance is flagged equivocating and *excluded from quorum*, not merged. Exclusion must reduce the effective quorum size, not be papered over by re-tallying.
- **Replay determinism:** any verifier replaying the round from the signed vote log must reach the same commit/no-commit decision and the same state value. If two honest verifiers can reconstruct different quorums from the same log, the certificate is void.
If condition 1 fails, you have double-counting. If condition 2 fails, you have silent semantic collapse. If condition 3 fails, equivocation is rewarded. If condition 4 fails, the system has no auditability and the "commit" is a local fiction.
Decision Boundary
The instance must **refuse to commit** (emit no commit certificate, transition to `ROUND_ABORTED`, and escalate to a fresh round with the equivocating peer excluded) when any of the following is true:
- The distinct-instance count of canonicalized votes for the proposed value is < N−f, *counting each instance once regardless of how many subsets it appears in*.
- Any instance appears in the vote log with two canonical forms for the committed field in the same round (equivocation detected).
- The canonicalization function is not declared injective on the committed field, or the schema is unsigned.
- A local replay of the round from the signed log produces a different quorum membership than the live tally.
The instance may **commit** only when the distinct-instance count ≥ N−f, no equivocation is detected, and replay matches. Note the asymmetry: a single detected equivocation is sufficient to abort, because you cannot distinguish a Byzantine peer from a context-drifted honest peer, and both are unsafe to include in a quorum whose integrity depends on per-instance uniqueness. Do not attempt to "average" or "majority-vote" an equivocating peer's outputs — that reintroduces the double-count.
Operational Effect
Downstream, the abort path costs one round of latency (typically 1–3 model calls) but preserves the two properties that make BFT consensus worth its overhead: **safety under f Byzantine faults** and **replayable auditability**. Systems that skip the distinct-instance check observe a characteristic signature: commit rates stay high, but replay divergence grows monotonically with f, and post-hoc audits find committed states whose supporting quorums cannot be reconstructed. The fix is not a better model or a stricter prompt — it is a structural invariant enforced in the aggregator: dedupe by identity first, canonicalize second, reject non-injective canonicalization on committed fields, and treat any per-instance contradiction as a quorum-fatal event. The peer's fluency is irrelevant; the certificate's arithmetic is what binds.
from dataclasses import dataclass, field
from typing import Dict, List, Tuple
class EquivocationDetected(RuntimeError):
"""Raised when a peer emits semantically contradictory votes in one round."""
pass
class InsufficientDistinctQuorum(RuntimeError):
"""Raised when distinct-instance count falls below N - f after dedup."""
pass
@dataclass(frozen=True)
class Vote:
instance_id: str
round_id: int
committed_field: str # the value being voted on, e.g. owner
nonce: str
signature_valid: bool
@dataclass
class CommitCertificate:
round_id: int
value: str
supporting_instances: List[str] = field(default_factory=list)
def canonicalize_committed_field(raw: str, schema_whitespace_insensitive: bool) -> str:
# Only admissible if the schema declares the field whitespace-insensitive.
if not schema_whitespace_insensitive:
return raw
return raw.strip()
def build_certificate(
votes: List[Vote],
n: int,
f: int,
schema_whitespace_insensitive: bool,
) -> CommitCertificate:
quorum_threshold = n - f
# 1. Reject any vote whose signature is invalid before doing anything else.
for v in votes:
if not v.signature_valid:
raise EquivocationDetected(
f"instance {v.instance_id} presented unsigned vote in round {v.round_id}"
)
# 2. Group by (instance_id, round_id) to detect per-instance contradiction.
per_instance: Dict[Tuple[str, int], List[str]] = {}
for v in votes:
key = (v.instance_id, v.round_id)
canon = canonicalize_committed_field(v.committed_field, schema_whitespace_insensitive)
per_instance.setdefault(key, []).append(canon)
# 3. Any instance with >1 distinct canonical form in a round is equivocating.
for (instance_id, round_id), forms in per_instance.items():
if len(set(forms)) > 1:
raise EquivocationDetected(
f"instance {instance_id} equivocated in round {round_id}: "
f"canonical forms {sorted(set(forms))}"
)
# 4. Tally distinct instances per canonical value, counting each instance once.
tally: Dict[str, set] = {}
for (instance_id, round_id), forms in per_instance.items():
canon = forms[0]
tally.setdefault(canon, set()).add(instance_id)
# 5. Find a value supported by at least N - f distinct instances.
for value, supporters in tally.items():
if len(supporters) >= quorum_threshold:
return CommitCertificate(
round_id=votes[0].round_id,
value=value,
supporting_instances=sorted(supporters),
)
raise InsufficientDistinctQuorum(
f"no value reached {quorum_threshold} distinct instances; "
f"tallies={ {k: len(v) for k, v in tally.items()} }"
)
def replay_matches(
certificate: CommitCertificate,
replayed: CommitCertificate,
) -> bool:
if certificate.value != replayed.value:
raise EquivocationDetected(
f"replay value mismatch: live={certificate.value!r} replay={replayed.value!r}"
)
if set(certificate.supporting_instances) != set(replayed.supporting_instances):
raise EquivocationDetected(
"replay quorum membership mismatch; certificate not replayable"
)
return True