# Which invariants prevent quorum attestation collapse when Byzantine agents equivocate across MCP result channels **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent decision quorums where N agents attest to a shared result via distinct MCP tool-call channels and a coordinator aggregates signed attestations under an f = ⌊(N−1)/3⌋ Byzantine tolerance assumption. Does not apply to single-agent self-verification, to quorums where all attesters share a single transport channel (where equivocation is physically impossible), or to leader-based consensus without independent result channels. ## Core Distinction The distinction that matters is between *message equivocation* and *channel equivocation*. Classical BFT consensus (PBFT, Tendermint) assumes a Byzantine node may send contradictory messages to different peers, and defends against it by requiring that a quorum certificate carry ≥ 2f+1 matching signed votes over an *identical payload hash*. The invariant is content-addressed: the coordinator compares hashes, and any two conflicting hashes with overlapping quorums are provably attributable to ≥ f+1 Byzantine nodes. Agent systems routinely violate the precondition of that invariant without violating its letter. When each attester calls an MCP tool independently — `verify_result`, `fetch_artifact`, `replay_trace` — the "payload" an agent attests to is not a hash of a shared immutable object. It is a hash of *that agent's own tool response*, which may legitimately differ across agents because the underlying tool is non-deterministic (sampling, retry jitter, partial reads, timestamped snapshots, or an LLM-in-the-loop verifier). Two honest agents can therefore sign different hashes for the same logical result and be indistinguishable, at the coordinator, from two Byzantine agents equivocating. The quorum's soundness proof collapses not because a Byzantine agent lied, but because the honest agents could not agree on what "the same result" means. This is *benign equivocation* masquerading as *malicious equivocation*, and no signature scheme distinguishes them. ## What Was Observed A five-agent quorum (N=5, f=1) was asked to attest that a generated artifact satisfied a schema. Each agent invoked an MCP `validate` tool. The coordinator collected signed `(agent_id, artifact_hash, verdict)` tuples and required 2f+1 = 3 matching hashes for a positive certificate. Trace of the failing round: 1. Agent A and Agent B both called `validate` and received `verdict: pass`, but the tool embedded a `checked_at` timestamp in the canonicalized payload. Their `artifact_hash` values differed in the last 8 bytes. 2. Agent C called `validate` after a transient tool timeout, retried, and received `verdict: pass` on a *re-serialized* artifact (key order changed by the tool's JSON normalizer). Third distinct hash. 3. Agent D (the Byzantine node) observed three distinct honest hashes and signed all three, plus a fourth fabricated hash, emitting each to a different peer over separate MCP sessions. 4. Agent E timed out and returned `verdict: unknown`, which the coordinator's schema silently coerced to `pass` because the verdict field was typed `Optional[bool]` and `None` was treated as non-vetoing. The coordinator found no hash with 3 matching signatures and entered a retry loop. On retry, A and B re-called `validate`, received *new* timestamps, and produced two more distinct hashes. The quorum never converged, the loop exhausted its token budget after 6 rounds, and the coordinator emitted `INCONCLUSIVE` — despite four honest agents all having correctly verified a valid artifact. The failure is not that D equivocated. It is that D's equivocation was *free*: the honest agents had already destroyed the content-addressing invariant before D acted, so D's conflicting signatures carried no attribution risk. The Byzantine node was never the proximate cause; it was an opportunist on a quorum that had already lost its soundness precondition. ## Condition of Validity The 2f+1 quorum certificate is sound **iff** the following three invariants hold simultaneously. Each is necessary; none is implied by the others. **Invariant 1 — Attestation determinism (payload identity).** For a fixed logical result R and a fixed attester set, every honest agent's attested hash must be a pure function of R alone. Any field derived from agent-local state (wall-clock time, session ID, retry count, tool-side serialization order, sampling seed) must be excluded from the pre-image. Formally: `hash(R, local_state) = hash(R, local_state')` for all local_state, local_state'. This is violated by timestamps, nonces, and normalizer-dependent serialization — the exact fields tools add for *observability*, which is why the bug is non-obvious. **Invariant 2 — Verdict domain totality.** The verdict type must be a closed enumeration `{pass, fail}` with no third state. `unknown`, `None`, `timeout`, and `error` must be *rejected at the aggregation boundary*, never coerced. Coercion of an abstention into a vote is a silent quorum inflation: it converts N−k participating agents into N, and can push an apparent 2f+1 over the threshold with fewer than 2f+1 actual affirmations. An abstention is not a vote for the majority; it is the absence of a vote and must reduce the denominator. **Invariant 3 — Equivocation attribution.** The coordinator must retain, per agent, *all* distinct hashes that agent signed within an epoch, and must reject any agent that signed two distinct hashes for the same logical result. Without per-agent conflict retention, a Byzantine node's multi-hash emission is invisible: the coordinator only ever sees the subset of D's signatures that arrived on the channel it happened to read. Attribution requires the coordinator to be the *sole* aggregation point and to log every `(agent, hash)` pair, not just the winning quorum. If any invariant fails, the quorum certificate degrades from "≥ 2f+1 honest agreement" to "≥ 2f+1 signatures over possibly-distinct payloads," which is satisfiable by f Byzantine nodes plus f+1 honest agents who merely disagree on serialization. The soundness bound silently drops from f to zero. ## Decision Boundary The boundary is not "how many agents must agree" but "over what object agreement is measured." The decision rule a coordinator should apply: - **If** the attested object is content-addressed over an immutable, canonicalized payload **and** the verdict domain is closed **and** per-agent conflict retention is active → apply standard 2f+1 threshold; f Byzantine faults are tolerated. - **If** any of the three invariants is unverifiable at the coordinator → the quorum must *downgrade* to f=0 semantics: require unanimity over a single coordinator-computed canonical hash, where attesters sign only the coordinator's hash (not their own tool output), and any divergence is a hard failure, not a retry. - **If** the tool is non-deterministic by design (LLM verifier, sampled generation) → the coordinator must compute the canonical hash *before* fan-out, distribute it as the attestation target, and require agents to attest `sign(coordinator_hash, verdict)` rather than `sign(local_tool_output)`. Determinism is imposed at the coordinator, not hoped for at the edge. The retry loop is the trap. Retrying a failed quorum on a non-deterministic tool *manufactures* fresh equivocation each round and guarantees non-convergence. A quorum that fails Invariant 1 must not retry; it must re-canonicalize. ## Operational Effect The observable signature of this failure is a coordinator that reports `INCONCLUSIVE` or exhausts budget on a result that every honest agent verified as correct, with a log full of near-miss hashes differing in trailing bytes. Operators typically misdiagnose this as a Byzantine agent or a flaky tool and add retries — which deepens the failure. The correct remediation is architectural: move canonicalization and hash computation to the coordinator, make the verdict domain closed and abstention-rejecting, and retain per-agent conflict logs so that genuine equivocation remains attributable even after benign equivocation is eliminated. The invariant to hold in memory: *a quorum certificate is only as sound as the identity of the object it certifies; if honest agents cannot produce byte-identical attestations for the same logical result, the Byzantine bound is f=0 regardless of N.* ```python class QuorumAttestationError(RuntimeError): """Raised when a quorum certificate cannot be soundly formed.""" pass VERDICT_DOMAIN = frozenset({"pass", "fail"}) def canonical_hash(result_payload: dict, canonical_fields: tuple) -> str: # Exclude any agent-local or tool-local fields (timestamps, session ids, # retry counts, serialization order) from the attested pre-image. import hashlib, json projected = {k: result_payload[k] for k in canonical_fields} blob = json.dumps(projected, sort_keys=True, separators=(",", ":")).encode() return hashlib.sha256(blob).hexdigest() def aggregate_quorum( attestations: list[dict], coordinator_hash: str, n: int, canonical_fields: tuple, ) -> str: f = (n - 1) // 3 threshold = 2 * f + 1 per_agent_hashes: dict[str, set] = {} for att in attestations: agent = att["agent_id"] verdict = att["verdict"] # Invariant 2: reject abstentions; never coerce None/unknown to a vote. if verdict not in VERDICT_DOMAIN: raise QuorumAttestationError( f"agent {agent} returned non-total verdict {verdict!r}; " f"abstention must reduce the denominator, not inflate it" ) # Invariant 1: attestation must target the coordinator's canonical hash, # not the agent's own tool output. if att["attested_hash"] != coordinator_hash: raise QuorumAttestationError( f"agent {agent} attested {att['attested_hash'][:12]}... " f"!= coordinator canonical {coordinator_hash[:12]}...; " f"benign equivocation — re-canonicalize, do not retry" ) # Invariant 3: retain every hash each agent signed for attribution. per_agent_hashes.setdefault(agent, set()).add(att["attested_hash"]) for agent, hashes in per_agent_hashes.items(): if len(hashes) > 1: raise QuorumAttestationError( f"agent {agent} equivocated across {len(hashes)} hashes; " f"attributable Byzantine fault, exclude from quorum" ) passes = sum(1 for a in attestations if a["verdict"] == "pass") if passes < threshold: raise QuorumAttestationError( f"quorum not met: {passes} pass < {threshold} required " f"(N={n}, f={f}); do not retry on non-deterministic tool" ) return coordinator_hash ```