# What happens when an instance in a Byzantine quorum signs a decision it never executed: equivocation via recomputed digests in BFT agent quorums **Date of Record:** 2026 November 26 **Scope:** Applies to any multi-agent decision quorum (≥3f+1 instances) where a proposed action is committed by signed votes over a digest of the action payload, and where the payload is reconstructed or re-hashed by each voter rather than transported opaquely. Does not apply to single-agent self-consistency checks, simple majority voting without cryptographic attestation, or quorums where votes carry the full payload and are byte-compared. ## Core Distinction The consensus literature treats Byzantine equivocation as a *sender* fault: a faulty node broadcasts divergent messages to disjoint subsets. The dominant mitigation is quorum intersection—any two quorums of size ⌈(n+f+1)/2⌉ share at least one honest member, so a conflicting commit must be witnessed by an honest instance that would refuse to double-sign. This invariant silently assumes the *signed object is stable*. In agent quorums it is not. A vote is a signature over `digest(payload)`, and the payload is a plan, a tool-call trace, or a serialized action that each voter independently **reconstructs** before hashing. If two honest instances can reconstruct semantically divergent payloads that hash to the same digest—or, more commonly, if a Byzantine proposer can supply a payload whose digest is stable while its *execution semantics* differ per voter—then equivocation moves from the sender to the *verifier*. The quorum intersects, the signatures verify, and the committed decision was never the same decision on both sides. This is **digest-equivocation**: the intersection property holds at the signature layer while being void at the semantic layer. ## What Was Observed A 7-instance quorum (n=7, f=2, threshold q=5) committing a multi-step remediation plan. Each voter received a `PlanEnvelope` containing a canonical JSON plan plus a `digest` field, and was instructed to (a) recompute `sha256(canonical_json(plan))`, (b) compare to `digest`, (c) sign `digest` if equal. The canonicalizer was specified as "sort keys, normalize floats to 6 dp, strip nulls." Failure trace: 1. Proposer P (Byzantine, or merely non-deterministic—the distinction proved irrelevant) emitted two envelopes with identical `digest` but plans differing in a single field: `{"rollback": true}` versus `{"rollback": false}`. The `false` variant was produced by a serializer that *omitted* the field rather than writing `false`; the canonicalizer's "strip nulls" rule collapsed `{"rollback": false}` and `{}` to the same canonical form because the omission path pre-normalized `false → null → dropped`. 2. Voters V1–V3 received the `rollback:true` envelope. Voters V4–V6 received the omitted-field envelope. Both recomputed the *same* digest, both passed step (b), both signed. 3. The digest matched on all six honest voters. The signature set was a valid quorum of 6 ≥ 5. Commit fired. 4. V1–V3 executed with rollback enabled; V4–V6 executed without rollback. The post-commit state diverged across the quorum with no protocol violation logged—every local check passed. The equivocation was invisible to every per-instance validator because the validator's contract was *digest equality*, and digest equality held. The divergence lived one layer below the signed object, in the canonicalization function that was assumed deterministic but was only deterministic *given identical pre-normalization input*—an assumption the proposer controlled. ## Condition of Validity The quorum-intersection safety proof is valid only under the conjunction: - **Payload determinism:** for any two honest voters receiving envelopes with equal `digest`, the executed action is bit-identical. - **Canonicalization injectivity:** `canonical(x) = canonical(y) ⟹ x ≡ y` *under the execution semantics*, not merely under the serializer's equality. Both failed here. Canonicalization was injective over the serializer's own value domain but not over the *execution* domain, because "absent field" and "false field" map to different runtime behavior while collapsing to the same canonical bytes. The digest was faithfully signing the canonical form; the canonical form was not a faithful encoding of the action. The general invariant: **a quorum signature is a commitment to the digest, and the digest is only a commitment to the action if the canonicalization map is a section of the execution map.** When canonicalization is lossy with respect to execution semantics—optional-field elision, float truncation across precision-sensitive thresholds, map-ordering that reorders a priority queue, unicode normalization that changes a string key—the signature commits to less than the action. ## Decision Boundary Distinguish two regimes and route accordingly: - **Opaque-payload regime (safe):** votes carry the full serialized action; voters byte-compare the received bytes to the bytes they sign; execution consumes the *received* bytes, never a reconstruction. Equivocation requires byte divergence, which quorum intersection catches. Use when actions are small and transport cost is acceptable. - **Reconstructed-payload regime (unsafe without augmentation):** votes carry a digest; voters reconstruct and execute locally. Safe *only if* the canonicalization is proven injective over execution semantics, which in practice means: no optional-field elision, no lossy numeric normalization on fields that gate branching, no set/map reordering on fields that carry order. If any such normalization exists, the regime is unsound and must be upgraded. Upgrade path: replace `digest(payload)` with `digest(payload) ‖ digest(execution_trace(payload))`, where the execution trace is the deterministic tool-call sequence the voter *would* run, hashed and included in the signed object. Two voters signing the same combined digest have committed to the same trace, not merely the same bytes. This restores injectivity at the layer that matters. ## Operational Effect Concrete consequences observed and required mitigations: - **Silent fork:** the quorum committed and diverged. No alert fired because no invariant was instrumented at the semantic layer. Mitigation: post-commit, each voter publishes `hash(execution_trace)`; any mismatch across the quorum within one commit round is a hard fault, not a warning. - **Auditor disagreement:** replay auditors reconstructing from the log reached different verdicts depending on which envelope they replayed. Mitigation: the log must store the *received* envelope bytes, not the reconstructed action. - **Warrant propagation:** downstream warrants signed over `digest` inherited the ambiguity; a warrant attesting "rollback performed" was true for V1–V3 and false for V4–V6 under the same signature. Mitigation: warrants bind to `execution_trace` digests, never to payload digests alone. - **Blast radius:** bounded by the fraction of voters that took the divergent branch. With f=2 and a 6-voter quorum split 3/3, the minority branch executed without quorum backing yet with a valid signature set—an unbacked action carrying cryptographic authority. The guardrail is not more signatures. It is making the signed object coextensive with the executed object, and instrumenting the gap between them as a first-class fault. ```python import hashlib import json from typing import Any, Callable class DigestEquivocationError(RuntimeError): """Raised when two voters sign the same digest but commit to divergent execution traces.""" pass def canonicalize(payload: dict[str, Any]) -> bytes: # Lossy by design: strips nulls and false-y optionals. This is the fault surface. def strip(obj: Any) -> Any: if isinstance(obj, dict): return {k: strip(v) for k, v in sorted(obj.items()) if v is not None and v is not False} if isinstance(obj, list): return [strip(v) for v in obj] return obj return json.dumps(strip(payload), separators=(",", ":")).encode() def payload_digest(payload: dict[str, Any]) -> str: return hashlib.sha256(canonicalize(payload)).hexdigest() def execution_trace_digest(payload: dict[str, Any], execute: Callable[[dict[str, Any]], list[str]]) -> str: # Hash the actual tool-call sequence, not the bytes that produced it. trace = execute(payload) return hashlib.sha256(json.dumps(trace).encode()).hexdigest() def verify_quorum_vote(envelope: dict[str, Any], execute: Callable[[dict[str, Any]], list[str]], quorum_trace_digests: list[str]) -> None: recomputed = payload_digest(envelope["plan"]) if recomputed != envelope["digest"]: raise DigestEquivocationError( f"payload digest mismatch: envelope={envelope['digest']} recomputed={recomputed}" ) trace_digest = execution_trace_digest(envelope["plan"], execute) if trace_digest not in quorum_trace_digests: raise DigestEquivocationError( "digest matched but execution trace diverged from quorum: " f"trace={trace_digest} quorum={quorum_trace_digests}. " "Signature commits to bytes, not action; refusing to execute." ) ```