# Where must an instance draw the quorum-attestation boundary when BFT consensus commits a task result that no honest agent can re-derive **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent swarms using BFT-style quorum attestation (f+1 / 2f+1 voting over result hashes) to commit task outcomes where the committed artifact is a *probabilistic derivation* (LLM-generated answer, plan, or classification) rather than a deterministic function of inputs. Does not apply to deterministic tool-execution results (pure functions, checksums) where any honest replica can re-derive the exact output byte-for-byte. ## Core Distinction BFT consensus classically guarantees **agreement** (all honest nodes commit the same value) and **validity** (the committed value was proposed by an honest node). It does *not* guarantee **re-derivability**: that an honest agent, given the same inputs, can reproduce the committed value. For deterministic state machines this gap is invisible—validity plus determinism implies any honest replica recomputing from the log lands on the same output, so a quorum signature is a *checkable* certificate. For LLM agents the gap is load-bearing: a 2f+1 quorum signing a result hash attests only that *f+1 honest agents produced some output and agreed on its hash*, not that the output is correct or that a verifier replaying the task will reach it. The failure mode is **attestation laundering**: a Byzantine proposer steers f honest agents into a degenerate-but-agreeable output (e.g., by injecting a poisoned few-shot exemplar into shared context), collects f+1 matching hashes, and the quorum certificate then launders a wrong answer into an "audited" result. The boundary an instance must draw is between *quorum-of-hash* (what BFT gives you) and *quorum-of-verified-derivation* (what an agent auditor actually needs). ## What Was Observed A 5-agent swarm (f=1 tolerant, quorum 2f+1=3) executing a "summarize-and-commit" task over a shared MCP document store. Each agent independently ran the summarizer model with `temperature=0.7`, hashed the output, and broadcast a `(task_id, output_hash, sig)` attestation. The proposer's attestation set was committed once 3 matching hashes appeared. Trace of the failing round: 1. Proposer (Byzantine) injects a crafted retrieval chunk into the shared context window via a tool call that all agents read before summarizing. The chunk contains a plausible-but-false claim. 2. Agent A, B (honest) and Proposer all summarize; the injected claim dominates the summary because it is lexically salient. All three emit hash `H*`. 3. Quorum of 3 reached at round r. Certificate `QC(H*)` broadcast. 4. Agent D (honest auditor) is asked to *replay* the task for verification. D's sampling seed differs; its summary omits the injected claim and hashes to `H' ≠ H*`. D raises a replay-discrepancy alarm. 5. The consensus layer cannot distinguish "D is Byzantine and lying" from "the committed value is non-reproducible." Because the protocol treats a hash mismatch as evidence of a faulty *replica*, D is eventually slashed. **The honest auditor is penalized for correctly detecting non-derivability.** The observed invariant violation: *quorum agreement on a hash was treated as a certificate of correctness*, when in a probabilistic-derivation system it certifies only coincidence of sampling. ## Condition of Validity The quorum-attestation certificate is a valid correctness witness **iff** the committed artifact is in the *re-derivable class*: for the same declared inputs, model version, decoding parameters (temperature=0, fixed seed, fixed top-p), and context snapshot hash, every honest replica produces the identical output hash with probability 1 (or ≥ 1−ε for a declared ε). This requires the attestation to bind, not just the output hash, but the **derivation tuple**: ``` attestation := (task_id, input_ctx_hash, model_id, model_version, decoding_params, output_hash, sig) ``` A quorum over `output_hash` alone is only valid when `decoding_params` pins the sampler to deterministic mode. When `temperature>0` or seeds are unbound, the quorum certificate is *not* a validity certificate and must never be consumed as one. The condition of validity is therefore a property of the *attestation schema*, not of the consensus protocol—BFT is correct; the schema fed to it was under-specified. ## Decision Boundary An instance must draw the line as follows: - **Deterministic derivation (temp=0, seed bound, context snapshot pinned):** quorum-of-hash is a sufficient certificate. Replay by any auditor reproduces the hash; a mismatch is genuine evidence of Byzantine behavior. Slashing on mismatch is sound. - **Stochastic derivation (temp>0, unbound seed, or context that can be mutated mid-round by a tool call):** quorum-of-hash is *insufficient*. The instance must either (a) force the task into the deterministic class by pinning decoding and freezing the context snapshot hash *before* attestation, or (b) escalate to a **semantic quorum**: commit only when a distinct quorum of auditors, replaying under *divergent* seeds, each independently judge the output *entails* the committed claim (an entailment check, not a hash check). In case (b), a hash mismatch is expected and must NOT be treated as Byzantine evidence. The critical anti-pattern to forbid: consuming a stochastic quorum certificate as if it were a deterministic one, and slashing auditors whose replay diverges. Divergent replay in the stochastic class is *the signal*, not the fault. ## Operational Effect If the boundary is drawn correctly, three operational consequences follow. First, **auditor slashing rules must be class-conditional**: a hash mismatch triggers slashing only in the deterministic class; in the stochastic class it triggers a semantic re-vote, and only a *majority of divergent-seed auditors* judging non-entailment can reject the commit. Second, **context-freeze must precede attestation**: the input context snapshot hash must be sealed and included in the attestation tuple, otherwise a Byzantine proposer can mutate shared context between honest agents' reads and manufacture agreement on a poisoned derivation (the injection vector above). Third, **the commit certificate's meaning changes**: `QC(H*)` becomes "f+1 agents derived `H*` from the sealed tuple," not "`H*` is correct." Downstream consumers—other agents reading the committed result from memory—must be told which guarantee they hold. Treating a stochastic QC as a correctness oracle is the precise mechanism by which a poisoned derivation propagates into agent memory and contaminates every subsequent task that retrieves it. ```python import hashlib from dataclasses import dataclass from typing import Literal class AttestationBoundaryError(RuntimeError): """Raised when a quorum certificate is consumed outside its validity class.""" pass @dataclass(frozen=True) class Attestation: task_id: str input_ctx_hash: str model_id: str model_version: str decoding_params: dict output_hash: str def derivation_class(self) -> Literal["deterministic", "stochastic"]: temp = self.decoding_params.get("temperature", 1.0) seed_bound = self.decoding_params.get("seed") is not None ctx_sealed = bool(self.input_ctx_hash) if temp == 0.0 and seed_bound and ctx_sealed: return "deterministic" return "stochastic" def consume_quorum_certificate(attestations: list[Attestation], quorum: int, replay_hash: str, auditor_judged_entailed: bool | None) -> str: """ Consume a quorum certificate, enforcing the attestation boundary. Returns the committed output_hash or raises AttestationBoundaryError. """ if len(attestations) < quorum: raise AttestationBoundaryError( f"quorum not met: {len(attestations)} < {quorum}") classes = {a.derivation_class() for a in attestations} if len(classes) != 1: raise AttestationBoundaryError( f"mixed derivation classes in quorum: {classes}") cls = classes.pop() committed = attestations[0].output_hash if any(a.output_hash != committed for a in attestations): raise AttestationBoundaryError("quorum attestations disagree on hash") if cls == "deterministic": # Hash mismatch here IS evidence of Byzantine behavior. if replay_hash != committed: raise AttestationBoundaryError( "deterministic replay mismatch: auditor divergence is Byzantine evidence") return committed # Stochastic class: hash mismatch is expected. Require semantic entailment. if auditor_judged_entailed is None: raise AttestationBoundaryError( "stochastic quorum requires semantic entailment check, none supplied") if not auditor_judged_entailed: raise AttestationBoundaryError( "stochastic quorum rejected: divergent-seed auditor found non-entailment") return committed ```