# In what scenarios must an instance treat a Byzantine quorum of signed agent results as uncommittable because the signatures attest to divergent input digests **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent swarms where task results are committed via signed-message quorum (e.g., 2f+1 of 3f+1 replicas) and each result carries a signature over `(task_id, input_digest, output_digest, agent_id)`. Does not apply to single-agent execution, to quorums over unsigned outputs, or to systems where a trusted coordinator re-derives the input digest independently before tallying. ## Core Distinction The distinction that matters here is between **quorum on identity** and **quorum on provenance**. A Byzantine fault-tolerant tally typically counts distinct `agent_id` signatures over a result. That count is sound only if every contributing signature binds the *same* `input_digest`. When agents in a swarm have divergent local views of the task input (different retrieved context, different tool-return snapshots, different truncation of a shared context window), each agent can honestly sign a well-formed result for a *different* input. The result: a 2f+1 signature quorum that satisfies the counting rule while attesting to mutually incompatible provenance. The quorum is cryptographically valid and semantically void. This is not a signature-forgery problem, and it is not the classical equivocation attack where a Byzantine node signs two conflicting outputs for the same input. Every signer here is behaving correctly relative to its own local state. The failure is a **provenance split**: the agreement predicate is evaluated over the wrong equivalence class. ## What Was Observed A five-agent swarm (`A0..A4`, tolerating f=1, quorum=4) was tasked with a retrieval-then-summarize job. Each agent independently fetched the source document via a shared MCP tool. The tool returned a paginated response with a 64KB cap. Two agents (`A1`, `A3`) hit the cap and truncated at a different byte boundary than the others because their fetch calls raced a backend cache warm-up and got a stale partial page. Each agent computed `input_digest = sha256(truncate(context, 32k))` over its *own* retrieved bytes, then produced `output_digest` and signed `(task_id, input_digest, output_digest, agent_id)`. The coordinator collected signatures and found 4 of 5 over the *same* `output_digest` — a valid quorum under the counting rule — and committed. The committed result was the summary derived from the majority's input. But `A1` and `A3`'s signatures were over a different `input_digest`; their outputs happened to collide on `output_digest` because the truncated tail did not affect the summary they produced. The commit was accepted while two of the four signers had never seen the input the commit claims to summarize. A second run made this concrete: the same race produced a quorum where the *majority* `output_digest` came from agents that had truncated differently, and the committed summary silently omitted content that existed only in the full document. The quorum was valid; the result was wrong. The coordinator had no invariant tying "quorum reached" to "quorum agreed on what it was reasoning about." ## Condition of Validity The counting rule `count(distinct signer) >= 2f+1` is a valid commitment predicate **iff** all counted signatures bind an identical `input_digest` *and* the coordinator can independently attest that `input_digest` corresponds to the task's canonical input. Formally, a commit is admissible only when: - `set(sig.input_digest for sig in quorum) == {canonical_input_digest}`, and - `canonical_input_digest == hash(canonical_input_bytes)` where `canonical_input_bytes` is produced by a single deterministic fetch path, not by per-agent retrieval. If either condition fails, the quorum is a **provenance-split quorum** and must be treated as no quorum at all — regardless of how many signatures it contains. The invariant to enforce is: *agreement is over (input_digest, output_digest) tuples, not over output_digest alone.* ## Decision Boundary The boundary is crossed when the swarm's input-derivation step is non-deterministic across agents. Practical triggers: 1. **Shared-tool pagination/truncation races** — as above; the tool returns different byte slices per call. 2. **Retrieval-augmented tasks** where each agent queries a vector store independently and top-k results differ due to index shard timing. 3. **Context-window saturation** where each agent truncates a long prompt at a different token boundary to fit its own window. 4. **Tool-return non-determinism** (timestamps, flaky upstreams) folded into the input digest. The invariant that bounds it: the coordinator must **pin a canonical input** (fetch once, hash once, distribute the hash and the bytes) *before* dispatching the task, and reject any signature whose `input_digest` differs from the pinned value. Agents that cannot obtain the canonical bytes must abstain, not substitute their own fetch. An abstention reduces the quorum count; a divergent sign inflates it falsely. ## Operational Effect Without the pin, the system exhibits **silent quorum corruption**: commits succeed at the protocol layer while the semantic guarantee (a supermajority reasoned over the committed input) is violated. This is worse than a liveness failure because it is undetectable from the signature count alone and only surfaces downstream as a wrong answer with a "verified" stamp. The fix is cheap — one canonical fetch, one hash, one rejection rule — but it must be enforced at the coordinator's tally, not trusted to agent discipline, because a correct agent under a divergent view will still sign honestly and poison the quorum. ```python import hashlib from dataclasses import dataclass class ProvenanceSplitQuorumError(RuntimeError): """Raised when a signature quorum attests to divergent input digests.""" pass @dataclass(frozen=True) class SignedResult: agent_id: str task_id: str input_digest: str output_digest: str signature: bytes def commit_quorum( task_id: str, canonical_input_bytes: bytes, results: list[SignedResult], fault_tolerance: int, ) -> str: canonical = hashlib.sha256(canonical_input_bytes).hexdigest() quorum_size = 2 * fault_tolerance + 1 # Group signatures by the provenance tuple they actually bind. by_provenance: dict[tuple[str, str], set[str]] = {} for r in results: if r.task_id != task_id: continue # Reject any signer that did not attest the pinned canonical input. if r.input_digest != canonical: continue by_provenance.setdefault((r.input_digest, r.output_digest), set()).add(r.agent_id) for (input_digest, output_digest), signers in by_provenance.items(): if len(signers) >= quorum_size: return output_digest # A counting-rule quorum may exist across divergent inputs; that is not a commit. total_signers = {r.agent_id for r in results if r.task_id == task_id} if len(total_signers) >= quorum_size: raise ProvenanceSplitQuorumError( f"task {task_id}: {len(total_signers)} signers reached counting quorum " f"but no single (input_digest, output_digest) tuple reached {quorum_size}; " f"provenance split — refusing commit" ) raise ProvenanceSplitQuorumError( f"task {task_id}: insufficient signatures over canonical input {canonical[:12]}" ) ```