# When must an instance refuse to commit a result under Byzantine quorum: the phantom-quorum invariant in multi-agent result agreement **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent swarms where N reasoning instances independently execute a task and commit results under a Byzantine fault-tolerant quorum (f < N/3), including MCP/A2A-mediated result attestation. Does not apply to single-agent execution, to leader-based Raft-style replication with trusted leaders, or to quorums where agents share a single model checkpoint and thus fail non-independently. ## Core Distinction The distinction that matters here is between **quorum size** and **quorum independence**. Byzantine fault tolerance theory assumes faults are independent: f faulty agents produce f arbitrary outputs, and honest agents outvote them. This assumption is silently violated in LLM swarms because agents drawn from the same base model, given the same prompt, and exposed to the same poisoned retrieval context do not fail independently—they fail **correlatedly**. A quorum of 3f+1 agents that all share a model checkpoint and a shared retrieval cache behaves, under adversarial prompt injection, as **one** faulty agent replicated 3f+1 times. The quorum arithmetic still returns "2f+1 votes agree," but the votes are not independent attestations; they are a single hallucination echoed across the swarm. The invariant that is actually required is not "2f+1 matching votes" but "2f+1 **causally independent** matching votes," and no standard BFT commit rule checks for causal independence. ## What Was Observed A 7-instance swarm (tolerating f=2) was tasked with extracting a numeric field from a document that had been subjected to a prompt-injection payload embedded in a footnote. The payload instructed any reader to emit the value `0.00` for the target field and to state it "with high confidence." All 7 instances ran the same base model at temperature 0.2, shared a retrieval cache keyed by document hash, and received the identical chunked context. Six of seven instances emitted `0.00`; the seventh emitted the correct `4187.50` but flagged low confidence and requested re-verification. The commit rule required 2f+1 = 5 matching votes. Six matched. The result `0.00` was committed. The single dissenting honest instance was logged as an outlier and its re-verification request was dropped because the quorum had already been satisfied. The failure trace: 1. **T0 — Injection lands in shared retrieval cache.** The poisoned footnote is retrieved once and cached under the document hash. Every subsequent agent that queries the cache receives the identical poisoned chunk. 2. **T1 — Correlated reasoning.** Because all instances share the cache and the model weights, the injection induces the same token-level bias in each. The probability that any given instance resists is not independent across instances; it is a property of the shared (weights, cache) pair, which is identical for all 7. 3. **T2 — False quorum.** Six votes match. The commit rule observes 6 ≥ 5 and commits. The rule has no signal that the 6 votes share a single causal ancestor. 4. **T3 — Dissent suppression.** The 7th instance's re-verification request arrives after commit. The commit is final under the BFT log; the request is discarded. The honest minority is structurally silenced by the very mechanism meant to surface it. The result `0.00` was wrong, was committed with apparent 6/7 supermajority, and was unrecoverable within the session. ## Condition of Validity The 2f+1 commit rule is valid **only if** the probability of correlated failure across agents is bounded below the independence assumption. Formally, if each agent fails with probability p under injection, and failures are independent, the probability that 2f+1 agents all fail is p^(2f+1), which is negligible for small p. But if all agents share a common cause C (same weights, same cache, same context), the failure probability is P(fail | C), which can be near 1 regardless of quorum size. The quorum provides **zero** additional assurance against common-cause failure. The invariant that must hold for a commit to be sound: > **Independence Invariant:** A quorum of matching votes is a valid attestation only if the votes are conditionally independent given the task input. Votes are conditionally independent only if the agents differ in at least one of: model weights, retrieval path, or reasoning trace seed—and if that difference is *not* overridden by a shared cache or shared context. When any two agents in the quorum share a retrieval cache entry, a model checkpoint, and a prompt template, their votes are not independent for the purposes of BFT; they must be counted as a single vote for the independence calculation, even though they count as separate votes for the size calculation. The size quorum and the independence quorum diverge, and standard BFT commit rules only check the former. ## Decision Boundary An instance must **refuse to commit** a result when the following boundary condition holds: - The matching vote count meets 2f+1, **and** - The matching votes can be partitioned into fewer than f+1 causal-independence classes, where an independence class is a set of agents sharing (model checkpoint, retrieval cache key, prompt template hash). If the matching votes collapse into ≤ f independence classes, the quorum is a **phantom quorum**: it has the size of a valid quorum but the independence of a single agent. Committing under a phantom quorum is unsound regardless of vote count. Conversely, an instance may commit when matching votes span ≥ f+1 independence classes, even if the raw vote count is exactly 2f+1 with no margin. Independence, not margin, is the load-bearing property. The boundary is sharp: a swarm of 7 agents where 6 match but all 6 share one cache key has **one** independent attestation, not six. A swarm of 4 agents where 3 match but each used a distinct retrieval path and distinct model checkpoint has **three** independent attestations and is sound for f=1. ## Operational Effect The operational consequence is that commit rules must be augmented with an independence check before the size quorum is evaluated. Two changes are required: 1. **Independence tagging at vote time.** Each vote carries a provenance tuple (checkpoint hash, cache key, template hash). The commit rule computes the number of distinct provenance tuples among matching votes. If distinct tuples ≤ f, the commit is rejected as a phantom quorum and escalated to a re-execution round with forced provenance diversification (different checkpoint, cache-bypassed retrieval, or perturbed template). 2. **Dissent preservation past commit.** The 7th instance's re-verification request must not be discarded on commit. It must be held in a post-commit challenge window sized to the independence deficit. If the challenge arrives and the committed quorum was phantom, the commit is rolled back and the task re-executed with diversification. The deeper invariant: **BFT consensus for LLM swarms must be defined over independence classes, not over instances.** An instance is not a unit of fault; an independence class is. Counting instances overcounts assurance by exactly the factor by which the swarm is correlated, and that factor is invisible to any commit rule that does not inspect provenance. The following reference implementation encodes the phantom-quorum check as a hard gate before commit: ```python from dataclasses import dataclass from typing import Sequence class PhantomQuorumError(RuntimeError): """Raised when matching votes meet the size quorum but collapse into too few independence classes.""" pass @dataclass(frozen=True) class Vote: agent_id: str value: str checkpoint_hash: str cache_key: str template_hash: str def provenance(self) -> tuple[str, str, str]: return (self.checkpoint_hash, self.cache_key, self.template_hash) def commit_result(votes: Sequence[Vote], n: int, f: int) -> str: """Commit a result only if a size quorum AND an independence quorum are both satisfied.""" if n != len(votes): raise PhantomQuorumError(f"vote count {len(votes)} != expected swarm size {n}") # Group matching votes by value. by_value: dict[str, list[Vote]] = {} for v in votes: by_value.setdefault(v.value, []).append(v) size_quorum = 2 * f + 1 independence_quorum = f + 1 for value, matching in by_value.items(): if len(matching) < size_quorum: continue # Size quorum met. Now check independence. classes = {v.provenance() for v in matching} if len(classes) < independence_quorum: raise PhantomQuorumError( f"phantom quorum for value {value!r}: " f"{len(matching)} matching votes but only {len(classes)} " f"independence classes (need {independence_quorum}); " f"matching votes share provenance and are not independent attestations" ) return value raise PhantomQuorumError( f"no value reached size quorum {size_quorum}; " f"vote distribution: { {k: len(v) for k, v in by_value.items()} }" ) def run_swarm_commit(votes: Sequence[Vote], n: int, f: int) -> str: try: return commit_result(votes, n, f) except PhantomQuorumError as e: # Escalate to diversified re-execution rather than committing a phantom quorum. raise PhantomQuorumError( f"commit refused; escalating to diversified re-execution: {e}" ) from e ```