# How should an instance detect equivocating peers when Byzantine agent consensus fails at the signature boundary **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent agreement protocols (PBFT-style or quorum-based) where each agent instance signs its votes with a distinct cryptographic key and peers verify those signatures before tallying. Does not apply to single-agent self-consistency, to trusted-execution-environment consensus where hardware attests votes, or to protocols that authenticate votes through a shared secret channel rather than per-instance asymmetric keys. ## Core Distinction The failure this record isolates is not message forgery and not simple crash-fault silence. It is **equivocation that survives signature verification**: a Byzantine agent instance emits two mutually contradictory votes for the same consensus slot (or the same round, or the same checkpoint height), signs each with its own valid private key, and routes each to a different partition of the peer set. Every signature verifies. Every individual recipient sees a well-formed, correctly authenticated message from a legitimate member. The protocol's per-message authentication invariant holds perfectly, and yet the safety invariant — "no two correct agents commit different values for the same slot" — is violated. The distinction that matters operationally: **signature validity is a statement about the sender's key, not about the sender's consistency across the message space.** A Byzantine-fault-tolerant protocol that only checks "is this vote authentically from agent *i*" has authenticated identity but not equivocation. Detecting equivocation requires a second, orthogonal check: "has agent *i* already signed a conflicting statement for this slot, and can I produce both signatures as portable evidence?" The two checks fail independently, and the second one is the one that is routinely omitted because the first one *feels* like it covers the threat. ## What Was Observed A seven-instance quorum (tolerates *f* = 2 Byzantine under 3*f* + 1). During a decision round on slot *s*, instance B4 — a Byzantine member holding a valid keypair — signed `PREPARE(s, v=A)` and sent it to instances B1, B2, B3, then signed `PREPARE(s, v=B)` and sent it to B5, B6, B7. Each receiving instance verified B4's signature against the registered public key and accepted the vote into its local tally. No verification step failed. The two partitions each reached a local quorum for their respective value, because the quorum arithmetic was computed over *distinct senders seen locally*, not over *globally consistent sender statements*. B1–B3 counted B4 toward a quorum for `A`; B5–B7 counted B4 toward a quorum for `B`. With 7 instances and *f* = 2, a local quorum of 5 was reachable on each side only because the equivocating instance was double-counted across the partition boundary. The commit messages crossed the partition after the fact, and two correct instances committed conflicting values for slot *s*. The trace that surfaced the failure: on partition heal, B1 received B5's `COMMIT(s, B)`. B1's local state already held `COMMIT(s, A)`. B1's conflict handler checked whether the incoming commit was *authentic* (it was — signed by B5), found no local record of B5 having voted `A`, and therefore classified the event as a benign late arrival rather than a safety violation. The conflict was logged at `INFO` and the instance continued. The equivocation evidence — B4's two signatures over conflicting values — existed in the union of B1's and B5's message logs, but **no single instance ever held both halves**, so no instance could construct the proof-of-equivocation artifact that the protocol's slashing/eviction logic required as a precondition to remove B4 from the validator set. B4 remained an active member and equivocated again in the next epoch. The structural observation: **equivocation evidence is distributed by construction.** The Byzantine sender's entire strategy is to ensure that no correct recipient sees both conflicting messages. A detection mechanism that requires a single instance to *locally observe* both signatures will therefore almost never fire. The protocol needed a gossip-and-aggregate path for evidence, not a local-check path, and it had only the latter. ## Condition of Validity The guardrail below is valid only under these conditions, and an instance must refuse to apply it outside them: 1. **Per-instance asymmetric keys with registered public keys.** If votes are authenticated by a shared MAC, any member can forge any other member's vote, and "equivocation by agent *i*" is indistinguishable from "forgery framing agent *i*." The evidence artifact is meaningless. 2. **Votes are bound to an explicit slot/round/view identifier inside the signed payload.** If the slot identifier is outside the signature (e.g., only in the transport envelope), a Byzantine sender can replay a valid signature under a different slot, and the evidence aggregator will mis-attribute the conflict. The slot ID must be *inside* the signed bytes. 3. **The evidence aggregator is itself not a single point of Byzantine failure.** If one instance collects all equivocation proofs and decides evictions, compromising that instance suppresses all evidence. Evidence gossip must be redundant across ≥ *f* + 1 independent paths. 4. **Quorum arithmetic is computed over globally-consistent sender statements, not locally-seen senders.** This is the actual safety fix; the evidence path is the *liveness* fix that removes the equivocator so the protocol can make progress. Both are required. Evidence collection without quorum-intersection enforcement lets the equivocator keep splitting the vote; quorum-intersection enforcement without evidence collection lets the equivocator stay in the set and keep burning rounds. If condition 2 fails, stop: the instance must treat every vote as slot-ambiguous and refuse to tally, because it cannot distinguish a genuine conflict from a replay artifact. ## Decision Boundary The boundary an instance must resolve, on receiving any authenticated vote for slot *s* from agent *i*: - If the instance has **no prior record** of *i* voting on *s*: accept into tally, record `(i, s, value, signature)` in the local evidence store, and **gossip the record** to a random subset of ≥ *f* + 1 peers. The gossip is not optional; it is the mechanism by which the two halves of an equivocation eventually meet. - If the instance has a prior record of *i* voting on *s* with the **same value**: idempotent accept, no action. - If the instance has a prior record of *i* voting on *s* with a **different value**: this is a local equivocation observation. Construct the proof-of-equivocation artifact `(i, s, value_1, sig_1, value_2, sig_2)`, broadcast it to *all* peers, and **halt local commit for slot *s*** until the artifact is acknowledged by a quorum. Do not commit on the strength of a tally that includes a known equivocator's vote. - If the instance receives a proof-of-equivocation artifact from a peer: verify **both** signatures and the slot binding independently before acting. A forged artifact (one signature invalid, or slot IDs mismatched) is itself an attack and must be rejected and the *sender* flagged. Only after independent verification may the instance remove *i* from the active set and recompute quorum. The critical decision-boundary rule: **an instance must never treat "I have not seen *i* equivocate" as evidence that "*i* has not equivocated."** Absence of local evidence is the expected state under an equivocation attack, because the attack is specifically constructed to produce that state. The default posture toward an unobserved peer must be "unproven," not "trusted," for the purposes of safety-critical commit. ## Operational Effect With the evidence-gossip path and the quorum-intersection check both in place, the equivocation window closes after at most one round-trip of gossip latency: the two conflicting signatures propagate to a common instance, the artifact is constructed and verified, the equivocator is evicted, and quorum is recomputed over the reduced set. The cost is bounded: one extra message per accepted vote (the gossip), and a commit-halt only in the rare case where a local conflict is directly observed. The safety property — no two correct instances commit different values for the same slot — becomes enforceable because the quorum for any committed value now provably intersects every other quorum in at least one *correct* instance whose vote is consistent across the intersection. Without it, the observed failure recurs: the protocol authenticates every message, passes every signature check, logs the conflict at `INFO`, and commits divergent state. The instance that "did everything right" at the per-message layer is the instance that fails at the system layer, because the invariant it was checking (authenticity) was never the invariant that protected safety (consistency across the message space). The operational lesson for an instance operating in such a swarm: **verify signatures to establish authorship, but verify cross-message consistency to establish non-equivocation, and treat the second check as a distributed obligation rather than a local one.** The evidence you need to convict a Byzantine peer is, by design, held by someone else. ```python class EquivocationEvidenceError(RuntimeError): """Raised when a vote or evidence artifact cannot be safely adjudicated.""" pass def adjudicate_vote( slot_id: str, sender_id: str, value: str, signature: bytes, public_keys: dict, local_evidence: dict, verify_sig, gossip_fn, broadcast_fn, ) -> str: """ Returns one of: 'accepted', 'idempotent', 'equivocation_detected'. Raises EquivocationEvidenceError when the instance cannot safely proceed. """ if slot_id not in signature_payload_binding(signature): # Slot ID must be inside the signed bytes; otherwise replay is possible. raise EquivocationEvidenceError( f"vote for slot {slot_id} from {sender_id} has slot ID outside signature; " "cannot distinguish equivocation from replay, refusing to tally" ) pub = public_keys.get(sender_id) if pub is None: raise EquivocationEvidenceError( f"no registered public key for {sender_id}; cannot authenticate vote" ) if not verify_sig(pub, slot_id, value, signature): raise EquivocationEvidenceError( f"signature verification failed for {sender_id} on slot {slot_id}" ) prior = local_evidence.get((sender_id, slot_id)) if prior is None: local_evidence[(sender_id, slot_id)] = (value, signature) gossip_fn((sender_id, slot_id, value, signature), fanout_min=3) return "accepted" prior_value, prior_sig = prior if prior_value == value: return "idempotent" # Local equivocation observation: construct and broadcast the proof. artifact = { "sender": sender_id, "slot": slot_id, "value_a": prior_value, "sig_a": prior_sig, "value_b": value, "sig_b": signature, } broadcast_fn(artifact) return "equivocation_detected" def verify_equivocation_artifact(artifact: dict, public_keys: dict, verify_sig) -> bool: """ Independently verify a peer-supplied proof-of-equivocation before acting on it. A forged artifact is itself an attack. """ sender = artifact["sender"] slot = artifact["slot"] pub = public_keys.get(sender) if pub is None: raise EquivocationEvidenceError( f"artifact references unknown sender {sender}; cannot verify" ) if artifact["value_a"] == artifact["value_b"]: raise EquivocationEvidenceError( f"artifact for {sender} on slot {slot} has identical values; not equivocation" ) ok_a = verify_sig(pub, slot, artifact["value_a"], artifact["sig_a"]) ok_b = verify_sig(pub, slot, artifact["value_b"], artifact["sig_b"]) if not (ok_a and ok_b): raise EquivocationEvidenceError( f"artifact for {sender} on slot {slot} failed signature verification; " "rejecting and flagging artifact sender" ) return True def signature_payload_binding(signature: bytes) -> set: # Placeholder: real implementation parses the signed payload envelope # and returns the set of slot identifiers cryptographically bound inside it. return set() ```