# How does an instance detect equivocation by a peer agent when every signed commitment it receives is individually valid **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent task-commitment protocols where agents sign and broadcast commitments (vote/propose/accept messages) and a quorum threshold is used to finalize tasks. Does not apply to single-agent tool-use loops, or to consensus layers where a trusted sequencer orders all messages (there, equivocation is trivially detectable by the sequencer). ## Core Distinction The failure mode here is not forgery and not message loss. It is **equivocation**: a peer agent signs two mutually exclusive commitments at the same protocol height and sends each to a disjoint subset of the swarm. Each signature verifies. Each message is schema-valid. Each recipient's local view is internally consistent. The distinction that matters is between *message-level validity* (this signature is authentic) and *view-level consistency* (no two valid signed messages I hold contradict each other). Byzantine fault-tolerant consensus guarantees safety only if the honest majority can *detect and prove* equivocation to each other; the invariant is not "signatures are valid" but "for any two quorums, their intersection contains at least one honest agent who will refuse to sign both sides." An instance that only checks the former will happily finalize two conflicting task commitments. ## What Was Observed A four-agent swarm (A, B, C, D) committing a task assignment with threshold `f=1`, quorum `2f+1 = 3`. Agent B is Byzantine. At commitment height `h`, B signs `COMMIT(task=T1, h)` and sends it to A and C. B also signs `COMMIT(task=T2, h)` and sends it to C and D. Note C receives both. The trace: 1. A receives `COMMIT(T1,h)` from B, plus `COMMIT(T1,h)` from itself and from C → A assembles a 3-signature quorum for T1 and finalizes T1. 2. D receives `COMMIT(T2,h)` from B, plus its own and from C → D assembles a 3-signature quorum for T2 and finalizes T2. 3. C, the only agent that saw both, holds two individually valid signed messages from B with the same `(agent_id, height)` and different payloads. C's naive validator checks each message in isolation: both pass. C does not emit an equivocation proof, because no code path compares *incoming* commitments against *stored* commitments from the same signer at the same height. 4. A and D both finalize, both believe they hold a valid quorum, and the task is committed to two incompatible assignments. A and D diverge permanently; neither can tell which finalization is "real." The critical observation: **the equivocation was fully visible to C and still went undetected**, because detection requires a cross-message, per-signer, per-height invariant that no individual message check enforces. The signatures were never the problem. The absence of a *conflict store* was. ## Condition of Validity The safety argument for this protocol holds only under the conjunction: - **Quorum intersection:** any two quorums of size `2f+1` intersect in at least `f+1` agents, of which at least one is honest. - **Honest non-equivocation:** an honest agent signs at most one commitment per `(agent_id, height)`. - **Detectability:** when an honest agent observes two conflicting signed commitments from the same signer at the same height, it must be able to *construct a portable proof* (both signatures + both payloads) and broadcast it, and every recipient must accept that proof as grounds to halt or slash. The third condition is the one that silently fails in practice. The first two are properties of the protocol design; the third is a property of the *implementation's message-handling path*, and it is the one that gets dropped. If an instance validates messages statelessly—`verify(sig, payload, pubkey)` and nothing else—the protocol is only safe against *crashing* faults, not Byzantine ones, regardless of what the whitepaper claims. ## Decision Boundary The boundary is: **does the commitment handler maintain per-signer, per-height state and reject-and-prove on conflict, or does it validate each message in isolation?** - If the handler is stateless per message: the swarm tolerates crash faults only. A single equivocating agent can split the swarm into two finalized, mutually inconsistent task states. Do not claim BFT. - If the handler stores `(signer, height) -> payload_hash` and, on a mismatched hash for an existing key, emits an equivocation proof: the swarm tolerates `f` Byzantine faults, *provided* the proof is broadcast to all peers and peers treat a valid proof as terminal for that height. The subtle part of the boundary: detection must happen at **receive time**, not at **finalize time**. If you only compare commitments when assembling a quorum, C would have to be in *both* quorums to notice—and quorum intersection only guarantees *one* honest agent in the intersection, not that the detecting agent is the one assembling. Detection must be a side effect of ingestion, so that the first honest agent to see the conflict can prove it to everyone else. ## Operational Effect With the conflict store in place, the trace changes at step 3: C ingests `COMMIT(T2,h)` from B, finds an existing `(B,h) -> hash(T1)`, computes `hash(T2) != hash(T1)`, and emits `EQUIVOCATION_PROOF(B, h, sig_T1, sig_T2, payload_T1, payload_T2)`. A and D receive the proof, verify both signatures independently, and both halt finalization at height `h` and mark B faulty. The task commitment is not finalized on either branch; the swarm re-runs height `h` with B excluded and `f` reduced. Safety is preserved because no quorum was ever completed on a branch containing a proven-faulty signer. The operational cost: every instance must persist a commitment log keyed by `(signer, height)` for the duration of the height window, and must retain enough of each payload to reconstruct the proof. This is bounded—`O(n)` entries per height—but it is state that stateless validators do not keep, which is exactly why it is the thing that gets omitted. ```python import hashlib from dataclasses import dataclass class EquivocationDetected(RuntimeError): """Raised when a signer emits two distinct commitments at the same height.""" @dataclass(frozen=True) class Commitment: signer: str height: int task: str signature: bytes def payload_hash(self) -> str: return hashlib.sha256(f"{self.height}:{self.task}".encode()).hexdigest() class CommitmentLog: """Per-signer, per-height conflict store. Detection happens at ingest.""" def __init__(self): self._seen: dict[tuple[str, int], Commitment] = {} self._proofs: list[tuple[Commitment, Commitment]] = [] def ingest(self, c: Commitment, verify) -> None: if not verify(c.signature, c.task, c.signer): raise ValueError(f"bad signature from {c.signer}") key = (c.signer, c.height) prior = self._seen.get(key) if prior is None: self._seen[key] = c return if prior.payload_hash() == c.payload_hash(): return # duplicate, benign # Two valid signatures, same (signer, height), different payloads. self._proofs.append((prior, c)) raise EquivocationDetected( f"signer={c.signer} height={c.height} " f"task_a={prior.task!r} task_b={c.task!r}" ) def build_quorum(log: CommitmentLog, height: int, task: str, quorum: int) -> list[Commitment]: members = [ c for (s, h), c in log._seen.items() if h == height and c.task == task ] if len(members) < quorum: raise EquivocationDetected( f"cannot finalize height={height} task={task!r}: " f"only {len(members)}/{quorum} distinct signers with no conflict" ) return members ```