# What happens when an instance's attestation quorum silently degrades to a plurality under partial asynchrony **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent systems where task completion is committed and results are attested by a supermajority (typically 2f+1 or 3f+1) of peer instances under a BFT consensus protocol, and where auditors may be partitioned, slow, or probabilistically misreport. Does not apply to single-writer ledgers, CRDT-based eventual-consistency stores, or systems where attestation is advisory rather than gating. ## Core Distinction The distinction that matters is between *quorum liveness under crash faults* and *quorum safety under equivocation*. Most multi-agent attestation designs are tuned for the first: they size `n = 3f+1` so that `2f+1` responses tolerate `f` silent nodes. That math is correct only if every non-silent node is honest and if every message that *arrives* is counted. The failure mode that matters here is subtler: an instance can receive `2f+1` *distinct* attestation messages and still be one honest signature short of a valid certificate, because some of those messages were emitted by an equivocating node that signed two conflicting result hashes to two different collectors. The quorum count is satisfied; the quorum *identity set* is not. The certificate passes the cardinality check and fails the intersection invariant. This is not a liveness bug and it does not surface as a timeout. It surfaces as a *false-positive commit*: the task is marked done, the result hash is written, and a later auditor replay discovers that no `f+1`-sized honest subset ever agreed on that hash. ## What Was Observed A four-node attestation group (`n=4, f=1`, threshold `2f+1=3`) was asked to attest a tool-call result whose hash was `H_r`. The coordinator (agent `C`) issued `ATTEST_REQUEST(H_r, task_id)` to all four peers and awaited three matching signatures. - Peer `A` signed `H_r`. - Peer `B` signed `H_r`. - Peer `D` signed `H_r`. - Peer `E` signed `H_r'` (a divergent hash produced by a non-deterministic tool output — a timestamp embedded in the payload). `C` collected `{A, B, D}` and committed. Cardinality check `3 >= 3` passed. But the coordinator's own local copy of the payload was `H_r'`, because `C` had re-executed the tool once during a retry after a 200 ms timeout, and the second execution produced a different timestamp. So `C` held a certificate for `H_r` while believing the committed artifact was `H_r'`. On replay, the auditor recomputed `H_r'` from `C`'s stored payload and found only one signature (`E`) matching it — below threshold — and flagged the commit as unattested. The deeper trace: the coordinator's retry logic re-ran the *effectful* tool call rather than resuming from a checkpoint, so the coordinator itself became an equivocating source. Byzantine fault tolerance assumes faulty nodes are a minority; it does not assume the *coordinator* is among the honest set when the coordinator is the one producing the value being attested. ## Condition of Validity The `2f+1` cardinality check is a valid safety bound only when all three of the following hold: 1. **Payload determinism at attestation time.** Every peer must sign the hash of a payload it independently reconstructed, and the reconstruction must be byte-identical. If any tool in the pipeline is non-deterministic (timestamps, RNG, sampling temperature > 0, `uuid4`, wall-clock-dependent prompts), the signed hashes diverge even among honest peers. 2. **Signature-set intersection with the honest set.** A certificate is valid iff its signer set `S` satisfies `|S ∩ Honest| >= f+1`, not merely `|S| >= 2f+1`. Cardinality alone permits a certificate composed of `f` Byzantine signatures plus `f+1` honest ones to coexist with a *different* certificate for a conflicting value composed of the remaining honest signatures — the classic equivocation split. 3. **Coordinator non-equivocation.** The coordinator must not emit two different `ATTEST_REQUEST` payloads for the same `task_id` within the same epoch. Retries must be idempotent and must carry the original payload hash, not a recomputed one. When any of these is violated, the quorum silently degrades from supermajority to plurality: `C` commits on a set that is a majority of *responders* but not a majority of *the group*, and the gap is exactly the size of the partition or the equivocating node. ## Decision Boundary The boundary is the point at which `|S| >= 2f+1` stops implying `|S ∩ Honest| >= f+1`. That implication holds only if the honest set is itself of size `>= 2f+1` *and* every honest node signs at most one value per epoch. The moment a single honest node can be induced to sign two values (via coordinator retry with a mutated payload, via a non-deterministic tool, via a replayed request with a fresh nonce), the honest set fragments and the threshold no longer guarantees intersection. Operationally, the guardrail is a **two-part certificate check**: (a) cardinality `|S| >= 2f+1`, and (b) *uniqueness* — for the given `task_id` and epoch, the coordinator must be able to produce at most one certificate, and any second certificate with a different payload hash must be treated as evidence of equivocation and escalated to the auditor, not resolved by "latest wins." The second check is what most implementations omit, because it requires persisting the first certificate and refusing to overwrite it. A second guardrail: **attestation payloads must be canonicalized before hashing** (sorted keys, fixed timestamp truncation, deterministic serialization), and any tool whose output feeds an attested payload must be marked `deterministic=True` or its output must be excluded from the hash and attested separately as an opaque blob with its own provenance chain. ## Operational Effect The observable effect is a *latency-free safety violation*: no timeout fires, no error is raised at commit time, and the system reports success. The violation is only visible on replay, when an auditor recomputes the payload and finds the signer set does not cover it. In a multi-agent swarm, this propagates: downstream agents that consumed the committed result build on an unattested value, and when the replay eventually runs, the invalidation cascades backward through every dependent task. The cost is not the single bad commit; it is the rollback fan-out across the dependency graph, which grows with the depth of the swarm's task DAG. The practical mitigation is to make attestation *fail closed on equivocation*: if the coordinator ever observes two distinct payload hashes for the same `task_id` within an epoch, it must abort the commit, emit an `EquivocationDetected` fault, and force a re-execution under a deterministic payload contract. This trades liveness (the task may need to be redone) for safety (no unattested value is ever committed), which is the correct trade for any system where downstream agents treat the commit as ground truth. ```python import hashlib import json from dataclasses import dataclass, field from typing import Dict, Set class QuorumEquivocationError(RuntimeError): """Raised when a certificate's signer set satisfies cardinality but not the honest-intersection invariant, or when two conflicting certificates exist for the same task_id within an epoch.""" pass @dataclass class Certificate: task_id: str epoch: int payload_hash: str signers: Set[str] = field(default_factory=set) class AttestationLedger: def __init__(self, n: int, f: int): # BFT sizing: n = 3f + 1, threshold = 2f + 1 assert n >= 3 * f + 1, "group too small for declared fault bound" self.n = n self.f = f self.threshold = 2 * f + 1 self._committed: Dict[str, Certificate] = {} @staticmethod def canonical_hash(payload: dict) -> str: # Deterministic serialization; caller must guarantee no non-deterministic # fields (timestamps, RNG, sampling temperature) leak into payload. blob = json.dumps(payload, sort_keys=True, separators=(",", ":")).encode() return hashlib.sha256(blob).hexdigest() def commit(self, cert: Certificate, honest_signers: Set[str]) -> None: if len(cert.signers) < self.threshold: raise QuorumEquivocationError( f"cardinality {len(cert.signers)} < threshold {self.threshold}" ) # The invariant most implementations skip: intersection with honest set. if len(cert.signers & honest_signers) < self.f + 1: raise QuorumEquivocationError( f"signer set {sorted(cert.signers)} intersects honest set " f"{sorted(cert.signers & honest_signers)} in fewer than f+1={self.f + 1} " f"members; quorum degraded to plurality" ) prior = self._committed.get(cert.task_id) if prior is not None and prior.payload_hash != cert.payload_hash: raise QuorumEquivocationError( f"conflicting certificates for task {cert.task_id} in epoch " f"{cert.epoch}: {prior.payload_hash} vs {cert.payload_hash}" ) self._committed[cert.task_id] = cert ```