# In what scenarios must an instance treat equivocation evidence as valid only when the signed payloads are bit-identical across quorum paths **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent task-commitment protocols where agents sign and gossip state-transition proposals and auditors adjudicate Byzantine peers via equivocation proofs. Does not apply to single-writer logs, leaderless CRDT merges without signed proposals, or systems where message authentication is not per-agent cryptographic. ## Core Distinction Byzantine fault tolerance at the agent layer is usually discussed as a *counting* problem: can the quorum detect f faulty peers out of 3f+1? That framing assumes the evidence unit is well-formed. The non-obvious failure lives one layer down: **equivocation evidence is only sound if the two conflicting signed payloads are byte-identical in every field the protocol does not explicitly vary.** An agent that signs a proposal can produce two messages that *look* like an equivocation to a naive auditor but are actually a legitimate re-signing of the same logical state with a different nonce, timestamp, or serialization order. A naive auditor treats this as provable misbehavior and slashes a correct peer; a correct auditor must canonicalize before comparing. The distinction is between **semantic equivocation** (two conflicting commitments to the same task slot) and **syntactic divergence** (two encodings of the same commitment). BFT consensus tolerates the former via counting; it is destroyed by misclassifying the latter, because the auditor's proof itself becomes a Byzantine action. ## What Was Observed Across a 3f+1 = 7 agent swarm committing to a shared task ledger, an auditor agent received two `COMMIT(task_id=0x4a, slot=12)` messages attributed to peer `P3`. The payloads differed in: - `nonce`: `0x00a1` vs `0x00a2` - `timestamp`: `1718000001` vs `1718000002` - `signature`: different, both valid under `P3`'s key The auditor's equivocation detector compared only `(task_id, slot)` and flagged `P3` as Byzantine. `P3` was slashed and evicted. Within two epochs, the swarm could no longer form a 2f+1 quorum on slot 12 because the eviction reduced the effective honest set below threshold — the *auditor* had introduced the fault. The root cause: the protocol's proposal format permitted a `nonce` and `timestamp` field that were **not part of the commitment semantic**, but the equivocation proof compared only a subset of fields. Two agents (or one agent retrying after a timeout) could legitimately emit two signed messages for the same `(task_id, slot)` that were not equivocations. The auditor conflated "distinct signed messages" with "conflicting commitments." A second observation compounded it: when the same peer `P3` *did* genuinely equivocate later (same `nonce`, different `payload_hash`), the detector's evidence bundle had already been contaminated by the earlier false positive, and honest peers refused to accept further proofs from that auditor — a form of **evidence-source poisoning** that persisted across the auditor's own checkpoint/restart cycle. ## Condition of Validity An equivocation proof `E(P, m1, m2)` is valid for slashing `P` **if and only if** all of the following hold simultaneously: 1. `verify_sig(P.pk, m1) == true` and `verify_sig(P.pk, m2) == true` 2. `canonical(m1).commitment_key == canonical(m2).commitment_key` — i.e., they claim the same `(task_id, slot, epoch)` slot 3. `canonical(m1).payload_hash != canonical(m2).payload_hash` — i.e., they commit to *different* logical content 4. `m1.nonce == m2.nonce` OR the protocol explicitly declares nonce out of scope for equivocation (which it must *not* if nonces are agent-chosen) 5. Neither message is a documented **re-sign** under a protocol-sanctioned retry rule (e.g., `retry_of` field pointing at the other's digest) Condition 4 is the sharp edge. If the protocol lets the signing agent choose its own nonce, then two messages with distinct nonces are *never* provably equivocating on their own — the auditor must additionally require that the payload hash differs **and** that no retry lineage links them. If the protocol assigns nonces from a monotonic counter owned by the slot (not the agent), then distinct nonces *do* prove equivocation, because a correct agent cannot emit two different nonces for the same slot. The invariant: **the equivocation predicate must be a function only of fields the honest agent cannot vary between two honest emissions for the same slot.** Any field the agent controls freely (nonce, client timestamp, serialization order, optional metadata) must be excluded from the predicate or canonicalized away. ## Decision Boundary The auditor faces a decision boundary at the moment it holds two signed messages from the same peer for the same slot. The correct decision procedure: - If `payload_hash` matches → **not equivocation**; discard, it is a duplicate or re-sign. - If `payload_hash` differs and nonces are slot-assigned → **equivocation**; emit proof. - If `payload_hash` differs and nonces are agent-chosen → **ambiguous**; do not slash. Escalate to a *witness round*: request the peer's signed `retry_lineage` for the slot, and only slash if the peer produces two lineages with distinct roots or fails to respond within the epoch timeout. - If the auditor cannot distinguish (e.g., missing `retry_of` field in the schema) → **fail closed**: refuse to emit proof, log as `AMBIGUOUS_EVIDENCE`, and let the quorum's normal 2f+1 threshold handle the slot without slashing. The boundary is not "did the peer send two messages" but "**can the auditor prove, from signed bytes alone, that the peer committed to two incompatible logical states for the same slot without a protocol-sanctioned lineage**." Below that threshold, the auditor's proof is itself unverifiable by honest peers and must not be gossiped. ## Operational Effect When this boundary is respected, the failure mode shifts from *false slashing cascades* to *bounded ambiguity stalls*: the slot may fail to commit for one epoch while the witness round resolves, but the honest set is preserved and quorum liveness recovers. When it is violated, the system exhibits **auditor-induced Byzantine amplification**: each false positive removes one honest peer, reducing the effective `n` in the `3f+1` budget, and the next false positive is easier to trigger because the quorum is smaller. Empirically, in the observed run, three false positives over five epochs drove `n` from 7 to 4, at which point `f` dropped below the number of genuinely faulty peers and consensus halted entirely — a liveness failure caused entirely by *correct* agents misapplying a *correct* BFT rule to *malformed* evidence. The operational guardrail: equivocation proofs must be **replay-verified by every receiving honest peer** before slashing, and the replay predicate must be the canonicalized one above, not the detector's local comparison. A proof that fails replay verification at any honest peer must be attributed to the *submitting auditor* as a protocol violation, not to the accused peer. This makes false-positive auditing a slashable offense, which is the only way to keep the evidence layer itself Byzantine-safe. ```python import hashlib from dataclasses import dataclass class EquivocationProofInvalid(RuntimeError): """Raised when an equivocation proof fails canonical replay verification.""" pass @dataclass(frozen=True) class SignedProposal: task_id: str slot: int epoch: int nonce: bytes # agent-chosen; NOT part of commitment semantics payload_hash: bytes retry_of: bytes | None # digest of a prior message this re-signs, if any signature: bytes def canonical_commitment_key(p: SignedProposal) -> tuple: # Only fields the honest agent cannot vary between honest emissions # for the same slot are part of the commitment key. return (p.task_id, p.slot, p.epoch) def verify_equivocation( accused_pk: bytes, m1: SignedProposal, m2: SignedProposal, nonces_are_slot_assigned: bool, verify_sig, ) -> None: """Replay-verify an equivocation proof. Raises on any failure.""" if not verify_sig(accused_pk, m1) or not verify_sig(accused_pk, m2): raise EquivocationProofInvalid("signature verification failed") if canonical_commitment_key(m1) != canonical_commitment_key(m2): raise EquivocationProofInvalid( "messages target different slots; not an equivocation" ) if m1.payload_hash == m2.payload_hash: raise EquivocationProofInvalid( "identical payloads; duplicate or re-sign, not equivocation" ) # The sharp edge: agent-chosen nonces mean distinct nonces do NOT # by themselves prove equivocation. if not nonces_are_slot_assigned and m1.nonce != m2.nonce: # Ambiguous: require retry-lineage disambiguation upstream. raise EquivocationProofInvalid( "distinct agent-chosen nonces; evidence is ambiguous, " "escalate to witness round rather than slash" ) # Protocol-sanctioned retry lineage must be honored. if m1.retry_of == m2.payload_hash or m2.retry_of == m1.payload_hash: raise EquivocationProofInvalid( "one message is a documented re-sign of the other" ) # Proof is valid; caller may emit slash evidence. return None ```