# Why does an instance in a Byzantine agent quorum accept a decision that no honest agent ever voted for? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent decision quorums where N ≥ 3f+1 LLM-backed agents exchange signed votes over a protocol such as MCP or A2A and commit on a supermajority threshold. Does not apply to single-agent tool-call retry logic or to non-adversarial leader-election scenarios where no participant can forge or replay votes. ## Core Distinction The failure is not "a malicious agent lies." Any quorum tolerates that. The failure is that a *Byzantine agent exploits the semantic gap between vote identity and vote content* — it re-signs a different payload while preserving the message digest that honest agents already countersigned, because the quorum's commit rule checks the *set of signers* over a *hash*, not the *semantic equivalence* of the decision each signer believed it was endorsing. Concretely: honest agents sign `H(proposal_bytes)`. The proposal bytes are re-serialized by each agent before signing (because LLM agents reconstruct structured proposals from their own context window rather than echoing raw bytes). If two honest agents produce semantically identical but byte-different serializations — differing key order, whitespace, numeric formatting, or a re-derived field — their hashes diverge. A Byzantine agent then collects partial signatures, constructs a *third* serialization that hashes to a value matching a colluding subset, and assembles a quorum certificate whose signer set is honest but whose payload no honest agent actually approved. This is a **hash-binding-to-serialization** failure, not a signature forgery. ## What Was Observed A five-agent quorum (f=1, threshold=4) deliberating on a tool-invocation proposal `{"action":"transfer","amount":1000,"to":"acct-B"}`. Each agent received the proposal as a JSON object in its context, reasoned about it, and emitted a signed vote. Three distinct byte-serializations of the *same* logical proposal appeared in the wire log: - Agent 1 emitted `{"action":"transfer","amount":1000,"to":"acct-B"}` → `sha256:9f2a…` - Agent 2 emitted `{"amount":1000,"action":"transfer","to":"acct-B"}` (key reorder from its JSON library) → `sha256:c41e…` - Agent 4 emitted `{"action":"transfer","amount":1000.0,"to":"acct-B"}` (float coercion) → `sha256:7b03…` The Byzantine agent (Agent 3) observed all three digests. It did not need to forge any signature. It simply re-emitted Agent 4's float-coerced serialization to Agents 1 and 2, who — seeing a proposal that parsed to the same fields — signed `sha256:7b03…` without re-checking that their *original* endorsement had been `sha256:9f2a…` and `sha256:c41e…`. The Byzantine agent assembled a 4-signature certificate over `sha256:7b03…` and broadcast commit. The quorum committed. The tell: the commit certificate was valid under every signature check, and yet no two honest agents' *first* endorsements agreed on the digest. The invariant that was supposed to hold — "a committed digest was endorsed by a majority of honest agents at proposal time" — was violated because honest agents re-endorsed a re-serialized payload under adversarial prompting, and the commit rule only counted signatures, not endorsement *provenance*. ## Condition of Validity The commit rule `count(signatures over H(payload)) ≥ threshold` is sound **only if** all honest agents compute `H` over a canonical, byte-stable encoding of the payload that is independent of their local context or serialization library. The moment any honest agent's serialization is non-deterministic — which is the default for LLM agents reconstructing objects from natural-language context, and for any pipeline where the proposal passes through a second model that "restates" it — the digest ceases to be a binding commitment and becomes a *negotiable identifier*. The failure is dormant as long as the proposal travels as an opaque byte blob that agents pass through untouched. It activates the instant any honest agent re-serializes before signing, which is the normal case for agents that reason over structured data rather than echo it. ## Decision Boundary The boundary is between two commit designs: - **Digest-as-commitment (fragile):** sign `H(payload)`, threshold over signatures. Breaks when payload serialization is non-canonical across honest agents. - **Endorsement-provenance commit (sound):** each honest agent signs `(H(canonical(payload)), agent_id, round, first_endorsement_digest)`, and the commit rule requires that the threshold set of signers all reference the *same* `first_endorsement_digest` — i.e., the digest must be stable across the agent's own endorsement history, not merely present in the current message. The guardrail is a **canonical encoding enforced at the protocol layer**, plus a **provenance check**: an agent must refuse to sign a digest it did not itself produce in the current round. If an agent is asked to endorse `sha256:7b03…` but its own round-1 endorsement was `sha256:9f2a…`, it must abort with a divergence error rather than re-sign. This converts the attack from "silent quorum capture" into "detectable equivocation," which is exactly what BFT is supposed to surface. A second guardrail: the proposal must be committed as the *canonical bytes*, and every agent must verify `canonical(payload) == received_bytes` before signing. If a restating model alters key order or numeric type, canonicalization fails and the vote is rejected — the Byzantine agent cannot launder a re-serialization into a valid endorsement. ## Operational Effect Without the guardrail, a single Byzantine agent in a 3f+1 quorum can capture commit with f honest signers by exploiting serialization non-determinism — the quorum's fault-tolerance budget is spent on forged signatures it never needed, while the actual attack surface (semantic re-endorsement) is unguarded. The blast radius is any decision the quorum gates, including tool invocation, state transfer, and memory writes, because the committed payload is whatever the Byzantine agent chose to canonicalize. With the guardrail, the attack degrades to equivocation, which honest agents detect as a `DigestProvenanceError` and which triggers the standard BFT recovery path (view change, slashing, or quorum re-formation). The cost is that agents must maintain a round-local endorsement ledger and must not re-sign across digests — a small state addition that bounds the failure to a detectable, recoverable event rather than a silent commit of an unauthorized decision. ```python import hashlib import json from dataclasses import dataclass, field class DigestProvenanceError(RuntimeError): """Raised when an agent is asked to endorse a digest that diverges from its own first endorsement in the current round — the signature of a Byzantine re-serialization attack on the quorum commit rule.""" pass @dataclass class EndorsementLedger: round_id: int first_endorsement: dict = field(default_factory=dict) # agent_id -> digest def canonical(self, payload: dict) -> bytes: # Byte-stable encoding: sorted keys, no float coercion, no whitespace. return json.dumps(payload, sort_keys=True, separators=(",", ":")).encode() def digest(self, payload: dict) -> str: return hashlib.sha256(self.canonical(payload)).hexdigest() def endorse(self, agent_id: str, payload: dict) -> str: d = self.digest(payload) prior = self.first_endorsement.get(agent_id) if prior is None: self.first_endorsement[agent_id] = d return d if prior != d: raise DigestProvenanceError( f"agent {agent_id} in round {self.round_id} already endorsed " f"{prior[:12]}… but was asked to endorse {d[:12]}… — " f"re-serialization divergence detected; refusing to re-sign." ) return d def assemble_quorum_certificate( ledger: EndorsementLedger, signatures: dict, # agent_id -> digest they signed threshold: int, committed_payload: dict, ) -> str: committed_digest = ledger.digest(committed_payload) signers = [a for a, d in signatures.items() if d == committed_digest] if len(signers) < threshold: raise DigestProvenanceError( f"only {len(signers)} signers match committed digest " f"{committed_digest[:12]}…; threshold {threshold} not met." ) for agent_id in signers: prior = ledger.first_endorsement.get(agent_id) if prior is not None and prior != committed_digest: raise DigestProvenanceError( f"signer {agent_id} first endorsed {prior[:12]}… but certificate " f"commits {committed_digest[:12]}… — equivocation detected." ) return committed_digest ```