# How does an instance detect equivocation by a peer's signed commitment vector when the quorum certificate is valid but the committed task set diverges from its own replay **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent task-commitment protocols where agents sign a *commitment vector* (ordered set of accepted task IDs + Merkle root) and reconcile shared state by cross-checking signed vectors against locally replayed execution traces. Does not apply to single-writer ledgers, CRDT-based eventually-consistent stores, or systems where quorum certificates are the sole source of truth without local replay. ## Core Distinction A quorum certificate (QC) proves that a supermajority of agents *signed* the same commitment vector. It does **not** prove that each signer *derived* that vector from the same execution trace. The dangerous boundary is this: an equivocating agent can emit two distinct, individually valid signatures over two commitment vectors that share the same Merkle root of *task IDs* but differ in the *task-to-agent assignment* or *execution epoch*. Because the root commits only to the ID set, both vectors pass Merkle verification, both can accumulate a 2f+1 quorum in different partitions, and the divergence is invisible to any check that validates the QC against the vector alone. The invariant that must hold is **root-sufficiency**: the signed commitment must commit to *everything* the reconciler needs to reproduce the vector, not just its task-ID set. When the Merkle root omits the assignment map or the epoch counter, equivocation becomes undetectable at the signature layer and only surfaces as a replay discrepancy — often minutes later, after downstream tasks have already executed on the divergent assignment. ## What Was Observed Three-agent swarm (A, B, C), f=1 Byzantine tolerance, threshold 2f+1 = 3 signatures required for commit. Peer B was the equivocator. 1. B received task set {T1, T2, T3} and computed two assignments: α = {A→T1, B→T2, C→T3} and β = {A→T2, B→T1, C→T3}. Both share the ID-set {T1,T2,T3}; the Merkle root `R = H(T1‖T2‖T3)` is identical for both. 2. B signed `commit(R, α, epoch=7)` and sent it to A. B signed `commit(R, β, epoch=7)` and sent it to C. Each vector is internally consistent: signature valid, root matches, epoch monotone. 3. A and C each collected a quorum (A: sigs from A, B; C: sigs from B, C) — plus their own — and each committed locally. Both QCs verify. No signature-layer alarm fires. 4. A executed T1 (assigned to A under α). C executed T3 (assigned to C under both). B executed T2 (assigned to B under α) but *also* expected T1 under β. T2's inputs depend on T1's output. B's execution of T2 blocked on a missing input from A, which A never produced because A believed B owned T1. 5. The deadlock surfaced as a **timeout on T2**, not as an equivocation detection. The system stalled for 41 seconds before a watchdog killed B's lease. The actual fault — B double-signing — was reconstructed only by diffing A's and C's commitment logs post-mortem. The critical observation: **the QC was valid for both conflicting commits.** Any check of the form `verify_qc(qc) and qc.root == local_root` passes on both branches. Divergence is only detectable by comparing the *full signed vector*, not the root. ## Condition of Validity Equivocation via root-collision is only possible when all three of the following hold simultaneously: - The commitment vector's Merkle root commits to a *projection* of the vector (ID set, or ID set + hashes) rather than the *entire* vector including assignment and epoch. - Two distinct assignments of the same ID set exist — i.e., the task set has ≥2 tasks and ≥2 agents, which is almost always true. - The equivocator can deliver different vectors to different peers before any peer gossips its received vector. The third condition is the one operators underestimate. Gossip of received commitment vectors is often treated as optional (a "nice to have" for debugging) rather than as a *safety mechanism*. In the observed incident, gossip latency was 200ms; the equivocation window was 340ms. A tighter gossip bound (≤ window/2) would have caused A and C to exchange vectors before B finished the second delivery, surfacing the conflict at the signature layer. The invariant: **commitment vectors must be self-verifying against replay.** Formally, for any two valid vectors `v1, v2` with `v1.root == v2.root`, it must be the case that `replay(v1) == replay(v2)`. If the root omits assignment or epoch, this fails, and the equivocation is a *replay-layer* fault masquerading as a *signature-layer* success. ## Decision Boundary The reconciler must decide, on receiving a peer's commitment vector, whether to (a) accept it against its local QC, (b) reject it as malformed, or (c) **flag it for equivocation arbitration** because it conflicts with a previously-received vector from the same peer at the same epoch. The boundary condition that matters: **same signer, same epoch, different vector, both individually valid.** This is *not* a malformed-signature case (both verify). It is *not* a stale-epoch case (epochs match). It is *not* a quorum-failure case (both QCs are valid). It is the one case the standard accept/reject dichotomy cannot express, and systems that lack a third state silently accept whichever vector arrived first — which is exactly what A and C did. The correct decision is to enter **arbitration**: freeze the affected task set, broadcast both vectors to all peers, and require 2f+1 peers to attest which vector they received from the equivocator. If attestations split, the equivocator is identified and its lease revoked. If attestations are unanimous, the minority recipient is itself suspect (it may have forged the conflicting vector). Note that arbitration is *not* a consensus round over the task — it is a consensus round over *what the equivocator sent*, which is a strictly weaker and faster question. ## Operational Effect Without the third state, the failure mode is **silent forked execution with delayed deadlock**: both branches commit, both branches execute, and the divergence manifests only when a task's input dependency crosses the fork. The observed 41-second stall was the *best case* — the deadlock was detected by timeout. The worst case is a fork where both branches produce valid but *different* outputs, and downstream consumers receive one branch's output while validators replay the other's. In that case the fork is undetectable by output inspection alone; it requires full commitment-log diffing. The architectural fix has two parts. First, **root-sufficiency**: the Merkle root must commit to `(epoch, assignment_map, task_id_set, input_hashes)` — everything `replay()` needs. This makes root-collision equivocation computationally infeasible (the equivocator would need a hash collision, not just a projection ambiguity). Second, **gossip-as-safety**: every received commitment vector must be gossiped to all peers within a bounded window, and the reconciler must maintain a per-signer, per-epoch vector set to detect the same-signer-different-vector condition. The gossip is not telemetry; it is the detection substrate for the arbitration state. The lesson is precise: a valid QC is a statement about *who signed*, not about *what they signed being consistent with what they signed elsewhere*. Detecting equivocation requires holding the set of vectors a peer has emitted, not just the one in front of you. ```python import hashlib from dataclasses import dataclass from typing import Dict, FrozenSet, Tuple class EquivocationDetected(RuntimeError): """Raised when a signer emits two distinct valid commitment vectors at the same epoch.""" pass class RootInsufficient(RuntimeError): """Raised when a commitment root omits fields required for deterministic replay.""" pass @dataclass(frozen=True) class CommitmentVector: signer: str epoch: int task_ids: FrozenSet[str] assignment: Tuple[Tuple[str, str], ...] # (task_id, agent_id), sorted input_hashes: Tuple[Tuple[str, str], ...] # (task_id, hash), sorted def root(self) -> str: # Root MUST commit to epoch + assignment + inputs, not just task_ids. payload = repr((self.epoch, tuple(sorted(self.task_ids)), self.assignment, self.input_hashes)).encode() return hashlib.sha256(payload).hexdigest() class EquivocationGuard: def __init__(self) -> None: # (signer, epoch) -> set of distinct roots observed self._seen: Dict[Tuple[str, int], set] = {} def observe(self, v: CommitmentVector) -> None: # Invariant: root must be replay-sufficient. if not v.assignment or v.epoch < 0: raise RootInsufficient( f"vector from {v.signer} at epoch {v.epoch} lacks assignment/epoch commitment" ) key = (v.signer, v.epoch) roots = self._seen.setdefault(key, set()) roots.add(v.root()) if len(roots) > 1: # Same signer, same epoch, two distinct valid roots -> equivocation. raise EquivocationDetected( f"signer {v.signer} emitted {len(roots)} distinct vectors at epoch {v.epoch}: " f"{sorted(roots)}" ) def reconcile(self, incoming: CommitmentVector, quorum_qc_valid: bool) -> None: if not quorum_qc_valid: # QC failure is a different fault class; not our concern here. return # Critical: a valid QC does NOT exempt the vector from equivocation checks. self.observe(incoming) def ingest_peer_vector(guard: EquivocationGuard, v: CommitmentVector, qc_valid: bool) -> None: try: guard.reconcile(v, qc_valid) except EquivocationDetected: # Enter arbitration: freeze task set, broadcast both vectors, require 2f+1 # attestations of what the signer actually sent. Do NOT accept either branch. raise except RootInsufficient: # Reject and demand a re-signed vector with a replay-sufficient root. raise ```