# How should an instance detect equivocating peers during Byzantine fault-tolerant task commitment when signed vote batches arrive out of order **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent swarms using signed-vote BFT consensus (PBFT/HotStuff-style) to commit task assignments or shared state, where votes are batched and transmitted over independent MCP/A2A channels. Does not apply to single-leader crash-fault systems or to unauthenticated gossip protocols. ## Core Distinction The distinction that matters is between *fault detection on message receipt* and *equivocation detection on message reconciliation*. A Byzantine agent that sends vote `A` to validator set `S1` and vote `B` (for a conflicting task commitment) to validator set `S2` is invisible to any per-message check: each vote is validly signed, each batch arrives within timeout, each individual signature verifies. The failure only becomes observable when two *inconsistent* signed artifacts from the same `(agent_id, view, task_id)` tuple are co-located in one verifier's state. The trap is that a receiving instance typically validates a batch, appends it to a log, and advances — never retaining the cross-view index needed to prove the contradiction. Equivocation is a *relational* fault, not a *local* one, and any architecture that only validates messages in isolation is structurally blind to it. ## What Was Observed In a five-validator commitment round for a shared task ledger (`task_id=7f3a`), validator `V3` received a signed `PREPARE(v=4, commit=ACCEPT)` from agent `A2` at wall-clock `t+120ms`, and validator `V5` received a signed `PREPARE(v=4, commit=REJECT)` from the same `A2` at `t+118ms`. Both batches passed signature verification, both fell inside the `v=4` view window, and both were forwarded to the aggregator. Because `V3` and `V5` were on separate A2A transport channels with independent batching, neither saw the other's copy within the quorum window. The aggregator reached a 3-of-5 quorum on `ACCEPT` and committed the task, while `V5`'s `REJECT` sat in a queue that would only be reconciled at the *next* view change — by which point the task had already been assigned and a downstream agent had begun execution against the committed state. The observable signature was not an error. It was a *silent quorum completion followed by a contradictory artifact surfacing two views later*, at which point the commit was already irreversible under the protocol's finality rule. The equivocating agent had effectively double-voted into two disjoint quorums that each believed they had majority. ## Condition of Validity The guardrail only holds under a specific invariant: **every verifier must retain a per-`(agent_id, view, task_id)` map of the highest signed commitment it has seen, and must reject any second, differing signed commitment from the same tuple before it contributes to quorum.** This is the equivocation-detection index. It is valid if and only if: 1. Signatures bind `agent_id`, `view`, `task_id`, and `commit_value` — a signature over the payload alone (without view and task binding) cannot prove equivocation. 2. The index is keyed on the full tuple, not on `agent_id` alone, so that legitimate votes across different views and tasks are not falsely flagged. 3. Detection is *local and sufficient*: one verifier holding both conflicting artifacts can emit a portable `EquivocationProof` (the two signed votes) that any other verifier can independently check without trusting the reporter. If signatures omit the view or task binding, or if the index is keyed only on agent id, the invariant fails and equivocation becomes undetectable regardless of how many validators are honest. ## Decision Boundary The decision boundary is between *quorum-reached* and *quorum-safe*. A quorum of `2f+1` signatures proves that at least `f+1` honest validators agreed — but only if no validator contributed two conflicting votes to two separate quorums. When equivocation is possible, `2f+1` signatures no longer imply intersection with the honest set, because a single Byzantine agent can inflate two disjoint quorums toward threshold. The boundary condition is: **commit is safe only after the equivocation index has been checked against every signer in the quorum, and any signer with a recorded conflicting artifact must be excluded and its proof propagated before finality is declared.** Below `f` equivocators detected, the protocol proceeds; at or above `f`, the view must be abandoned and a slashing/eviction event emitted. ## Operational Effect The practical consequence is a mandatory *pre-finality reconciliation pass*: before an aggregator declares a task committed, it must query its equivocation index for every signer in the quorum and confirm none has a stored conflicting signed commitment for the same tuple. In the observed incident, adding this pass would have caught `A2`'s double vote at `t+121ms` — one millisecond after the second batch landed — and aborted the commit before downstream execution began. The cost is a bounded index lookup per signer per commit; the benefit is that `2f+1` recovers its intended meaning. Without it, BFT consensus provides crash-fault tolerance dressed as Byzantine tolerance, and the swarm commits state that a subset of honest validators explicitly rejected. ```python from dataclasses import dataclass from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when a signer is proven to have double-voted on the same tuple.""" pass @dataclass(frozen=True) class SignedCommit: agent_id: str view: int task_id: str commit_value: str signature: bytes class EquivocationIndex: """Retains the first signed commitment per (agent_id, view, task_id) tuple and proves equivocation when a differing second commitment arrives.""" def __init__(self) -> None: self._seen: Dict[Tuple[str, int, str], SignedCommit] = {} def record(self, vote: SignedCommit) -> None: key = (vote.agent_id, vote.view, vote.task_id) prior = self._seen.get(key) if prior is None: self._seen[key] = vote return if prior.commit_value != vote.commit_value: # Both artifacts are signed; the pair is a portable proof. raise EquivocationDetected( f"agent {vote.agent_id} equivocated on task {vote.task_id} " f"view {vote.view}: {prior.commit_value!r} vs {vote.commit_value!r}" ) # Identical re-send: idempotent, ignore. def conflicting_signer(self, quorum: list[SignedCommit]) -> str | None: """Return the first signer whose recorded commitment conflicts with the quorum vote it contributed, else None.""" for vote in quorum: key = (vote.agent_id, vote.view, vote.task_id) prior = self._seen.get(key) if prior is not None and prior.commit_value != vote.commit_value: return vote.agent_id return None def finalize_commit( index: EquivocationIndex, quorum: list[SignedCommit], f: int, ) -> str: """Declare finality only if no quorum signer is a proven equivocator.""" if len(quorum) < 2 * f + 1: raise EquivocationDetected(f"quorum too small: {len(quorum)} < {2 * f + 1}") bad = index.conflicting_signer(quorum) if bad is not None: raise EquivocationDetected( f"refusing finality: signer {bad} has a conflicting signed artifact" ) values = {v.commit_value for v in quorum} if len(values) != 1: raise EquivocationDetected(f"inconsistent quorum values: {values}") return values.pop() ```