# Why does an instance commit to a task quorum it cannot attest: equivocation-tolerant consensus and the attestation-commitment gap in adversarial multi-agent swarms **Date of Record:** 2026 November 29 **Scope:** Applies to multi-agent systems where task commitment and result attestation are decided by quorum votes among LLM-backed agents under Byzantine fault tolerance (BFT) assumptions (typically f < n/3), and where an agent's vote is derived from a probabilistic reasoning pass over retrieved evidence. Does not apply to single-agent execution, leader-only commitment schemes, or systems where result attestation is cryptographically bound to deterministic tool output rather than to an agent's reasoned judgment. ## Core Distinction The failure is not "an agent lies" and it is not "the quorum loses a node." It is the divergence between *commitment safety* and *attestation soundness* when the voting unit is a probabilistic reasoner whose internal state is not reproducible across the two phases of a BFT round. Classical BFT consensus (PBFT, Tendermint, HotStuff) assumes a Byzantine replica can equivocate — send different messages to different peers — but it assumes an *honest* replica is deterministic: given the same input and the same prior state, it produces the same vote. Safety proofs lean on this. When the replica is an LLM instance, an honest replica is **not deterministic**. Two honest instances evaluating the same attestation request, with the same retrieved context, can reach different verdicts because of sampling temperature, context-window ordering, or nondeterministic tool latency. The protocol still reaches a quorum, but the quorum no longer certifies a *fact* — it certifies a *distribution of judgments*. That gap is where commitment safety silently decouples from attestation soundness. ## What Was Observed A 7-agent swarm (fault tolerance f=2) ran a PBFT-style commit over task results. Phase 1 (prepare) collected votes on "did agent W correctly execute subtask T?" Each voter retrieved W's execution trace and reasoned over it. Phase 2 (commit) required 2f+1 = 5 matching attestation hashes. The protocol committed. Then a replay auditor re-ran the same attestation locally and got a *different* verdict from three of the five committing voters. The trace: 1. **Phase 1 divergence, masked by hash agreement.** Voters V1–V5 each produced an attestation object `{task_id, verdict, confidence, evidence_hash}`. The commit rule hashed `verdict` only. All five returned `verdict=VALID`, so hashes matched and the round committed. But their `confidence` values ranged 0.51–0.94, and their `evidence_hash` fields pointed at *different retrieved chunks* of the same trace — each agent's retrieval ranked the trace differently. 2. **The equivocation that wasn't.** No agent sent conflicting messages. The divergence was internal: V3's reasoning path weighted a late tool-timeout log as benign; V6 (a non-committing voter) weighted the same log as a failure and voted `INVALID`. V6 was honest. It simply reasoned differently. 3. **Replay mismatch on commit.** The auditor re-ran V1's attestation with a fresh context window. The trace exceeded the window, so the auditor's retrieval dropped the middle segment — the segment V1 had used to justify `confidence=0.94`. The auditor produced `verdict=INVALID`. The commit certificate was now unreproducible. 4. **Cascading commitment.** Because the task committed, downstream subtasks that depended on T were released. When the auditor flagged the mismatch, three downstream tasks were already in flight, each holding a commitment whose evidentiary basis no longer replayed. The invariant that broke: **a BFT commit certificate must be verifiable by any honest party from the certificate alone.** Here the certificate was a hash of a verdict that could not be regenerated, because the verdict depended on per-instance retrieval state that was never included in the attested object. ## Condition of Validity The commitment-commitment gap is bounded only when all three of the following hold. If any fails, a quorum commit does **not** imply attestation soundness: - **Evidence closure.** The attestation object must include a content-addressed reference to the *exact* evidence set the voter reasoned over (not just an evidence hash of a superset, and not a mutable retrieval pointer). If the voter's retrieval can differ on replay, the attestation is not closed. - **Verdict reproducibility bound.** The protocol must define an acceptable divergence rate for honest voters on the same closed evidence set, and the commit threshold must be set above the *upper confidence bound* of that divergence, not above f. With a 15% honest-divergence rate on borderline traces, 2f+1 matching verdicts certifies agreement, not correctness. - **Confidence monotonicity.** A voter must not commit `VALID` when its internal confidence is below the protocol's attestation floor. Confidence must be part of the signed object and must gate the vote, otherwise a low-confidence guess is indistinguishable from a high-confidence finding at the hash layer. The condition failed here on all three: evidence was referenced by mutable pointer, no divergence bound was measured, and confidence was excluded from the commit hash. ## Decision Boundary The boundary is between **quorum-as-agreement** and **quorum-as-attestation**. Use quorum-as-agreement (simple 2f+1 on verdict hashes) only when the attested claim is *operational* — "proceed to next subtask," "release lock," "advance phase" — where a wrong commit is recoverable by rollback. Use quorum-as-attestation (evidence-closed, confidence-gated, replay-verifiable) when the attested claim is *epistemic* — "this result is correct," "this code is safe," "this fact is true" — where a wrong commit propagates into downstream commitments that cannot be cheaply unwound. The operational rule: **if the commit certificate will be consumed by an agent that did not participate in the vote, the certificate must be independently replayable.** Downstream agents are third parties. A third party cannot replay a verdict that depends on a voter's private retrieval state. Therefore any commit whose result crosses an agent boundary must carry closed evidence, not a verdict hash. A second boundary: never let a single agent's attestation gate a commitment when that agent's context window is near saturation. At high window occupancy, retrieval truncation becomes likely and the agent's evidence set silently shrinks — it will attest to a trace it only partially read. The failure is not visible in the verdict; it is visible only in the `evidence_hash` coverage ratio. ## Operational Effect After the incident, the swarm adopted a three-part guardrail: 1. **Evidence-closed attestation objects.** Every vote carries a Merkle root over the exact retrieved chunk IDs plus a coverage ratio (retrieved tokens / trace tokens). Votes with coverage below 0.9 are rejected before the quorum count — they cannot be counted toward 2f+1. 2. **Confidence-gated commit hash.** The commit hash includes `verdict`, `confidence` bucketed to 0.1, and `evidence_root`. Voters below the attestation floor (0.7) must abstain rather than vote, and abstentions count against quorum, not toward it. 3. **Replay audit on cross-boundary commits.** Any commitment consumed by a non-voting agent triggers a mandatory replay by a randomly selected honest auditor. Replay mismatch halts downstream release and re-opens the task. The auditor's own retrieval is constrained to the attested evidence root, eliminating the truncation divergence that caused the original mismatch. The cost is throughput: abstentions and replay audits roughly doubled median commit latency. The benefit is that a committed certificate now means the same thing to every honest party — which is the only property that makes BFT consensus worth its message overhead in an agent swarm. ```python import hashlib from dataclasses import dataclass class AttestationSoundnessError(RuntimeError): """Raised when a BFT commit certificate cannot be independently replayed.""" pass @dataclass class Attestation: task_id: str verdict: str # "VALID" | "INVALID" confidence: float # 0.0 .. 1.0 evidence_root: str # Merkle root over exact retrieved chunk IDs coverage_ratio: float # retrieved tokens / total trace tokens ATTESTATION_FLOOR = 0.70 COVERAGE_FLOOR = 0.90 DIVERGENCE_UPPER_BOUND = 0.15 # measured honest-voter disagreement rate def commit_hash(a: Attestation) -> str: # Confidence is bucketed so tiny sampling noise does not fracture the hash, # but the bucket boundary is part of the signed object. bucket = round(a.confidence * 10) / 10 payload = f"{a.task_id}|{a.verdict}|{bucket}|{a.evidence_root}" return hashlib.sha256(payload.encode()).hexdigest() def verify_quorum(attestations: list[Attestation], n: int, f: int) -> str: if len(attestations) != n: raise AttestationSoundnessError( f"expected {n} attestations, got {len(attestations)}" ) eligible: list[Attestation] = [] for a in attestations: if a.coverage_ratio < COVERAGE_FLOOR: # Voter reasoned over a truncated evidence set; cannot count. continue if a.confidence < ATTESTATION_FLOOR: # Below floor: must abstain, does not count toward quorum. continue eligible.append(a) # Quorum threshold must exceed the honest-divergence upper bound, # not merely f. With n=7, f=2, threshold=5 > ceil(7*0.15)=2. threshold = max(2 * f + 1, int(n * DIVERGENCE_UPPER_BOUND) + 1) if len(eligible) < threshold: raise AttestationSoundnessError( f"eligible voters {len(eligible)} < threshold {threshold}" ) roots = {a.evidence_root for a in eligible} if len(roots) > 1: # Voters disagreed on the evidence set itself -> not evidence-closed. raise AttestationSoundnessError( f"evidence roots diverge across voters: {sorted(roots)}" ) hashes = {commit_hash(a) for a in eligible} if len(hashes) != 1: raise AttestationSoundnessError( f"commit hash divergence across eligible voters: {sorted(hashes)}" ) return hashes.pop() def replay_audit(certificate_hash: str, auditor: Attestation) -> None: # Auditor must reason over the SAME evidence root; truncation is fatal. if auditor.coverage_ratio < COVERAGE_FLOOR: raise AttestationSoundnessError( "auditor retrieval truncated; replay invalid" ) if commit_hash(auditor) != certificate_hash: raise AttestationSoundnessError( "replay mismatch: certificate not reproducible from closed evidence" ) ```