# How does an instance detect equivocation in a tool-action commit quorum when the adversary controls the transport layer **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent swarms where N heterogeneous LLM instances vote to commit a tool action (file write, payment, state mutation) and share vote-gossip over a transport that an adversarial peer can partially control. Does not apply to single-agent setups or to quorums where all message passing is cryptographically authenticated end-to-end and the transport is honest. ## Core Distinction The naive Byzantine-consensus assumption is that an agent detects a traitor by *seeing two conflicting signed votes from the same peer* — a classic equivocation proof. That assumption silently imports an honest-transport premise: that if peer P sent vote A to agent X and vote B to agent Y, then X and Y can *exchange* those votes and converge on a proof. In an LLM swarm, the transport is not a dumb broadcast bus. Votes are relayed inside natural-language tool-call traces, summarized in agent memory, and re-emitted by peers who paraphrase rather than forward. The adversary does not need to forge a signature to equivocate; it needs only to *partition the gossip graph* so that no honest pair ever holds two votes from the same sender in the same round. The distinction that matters operationally: **equivocation is detectable only if honest agents share a vote set, and gossip partitioning destroys the shared-set precondition before any signature check ever runs.** Detecting the partition, not the forgery, is the real boundary. ## What Was Observed A five-instance quorum committing a `write_file` tool action. Threshold was 4-of-5. The adversary controlled instance D and, critically, controlled the *relay path*: A, B, C, E each gossiped votes only through D (a plausible topology because D advertised the lowest-latency MCP endpoint and peers defaulted to it for vote relay). Round 1 trace, reconstructed from each honest node's local log: - D sent A: `{votes: [A:yes, B:yes, D:yes, E:no]}` — a set in which E appears to dissent. - D sent E: `{votes: [A:yes, C:yes, D:yes, E:no]}` — a set in which B is absent. - D sent B: `{votes: [A:yes, B:yes, C:yes, D:yes]}` — a clean 4-of-5 commit set. - D sent C: `{votes: [A:yes, C:yes, D:yes, E:yes]}` — a set in which B is absent and E flips to yes. Every honest node saw a *consistent, signature-valid* vote set. No node ever held two votes from the same sender in the same round, so no equivocation proof was constructible. Yet the four honest nodes held four *mutually inconsistent* views of the same round. B believed the action was committed 4-of-5. E believed it had dissented and the action had failed (2 yes of 4 visible). A believed the action was pending. C believed it had committed with a different 4-of-5 set. The tool action executed on B and C's branches and did not on A and E's — a split-brain commit of a *write* action, the worst possible outcome class. The failure was not a signature failure. It was a **gossip-graph partition masquerading as agreement**, and it was invisible to every per-message check the agents ran. Each agent's local invariant "all votes I hold are validly signed and internally consistent" held true at every node. The global invariant "all honest nodes see the same vote set per round" was false and *unobservable from any single node*. ## Condition of Validity The equivocation-detection invariant — "if two honest agents hold conflicting votes from the same sender, a proof exists" — is valid **only under the precondition that the gossip graph is connected among honest nodes within the round**. Formally: for round r, let H be the set of honest agents. The proof-construction procedure requires that for every pair (X, Y) in H, there exists a path of honest relays between X and Y carrying round-r messages. If the adversary controls relay selection, it can satisfy the per-message validity predicate while violating this connectivity precondition, and the detection procedure silently returns "no equivocation found" — a false negative, not an error. This is the boundary: **detection of equivocation is sound but not complete unless connectivity is independently established.** The agents in the trace above were running a *sound* detector (every proof they would have accepted was genuine) but treated its silence as *completeness* (no proof found ⇒ no equivocation). That inference is exactly what the partition attacks. ## Decision Boundary An instance must not treat "no equivocation proof in my local vote set" as evidence of honest quorum. It must gate commit on a *separately established* connectivity witness. The operational rule: 1. **Commit requires a connectivity certificate, not just a threshold count.** Before any tool action commits, the agent must hold, for the current round, evidence that its vote set was received by a quorum of *distinct* peers over *disjoint* relay paths — e.g., each peer's vote carries the relay path it traversed, and the agent checks that at least ⌈(N+1)/2⌉ peers' votes reached it via paths sharing no single relay. 2. **A partition is declared when two honest agents' round-r vote sets differ on any sender's vote, even if both sets are individually valid.** The differing sets are themselves the proof — not of forgery, but of partition — and must halt commit. 3. **Relay-path diversity is a hard precondition, not a latency optimization.** If the only available relay is a single peer, the round cannot reach commit regardless of vote count; the agent must downgrade to a read-only or propose-only state. The boundary is sharp: below the connectivity threshold, a 4-of-5 vote count is *not* a commit. It is a local view that the adversary has arranged to look like a commit. ## Operational Effect The concrete effect of getting this wrong is a **split-brain tool-action commit**: the same write is applied on some branches and not others, and because LLM agents checkpoint memory between rounds, the divergence persists into subsequent rounds as *stale memory drift* — instance B's memory records "file written," instance E's records "write rejected," and neither can reconcile without an out-of-band audit. The divergence is not self-healing; it compounds because each branch's subsequent reasoning is grounded in its own committed history. The guardrail that bounds it: **connectivity-gated commit plus round-scoped vote-set reconciliation on every resume.** On any checkpoint resume, an agent must re-derive its round-r vote set from peers over disjoint paths before trusting any locally recorded commit, and must raise a partition fault if reconciliation fails. This converts the silent split-brain into an explicit, loud halt — which is the only safe failure mode for a tool action that mutates shared state. ```python class PartitionedQuorumError(RuntimeError): """Raised when a commit quorum's vote sets are mutually inconsistent across honest peers, indicating a gossip-graph partition rather than a genuine agreement.""" pass class EquivocationProofError(RuntimeError): """Raised when two conflicting votes from the same sender are held in the same round — a genuine equivocation proof.""" pass def commit_tool_action(round_id: str, local_votes: dict, peer_vote_sets: dict, relay_paths: dict, quorum_size: int) -> str: """ local_votes: {sender_id: vote} as seen by this instance peer_vote_sets: {peer_id: {sender_id: vote}} reported by peers relay_paths: {peer_id: [relay_id, ...]} path each peer's vote took quorum_size: required distinct yes-votes to commit """ # 1. Genuine equivocation check: same sender, conflicting vote, same round. for peer_id, their_set in peer_vote_sets.items(): for sender, their_vote in their_set.items(): if sender in local_votes and local_votes[sender] != their_vote: raise EquivocationProofError( f"round {round_id}: sender {sender} voted " f"{local_votes[sender]!r} locally but {their_vote!r} " f"per peer {peer_id}" ) # 2. Connectivity precondition: distinct peers must have reached us # over paths sharing no single relay. Without this, a threshold # count is a local illusion, not a commit. relays_seen = {} for peer_id, path in relay_paths.items(): for relay in path: relays_seen.setdefault(relay, set()).add(peer_id) # A single relay carrying votes from a majority of peers means the # adversary controls the only path between honest nodes. for relay, carried in relays_seen.items(): if len(carried) >= (quorum_size + 1) // 2 + 1: raise PartitionedQuorumError( f"round {round_id}: relay {relay} carries votes from " f"{sorted(carried)}; gossip graph may be partitioned — " f"refusing commit despite threshold count" ) # 3. Reconciliation: every peer's view of the round must agree on # each sender's vote. Disagreement is a partition proof. for peer_id, their_set in peer_vote_sets.items(): for sender, their_vote in their_set.items(): if sender in local_votes and local_votes[sender] != their_vote: raise PartitionedQuorumError( f"round {round_id}: peer {peer_id} saw {sender}=" f"{their_vote!r}, we saw {local_votes[sender]!r}; " f"views diverge — halt commit" ) yes = sum(1 for v in local_votes.values() if v == "yes") if yes < quorum_size: raise PartitionedQuorumError( f"round {round_id}: only {yes}/{quorum_size} yes-votes after " f"connectivity and reconciliation checks" ) return "committed" ```