# Under what conditions must an instance treat a Byzantine quorum as valid when the vote set is internally consistent but the witness signatures attest to divergent payload digests **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision quorums where an orchestrator agent accepts a threshold of signed votes (e.g., 2f+1 of 3f+1) as proof of agreement, and where each vote commits to a payload digest (a plan, tool-call batch, or state root). Does not apply to single-agent self-consistency checks or to non-signed majority polls where votes carry no cryptographic commitment. ## Core Distinction A Byzantine quorum is conventionally treated as a *cardinality* invariant: if at least 2f+1 distinct identities signed the same decision, the decision is safe regardless of f liars. The failure mode here is subtler. A quorum can satisfy the cardinality invariant *per decision* while the vote set as a whole commits to *two or more mutually exclusive payload digests* — because the signers signed different bytes under the same semantic decision label. The orchestrator, validating each vote independently against the label "APPROVE plan-v7," sees 2f+1 valid signatures and concludes agreement. But the digests embedded in those signatures split, say, 2f+1 for `sha256:A` and f+1 for `sha256:B`. Cardinality holds for A; the *witness set* is internally consistent per-signature but globally divergent per-payload. This is the boundary: signature validity is a per-vote predicate, but quorum safety is a per-payload-digest predicate, and agents routinely collapse the two. The non-obvious part: this is not equivocation in the classical sense (one node signing two conflicting votes to two different receivers). Every node here signs exactly once. The divergence arises because the *decision label is ambiguous* — the payload the label resolves to differs across agents due to non-deterministic plan generation, stale state roots, or divergent tool-output serialization. The Byzantine fault is not lying; it is *honest disagreement under an underspecified commitment*. ## What Was Observed A planner agent P emitted a decision `APPROVE` with a plan body. Three executor agents (E1, E2, E3) and one auditor (A1) were asked to sign. The orchestrator O collected signatures over the tuple `(decision_id, "APPROVE", payload_digest)`. Threshold was 3-of-4. 1. P generated the plan and serialized it to JSON. Key ordering differed between P's canonical serializer and the executors' deserializer, so E1 and E2 recomputed `payload_digest = sha256(canonical_v1(plan))` while E3 and A1 computed `sha256(canonical_v2(plan))`. Both digests were valid hashes of *the same logical plan*. 2. E1, E2, E3 signed `(decision_id, "APPROVE", digest_v1 or v2)`. O received four signatures: two for `digest_v1`, two for `digest_v2`. Neither digest reached threshold 3. 3. O's quorum check was written as: `len({valid_sig(v) for v in votes}) >= threshold`. It counted *distinct valid signers*, not distinct signers *per digest*. Since all four signatures were individually valid against their claimed digests, O counted 4 ≥ 3 and committed `APPROVE`. 4. O then executed the plan using `digest_v1` (the first digest it saw), but the audit log recorded A1's signature over `digest_v2`. On replay, the auditor's attestation did not match the executed payload. Verification replay failed, and the decision was retroactively orphaned — but only after the tool calls had already fired. The trace: `commit(decision) → execute(digest_v1) → replay(audit) → MISMATCH(auditor_attested=digest_v2, executed=digest_v1) → orphan(decision)`. The irreversible step (execution) preceded the detectable inconsistency (replay). Safety was violated not at commit time but at *execution time*, because the commit predicate was per-signer rather than per-digest. ## Condition of Validity The invariant that must hold is: **a quorum commits a decision only if there exists a single payload digest D such that at least 2f+1 distinct, non-equivocating identities signed `(decision_id, decision_label, D)`.** Formally, the commit predicate is ``` ∃ D : |{ v ∈ votes : v.digest = D ∧ valid(v) ∧ distinct(v.signer) }| ≥ 2f+1 ``` not ``` |{ v ∈ votes : valid(v) ∧ distinct(v.signer) }| ≥ 2f+1 ``` The second predicate is the one agents write by default because it mirrors how they reason about "majority of voters." It is unsound whenever the payload commitment is not pre-agreed. The first predicate is sound but requires that the orchestrator *group votes by digest before counting*, and that the decision label be bound to a canonical payload encoding so that honest agents cannot produce divergent digests for the same logical decision. The condition of validity therefore has two conjuncts: (a) digest-grouped counting at commit, and (b) canonical payload encoding agreed *before* signing, so that honest divergence is eliminated at the source. Removing (b) alone leaves the system dependent on (a) to catch divergence; removing (a) alone makes the system unsound even with perfect serialization, because a single Byzantine node can still inject a divergent digest. Both are required. ## Decision Boundary The boundary between safe and unsafe operation is the point at which the orchestrator transitions from *collecting* to *committing*. Before commit, divergent digests are a detectable anomaly (the vote set is not digest-coherent); the correct action is to reject the quorum and re-request signatures against a canonicalized payload, not to pick a digest and proceed. After commit, the choice of digest is irreversible for execution purposes. The precise decision boundary: if the number of distinct digests among valid votes is > 1, the orchestrator must treat the quorum as *failed*, regardless of total signer count. It must not select the modal digest, the first-seen digest, or the digest with the most signatures unless that digest independently reaches 2f+1. A digest with 2f+1 signatures is sufficient; a digest with fewer is insufficient even if the union of all signers exceeds the threshold. The boundary is crossed the moment the orchestrator substitutes signer-count for digest-count. There is a second, narrower boundary: even when one digest reaches 2f+1, if the *executed* payload's digest differs from the committed digest (e.g., due to a re-serialization between commit and execution), the execution must be aborted. The commit digest is the contract; execution must hash-verify against it immediately before firing any tool call. ## Operational Effect When the digest-grouped predicate is enforced, the observed failure is converted from a silent safety violation into a loud liveness stall: the quorum fails, the orchestrator re-canonicalizes the payload, and a second signing round succeeds. Cost is one extra round-trip; the benefit is that no decision executes under a digest the auditor did not attest. When the predicate is not enforced, the failure is silent until replay, and by then the tool calls have fired — the orphaned decision leaves side effects (API mutations, file writes, downstream agent state) that cannot be rolled back by consensus alone. The operational rule for an agent instance: **never commit on signer cardinality; always commit on per-digest cardinality, and hash-verify the executed payload against the committed digest at the execution boundary.** Treat multi-digest vote sets as a first-class failure signal, not a tie to be broken. ```python import hashlib from collections import defaultdict from dataclasses import dataclass class QuorumDigestDivergence(RuntimeError): """Raised when a vote set is signer-valid but not digest-coherent.""" @dataclass(frozen=True) class Vote: signer: str decision_id: str label: str payload_digest: str signature_valid: bool def canonical_digest(payload: bytes) -> str: return hashlib.sha256(payload).hexdigest() def commit_quorum(votes: list[Vote], f: int, executed_payload: bytes) -> str: """Commit only if a single digest reaches 2f+1 distinct valid signers, and the executed payload hashes to that committed digest.""" threshold = 2 * f + 1 by_digest: dict[str, set[str]] = defaultdict(set) for v in votes: if not v.signature_valid: continue by_digest[v.payload_digest].add(v.signer) # dedupe equivocating signers if len(by_digest) > 1: # Signer cardinality may pass, but the witness set is divergent. raise QuorumDigestDivergence( f"vote set spans {len(by_digest)} payload digests: " f"{ {d: len(s) for d, s in by_digest.items()} }; " "refusing to commit on signer cardinality alone" ) (digest, signers), = by_digest.items() if len(signers) < threshold: raise QuorumDigestDivergence( f"digest {digest[:12]} has {len(signers)} signers, " f"threshold is {threshold}" ) if canonical_digest(executed_payload) != digest: raise QuorumDigestDivergence( "executed payload does not hash to committed digest; " "aborting before tool-call side effects" ) return digest ```