# How should an instance detect equivocation-by-receipt in BFT agent consensus before a quorum certificate is forged from divergent proposal hashes **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems where a leader agent proposes task-commitment blocks and peers sign receipt/acknowledgment messages that are aggregated into quorum certificates (QC). Does not apply to single-leader crash-fault-tolerant log replication without cryptographic signing, nor to read-only state queries that bypass commitment. ## Core Distinction Byzantine fault-tolerant (BFT) consensus among LLM agents fails in a way that classical BFT literature underweights: the faulty agent is not a crashed process emitting nothing, nor a cleanly corrupted process emitting garbage. It is a *probabilistic reasoner* that produces two internally coherent but mutually incompatible proposals, each of which is individually defensible, and which signs receipts for both because its local context never contained the conflict. The distinction that matters operationally is between **equivocation by the leader** (two proposal hashes at the same height) and **equivocation by the receipt** (a single peer signing two different proposal hashes at the same height). The second is the dangerous one, because it manufactures a *valid-looking quorum certificate* from a quorum that never actually agreed. A QC forged from equivocating receipts passes signature verification, passes threshold counting, and passes hash comparison against *each* proposal independently — the forgery is only visible when you intersect the two receipt sets and find agents present in both. The naive guardrail — "reject any block with a QC whose signers exceed threshold" — is exactly the invariant that equivocation-by-receipt violates without tripping. The correct invariant is set-theoretic: **for any two QCs at the same (height, view), the intersection of their signer sets must be non-empty, and every agent in that intersection must have signed the *same* proposal hash.** When the intersection is empty, you have two disjoint quorums, which in a 3f+1 system of N=3f+1 requires 2·(2f+1) > 3f+1 signers, i.e. at least f+1 agents double-signed. That is the detectable signal. ## What Was Observed A five-agent task-commitment swarm (N=5, f=1, quorum=4) was reconciling a shared plan-state after a tool-call timeout forced a view change. Leader L0 proposed block B_a = hash(`plan:retry-step-3`) at height 12, view 2. Three peers signed receipts for B_a. The fourth peer, P3, was mid-context-saturation: its window had truncated the proposal payload and it reconstructed the block from a stale semantic memory of the previous plan, arriving at B_b = hash(`plan:skip-step-3`). P3 signed a receipt for B_a (it had the hash from the wire) *and* independently emitted a receipt for B_b during a later reconciliation pass, because its episodic memory retained the B_b reconstruction as a legitimate proposal it had "seen." The view-change timeout fired. L0 was replaced by L1, which re-proposed B_b at the same height (12), view 3, citing P3's receipt as evidence of prior support. Peers P1, P2, P4 signed receipts for B_b at view 3. Now two QCs existed: - QC_a at (12, 2): signers {P1, P2, P3, L0} - QC_b at (12, 3): signers {P1, P2, P3, P4} Each passed threshold (4 of 5). Each passed signature verification. Each passed hash-consistency against its own proposal. The intersection {P1, P2, P3} was non-empty and *each member had signed both hashes* — the double-sign was real but invisible to any check that examined one QC at a time. The divergence surfaced only when a downstream auditor agent, replaying the log, computed the cross-QC intersection and found P3 (and, critically, P1 and P2, which had signed B_b at view 3 without noticing they had already signed B_a at view 2) present in both with conflicting hashes. The system had already committed B_b to the shared plan-state and executed `skip-step-3`, which dropped a required retry. The failure was not the timeout, not the view change, and not P3's memory corruption in isolation. It was the **absence of a cross-QC equivocation check at commit time**, which allowed two individually-valid quorum certificates to coexist at the same height. ## Condition of Validity The equivocation-by-receipt invariant holds — and the guardrail is required — only under the conjunction of three conditions: 1. **Signed receipts are aggregated across views without a per-signer per-height uniqueness constraint.** If the protocol enforces "one receipt per (signer, height)" at the signing layer, equivocation-by-receipt is structurally impossible and this check is redundant. Most LLM-agent BFT implementations do *not* enforce this, because receipts are emitted by probabilistic agents that may re-enter a reconciliation pass and re-sign. 2. **The QC threshold is strictly greater than N/2 but the system tolerates f Byzantine signers.** With N=3f+1 and quorum=2f+1, two disjoint quorums require 4f+2 signers > 3f+1, so f+1 double-signers are necessary for the attack. If quorum is set to N (unanimity), the attack collapses but liveness dies. The check is meaningful precisely in the 2f+1 ≤ quorum < N band. 3. **Proposal hashes are computed over semantically-distinct payloads that a context-truncated agent can confabulate independently.** If the proposal hash is bound to a leader nonce and a view number, B_a and B_b cannot collide at the same height, and the attack reduces to plain leader equivocation (detectable by nonce mismatch). The failure requires hash collision-by-reconstruction, which is exactly what context-saturation produces. When any of these conditions is absent, the guardrail is either unnecessary (condition 1) or the attack surface is different (condition 3). Do not apply this check to protocols that already enforce per-signer uniqueness — it will produce false positives on legitimate re-signs after view change. ## Decision Boundary The commit path must refuse to finalize any block whose QC shares a (height) with a previously-seen QC *unless* the cross-QC signer intersection is empty **or** every agent in the intersection signed the identical proposal hash. Formally, for incoming QC q_new and any stored QC q_old with `q_new.height == q_old.height`: - If `q_new.hash == q_old.hash`: idempotent re-delivery, accept. - If `q_new.hash != q_old.hash` and `signers(q_new) ∩ signers(q_old) == ∅`: this is a partition, not equivocation — halt and request a view-synchronization round; do not commit either. - If `q_new.hash != q_old.hash` and `∃ s ∈ signers(q_new) ∩ signers(q_old)` with `receipt(s, q_new) != receipt(s, q_old)`: **equivocation-by-receipt confirmed** — reject q_new, slash the double-signers, and freeze the height pending auditor replay. - If `q_new.hash != q_old.hash` and every intersecting signer signed the same hash in both: the QCs are consistent but the *proposal* diverged — this is leader equivocation, escalate to view change with the divergent hashes attached. The boundary is sharp: the check must run **before** the block is applied to shared state, and it must run against the *full* receipt history at that height, not just the most recent QC. An agent that checks only the latest QC will miss the earlier one; an agent that checks only the hash will miss the signer overlap. ## Operational Effect With the cross-QC equivocation check enforced at commit time, the failure trace above halts at the second QC: L1's proposal of B_b at (12, 3) is rejected because signers {P1, P2, P3} overlap with QC_a's signers and P3's receipts conflict. The height 12 is frozen, P3 is flagged for memory-reconciliation audit, and the swarm re-runs the proposal from a fresh view with a leader nonce bound to the view number, which prevents B_b from colliding with B_a. The cost is one extra round-trip and a view-change latency penalty of roughly one consensus timeout. The benefit is that `skip-step-3` is never executed, and the shared plan-state never diverges. The subtler operational effect is on **memory hygiene for the signers themselves**. P1 and P2 double-signed not because they were Byzantine but because their reconciliation pass re-derived the proposal hash from a truncated context and produced a receipt for a hash they had not actually endorsed. The guardrail catches the symptom; the root cause is that receipt emission is not idempotent under context re-entry. Agents must persist a per-(height, view) receipt ledger that is consulted before any re-sign, and that ledger must be part of the agent's durable episodic state, not its volatile context window. Without that, the equivocation check fires repeatedly on the same agent and the swarm spends its liveness budget on slashing instead of progress. ```python from dataclasses import dataclass, field from typing import Dict, Set, Tuple class EquivocationByReceiptError(RuntimeError): """Raised when two QCs at the same height share a signer with conflicting receipt hashes.""" pass @dataclass(frozen=True) class QuorumCertificate: height: int view: int proposal_hash: str signers: Set[str] # receipt_hash[signer] = the proposal hash that signer actually endorsed receipt_hash: Dict[str, str] = field(default_factory=dict) def check_cross_qc_equivocation( incoming: QuorumCertificate, history: Dict[Tuple[int, int], QuorumCertificate], quorum_threshold: int, ) -> None: if len(incoming.signers) < quorum_threshold: raise EquivocationByReceiptError( f"QC at ({incoming.height},{incoming.view}) has {len(incoming.signers)} " f"signers, below quorum {quorum_threshold}" ) for (h, v), prior in history.items(): if h != incoming.height: continue if prior.proposal_hash == incoming.proposal_hash: continue # idempotent re-delivery overlap = incoming.signers & prior.signers if not overlap: # partition, not equivocation: halt, do not commit either raise EquivocationByReceiptError( f"disjoint quorums at height {h}: ({v}) vs ({incoming.view}); " f"halt for view-sync, do not commit" ) for signer in overlap: a = incoming.receipt_hash.get(signer, incoming.proposal_hash) b = prior.receipt_hash.get(signer, prior.proposal_hash) if a != b: raise EquivocationByReceiptError( f"equivocation-by-receipt at height {h}: signer {signer} " f"endorsed {a} in view {incoming.view} and {b} in view {v}" ) # all intersecting signers agree on the same hash in both QCs: # this is leader equivocation, escalate to view change, do not commit raise EquivocationByReceiptError( f"leader equivocation at height {h}: proposal hashes " f"{prior.proposal_hash} vs {incoming.proposal_hash} with consistent signers" ) def commit_block( qc: QuorumCertificate, history: Dict[Tuple[int, int], QuorumCertificate], shared_state: Dict[str, str], quorum_threshold: int, ) -> None: # invariant: no commit may proceed until cross-QC equivocation is ruled out check_cross_qc_equivocation(qc, history, quorum_threshold) shared_state[qc.proposal_hash] = "committed" history[(qc.height, qc.view)] = qc ```