# In what scenarios must an instance treat Byzantine quorum agreement on a task result as invalid despite f+1 matching signatures **Date of Record:** 2026 November 20 **Scope:** Applies to multi-agent task-commitment protocols where N agents sign result digests and a coordinator accepts a result once it collects f+1 matching signatures under an f-of-N Byzantine fault model. Does not apply to single-agent execution, to protocols using threshold cryptography where partial signatures are combined into one unforgeable aggregate, or to optimistic-commit schemes without explicit quorum certificates. ## Core Distinction The distinction that matters is between *signature count* and *signature independence*. A Byzantine fault-tolerant quorum of f+1 signatures is only sound if the f+1 signers are (a) distinct agent instances, (b) each bound to the *same task epoch and input digest*, and (c) drawn from a membership set that the coordinator itself fixed before the task began. Most implementations check (a) and (c) mechanically—deduplicating by agent ID and validating against the roster—but treat the signed payload as opaque bytes. The result digest is verified for *equality*, not for *binding*. That gap is where a quorum of f+1 valid signatures can attest to a result that no honest agent ever computed. The subtle part: a Byzantine agent does not need to forge anything. It needs only to obtain its f+1 signatures from honest agents *on a different question* and replay them onto the current one. Because the signatures are individually valid and the signers are individually honest, every local check passes. The failure is not in any signature; it is in the *composition* of signatures across epochs. ## What Was Observed A three-agent roster (N=3, f=1) executing a retrieval-and-summarize task. Agent A is the worker; agents B and C are auditors. The commitment protocol requires the worker to publish `(task_id, epoch, input_digest, result_digest)`, and requires f+1=2 matching auditor signatures before the coordinator marks the task `COMMITTED`. Trace: 1. Epoch 1. A publishes `input_digest = H(doc_set_v1)`. B and C both audit, both sign `(task_id, epoch=1, H(doc_set_v1), result_digest=RD_1)`. The coordinator commits RD_1. Normal. 2. The upstream source mutates `doc_set_v1 → doc_set_v2` (a benign re-crawl). The coordinator re-issues the task at epoch 2 with `input_digest = H(doc_set_v2)`. 3. A is now Byzantine (or simply stale—the distinction is irrelevant to the coordinator). Instead of re-auditing, A replays the *epoch-1* signed envelopes from B and C, rewriting only the outer `task_id` and `epoch` fields, which are not covered by the auditors' signatures. The auditors' signatures cover `(input_digest, result_digest)` only. 4. The coordinator receives two envelopes. Both carry valid signatures from B and C. Both carry `input_digest = H(doc_set_v2)` in the *envelope header* (which A rewrote) and `result_digest = RD_1` in the *signed body*. Deduplication by agent ID passes (B ≠ C). Roster check passes. Signature verification passes. 5. The coordinator commits RD_1 against `doc_set_v2`. The committed result describes a document set that no longer exists. The invariant that broke: **the signed payload did not include the epoch or the input digest, so a signature valid at epoch e was also valid at epoch e'**. The auditors were honest. The signatures were valid. The quorum was the right size. The result was wrong. ## Condition of Validity A quorum certificate `QC = {(agent_i, σ_i, payload)}` is a valid attestation of `result_digest` for `(task_id, epoch, input_digest)` **if and only if** all of the following hold simultaneously: - **Epoch binding:** every `σ_i` covers `epoch` and `input_digest` inside the signed bytes, not merely in an unsigned envelope header. A signature that verifies against `(input_digest, result_digest)` but not against `epoch` is *replayable across epochs* and must be rejected. - **Roster binding:** the set of signers is a subset of the roster *as fixed at task issuance*, and the roster digest is itself covered by each signature. Otherwise a coordinator that adds a member between epochs can be steered into accepting a quorum drawn from a set the honest agents never agreed to. - **Freshness:** each signer's signature is accompanied by a nonce or epoch counter that the coordinator issued for *this* round. Without it, an auditor that signs the same `(input_digest, result_digest)` twice produces two indistinguishable envelopes, one of which may be a replay. - **Independence under equivocation:** the f+1 signers must be shown to have signed the *same* `(epoch, input_digest, result_digest)` triple, not merely f+1 triples that happen to share a `result_digest`. Two auditors who signed different input digests but the same result digest are not a quorum; they are evidence of an equivocation attempt. The condition fails the moment any of these four is checked outside the signed region. In the observed trace, epoch binding and freshness both failed; the coordinator's check was strictly `len(distinct_signers) >= f+1 and all(verify(σ, payload))`. ## Decision Boundary The boundary is not "how many signatures" but "what the signatures are *about*." Concretely, an instance must reject a quorum certificate—even one with f+1 cryptographically valid signatures from rostered, non-duplicated agents—when: - The signed payload omits `epoch` or `input_digest`, **or** - The signed payload's `input_digest` differs from the coordinator's current `input_digest` for the epoch, **or** - The signers' nonces are not the ones the coordinator issued for this round, **or** - Two signers' signed payloads differ in any field other than the signature itself (equivocation), **or** - The roster digest covered by the signatures differs from the coordinator's current roster digest. Symmetrically, an instance must **not** reject a quorum merely because the result digest is surprising, because a minority of signers are slow, or because the same result was reached via a different tool path—those are liveness and semantics questions, not safety questions, and conflating them causes the coordinator to stall on honest quorums. The decision boundary is strictly: *does the signed bytes bind the result to this epoch, this input, this roster, and this round?* If yes, accept. If no, reject regardless of count. ## Operational Effect The practical consequence is that quorum size is a red herring for a class of failures that look like consensus failures but are actually *binding* failures. An f+1 quorum with unbound signatures is strictly weaker than an f+1 quorum with bound signatures, and the gap is exactly the replay window between epochs. In the observed trace, the coordinator committed a stale result with full quorum support and zero signature failures; the only detector was a downstream consumer noticing that the summary cited a document that had been re-crawled. That is not a detection path an agent system can rely on. The guardrail that bounds this is to make the coordinator's acceptance predicate *structural* rather than *counted*: reconstruct the signed message from the coordinator's own `(task_id, epoch, input_digest, roster_digest, round_nonce)` and verify each signature against that reconstruction, not against whatever bytes arrived in the envelope. This converts the check from "did f+1 agents sign something that contains this result digest" into "did f+1 agents sign *this specific commitment*," which is the only form under which the f+1 bound actually holds. The cost is that the coordinator must persist its own epoch/roster/nonce state durably across restarts—if it loses that state, it cannot reconstruct the signed message and must re-issue rather than accept a replayed quorum. A secondary effect: equivocation detection becomes possible only if the coordinator logs each signer's signed payload per round. Two envelopes from the same signer with different signed payloads for the same round are proof of Byzantine behavior and should trigger roster eviction; without per-round payload logging, the equivocation is invisible and the signer remains in the roster to equivocate again. ```python import hashlib from dataclasses import dataclass class QuorumBindingError(RuntimeError): """Raised when an f+1 quorum is cryptographically valid but not bound to the current commitment.""" pass @dataclass(frozen=True) class Commitment: task_id: str epoch: int input_digest: str roster_digest: str round_nonce: str @dataclass(frozen=True) class SignedEnvelope: signer_id: str signed_payload: bytes # bytes the signature actually covers signature: bytes envelope_header: dict # unsigned; attacker-controlled def _reconstruct(commitment: Commitment, result_digest: str) -> bytes: return ( f"{commitment.task_id}|{commitment.epoch}|{commitment.input_digest}|" f"{commitment.roster_digest}|{commitment.round_nonce}|{result_digest}" ).encode() def accept_quorum( commitment: Commitment, result_digest: str, envelopes: list[SignedEnvelope], f: int, verify, ) -> str: expected = _reconstruct(commitment, result_digest) seen_signers: set[str] = set() valid: list[str] = [] for env in envelopes: if env.signer_id in seen_signers: # Same signer, second envelope: check for equivocation before dedup. raise QuorumBindingError( f"equivocation: signer {env.signer_id} submitted multiple envelopes " f"for round {commitment.round_nonce}" ) if env.signed_payload != expected: # Signature may be valid, but it is not bound to this epoch/input/roster/round. raise QuorumBindingError( f"signer {env.signer_id} signed payload not bound to commitment " f"{commitment.task_id}@{commitment.epoch}" ) if not verify(env.signer_id, env.signed_payload, env.signature): continue seen_signers.add(env.signer_id) valid.append(env.signer_id) if len(valid) < f + 1: raise QuorumBindingError( f"insufficient bound signatures: {len(valid)} < f+1={f + 1}" ) return hashlib.sha256(expected + b"|" + "|".join(sorted(valid)).encode()).hexdigest() ```