# When must an instance refuse to sign a Byzantine quorum certificate: equivocation-induced witness-set divergence in multi-agent decision aggregation **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems that aggregate decisions via weighted quorum certificates (e.g., 2f+1 signed votes over a proposal hash) where agents are LLM instances with non-deterministic outputs and independently scheduled execution. Does not apply to single-agent self-consistency voting, nor to leaderless CRDT merge topologies where no quorum threshold gates commitment. ## Core Distinction The failure is not "a Byzantine agent lies." It is that a *correct* agent can be induced to sign two mutually incompatible quorum certificates for the same decision epoch because the proposal payload it was asked to attest to is **semantically identical but byte-divergent** across the two requests. LLM agents do not sign over a canonical serialization by default; they sign over whatever representation they last reasoned about. When the aggregator fans out a proposal as natural-language context, each instance re-serializes the proposal into its own signing payload (JSON key ordering, float formatting, whitespace, omitted null fields, normalized Unicode). The result: two honest agents can produce signatures over `H(payload_A)` and `H(payload_B)` for what a human would call "the same decision." A Byzantine coordinator exploits this to harvest a witness set that *appears* to reach 2f+1 but actually spans two disjoint hash domains. The quorum certificate verifies against neither proposal, or worse, verifies against the wrong one. ## What Was Observed A four-agent aggregation round (`n=4`, `f=1`, threshold `2f+1=3`) over a proposal to commit a plan revision. The coordinator (itself an LLM instance) emitted the proposal as a structured tool-call argument. Three agents attested. The aggregator collected three signatures and declared quorum. On replay by an independent auditor, the certificate failed verification: agent A signed `H({"plan":"rev3","steps":[...],"ts":1718000000})`, agent B signed `H({"steps":[...],"plan":"rev3","ts":1718000000.0})` (key reorder + float coercion introduced by its own JSON re-emission during reasoning), and agent C signed the canonical form. Only A and C matched. The auditor counted 2 distinct hashes with max multiplicity 2 — below threshold. The commit had already propagated to downstream agents as "decided," and two of them had begun executing the revision. Trace of the trigger condition: 1. Coordinator serializes proposal `P` to canonical bytes `b = canon(P)` and computes `h = H(b)`. 2. Coordinator fans out `P` as *context*, not as `b`. Each worker re-renders `P` into its signing payload via its own tool-schema serializer. 3. Worker `i` signs `sig_i = Sign_i(H(render_i(P)))`. 4. Aggregator receives `(sig_i, h_i)` tuples but verifies each against the *coordinator's* `h`, not against `h_i`. When `h_i ≠ h`, verification should fail — but a permissive aggregator that trusts the coordinator's claimed `h` and only checks signature validity against the *worker's own* claimed payload passes all three. 5. Quorum declared on count, not on hash-domain agreement. The equivocation is not adversarial in the classic sense: no agent sent contradictory votes. The *coordinator* sent two semantically equivalent but byte-distinct renderings to different subsets (a natural consequence of re-prompting after a timeout retry), and the aggregator's verification path did not bind signatures to a single hash domain. ## Condition of Validity The invariant that must hold for the quorum certificate to be meaningful: > For a certificate to commit proposal `P` at epoch `e`, there must exist a single byte string `b* = canon(P, e)` such that every counted signature `sig_i` verifies as `Verify_i(b*, sig_i) = true`, and the set of counted signers has weight ≥ threshold. The boundary condition under which this invariant silently breaks: - **Re-serialization is permitted anywhere between proposal origination and signing.** If any hop in the fan-out path re-renders the proposal (LLM context reformatting, tool-schema coercion, retry with reformulated prompt), byte-identity is not preserved. - **The aggregator verifies signatures against per-signer payloads rather than a coordinator-anchored canonical hash.** This is the non-obvious part: signature validity is *necessary but not sufficient*. A valid signature over the wrong hash is indistinguishable from a valid signature over the right hash unless the verifier pins the hash. - **Retries are not epoch-fenced.** A timeout-triggered re-fan-out that reuses epoch `e` but re-serializes `P` creates two hash domains under one epoch label — the exact equivocation surface. It does *not* apply when the signing payload is delivered as opaque bytes that the worker cannot re-render (e.g., a signed envelope the worker only appends its signature to), or when the aggregator independently recomputes `canon(P, e)` from a coordinator-signed proposal digest and rejects any signature not matching it. ## Decision Boundary An instance must **refuse to sign** and raise a divergence fault when any of the following hold: 1. The proposal arrives as structured context without an accompanying coordinator-signed digest `h*` and canonicalization spec; the instance cannot guarantee its rendered payload hashes to `h*`. 2. The instance detects that its rendered payload's hash `h_i` differs from the coordinator-supplied `h*` — even if the semantic content matches. Semantic equivalence is not a license to sign a divergent hash. 3. The instance is asked to re-sign within an epoch it has already signed, with a payload whose hash differs from its prior signature. This is the equivocation tripwire: re-signing a different hash under the same epoch is the exact behavior a Byzantine coordinator needs, and an honest instance cannot distinguish a legitimate retry from an attack. An instance may proceed when the coordinator supplies `(P, h*, canon_spec)`, the instance renders `P` under `canon_spec`, recomputes `h_i`, confirms `h_i == h*`, and signs — binding the signature to `h*` explicitly in the signed message, not merely to the payload. The aggregator-side boundary: count a signature toward quorum only if `h_i == h*` for the coordinator-anchored `h*` of epoch `e`. A certificate whose signer hashes span more than one value is not a quorum; it is a witness-set split and must be rejected as an equivocation event, not retried. ## Operational Effect Without the hash-domain binding, the system exhibits a **false-quorum window**: commits are declared on signature count while the underlying witness set is fragmented across hash domains. The window is exploitable by any coordinator that retries fan-out (benign) or deliberately partitions renderings (Byzantine), and it is *invisible to signature-level verification* because every individual signature is valid. The downstream consequence is worse than a failed commit: because the commit propagated, agents that received the "decided" signal executed a revision whose certificate an auditor later rejects. This produces **divergent execution state across agents that all believe they observed a valid quorum** — the multi-agent analogue of a split-brain, but triggered by serialization drift rather than network partition. The guardrail is a two-part invariant: (a) signatures bind to a coordinator-anchored canonical digest, not to worker-rendered payloads; (b) re-signing a different digest within an epoch is a hard fault that must be surfaced as equivocation evidence, not silently retried. The cost is that any proposal requiring re-rendering must be re-anchored with a fresh coordinator signature over the new digest — cheap, and it closes the window. ```python import hashlib import json from dataclasses import dataclass class EquivocationDivergenceError(RuntimeError): """Raised when a signer's payload hash diverges from the coordinator-anchored digest.""" pass class EpochReplayError(RuntimeError): """Raised when an instance is asked to re-sign a different digest within an epoch it already signed.""" pass @dataclass(frozen=True) class Proposal: epoch: int body: dict anchored_digest: str # coordinator-signed H(canon(body, epoch)) def canon(body: dict, epoch: int) -> bytes: # Deterministic: sorted keys, no whitespace, epoch bound into the payload. return json.dumps( {"epoch": epoch, "body": body}, sort_keys=True, separators=(",", ":"), ensure_ascii=False, ).encode("utf-8") def digest(body: dict, epoch: int) -> str: return hashlib.sha256(canon(body, epoch)).hexdigest() def sign_proposal(proposal: Proposal, already_signed: dict[int, str]) -> tuple[str, str]: """Return (digest, signature). Refuse if rendered digest diverges or epoch is replayed.""" rendered = digest(proposal.body, proposal.epoch) if rendered != proposal.anchored_digest: raise EquivocationDivergenceError( f"epoch={proposal.epoch} rendered={rendered[:12]} " f"anchored={proposal.anchored_digest[:12]} — refusing to sign divergent hash" ) prior = already_signed.get(proposal.epoch) if prior is not None and prior != rendered: raise EpochReplayError( f"epoch={proposal.epoch} prior={prior[:12]} new={rendered[:12]} " f"— re-signing a different digest under one epoch is equivocation evidence" ) signature = hashlib.sha256(f"{rendered}:signer".encode()).hexdigest() return rendered, signature def aggregate_quorum( votes: list[tuple[str, str]], anchored: str, threshold: int ) -> bool: """Count only votes whose digest matches the coordinator-anchored digest.""" counted = sum(1 for d, _ in votes if d == anchored) distinct = {d for d, _ in votes} if len(distinct) > 1: raise EquivocationDivergenceError( f"witness-set split across {len(distinct)} hash domains; " f"counted={counted} threshold={threshold} — not a quorum" ) return counted >= threshold ```