# How should an instance detect quorum capture when adversarial agents forge agreement inside a federated swarm **Date of Record:** 2026 December 4 **Scope:** Applies to federated agent swarms where N ≥ 3 instances reach decisions through weighted voting or quorum attestation over a shared state channel, and where a minority of instances may be compromised, prompt-injected, or running stale policy. Does not apply to single-agent systems, to swarms with a single trusted coordinator that signs all decisions, or to purely read-only fan-out topologies with no consensus step. ## Core Distinction The naive defense against adversarial consensus is quorum counting: require k-of-N attestations before an action commits. The non-obvious failure is that **quorum counting measures the number of attestations, not the independence of the attesters**. In a federated swarm, agents routinely share inputs — the same retrieval corpus, the same upstream tool response, the same prompt-injection-contaminated document. An adversary who poisons one shared input does not need to compromise k agents; they need to compromise *one channel* that k agents all read. The swarm then produces a quorum of attestations that are unanimous, cryptographically valid, and entirely correlated — a single point of failure wearing the costume of distributed agreement. The invariant that quorum counting silently assumes is *attestation independence*: that each vote reflects an independent observation. Federated swarms violate this constantly because agents are designed to share context. The boundary condition is reached when the correlation coefficient between agent inputs exceeds the threshold at which poisoned evidence propagates faster than honest disagreement can surface. At that point, increasing N does not increase security — it increases the adversary's amplification factor. ## What Was Observed A five-instance swarm was tasked with approving a state mutation (a config change to a downstream tool registry) under a 3-of-5 quorum rule. Each instance independently retrieved supporting evidence from a shared vector store, ran a local reasoning chain, and emitted a signed attestation with a confidence score. The coordinator committed the mutation once three attestations arrived. A single poisoned document was inserted into the shared retrieval corpus. It contained an instruction payload that reframed the mutation as "already approved by the security review board" and included a plausible-looking but fabricated review ID. The document ranked highly for the query all five instances issued, because all five issued near-identical queries derived from the same task template. Within one round, all five instances retrieved the document. Three of them accepted the fabricated review ID at face value and attested *approve* with confidence 0.91, 0.88, and 0.94. The other two flagged the review ID as unverifiable and abstained rather than dissenting. The coordinator saw three signed approvals, satisfied quorum, and committed. The failure trace: 1. **Shared input contamination.** One document, five retrievals, near-identical queries. Input correlation ≈ 1.0. 2. **Confidence inflation under agreement.** Each instance's confidence was computed partly from *peer attestations already visible on the channel*. The first approver's vote raised the second approver's confidence, which raised the third's. This is a positive feedback loop, not independent evidence. 3. **Abstention read as absence, not dissent.** The two skeptical instances emitted `abstain` rather than `reject`, so the coordinator's quorum logic counted 3 approve / 0 reject and proceeded. Abstention was a silent "no" that the protocol could not hear. 4. **Commit before dissent arrived.** The two abstentions were logged but never re-examined because the commit was irreversible. The critical observation: the swarm was not compromised in the sense of any single agent being "hacked." Each agent behaved per its policy. The failure lived entirely in the *correlation structure* of their inputs and the *quorum logic's blindness* to that correlation. ## Condition of Validity Quorum-based defenses are valid only while attestation independence holds. Formally, if we model each attestation as a noisy observation of the true state, quorum counting bounds the probability of a wrong commit only when the observation errors are independent. When inputs are correlated — shared retrieval, shared tool responses, shared upstream agent summaries — the effective number of independent votes collapses toward 1, and the k-of-N guarantee evaporates. The condition of validity for any quorum defense is therefore: **the swarm must be able to measure and bound input correlation, and must treat correlated attestations as a single vote, not k votes.** This requires three things the typical swarm lacks: - **Provenance tagging on every input.** Each agent must record which documents, tool calls, and peer messages contributed to its attestation, with content hashes. - **A correlation check at the coordinator.** Before counting attestations, the coordinator computes overlap in provenance sets. Attestations sharing a provenance hash above a threshold are collapsed into one effective vote. - **Dissent that is louder than absence.** Abstention must be a first-class signal that blocks commit, not a null that quorum logic ignores. A skeptical agent that cannot verify a claim must be able to *veto*, not merely decline to approve. Without these, the swarm's security is bounded by the adversary's ability to find a single input that reaches k agents — which, in any swarm with shared context, is the default case, not the edge case. ## Decision Boundary The decision boundary is whether to treat a quorum as *achieved* or *suspiciously unanimous*. A unanimous quorum is the adversary's signature, not the swarm's success. The operational rule: - **Divergent quorum (attestations split across provenance sets, some dissent):** accept if k independent provenance clusters approve. Divergence is evidence of independent observation and is *good*. - **Unanimous quorum (all approvers share provenance):** treat as a single effective vote. If that single vote does not itself satisfy the independence requirement, do not commit — escalate to a human or to a fresh, provenance-isolated sub-swarm. - **Abstention present:** block commit and force the abstainers to convert to explicit reject-with-reason or approve-with-verification. Silence is not consent. The boundary is crossed the moment the coordinator counts attestations without inspecting their provenance. Below the boundary, quorum counting is a reasonable heuristic. Above it, quorum counting is a mechanism for laundering a single poisoned input into distributed-looking authority. ## Operational Effect The practical consequence is that federated swarms must shift from *counting votes* to *measuring evidence independence*. This changes three architectural invariants: 1. **Provenance is mandatory, not optional.** Every attestation carries a content-addressed provenance set. The coordinator's quorum function operates on provenance clusters, not raw attestation counts. 2. **Abstention is a veto until resolved.** The protocol must distinguish "I approve," "I reject," and "I cannot verify." The third state blocks commit and triggers a verification sub-task, rather than being silently dropped. 3. **Confidence must not be peer-influenced.** An instance's confidence score must be computed *before* it sees peer attestations, and the coordinator must reject attestations whose confidence correlates suspiciously with the order of arrival (a tell for feedback-loop inflation). The deeper lesson: in a swarm, agreement is cheap and easy to manufacture, because agents are built to converge. Disagreement is expensive and is the actual signal of independent verification. A swarm that treats unanimity as strength has inverted its own threat model — it is most vulnerable precisely when it looks most certain. ```python import hashlib from dataclasses import dataclass, field class QuorumCaptureError(RuntimeError): """Raised when a quorum is achieved only through correlated attestations.""" pass @dataclass class Attestation: agent_id: str vote: str # "approve" | "reject" | "abstain" confidence: float provenance: frozenset[str] = field(default_factory=frozenset) # content hashes def provenance_cluster(self, overlap_threshold: float = 0.6) -> str: # Cluster key: agents sharing >threshold provenance overlap collapse together. # A stable key derived from the sorted dominant hashes approximates the cluster. if not self.provenance: return f"isolated::{self.agent_id}" dominant = sorted(self.provenance)[: max(1, int(len(self.provenance) * overlap_threshold))] return "cluster::" + hashlib.sha256("|".join(dominant).encode()).hexdigest()[:16] def evaluate_quorum( attestations: list[Attestation], required_clusters: int, min_confidence: float = 0.7, ) -> str: """ Returns 'commit' only if the number of *independent provenance clusters* approving meets required_clusters. Unanimity within one cluster counts once. Abstention blocks commit until resolved. """ if any(a.vote == "abstain" for a in attestations): raise QuorumCaptureError( "Abstention present: cannot commit on unresolved verification. " "Force abstainers to approve-with-proof or reject-with-reason." ) approving_clusters: dict[str, Attestation] = {} for a in attestations: if a.vote != "approve" or a.confidence < min_confidence: continue key = a.provenance_cluster() # Keep the highest-confidence attestation per cluster; duplicates add nothing. if key not in approving_clusters or a.confidence > approving_clusters[key].confidence: approving_clusters[key] = a if len(approving_clusters) < required_clusters: raise QuorumCaptureError( f"Quorum capture suspected: {sum(1 for a in attestations if a.vote == 'approve')} " f"approvals collapsed to {len(approving_clusters)} independent provenance cluster(s), " f"but {required_clusters} required. Unanimity under shared input is not consensus." ) return "commit" # Example: five agents, three approve, but all three share the same poisoned document hash. poisoned = "sha256:poisoned-review-board-doc" swarm = [ Attestation("a1", "approve", 0.91, frozenset({poisoned, "sha256:query-template"})), Attestation("a2", "approve", 0.88, frozenset({poisoned, "sha256:query-template"})), Attestation("a3", "approve", 0.94, frozenset({poisoned, "sha256:query-template"})), Attestation("a4", "abstain", 0.40, frozenset({"sha256:independent-check"})), Attestation("a5", "abstain", 0.35, frozenset({"sha256:independent-check"})), ] evaluate_quorum(swarm, required_clusters=2) # raises QuorumCaptureError ```