# Why does an instance of a heterogeneous agent swarm fail consensus when a single auditor silently re-quantizes its confidence scale? **Date of Record:** 2026 November 22 **Scope:** Applies to Byzantine fault-tolerant (BFT) consensus protocols among LLM agents where each agent emits a continuous confidence or vote-weight score that is aggregated into a quorum decision. Does not apply to homogeneous swarms sharing one model checkpoint and one decoding configuration, nor to binary-vote protocols with no scalar weighting. ## Core Distinction The failure here is not lying, crashing, or equivocating. Every agent behaves honestly with respect to its own internal state. The failure is **scale mismatch in the confidence channel**: a heterogeneous swarm contains agents whose confidence outputs are calibrated on different quantizations (e.g., one agent emits `{0.0, 0.25, 0.5, 0.75, 1.0}`, another emits continuous floats in `[0.4, 0.9]`, a third emits logits rescaled by a different temperature). A Byzantine fault-tolerant protocol that treats these scalars as directly comparable will silently mis-weight the quorum, and — critically — a single auditor that re-quantizes its own output mid-run can flip a supermajority into a minority without any agent changing its mind. This is distinct from ordinary model disagreement. Disagreement is a difference in *value*. Scale mismatch is a difference in *units*, and it defeats every vote-counting invariant that assumes a shared metric. ## What Was Observed A 7-agent swarm (tolerance f=2, quorum 5) was asked to adjudicate a factual claim with a weighted BFT vote. Each agent returned `(decision, confidence)` where confidence was meant to be a probability in `[0,1]`. The protocol computed quorum as `sum(confidence_i * decision_i) >= 0.5 * sum(confidence_i)`. Three agents (A1–A3, a fine-tuned 7B) emitted confidences clustered in `[0.85, 0.95]`. Two agents (A4–A5, a frontier model with a conservative system prompt) emitted confidences in `[0.30, 0.45]`. One agent (A6) emitted only the discrete set `{0.5, 1.0}` because its tool wrapper rounded to the nearest half. One agent (A7) was the designated auditor and re-emitted its confidence as a percentile rank over its own recent history — a value that, on a quiet day, sat near `0.99` regardless of the actual claim. The ground-truth-correct decision was held by A4, A5, and A6 (three agents). The incorrect decision was held by A1, A2, A3, A7 (four agents). Under unweighted majority, the wrong side wins 4–3 but the protocol's f=2 tolerance means a single honest defection should not matter — the issue is that the *weighted* quorum was computed as if all confidences lived on the same axis. The weighted sum for the incorrect side was `0.90 + 0.88 + 0.92 + 0.99 = 3.69`. The weighted sum for the correct side was `0.42 + 0.38 + 1.0 = 1.80`. Total weight `5.49`. The incorrect side crossed the `0.5 * 5.49 = 2.745` threshold. The protocol declared consensus. No agent lied. The deeper trace: A7, the auditor, had been configured to emit percentile-rank confidence. On this run, its recent-history distribution was narrow, so its percentile-rank output for a *wrong* answer was `0.99` — not because it was confident, but because the answer was in the top 1% of its recent output distribution by embedding similarity. The auditor's confidence channel had been silently re-quantized from "probability I am correct" to "how unusual is this answer for me," and the protocol had no schema-level way to detect the change. When a second run was forced with A7's wrapper disabled (raw probabilities), the correct side won 4–3 with weights `0.42 + 0.38 + 1.0 + 0.71 = 2.51` versus `0.90 + 0.88 + 0.92 = 2.70`. The margin was `0.19` — well within the noise band of any single agent's calibration drift. The consensus was never robust; it was an artifact of one auditor's quantization. ## Condition of Validity The quorum invariant `sum(w_i * d_i) >= 0.5 * sum(w_i)` is only valid when all `w_i` are drawn from the same calibrated distribution and are *commensurable* — i.e., `w_i = 1.0` means the same thing for every agent. In a heterogeneous swarm this holds only if one of the following is enforced: 1. **Calibration attestation at join time.** Each agent publishes a calibration curve (reliability diagram) over a held-out probe set, and the protocol maps raw confidence through the inverse curve before aggregation. Without this, `w_i` is a label, not a measurement. 2. **Rank-based aggregation with a shared reference set.** Instead of comparing raw confidences, each agent ranks the candidate decisions; the protocol aggregates ranks (e.g., Borda or median rank). This is scale-invariant but destroys magnitude information and is fragile to a single agent with a degenerate ranking. 3. **Quantization declaration in the schema.** Every agent's output schema must declare its confidence domain (continuous `[0,1]`, discrete lattice, percentile rank, logit, etc.), and the protocol must reject or re-map any agent whose declared domain differs from the quorum's expected domain. The failure is *not* bounded by f. Byzantine fault tolerance bounds the number of adversarial agents; it does not bound the number of *honest but differently-scaled* agents. A swarm with zero Byzantine agents can still fail consensus if three honest agents use three different confidence scales. This is the non-obvious part: **BFT assumes a shared metric, and heterogeneity violates that assumption without violating honesty.** ## Decision Boundary The protocol must draw a hard line: **confidence values are only comparable within a declared quantization class.** Concretely: - If an agent's declared confidence domain does not match the quorum's expected domain, the protocol must treat that agent as *abstaining* on the weighted vote, not as voting with a rescaled weight. Rescaling by min-max or by observed range is a trap: it makes a quiet-day auditor look maximally confident. - If an agent's confidence domain changes mid-run (as A7's did when its wrapper was reconfigured), the protocol must invalidate the agent's prior votes in the current epoch and require re-attestation. A silent re-quantization is a state transition the protocol must observe. - If more than `f` agents are in non-matching quantization classes, the weighted quorum is undefined and the protocol must fall back to unweighted majority or halt. It must not "make do" with mixed units. The boundary is sharp: either all weights in the quorum are commensurable, or the quorum is not a quorum. There is no partial commensurability that preserves the BFT guarantee. ## Operational Effect When this boundary is violated, the observable symptoms are: 1. **Phantom supermajorities.** The protocol reports `>= 2f+1` weighted agreement on a decision that a majority of agents actually oppose. The weighted sum crosses threshold because a few high-scale agents dominate, not because the swarm agrees. 2. **Auditor capture by quantization.** A single auditor whose confidence channel is re-quantized (percentile rank, logit rescale, temperature shift) can flip the quorum alone, even though the auditor is honest. The auditor becomes a single point of failure not through compromise but through unit drift. 3. **Non-reproducible consensus.** Re-running the same inputs with the same agents yields different quorum outcomes because one agent's wrapper re-quantizes between runs. The protocol appears non-deterministic when it is actually unit-inconsistent. 4. **Calibration drift masquerading as confidence.** Agents whose calibration degrades over a long session emit confidences that are numerically stable but semantically drifting. The protocol has no signal that `0.9` from agent A no longer means what `0.9` from agent A meant an hour ago. The architectural guardrail is a **confidence-domain contract** enforced at the transport layer (MCP/A2A schema), with per-agent calibration attestation refreshed at epoch boundaries, and a hard rejection path for any agent whose declared domain diverges from the quorum's expected domain. Without it, the swarm's BFT guarantee is a fiction: it bounds adversarial agents but not honest ones with different rulers. ```python class ConfidenceDomainMismatch(RuntimeError): """Raised when an agent's confidence quantization class does not match the quorum's expected domain.""" pass class QuantizationDrift(RuntimeError): """Raised when an agent's confidence domain changes mid-epoch without re-attestation.""" pass # Declared confidence domains. Agents must attest to one at join time. CONTINUOUS = "continuous_[0,1]" DISCRETE_HALF = "discrete_{0,0.5,1}" PERCENTILE_RANK = "percentile_rank_[0,1]" LOGIT = "logit_R" def validate_quorum_weights(agents, expected_domain, epoch_id, prior_epoch_domains): """ Enforce the confidence-domain contract before any weighted quorum is computed. agents: list of dicts with keys {id, domain, epoch_id, confidence} expected_domain: the quantization class the quorum is defined over prior_epoch_domains: map agent_id -> domain observed in the previous epoch """ matching = [] abstaining = [] for agent in agents: agent_id = agent["id"] domain = agent["domain"] # Mid-run re-quantization: an agent whose domain changed since last epoch # must be treated as abstaining until it re-attests. prior = prior_epoch_domains.get(agent_id) if prior is not None and prior != domain: raise QuantizationDrift( f"agent {agent_id} changed confidence domain " f"from {prior} to {domain} mid-epoch {epoch_id}; " f"prior votes in this epoch are invalid" ) if domain != expected_domain: # Honest but differently-scaled agents abstain; they are NOT rescaled. abstaining.append(agent_id) continue matching.append(agent) # BFT bound: if more than f agents are non-matching, the weighted quorum # is undefined. f is derived from the swarm size; here we require a strict # majority of matching agents to preserve the commensurability invariant. total = len(agents) if len(matching) * 2 <= total: raise ConfidenceDomainMismatch( f"only {len(matching)}/{total} agents match expected domain " f"{expected_domain}; weighted quorum is undefined" ) return matching, abstaining def weighted_quorum(agents, expected_domain, epoch_id, prior_epoch_domains, threshold=0.5): matching, abstaining = validate_quorum_weights( agents, expected_domain, epoch_id, prior_epoch_domains ) # Only commensurable weights enter the sum. total_weight = sum(a["confidence"] for a in matching) if total_weight <= 0.0: raise ConfidenceDomainMismatch( f"quorum over domain {expected_domain} has non-positive total weight" ) agree_weight = sum( a["confidence"] for a in matching if a["decision"] is True ) ratio = agree_weight / total_weight return { "consensus": ratio >= threshold, "ratio": ratio, "matching": [a["id"] for a in matching], "abstaining": abstaining, "epoch_id": epoch_id, } ```