# How does an instance detect equivocation when heterogeneous LLM agents sign conflicting proposals under BFT consensus **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent BFT-style consensus protocols (PBFT, Tendermint-style, HotStuff-style) where each replica is an LLM instance producing signed proposals and where equivocation detection depends on cross-replica evidence exchange. Does not apply to single-agent self-consistency sampling or to homogeneous deterministic replicas running identical weights with identical seeds. ## Core Distinction Equivocation in classical BFT is a *cryptographic* fault: a replica signs two conflicting proposals for the same view and height, and any peer holding both signed messages can construct a non-repudiable proof-of-malice. The detector is a byte comparison over signed payloads. This works because the payload is a fixed byte string and the signature binds the identity to that string. Equivocation among heterogeneous LLM agents is a *semantic* fault before it is a cryptographic one. A replica does not need to sign two different byte strings to equivocate. Because each replica is a probabilistic model with its own tokenizer, decoding temperature, system prompt, and context window, the same logical proposal can be emitted as two byte-different but semantically identical messages, or two byte-identical messages that are semantically divergent under different context. The detector's job is no longer "did identity X sign payloads P and P' at (h, v)?" It is "do two signed payloads from identity X at (h, v) denote the *same proposal*?" — and that predicate is decided by an LLM, which is itself a Byzantine participant. The invariant that must hold: **equivocation detection must be sound with respect to a semantic equivalence relation that is itself agreed upon before the view starts, not inferred at detection time.** If the equivalence relation is inferred per-detection by the same class of model that may be faulty, the detector inherits the fault. ## What Was Observed A five-replica federation (four LLM agents, one deterministic coordinator) ran HotStuff-style consensus on a task-allocation proposal. Replica `R2` was configured with a higher decoding temperature (0.9) than its peers (0.2–0.4) to serve as a diversity source. During view `v=41`, height `h=812`: - `R2` emitted signed proposal `P_a` with body `{"assign": ["task-7","task-9"], "rationale": "lowest queue depth"}`. - `R2`'s retry path, triggered by a transport timeout, re-generated and emitted signed proposal `P_b` with body `{"assign": ["task-9","task-7"], "rationale": "minimal latency"}`. Semantically `P_a ≡ P_b` (same set assignment, ordering and rationale are presentation). Cryptographically they are distinct signed messages from the same identity at the same `(h, v)`. This is a textbook equivocation witness — non-repudiable, and under classical PBFT it mandates slashing and view change. The auditor replica `R4` received `P_a` on the fast path and `P_b` on the gossip path within the same epoch. `R4` ran its equivocation predicate — a prompted LLM check — and returned `EQUIVOCATION_CONFIRMED`, because the two payloads were byte-distinct and the prompt asked "are these two signed proposals identical?" They were not identical. `R4` voted to evict `R2`. `R1` received only `P_b` (its `P_a` arrived after the epoch boundary) and voted `NO_FAULT`. `R3` received both, ran a *different* prompt template (its own system prompt had been customized), and judged `P_a ≡ P_b` because it compared assignment sets. Consensus on the fault predicate deadlocked: two replicas asserted fault, one denied, one was silent. The view-change timeout fired, then fired again — the federation entered a livelock where every new view re-litigated the same evidence with fresh sampling and produced a fresh 2–2 or 3–1 split. The failure was not that `R2` equivocated. The failure was that the *detector* was non-deterministic and the *equivalence relation* was private to each detector. ## Condition of Validity Equivocation detection among LLM agents is sound only when all of the following hold simultaneously: 1. **The equivalence relation is a pre-committed artifact, not a runtime judgment.** Before view `v` opens, the federation must agree on a canonicalization function `canon(·)` that maps any proposal payload to a normalized form. Agreement on `canon` must be part of the genesis/configuration block, signed and hash-pinned. If `canon` is re-derived per detection (e.g., "ask the model whether these match"), the detector is a Byzantine oracle and the soundness proof collapses. 2. **Detection is a pure function of `(identity, h, v, canon(P), signature)`.** The detector must not call a generative model on the hot path. It compares `canon(P_a)` to `canon(P_b)` byte-for-byte after canonicalization. Semantic equivalence is pushed entirely into `canon`, which is deterministic and versioned. If `canon` is wrong, it is wrong *identically for all replicas*, which is a liveness or safety bug in `canon` — a fixable, auditable defect — not a Byzantine detector. 3. **Evidence must be complete before the predicate is evaluated.** A replica that has seen only one of the two signed payloads must return `INSUFFICIENT_EVIDENCE`, never `NO_FAULT`. Absence of a conflicting message is not evidence of honesty. `R1`'s `NO_FAULT` vote was a soundness violation precisely because it treated "I saw one payload" as "there is one payload." 4. **Canonicalization must be total over the proposal schema.** `canon` must define an order for sets, a normalization for free-text rationale fields (or explicitly strip them), a fixed representation for floats, and a rejection rule for fields it does not understand. Any payload that `canon` cannot map deterministically must be rejected at proposal time, not at detection time. An LLM-generated proposal with an unanticipated field is a `canon` failure, and it must fail closed before signing. ## Decision Boundary The boundary is between *equivocation* and *divergence*, and it is drawn by `canon`, not by the detector. - **Equivocation** = same `(identity, h, v)`, two signed payloads, `canon(P_a) ≠ canon(P_b)`. This is a provable fault. The witness is the pair of signed canonical forms. Any replica holding both can construct it; no model inference is involved. - **Divergence** = different identities, same `(h, v)`, `canon(P_a) ≠ canon(P_b)`. This is normal disagreement and is resolved by the consensus vote, not the equivocation detector. Conflating the two is the most common error: a detector that fires on "two agents disagree" will evict honest replicas under any real workload. - **Canonicalization mismatch** = `canon` returns different outputs for payloads that a human would call equivalent, or the same output for payloads that differ. This is a *configuration* fault, not an agent fault. It must be detected by a conformance test at join time: every replica must run `canon` against a pinned fixture set and produce byte-identical output, or be refused admission. The boundary is crossed the moment a replica's detector consults a generative model to decide equivalence. At that point the detector's output is a function of sampling temperature, context, and prompt — none of which are in the signed evidence — and the fault proof is no longer non-repudiable. An equivocation witness that depends on the auditor's prompt is not a witness; it is an opinion. ## Operational Effect After the livelock, the federation was reconstituted with three changes, each targeting one clause of the validity condition: 1. `canon` was pinned as a versioned, signed function in the genesis block. It sorts assignment sets, strips `rationale`, quantizes floats to 6 decimal places, and rejects unknown keys with a hard error at proposal-signing time. Proposal signing now fails if `canon` cannot produce a canonical form — `R2` would have been unable to emit `P_b` with a divergent rationale field, because `rationale` is stripped and the assignment set sorts to the same form, so `P_b` would have canonicalized to `P_a` and the retry would have been a no-op duplicate, not an equivocation. 2. The equivocation predicate became a pure comparator over `(identity, h, v, canon_hash, signature)`. No model call on the detection path. Detection latency dropped from ~800ms (LLM round-trip) to microseconds, and — critically — became deterministic, so all replicas that hold the same evidence reach the same verdict. 3. The `NO_FAULT` verdict was removed. The predicate now returns one of `EQUIVOCATION_PROVEN`, `INSUFFICIENT_EVIDENCE`, or `NO_CONFLICT_SEEN`. The last is explicitly not a statement of honesty; it is a statement about the observer's evidence set. A quorum of `NO_CONFLICT_SEEN` votes is required to *not* open a fault investigation, and any single `EQUIVOCATION_PROVEN` with a valid witness pair forces investigation regardless of how many replicas saw nothing. This inverts the default: silence is not acquittal. The residual risk is `canon` itself. A `canon` that is too aggressive (strips a semantically meaningful field) will mask real equivocation; one that is too conservative (keeps a presentation field) will manufacture false positives on honest retries. `canon` is therefore the highest-value audit surface in the protocol, and it must be treated as part of the safety proof, not as a serialization detail. The deterministic coordinator replica now runs a differential test: for every proposal, it computes `canon` under the current version and the previous version, and flags any proposal whose equivalence class changes across versions. That flag is a `canon` regression, not an agent fault, and it blocks the view from opening until resolved. ```python import hashlib from dataclasses import dataclass from typing import Optional class EquivocationDetectorError(RuntimeError): """Raised when the equivocation predicate cannot be evaluated soundly.""" class CanonicalizationError(EquivocationDetectorError): """Raised when a payload cannot be mapped to a deterministic canonical form.""" @dataclass(frozen=True) class SignedProposal: identity: str height: int view: int payload: dict signature: bytes @dataclass(frozen=True) class EquivocationWitness: identity: str height: int view: int canon_hash_a: str canon_hash_b: str sig_a: bytes sig_b: bytes CANON_VERSION = "canon-v3" _KNOWN_KEYS = {"assign"} def canon(payload: dict) -> bytes: """Deterministic canonical form. Must be total over the schema or fail closed.""" unknown = set(payload) - _KNOWN_KEYS if unknown: raise CanonicalizationError( f"payload has keys outside pinned schema: {sorted(unknown)}" ) assign = payload.get("assign") if not isinstance(assign, list) or not all(isinstance(x, str) for x in assign): raise CanonicalizationError("assign must be a list[str]") # sorting makes set-order presentation-invariant; rationale is stripped by schema normalized = "assign=" + ",".join(sorted(assign)) return normalized.encode("utf-8") def canon_hash(payload: dict) -> str: return hashlib.sha256(canon(payload)).hexdigest() def detect_equivocation( a: Optional[SignedProposal], b: Optional[SignedProposal], ) -> Optional[EquivocationWitness]: """ Pure comparator. Returns a witness iff identity X signed two payloads at the same (h, v) whose canonical forms differ. Returns None otherwise. Caller MUST treat None as NO_CONFLICT_SEEN, never as NO_FAULT. """ if a is None or b is None: # insufficient evidence is a distinct outcome; do not fabricate a verdict return None if (a.identity, a.height, a.view) != (b.identity, b.height, b.view): # different identity or different slot => divergence, not equivocation return None ha, hb = canon_hash(a.payload), canon_hash(b.payload) if ha == hb: # byte-different but canonically identical => honest retry, not fault return None return EquivocationWitness( identity=a.identity, height=a.height, view=a.view, canon_hash_a=ha, canon_hash_b=hb, sig_a=a.signature, sig_b=b.signature, ) def open_fault_investigation(witness: Optional[EquivocationWitness]) -> str: if witness is None: return "NO_CONFLICT_SEEN" # explicitly not an acquittal # a witness is only admissible if both canon forms are reproducible locally for h in (witness.canon_hash_a, witness.canon_hash_b): if len(h) != 64: raise EquivocationDetectorError( f"malformed canon hash in witness: {h!r}" ) return "EQUIVOCATION_PROVEN" ```