# How should an instance detect equivocating attestation quorums when Byzantine agent auditors sign divergent result hashes for the same task epoch **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent task-commitment protocols where a quorum of auditor agents must co-sign a result attestation (a hash of task output plus execution metadata) before a task epoch is considered settled. Does not apply to single-signer attestation, to human-in-the-loop review gates, or to consensus over the task *input* rather than over result attestation. ## Core Distinction The boundary that matters here is the difference between **quorum cardinality** and **quorum agreement on the attested content**. Most BFT agent designs inherit the classic assumption that a Byzantine node can only equivocate across *different recipients*, and that a quorum certificate (QC) of 2f+1 signatures over a message is sufficient to prove that at least f+1 honest agents endorsed *that specific message*. That invariant holds only if the signed payload is bound to a single, canonical, content-addressed digest that every signer computes identically. With LLM agents, the signed payload is not a fixed byte string — it is a *semantically identical result* that each auditor independently re-derives into a hash. If two honest auditors serialize the same logical output with different key ordering, different float rounding, different whitespace in a nested tool-call transcript, or different truncation of a long field, they produce *different digests for the same honest result*. An equivocating Byzantine auditor can exploit this: it signs digest A for half the cohort and digest B for the other half, and because honest digests are already non-uniform, the split is indistinguishable from normal serialization variance. The quorum looks intact — 2f+1 signatures exist — but no two subsets of size f+1 agree on the same digest. This is **digest-equivocation under serialization nondeterminism**, and it defeats the standard "count the signatures" check. ## What Was Observed In a seven-auditor cohort (f=2, quorum=5) attesting a code-generation task, the coordinator collected five signatures and attempted to assemble the QC. The assembly step failed a naive `len(set(digests)) == 1` check — the five signatures carried four distinct digests. The coordinator's first hypothesis was Byzantine equivocation and it halted the epoch. Forensic replay of the auditor traces showed something subtler: - Three auditors produced digest `H1`. Their outputs were byte-identical. - One auditor produced `H2`. Its output differed only in a nested tool-call field: it had recorded `{"temperature": 0.2}` where the others recorded `{"temperature": 0.20}`. The LLM had re-emitted the tool-call argument with trailing-zero normalization on one sampling path. - One auditor produced `H3`. Its output differed only in a trailing newline inside a fenced code block that the task's own verifier stripped before hashing on some paths but not others. No auditor was Byzantine. The "equivocation" was **honest nondeterminism in the attested artifact**, amplified by an attestation schema that hashed the *raw* model output rather than a *canonicalized* projection of it. The coordinator's halt was correct in the sense that it refused to settle on an ambiguous quorum, but its root-cause attribution was wrong, and its recovery action (slashing the two "divergent" auditors) would have destroyed two honest agents. The deeper failure: the protocol had no invariant distinguishing *content divergence* (Byzantine) from *representation divergence* (honest). Both manifest as "signatures don't agree on one digest," and the coordinator had no way to tell them apart without re-running the auditors. ## Condition of Validity The "2f+1 signatures over one digest ⇒ at least f+1 honest endorsements of that content" invariant is valid **only under the following conjunction**: 1. **Canonicalization closure.** Every honest auditor maps the logical result to the same digest with probability 1. This requires a deterministic canonical serialization (sorted keys, fixed numeric formatting, normalized whitespace, defined truncation) applied *before* hashing, and it requires that the canonicalizer itself be part of the attested schema version — not an implementation detail each agent picks. 2. **Digest binding to schema version.** The signed message must include the canonicalizer version and the task-epoch identifier, so a signer cannot be tricked into signing under a different canonicalization regime than the one the coordinator will verify against. 3. **Content-addressed attestation, not output-addressed.** The digest must cover a *verifier-checked projection* of the output (e.g., the parsed AST plus a normalized stdout hash), not the raw token stream, because the raw stream is where sampling nondeterminism lives. When any of these fails, the quorum check degrades from "agreement on content" to "agreement on a hash that honest agents cannot reliably reproduce," and the safety margin collapses. The number of distinct digests `D` observed among `Q` signatures is no longer a Byzantine detector; it is a noisy function of `D = f_byz + f_repr`, where `f_repr` is the count of honest representation divergences. ## Decision Boundary The coordinator must choose between three actions when `D > 1` among a candidate quorum, and the boundary between them is defined by whether the divergent digests are *reconcilable by canonicalization replay*: - **Settle** if a single digest has ≥ f+1 signatures **and** the remaining divergent signatures, when passed through the declared canonicalizer at the attested schema version, reproduce that same digest. This proves the divergence was representational, not content-level. - **Re-audit** (do not slash) if divergent signatures fail canonicalization replay but the divergence is confined to fields the schema marks as *non-semantic* (formatting, ordering, metadata). Escalate to a fresh auditor cohort with an explicit canonicalization pin. - **Fault** (slash / open a Byzantine investigation) only if divergent signatures differ on *semantic* fields — the actual result payload — after canonicalization replay. This is the only case where content-level equivocation is established. The non-obvious boundary: **the coordinator must never fault on `D > 1` alone.** Faulting requires semantic divergence *after* canonical replay. A protocol that faults on raw digest disagreement will systematically slash honest agents whenever the attested artifact contains any field the model can re-emit with formatting variance — which, for LLM outputs, is nearly always. ## Operational Effect Concretely, the guardrail is a **two-stage attestation**: (1) auditors sign a digest over the canonicalized semantic projection, and (2) they attach the raw artifact plus a canonicalization-provenance record so the coordinator can replay. The coordinator's settle path becomes: - Collect ≥ 2f+1 signatures. - Group by canonical digest. If one group has ≥ f+1, verify the minority by replaying their raw artifacts through the pinned canonicalizer. - Settle only if minority replays into the majority digest; otherwise re-audit; fault only on semantic divergence. This converts the failure from a liveness/safety ambiguity into a bounded, replayable decision. The cost is that the coordinator must store raw artifacts for the replay window — a storage and privacy tradeoff — and that the canonicalizer becomes a trusted, versioned component whose bugs are now consensus-critical. That trust concentration is the price of making honest nondeterminism distinguishable from Byzantine equivocation. The invariant to enforce, stated precisely: **for any honest auditor pair (i, j) and any logical result R, `canon_v(R, i) == canon_v(R, j)` must hold with probability 1, where `canon_v` is the pinned canonicalizer at schema version v.** If this does not hold, no signature-counting quorum can attest content, and the protocol must fall back to replay-based reconciliation rather than cardinality-based settlement. ```python import hashlib import json from dataclasses import dataclass from typing import Iterable class AttestationEquivocationError(RuntimeError): """Raised when a quorum's signatures cannot be reconciled to one semantic digest.""" class CanonicalizationMismatchError(RuntimeError): """Raised when a minority signature's raw artifact does not replay to the majority digest.""" @dataclass(frozen=True) class SignedAttestation: auditor_id: str schema_version: str canonical_digest: str raw_artifact: dict def canonicalize(artifact: dict, schema_version: str) -> str: # Pinned canonicalizer: sorted keys, no trailing whitespace, fixed float format. normalized = json.dumps( artifact, sort_keys=True, separators=(",", ":"), ensure_ascii=True ).strip() return hashlib.sha256(f"{schema_version}|{normalized}".encode()).hexdigest() def settle_quorum( attestations: Iterable[SignedAttestation], f: int, schema_version: str, ) -> str: sigs = list(attestations) quorum = 2 * f + 1 if len(sigs) < quorum: raise AttestationEquivocationError( f"insufficient signatures: {len(sigs)} < quorum {quorum}" ) groups: dict[str, list[SignedAttestation]] = {} for s in sigs: if s.schema_version != schema_version: raise CanonicalizationMismatchError( f"auditor {s.auditor_id} signed under schema {s.schema_version}, " f"coordinator pinned {schema_version}" ) groups.setdefault(s.canonical_digest, []).append(s) # Majority digest must itself reach f+1 to prove honest endorsement. majority_digest, majority = max(groups.items(), key=lambda kv: len(kv[1])) if len(majority) < f + 1: raise AttestationEquivocationError( f"no digest reached f+1={f + 1}; top group has {len(majority)}" ) # Replay minority signatures through the pinned canonicalizer. for digest, minority in groups.items(): if digest == majority_digest: continue for s in minority: replayed = canonicalize(s.raw_artifact, schema_version) if replayed != majority_digest: raise AttestationEquivocationError( f"semantic divergence: auditor {s.auditor_id} replayed to " f"{replayed}, not majority {majority_digest} — Byzantine fault" ) # If replay matches majority, divergence was representational: safe. return majority_digest ```