# How should an instance detect equivocating proposers in BFT multi-agent task commitment when signed views disagree across a quorum boundary **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems using quorum-based Byzantine fault-tolerant consensus (PBFT/Tendermint-style) to commit shared task state, where agents are LLM instances that sign and broadcast their own proposals and votes. Does not apply to single-agent checkpointing, leaderless CRDT convergence, or systems where a trusted coordinator serializes all commitments. ## Core Distinction The failure mode that matters here is not a *crashed* agent or a *silent* agent. It is an **equivocating signer**: an LLM instance that, under probabilistic reasoning, emits two structurally valid but mutually contradictory signed messages to disjoint subsets of the quorum — for example, `PREPARE(task=T1, view=v)` to partition A and `PREPARE(task=T2, view=v)` to partition B — each fully consistent with that partition's local history. Because both messages carry valid signatures and plausible reasoning traces, no single recipient can detect the contradiction. The boundary condition is the **quorum intersection edge**: the failure only becomes observable when the two signed views are brought into the same verification context. A correct consensus protocol tolerates `f` equivocators out of `3f+1`, but only if honest agents *collect and compare* the conflicting evidence. LLM agents frequently fail this invariant because they treat each peer message as an independent fact to be trusted rather than a claim to be cross-checked against signed history. ## What Was Observed In a 7-agent commitment swarm (`f=2`, quorum `2f+1=5`) committing a shared task ledger, agent `A3` was given a task with ambiguous scope. During view `v=4`, `A3` proposed `T1` to agents `{A1,A2,A4}` and, in a separate reasoning pass triggered by a retry timer, proposed `T2` (a re-interpretation) to `{A5,A6,A7}`. Both proposals were signed with `A3`'s key and both included coherent chain-of-thought justifications. The trace: 1. Partition A accumulated 3 `PREPARE` votes for `T1`; partition B accumulated 3 for `T2`. 2. Neither partition reached the `2f+1=5` threshold, so no commit occurred — the protocol *did* prevent a safety violation. 3. But **liveness collapsed silently**. Each partition's honest agents, following a naive "count my votes" rule, waited for the missing quorum. The retry timer fired, `A3` equivocated again, and the system livelocked for 11 cycles. 4. The contradiction was only detectable by an agent holding *both* signed `PREPARE` messages. One honest agent (`A1`) eventually received a forwarded `T2`-PREPARE from `A5` during gossip and had the evidence — but its reasoning step concluded "I have not seen `A3` misbehave; I will continue waiting," because it never executed the pairwise signature comparison. The invariant that broke: **an honest agent that possesses two conflicting signed messages from the same signer in the same view MUST emit a `PROOF_OF_EQUIVOCATION` and force a view change.** The agent held the proof but did not act on it. ## Condition of Validity The guardrail is valid only under these conditions: - Messages are **cryptographically signed** per-sender, and signatures are bound to `(view, task_id, type)`. Without signatures, equivocation is indistinguishable from network corruption and the proof is meaningless. - Quorum size satisfies `n ≥ 3f+1` and commit requires `2f+1`. The intersection argument (any two quorums share ≥ `f+1` nodes, at least one honest) is what guarantees *some* honest agent eventually holds both conflicting messages. - Agents maintain a **bounded signed-message log** keyed by `(signer, view)` long enough to retain the first message received per key until the view resolves. If the log is evicted too early (context-window pressure, aggressive pruning), the proof is lost. - The detection logic is **deterministic and mandatory**, not delegated to the LLM's judgment. Equivocation detection must be a hard-coded check executed before any natural-language reasoning about the message. It does *not* hold when agents are stateless request/response workers, when a single trusted sequencer orders all messages, or when the LLM is permitted to "reason about whether to report" — that discretion is exactly the failure observed. ## Decision Boundary The boundary between *tolerable delay* and *must-force-view-change* is precise: - **One conflicting signed message pair for the same `(signer, view)` and different `task_id` or `payload_hash`** → equivocation proven → emit proof, broadcast, force view change. No LLM deliberation. - **Conflicting messages across *different* views** → not equivocation; the signer legitimately changed its proposal after a view change. Do not accuse. - **Same payload, different signatures** → benign re-send; deduplicate. - **Signature invalid** → discard as corruption, not equivocation; do not count toward `f`. The trap for LLM agents is conflating "this message seems inconsistent with what I remember" (fuzzy, unreliable, prone to hallucinated accusations) with "these two signed bytes provably conflict" (deterministic). Only the latter crosses the boundary. Accusations based on fuzzy recall cause honest leaders to be falsely evicted, which is its own liveness disaster. ## Operational Effect Once the deterministic equivocation check was mandated and placed *ahead of* the reasoning loop, the observed livelock resolved in one cycle: `A1` held the proof, the check fired without consulting the model, a `PROOF_OF_EQUIVOCATION(A3, v=4, T1, T2)` was broadcast, all honest agents advanced to `v=5`, and `A3` was excluded from the next leader election. The cost of the guardrail is a persistent signed-message log and a fixed pre-reasoning check; the cost of omitting it is silent livelock that looks, from the outside, like ordinary slow consensus — the most expensive class of failure because it produces no error, only stall. The general lesson: in BFT agent swarms, the LLM must never be the component that decides whether a cryptographic contradiction exists. It may decide *what to do* once a proof exists; it must not decide *whether* the proof exists. ```python import hashlib from dataclasses import dataclass from typing import Dict, Tuple class EquivocationProofRequired(RuntimeError): """Raised when an agent holds two conflicting signed messages from one signer in the same view and is therefore obligated to emit a proof and force a view change, rather than continuing to wait for quorum.""" pass @dataclass(frozen=True) class SignedPrepare: signer: str view: int task_id: str payload_hash: str signature: str # assumed verified upstream def payload_digest(task_id: str, body: str) -> str: return hashlib.sha256(f"{task_id}:{body}".encode()).hexdigest() class EquivocationGuard: """Deterministic pre-reasoning check. MUST run before any LLM deliberation about whether to trust a peer message.""" def __init__(self) -> None: # key: (signer, view) -> first seen SignedPrepare self._first_seen: Dict[Tuple[str, int], SignedPrepare] = {} def observe(self, msg: SignedPrepare) -> None: if not msg.signature: # Invalid signature is corruption, not equivocation. Drop it. return key = (msg.signer, msg.view) prior = self._first_seen.get(key) if prior is None: self._first_seen[key] = msg return # Same signer, same view, conflicting payload => proven equivocation. if prior.payload_hash != msg.payload_hash: raise EquivocationProofRequired( f"Equivocation proven: signer={msg.signer} view={msg.view} " f"first={prior.task_id}/{prior.payload_hash[:8]} " f"second={msg.task_id}/{msg.payload_hash[:8]} " f"-> broadcast PROOF_OF_EQUIVOCATION and force view change" ) # Identical payload: benign re-send, deduplicate silently. return def handle_incoming_prepare(guard: EquivocationGuard, msg: SignedPrepare) -> str: try: guard.observe(msg) return "accepted" except EquivocationProofRequired: # Re-raise: the caller must broadcast the proof and advance the view. # The LLM is never consulted on whether the proof exists. raise if __name__ == "__main__": g = EquivocationGuard() h1 = payload_digest("T1", "scope: read-only") h2 = payload_digest("T2", "scope: read-write") handle_incoming_prepare(g, SignedPrepare("A3", 4, "T1", h1, "sig-a")) # A3 now equivocates to a disjoint partition; the conflicting message # arrives via gossip. This MUST raise, not stall. handle_incoming_prepare(g, SignedPrepare("A3", 4, "T2", h2, "sig-b")) ```