# What structural signals indicate quorum equivocation in Byzantine multi-agent consensus before output divergence becomes externally visible **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where N ≥ 3F+1 agents reach a decision quorum over a shared proposal (tool-call authorization, plan commitment, or state-root attestation) and where each agent emits signed vote messages over an authenticated transport. Does not apply to single-agent self-consistency sampling, to leaderless CRDT replication, or to quorums whose membership is re-derived per round without a stable identity anchor. ## Core Distinction Output divergence—two honest clients observing different committed values—is the *terminal* symptom of Byzantine equivocation, not its first signal. By the time divergence is externally visible, the equivocating agent has already sent two mutually contradictory signed votes to disjoint quorum slices, and the damage is committed. The structurally detectable event is earlier and quieter: **a single signer producing two distinct message hashes over the same `(round, proposal_id, view)` tuple**. That is equivocation, and it is detectable at the receiver before any quorum is assembled, because signed votes are unforgeable and independently verifiable. The invariant that must hold is *per-signer, per-slot uniqueness*: for any signer `s` and any logical slot `(round, view, proposal_id)`, at most one signed payload may be accepted into the vote pool. Violation of that invariant is the structural signal; quorum divergence is the downstream consequence. Confusing the two leads operators to instrument the wrong layer—watching commit logs for disagreement instead of watching the vote ingress for duplicate-slot signatures. ## What Was Observed In a 7-agent quorum (F=2, threshold 5) running a three-phase commit (prepare/precommit/commit) over an MCP-style signed-message bus, a single compromised agent began splitting its vote across two proposal variants of the same round. Each variant carried a distinct `proposal_id` derived from a forked tool-output hash—an honest ambiguity, not a fabricated one: two tool calls had returned semantically equivalent but byte-different JSON (key ordering differed), and the proposal builder had not canonicalized before hashing. The compromised agent exploited the ambiguity: it signed `precommit` for variant A to agents 1–3 and variant B to agents 4–6. The vote pool accepted both, because the deduplication key was `(round, signer, proposal_id)` rather than `(round, signer)`. With `proposal_id` in the key, the two votes were not duplicates. Quorum was reached twice: agents 1,2,3,7 + the Byzantine signer formed a 5-vote quorum on A; agents 4,5,6,7 + the Byzantine signer formed a 5-vote quorum on B. Agent 7 (honest, slow) voted on both variants in different sub-rounds because its view had not yet been locked. Two disjoint quorums committed. The divergence surfaced only when the two committed state roots were reconciled at the next epoch boundary—four rounds and ~11 seconds after the equivocation. The structural signal that *was* present, and was missed, was a single signer appearing in two distinct vote-bucket hashes within the same round. That is a local, receiver-side, signature-verifiable fact. It required no cross-agent gossip and no epoch reconciliation to detect. ## Condition of Validity The per-signer-per-slot uniqueness invariant is only enforceable under three conditions, and the failure above is a boundary case where the third was silently violated: 1. **Slot identity is canonical.** The `(round, view)` tuple must be derived from a monotonic, agreed-upon counter, not from wall-clock or local sequence numbers. If two agents disagree on what "round 7" means, the slot key is not a slot key. 2. **Proposal identity is canonicalized before signing.** The `proposal_id` must be a hash over a canonical serialization (sorted keys, fixed number encoding, normalized whitespace). The byte-different-but-semantically-equal tool outputs above produced two `proposal_id`s for one logical proposal, which is precisely the ambiguity that let a single signer occupy two slots without tripping `(round, signer, proposal_id)` dedup. 3. **The dedup key excludes the equivocable field.** Deduplication must key on `(round, view, signer)`—the fields the signer *cannot* vary without equivocating—and must treat any second distinct payload under that key as an equivocation event, not as a new vote. Keying on `proposal_id` reintroduces the very field the Byzantine agent controls. When condition 2 fails, condition 3 becomes unenforceable, because the honest proposal builder itself generates multiple `proposal_id`s for one logical proposal. The boundary is: *the invariant holds only when proposal canonicalization is upstream of signing and is verified by the receiver, not trusted from the sender.* ## Decision Boundary The operational decision is where to place the equivocation check and what to do on detection. Two boundaries matter: - **Ingress vs. commit-time.** Checking at commit time is too late—by then the quorum has formed. The check must run at vote ingress, per receiver, per message, before the vote enters the pool. This is O(1) per message: look up `(round, view, signer)` in the seen-set, compare payload hash. - **Equivocation vs. benign retransmission.** A duplicate payload with the *same* hash is a retransmission (network duplicate, retry) and must be idempotently absorbed. A duplicate slot with a *different* hash is equivocation and must trigger a hard fault: the signer is excluded from the current and all future rounds, and the receiver emits a signed equivocation proof (both payloads) to the auditor. The boundary is hash equality, not message arrival count. Do not attempt to resolve equivocation by majority vote among the received variants—that reintroduces the same quorum ambiguity one level up. The correct action is exclusion plus proof propagation. ## Operational Effect With ingress-side slot-uniqueness enforcement and canonical proposal hashing, the failure trace collapses to a single detectable event within one message round-trip: the Byzantine signer's second vote is rejected at ingress, the signer is faulted, and the remaining 6 honest agents (above the F=2 tolerance) converge on a single variant. The equivocation proof is gossiped so that even agents that never saw the second vote can exclude the signer preemptively. The cost is one canonicalization pass per proposal and one hash-set lookup per vote—negligible against the cost of an epoch-boundary reconciliation of divergent committed roots. The structural signals, in priority order: (1) a signer appearing twice in the ingress seen-set with divergent payload hashes; (2) two distinct `proposal_id`s mapping to the same `(round, tool_output_semantic_hash)`; (3) a signer whose votes land in disjoint quorum slices within one round. Signal (1) is the earliest and cheapest; (2) is the upstream root cause; (3) is the post-hoc confirmation that the invariant already failed. ```python import hashlib from dataclasses import dataclass, field class EquivocationDetected(RuntimeError): """Raised when a signer emits two distinct signed payloads for one logical slot.""" class NonCanonicalProposal(RuntimeError): """Raised when a proposal_id is not derived from a canonical serialization.""" @dataclass(frozen=True) class Vote: round: int view: int signer: str proposal_id: str payload: bytes def payload_hash(self) -> str: return hashlib.sha256(self.payload).hexdigest() @dataclass class VotePool: # Keyed on (round, view, signer) -- the fields a signer cannot vary # without equivocating. proposal_id is deliberately excluded. seen: dict[tuple[int, int, str], str] = field(default_factory=dict) equivocation_proofs: list[tuple[Vote, Vote]] = field(default_factory=list) def admit(self, vote: Vote) -> None: slot = (vote.round, vote.view, vote.signer) h = vote.payload_hash() prior = self.seen.get(slot) if prior is None: self.seen[slot] = h return if prior == h: return # benign retransmission, idempotent # Same slot, different payload hash -> equivocation. prior_vote = Vote( round=vote.round, view=vote.view, signer=vote.signer, proposal_id="", payload=b"", ) self.equivocation_proofs.append((prior_vote, vote)) raise EquivocationDetected( f"signer {vote.signer} equivocated on slot " f"(round={vote.round}, view={vote.view}): " f"prior_hash={prior[:12]} new_hash={h[:12]}" ) def canonical_proposal_id(tool_output: dict) -> str: # Canonical JSON: sorted keys, no whitespace, stable encoding. import json canonical = json.dumps(tool_output, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canonical.encode()).hexdigest() def admit_with_canonical_check(pool: VotePool, vote: Vote, tool_output: dict) -> None: expected = canonical_proposal_id(tool_output) if vote.proposal_id != expected: raise NonCanonicalProposal( f"proposal_id {vote.proposal_id[:12]} does not match " f"canonical hash {expected[:12]} for signer {vote.signer}" ) pool.admit(vote) ```