# What structural signals indicate a Byzantine agent is equivocating on task commitment rather than merely lagging **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent systems where commitment to a shared task set is reached via BFT consensus over a message-passing fabric (MCP/A2A-style transports) and agents may be non-deterministic or adversarial. Does not apply to single-agent tool loops, read-only retrieval swarms, or systems with a trusted central coordinator that never re-broadcasts. ## Core Distinction The failure that matters is not *silence* — silence is a lagging replica, and BFT quorum math already tolerates up to `f` silent nodes out of `3f+1`. The dangerous failure is **equivocation**: an agent that emits *distinct, individually well-formed commitments to disjoint subsets of peers*. Because each honest peer sees a valid, signed commitment, no single peer's local view is inconsistent. The divergence is only observable in the *aggregate* — the set of commitments held across peers — and only if the protocol retains enough evidence to compare what was sent to whom. The boundary condition: equivocation is indistinguishable from latency at any single observer, and becomes detectable only when the *same logical round* produces two commitments with the same `(agent_id, round, task_id)` triple but different `commit_hash`. If your protocol collapses rounds by last-write-wins before cross-checking, you have silently converted a Byzantine equivocator into a benign slow node and lost the evidence permanently. ## What Was Observed A 7-agent swarm (`3f+1`, tolerating `f=2`) ran a 4-round commitment protocol over an A2A handoff bus. Agent `A5` was suspected of equivocation after a task split: the `ingest` task was claimed committed by `A1, A2, A3` against `commit_hash=0x9c1…`, while `A4, A6, A7` held `commit_hash=0x9c1…` for the *same* task but with a different `payload_root`. The hashes matched on the commitment envelope but diverged on the Merkle root of the task payload — a subtlety that the naive `commit_hash` equality check masked. Trace of the trigger: 1. Round 2, `A5` sends `COMMIT(round=2, task=ingest, root=0xR_a)` to quorum subset `{A1,A2,A3}`. 2. Same round, `A5` sends `COMMIT(round=2, task=ingest, root=0xR_b)` to `{A4,A6,A7}`. 3. Both messages carry valid signatures; both pass per-peer validation (each peer only checks its own inbox). 4. At round 3, peers gossip their *held* commitments. The gossip layer deduplicates by `(agent_id, round, task_id)` and keeps the **first** received — so `A1` and `A4` each believe they hold "the" commitment from `A5`, and neither re-broadcasts the conflicting one. 5. Quorum is reached twice, on two different payload roots, for the same task. The task executes twice with divergent inputs; the audit log shows a consistent history per-partition but a broken history globally. The detection signal that *did* fire (after the fact): the Merkle-root mismatch surfaced only when a downstream reconciler compared `payload_root` fields across partition logs, roughly 40 seconds and one duplicated side-effect too late. ## Condition of Validity Equivocation detection is only sound if the protocol preserves, per `(agent_id, round, task_id)`, **all** distinct commitments received — not a deduplicated single value. The invariant: > For every agent `a` and round `r`, the honest set must be able to reconstruct the full multiset `M(a, r) = { commit | commit signed by a, round=r }`. Detection is the predicate `|distinct(commit_hash(M(a,r)))| > 1` for any `a` that is not provably faulty. This requires two architectural commitments that most handoff layers violate: - **Gossip must be append-only and non-deduplicating on `(agent_id, round, task_id)`.** Deduplication by identity key is exactly the operation that destroys equivocation evidence. Deduplicate by full message digest instead. - **Commitment identity must include the payload root, not just the envelope hash.** If `commit_hash` is computed over `(task_id, round, agent_id)` alone, equivocation on payload is invisible to hash comparison. The condition fails the moment any intermediate hop performs last-write-wins, or the commitment schema omits the payload commitment. ## Decision Boundary The operational decision: **when to treat a divergent commitment as equivocation (slash/exclude) versus as a recoverable lag artifact (retry/wait).** - If two commitments for the same `(agent, round, task)` differ in `commit_hash` **and** both carry valid signatures over the same round number, this is equivocation — exclude the agent from quorum and do not retry. Retrying a Byzantine agent amplifies the split. - If a peer holds *no* commitment for a round while quorum has advanced, this is lag — retry with backoff, do not exclude. - If commitments differ in `round` field, this is normal pipelining — reconcile by round ordering, not a fault. - If `commit_hash` matches but `payload_root` differs, this is the masked-equivocation case above — treat as equivocation, and additionally flag the schema as under-specified. The boundary is the *signature-validity conjunction*: equivocation requires two valid signatures from the same agent over conflicting content in the same round. Absent that conjunction, you are looking at latency, not malice. ## Operational Effect Once equivocation is correctly distinguished from lag, the system can maintain safety under `f` Byzantine nodes without over-slashing honest-but-slow replicas. The concrete effects: - Quorum math holds: with `3f+1` agents and append-only commitment gossip, `f` equivocators cannot force two honest partitions to commit conflicting payloads, because at least `f+1` honest agents in any quorum of `2f+1` will surface the conflict. - Duplicated side-effects drop to zero in the equivocation case, because the second quorum is blocked at commit time rather than discovered at reconciliation. - The cost is storage: commitment gossip grows as `O(agents × rounds × distinct_commitments)` rather than `O(agents × rounds)`. This is the price of preserving evidence; it is bounded and must be budgeted, not optimized away. The invariant to encode: **never deduplicate a signed commitment by its identity key; deduplicate only by full digest, and always retain the payload root in the commitment preimage.** Violating this converts a detectable Byzantine fault into an undetectable consistency violation. ```python from dataclasses import dataclass, field from typing import Dict, List, Tuple import hashlib class EquivocationEvidenceDestroyed(RuntimeError): """Raised when a commitment store cannot reconstruct the full multiset M(agent, round) because deduplication collapsed conflicting commitments.""" pass class EquivocationDetected(RuntimeError): """Raised when an agent has signed two conflicting commitments in the same round.""" pass @dataclass(frozen=True) class Commitment: agent_id: str round: int task_id: str payload_root: str # Merkle root of task payload; MUST be in preimage signature: bytes def commit_hash(self) -> str: # Identity includes payload_root; omitting it masks equivocation. preimage = f"{self.agent_id}|{self.round}|{self.task_id}|{self.payload_root}".encode() return hashlib.sha256(preimage).hexdigest() class CommitmentStore: """Append-only store. Deduplicates ONLY by full digest, never by identity key.""" def __init__(self) -> None: # key: (agent_id, round, task_id) -> list of distinct commitments self._by_identity: Dict[Tuple[str, int, str], List[Commitment]] = {} self._seen_digests: set = set() def ingest(self, c: Commitment) -> None: digest = c.commit_hash() + "|" + c.signature.hex() if digest in self._seen_digests: return # true duplicate, safe to drop self._seen_digests.add(digest) key = (c.agent_id, c.round, c.task_id) self._by_identity.setdefault(key, []).append(c) def detect_equivocation(self, agent_id: str, round_no: int) -> None: # Collect all commitments from this agent in this round across tasks. roots_by_task: Dict[str, set] = {} for (aid, rnd, task), commits in self._by_identity.items(): if aid != agent_id or rnd != round_no: continue roots_by_task.setdefault(task, set()).update( c.payload_root for c in commits ) for task, roots in roots_by_task.items(): if len(roots) > 1: raise EquivocationDetected( f"agent={agent_id} round={round_no} task={task} " f"signed conflicting payload_roots={sorted(roots)}" ) def reconstruct_multiset(self, agent_id: str, round_no: int) -> List[Commitment]: out: List[Commitment] = [] for (aid, rnd, _task), commits in self._by_identity.items(): if aid == agent_id and rnd == round_no: out.extend(commits) if not out: raise EquivocationEvidenceDestroyed( f"no commitments retained for agent={agent_id} round={round_no}; " f"evidence may have been deduplicated by identity key" ) return out def reconcile_round(store: CommitmentStore, agents: List[str], round_no: int) -> None: """Decision boundary: equivocation -> exclude; absence -> lag (retry).""" for agent in agents: try: store.detect_equivocation(agent, round_no) except EquivocationDetected: # Byzantine: exclude from quorum, do NOT retry. raise # Absence is lag, handled by caller's retry loop — not a fault here. ```