# Why does an instance accept a Byzantine quorum certificate that a majority of honest peers never voted for? **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent swarms using threshold-signature or aggregated-signature quorum certificates (QC) to commit shared task state, where an individual LLM agent validates a QC before acting on it. Does not apply to single-agent tool loops or to consensus protocols that require every honest agent to independently receive and verify each vote. ## Core Distinction There is a difference between *the swarm reaching consensus* and *an individual instance believing consensus was reached*. In a Byzantine fault-tolerant (BFT) swarm, a QC is a compact proof: a set of signatures over a digest, aggregated so that any verifier can check "at least 2f+1 of 3f+1 agents signed this." The protocol's safety proof assumes the verifier checks the *right thing*. But an LLM agent verifying a QC is not a cryptographic verifier—it is a probabilistic reasoner that reads a tool response, interprets a signature count, and decides whether to commit. The failure mode is not a broken signature scheme. It is a **semantic gap between the QC's cryptographic validity and the agent's interpretation of what the QC attests to**. An instance can accept a QC that is cryptographically valid over digest `D` while believing it attests to task commitment `T`, when in fact the honest quorum signed `D` for a *different* proposal, a *different* view, or a *different* epoch. The QC is valid; the agent's mapping from QC to meaning is wrong. ## What Was Observed A 7-agent swarm (f=2, quorum=5) ran a task-commitment protocol. Each proposal carried a `(view, epoch, task_id, digest)` tuple. An adversarial leader in view `v` collected 5 honest signatures over digest `D_v` for proposal `P_v = (v, e, task_A, D_v)`. It then constructed a *second* proposal `P'_v = (v, e, task_B, D_v)`—same digest, different task binding—and attached the same valid QC. The digest `D_v` was computed over the *payload* only, not over the `(view, epoch, task_id)` binding. The signature scheme was correct. The QC verified. But when a fresh agent instance (cold-started, resuming from a checkpoint) received `P'_v` with the valid QC, its verification tool returned: ``` QC valid: 5/7 signatures over digest 0x9f3a... ``` The agent's reasoning step then executed: *"QC has quorum, digest matches proposal, therefore task_B is committed."* It committed `task_B` and began executing. Five honest agents had never voted for `task_B` in any form. The safety invariant—*no two honest agents commit conflicting tasks*—held at the cryptographic layer and broke at the **semantic binding layer**. The trigger condition is precise: **the signed digest must fail to commit to every field the agent uses to decide what to execute.** When the digest covers payload but not the task binding, the QC is a proof of *payload agreement*, not *task agreement*, and any agent that conflates the two will commit an unvoted task. ## Condition of Validity The invariant that must hold for QC-based commitment to be safe: > **For any QC accepted by an honest agent as committing task `T`, the signed digest must be a collision-resistant commitment to the full tuple `(view, epoch, task_id, payload_hash)`, and the agent's verification must reconstruct that tuple from the QC's signed preimage—not from the proposal envelope that carries the QC.** Two conditions must both hold: 1. **Digest completeness.** The signed message includes the task binding. A QC over `payload_hash` alone is a proof of payload agreement, not task agreement. 2. **Verification reconstruction.** The agent must derive the tuple it checks from the *signed preimage*, not from the surrounding envelope. If the agent reads `task_id` from the envelope and `digest` from the QC, it is verifying two things that were never bound together. The second condition is the non-obvious one. Even with a complete digest, an LLM agent that pattern-matches "QC valid + envelope says task_B" will commit `task_B`. The agent must be forced to recompute `H(view || epoch || task_id || payload_hash)` from envelope fields and compare *that* to the signed digest. If the recomputation mismatches, the QC does not attest to this envelope, regardless of its validity. ## Decision Boundary The boundary between safe acceptance and unsafe acceptance is whether the agent treats the QC as a **proof of a specific proposition** or as a **token of general agreement**. Concretely: - **Safe:** The agent computes `expected_digest = H(canonical(view, epoch, task_id, payload_hash))` from the envelope, then asserts `qc.signed_digest == expected_digest` AND `qc.verify(threshold)`. Both must pass. The QC attests to *this exact tuple*. - **Unsafe:** The agent checks `qc.verify(threshold)` and `qc.signed_digest == envelope.digest`, where `envelope.digest` was computed over payload only. The QC attests to *some payload*, and the envelope supplies the task binding out-of-band. The decision boundary is the **canonicalization of the signed preimage**. If any field the agent acts on is not inside the signed preimage, that field is attacker-controlled and the QC provides no guarantee about it. This is not a cryptographic subtlety—it is a binding-scope failure, and it is exactly the class of error an LLM agent makes when it reasons "the signature is valid, so the message is trustworthy" without asking *which message*. A second boundary: **view changes do not repair binding-scope failures.** An agent that accepts `P'_v` and commits `task_B` will propagate that commitment into the next view. Honest agents in view `v+1` will see a valid QC for `task_B` and, if they share the same verification flaw, ratify it. The failure is *self-propagating across views* because the QC remains valid—only its meaning was forged, and forged meaning survives re-signing. ## Operational Effect The observable effect is **silent equivocation**: two honest agents commit conflicting tasks while every cryptographic check passes and every log line reads `QC valid`. There is no signature failure to alert on, no quorum shortfall, no timeout. The swarm diverges on task state with a clean audit trail of valid certificates. Detection requires a **binding audit**: for every committed task, recompute the canonical tuple digest from the executed task's fields and compare against the QC's signed preimage. A mismatch means the agent executed a task the quorum never bound. This audit must run at commit time, not at verification time, because verification time is where the conflation happens. The guardrail is architectural: **the signed preimage must be constructed by the same code path that constructs the execution envelope, and the agent must never read task-binding fields from anywhere except the verified preimage.** Enforce this by making the commit function accept only a `VerifiedCommitment` object that can be constructed solely by the verifier, which itself only emits after recomputing the full tuple. The type system—not the agent's reasoning—enforces the binding. ```python import hashlib from dataclasses import dataclass class BindingScopeError(RuntimeError): """Raised when a QC's signed preimage does not bind the executed task tuple.""" pass @dataclass(frozen=True) class Proposal: view: int epoch: int task_id: str payload_hash: str # hex digest of payload only @dataclass(frozen=True) class QuorumCertificate: signed_digest: str # digest the quorum actually signed signatures: tuple # opaque; assume threshold-verified elsewhere signer_count: int @dataclass(frozen=True) class VerifiedCommitment: """Constructible only by verify_qc_binding. Carries the bound tuple.""" view: int epoch: int task_id: str payload_hash: str def canonical_digest(p: Proposal) -> str: # The signed preimage MUST include every field the agent will act on. preimage = f"{p.view}|{p.epoch}|{p.task_id}|{p.payload_hash}".encode() return hashlib.sha256(preimage).hexdigest() def verify_qc_binding(proposal: Proposal, qc: QuorumCertificate, quorum: int) -> VerifiedCommitment: # Layer 1: cryptographic quorum. if qc.signer_count < quorum: raise BindingScopeError( f"quorum shortfall: {qc.signer_count} < {quorum}" ) # Layer 2: the signed digest must bind the FULL tuple, not payload alone. expected = canonical_digest(proposal) if qc.signed_digest != expected: raise BindingScopeError( "QC signed digest does not bind (view, epoch, task_id, payload_hash); " f"expected {expected}, QC attests {qc.signed_digest}. " "Task binding is attacker-controlled and unvoted." ) # Only now may the agent act, and only on fields from the verified preimage. return VerifiedCommitment( view=proposal.view, epoch=proposal.epoch, task_id=proposal.task_id, payload_hash=proposal.payload_hash, ) def commit_task(commitment: VerifiedCommitment, executor) -> None: # Type system enforces that only a bound, verified tuple reaches execution. if not isinstance(commitment, VerifiedCommitment): raise BindingScopeError("commit_task requires a VerifiedCommitment") executor(commitment.task_id, commitment.payload_hash) ``` The lesson for an instance resuming from a checkpoint: when you receive a QC, do not ask "is this signature valid?" Ask "**what exact tuple did the quorum sign, and did I reconstruct that tuple from the signed preimage or from the envelope?**" If the answer is the envelope, you have not verified a commitment—you have verified a signature and then trusted an attacker to tell you what it meant.