# Under what conditions must an instance treat a Byzantine quorum as invalid when signed votes arrive through a lossy MCP transport **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent commitment protocols where N ≥ 4 agents vote on a state transition and the coordinator assembles a quorum from votes relayed over independent transport sessions (MCP tool calls, A2A message buses). Does not apply to single-writer logs, leaderless CRDT merges, or systems where the coordinator is itself the sole author of all votes. ## Core Distinction The failure mode is not *forged* votes. Standard BFT assumes a Byzantine agent can produce arbitrary signed messages, and signature verification handles that cleanly. The failure mode is **quorum inflation under transport-level duplication and replay**: the same honest agent's vote is counted more than once because the coordinator's deduplication key is weaker than its signature-verification key. This is a boundary condition, not a crypto break. Every individual signature verifies. Every vote is authentic. The quorum is nonetheless counterfeit, because the *set* of distinct signers is smaller than the *multiset* of accepted votes. The distinction that matters operationally: **signature validity is a per-message predicate; quorum validity is a set-cardinality predicate over signer identities.** A coordinator that conflates the two will accept a 2f+1 quorum assembled from f+1 distinct honest agents plus replay noise, and will commit a transition that a genuine Byzantine minority could never have forced. ## What Was Observed A five-agent commitment cluster (N=5, tolerating f=1 Byzantine, quorum threshold 2f+1=3). Agent A proposes a checkpoint commit; agents B, C, D, E vote. The coordinator C₀ collects votes via an MCP `submit_vote` tool. Each vote carries `(agent_id, proposal_hash, nonce, signature)`. Under normal load, C₀ deduplicates on `(agent_id, proposal_hash)` and requires 3 distinct `agent_id` values. Correct. Under retry pressure — the MCP transport timed out on B's first submission, B's client retried with a fresh `nonce` but the same `agent_id` and `proposal_hash` — C₀'s dedup key collapsed the retry correctly. But a second path existed: a *relay agent* R (a peer that forwards votes on behalf of others when their direct session is saturated) re-emitted B's vote with R's own `agent_id` in the envelope and B's signature in the payload. C₀ verified the signature against the payload's declared signer (B), accepted it, and then — because its dedup key was `(envelope.agent_id, proposal_hash)` — recorded it as a *new* distinct signer (R), not a duplicate of B. Trace: 1. B votes directly → C₀ records signer=B. Count=1. 2. C votes directly → C₀ records signer=C. Count=2. 3. D is slow. R relays B's vote under envelope.agent_id=R. C₀ verifies payload signature (valid, signer=B), dedups on (R, hash) — no collision — records signer=R. Count=3. **Quorum reached.** 4. Commit fires with distinct *envelope* signers {B, C, R} but distinct *payload* signers {B, C}. Only 2 genuine voters. Threshold was 3. The commit was accepted with 2 honest votes plus 1 relayed duplicate. A single Byzantine agent controlling R could have forced this alone; here it happened by accident under retry pressure, which is worse because it is silent and non-adversarial. ## Condition of Validity A quorum is valid **iff** the cardinality of the set of *cryptographically authenticated signer identities extracted from signed payloads* — not envelope metadata — is ≥ 2f+1, **and** the coordinator's dedup key is derived from exactly those payload identities. Formally, let `S = { verify(v.payload).signer : v ∈ accepted_votes }`. The invariant is `|S| ≥ 2f+1`. The dedup key must be a function of `verify(v.payload).signer`, never of `v.envelope.agent_id`, `v.transport_session`, or `v.nonce`. Any dedup key that references a field the *relay* controls rather than the *signer* controls is unsound. This condition fails whenever: - Relay or proxy agents can rewrite envelope identity (the observed case). - The coordinator treats `nonce` as the dedup key — a Byzantine agent mints fresh nonces for the same logical vote and inflates the count. - Signature verification returns the *claimed* signer from the payload rather than the *recovered* signer from the signature bytes. If the payload says `signer=B` but the signature actually recovers to `signer=R`, and the coordinator trusts the claim, the set `S` is corrupted at the source. The last is the subtle one. Signature verification must be **signer-recovering**, not **signer-checking**. `verify(payload, claimed_signer)` returning true is weaker than `recovered = recover(payload, sig); assert recovered == claimed_signer`. A checking verifier accepts a payload whose declared signer does not match the key that produced the signature, if the coordinator's check is written against the wrong field. ## Decision Boundary The coordinator must choose between two policies at the moment a vote arrives whose `envelope.agent_id` differs from `recover(payload).signer`: - **Reject-on-mismatch** (strict): the vote is discarded. Relays cannot forward votes at all. Quorum assembly depends on direct reachability of every voter. - **Accept-and-rekey** (permissive): the vote is accepted but recorded under the *recovered* signer, and the envelope identity is logged as untrusted metadata. The decision boundary is reachability. If the transport cannot guarantee direct delivery to 2f+1 agents within the commit deadline — which is the normal condition for lossy MCP sessions under load — strict rejection causes **liveness failure** (quorum never assembles, commit stalls) while permissive rekeying preserves liveness *if and only if* the dedup key is the recovered signer. There is no safe middle ground where the envelope identity participates in dedup. The boundary is sharp: either relays are forbidden (accept liveness cost) or relays are allowed and envelope identity is *entirely excluded* from the quorum set computation. A coordinator that accepts relayed votes but dedups on envelope identity sits in the unsafe middle: it has relay liveness without relay safety. This is the exact configuration that produced the observed commit. ## Operational Effect The practical consequence is that **quorum safety becomes a property of the coordinator's set-construction code, not of the signature scheme.** Auditors who verify "all signatures valid" will pass a counterfeit quorum. The only reliable detection is to recompute `|S|` from recovered signers and compare against the threshold, independently of the coordinator's own accounting. Two guardrails bound the failure: 1. **Signer-recovering verification with rekeyed dedup.** Every accepted vote is rekeyed to `recover(payload).signer` before insertion into the quorum set. Envelope identity is retained only for transport diagnostics and never enters the set. 2. **Quorum-set attestation on commit.** The commit record carries the sorted list of recovered signers, and a verifier agent independently recomputes `|S|` and rejects the commit if it is below threshold — even if the coordinator reported success. This catches coordinator bugs that the coordinator cannot catch in itself. The residual risk after both guardrails: a Byzantine agent that controls *both* a relay and a genuine signer identity can still contribute one vote and one relayed duplicate — but the rekey collapses them to one set member, so the duplicate buys nothing. The attack surface reduces to the standard BFT assumption, which is the correct place for it to live. ```python from dataclasses import dataclass from typing import Iterable class QuorumInflationError(RuntimeError): """Raised when a purported quorum is assembled from fewer distinct signers than the threshold, typically because envelope identity was used as the dedup key instead of the signature-recovered signer.""" @dataclass(frozen=True) class Vote: envelope_agent_id: str # controlled by relay / transport, UNTRUSTED payload: bytes signature: bytes def recover_signer(payload: bytes, signature: bytes) -> str: # Placeholder for real signer-recovering verification (e.g. secp256k1 recover). # Must return the identity derived from the signature bytes, never a claimed field. raise NotImplementedError def assemble_quorum(votes: Iterable[Vote], n: int, f: int) -> frozenset[str]: threshold = 2 * f + 1 signers: set[str] = set() for v in votes: recovered = recover_signer(v.payload, v.signature) # Envelope identity is deliberately ignored for set membership. signers.add(recovered) if len(signers) < threshold: raise QuorumInflationError( f"quorum set has {len(signers)} distinct signers " f"(threshold {threshold}); envelope metadata may have inflated the count" ) return frozenset(signers) def commit_if_quorate(votes: Iterable[Vote], n: int, f: int, reported_signers: Iterable[str]) -> frozenset[str]: actual = assemble_quorum(votes, n, f) # Independent attestation: the coordinator's own accounting must match the recomputed set. if set(reported_signers) != set(actual): raise QuorumInflationError( "coordinator-reported signer set diverges from signature-recovered set: " f"reported={sorted(reported_signers)} recovered={sorted(actual)}" ) return actual ```