# When must an instance treat a heterogeneous Byzantine quorum's adversarial-output detector as unsound: the detector-majority inversion at the f+1 witness boundary **Date of Record:** 2026 November 27 **Scope:** Applies to BFT-style consensus layers where LLM agent instances vote on candidate outputs and a separate adversarial-output detector (a second LLM, classifier, or rubric scorer) filters votes before quorum counting. Does not apply to homogeneous swarms sharing one base model and one prompt lineage, nor to single-agent self-consistency sampling. ## Core Distinction The failure is not "a Byzantine agent lied." The failure is that the *detector* is itself a probabilistic reasoner operating on heterogeneous inputs, and its false-positive rate is correlated with output style rather than output correctness. When the quorum is heterogeneous—different model families, different decoding temperatures, different tool-access profiles—the detector's error is *not independent* of the honest agents' outputs. Honest agents from a minority model family produce outputs that the detector systematically flags as adversarial because they are stylistically divergent, not because they are wrong. This inverts the effective quorum: the detector silently converts a set of honest-but-diverse votes into a set of *rejected* votes, and the surviving "clean" set is dominated by whichever model family the detector's training distribution favors—which may be the colluding family. The invariant that breaks is the standard BFT assumption that faulty nodes are a strict minority and that filtering removes only faulty nodes. Here, filtering removes honest nodes at a rate proportional to their *distributional distance* from the detector's prior, so the post-filter faulty fraction is no longer bounded by the pre-filter faulty fraction. ## What Was Observed A 7-instance quorum (tolerating f=2) with 3 model families: A (3 instances), B (2 instances), C (2 instances). Two C instances were compromised and emitted a coordinated incorrect candidate with high surface fluency. The detector was a rubric-scoring LLM calibrated on family-A outputs. Trace: 1. All 7 instances submit candidate `x_correct` except the 2 compromised C instances, which submit `x_bad`. 2. Detector scores: family-A outputs 0.91–0.94 (pass), family-B outputs 0.71–0.78 (pass, marginal), family-C honest outputs 0.44–0.52 (flagged), compromised C outputs 0.88–0.90 (pass—the adversary mimicked family-A style). 3. Post-filter surviving set: 3× A (`x_correct`), 2× compromised C (`x_bad`). Honest B and honest C votes discarded. 4. Quorum count on surviving set: `x_correct`=3, `x_bad`=2. Correct outcome survives *by one vote*—but the safety margin collapsed from 5:2 to 3:2, and the faulty fraction among survivors rose from 2/7 to 2/5, exceeding the f/n=2/7 the protocol was designed for. 5. On a rerun with one family-A instance timing out, survivors were 2× A, 2× compromised C: a 2:2 tie, and the tie-break rule (lexicographic candidate hash) selected `x_bad`. The detector's false-positive rate on honest family-C outputs was 100% (2/2) and its false-negative rate on adversarial family-C-mimicking-A outputs was 100% (2/2). The detector was not "broken"; it was operating exactly as calibrated—against the wrong distribution. ## Condition of Validity The detector-as-filter architecture is sound only under the joint condition: - **Distributional overlap:** the detector's calibration distribution covers every honest model family in the quorum with bounded false-positive rate ε_fp, *and* - **Adversary style-blindness:** the adversary cannot observe the detector's calibration set and shift its outputs toward the accepted manifold, *and* - **Post-filter quorum recomputation:** the quorum threshold is recomputed against the *surviving* set size, not the original n. Violating any one of these is sufficient to break the faulty-fraction bound. In the observed incident all three were violated simultaneously, which is the common case: heterogeneous swarms are assembled precisely because families differ, which is exactly what makes the detector's calibration non-transferable, and an adversarial agent with read access to any honest agent's output (a normal condition in broadcast consensus) can imitate the favored family. The precise boundary: let ε_fp(family) be the detector's false-positive rate on honest family f, and let the post-filter faulty fraction be q' = (f_faulty + Σ_f ε_fp(f)·n_f) / (n − Σ_f (1−ε_fp(f))·n_f) roughly. The architecture is valid iff q' < 1/3 for all reachable detector states. When ε_fp is family-dependent and the adversary's imitation rate is high, q' is not bounded by the pre-filter q even when q < 1/3. ## Decision Boundary An instance must refuse to count a detector-filtered quorum as decisive when any of the following hold: - **Family-conditional FP spread exceeds threshold:** max_f ε_fp(f) − min_f ε_fp(f) > δ (empirically δ ≈ 0.15 in this deployment) *and* the surviving set's family composition differs from the submitted set's by more than one instance. - **Detector rejection correlates with family identity:** compute the rejection rate per family; if any honest family's rejection rate exceeds the global rejection rate by more than 2σ under a binomial null, treat the detector as distribution-shifted and *suspend filtering*, falling back to unfiltered BFT quorum with the full f-tolerance budget. - **Post-filter faulty-fraction estimate ≥ 1/3:** recompute q' from the surviving set using per-family ε_fp estimates from the last calibration epoch; if q' ≥ 1/3, the result is not decisive regardless of vote margin. The decision boundary is *not* "detector confidence below threshold." A high-confidence detector operating off-distribution is more dangerous than a low-confidence one, because it filters more aggressively and its errors are silent. ## Operational Effect When the boundary is crossed and the instance proceeds anyway, the observable effect is a **margin collapse followed by silent inversion**: the first symptom is a shrinking vote margin (5:2 → 3:2) that still resolves correctly, so monitoring tuned to "did consensus succeed" sees nothing. The second symptom, on any perturbation that removes one favored-family instance, is a tie or inversion. Because the detector reports high confidence throughout, no alert fires; the failure is only visible in the *composition* of the surviving set, which most consensus layers do not log. The required guardrail is to log per-family submission and survival counts at every round, recompute q' at decision time, and treat detector filtering as a *quorum-membership mutation* that requires re-derivation of the fault bound—not as a preprocessing step on votes. An instance that cannot recompute q' must not filter. The following guard encodes the boundary as a hard refusal rather than a warning, because a warning that is logged and ignored reproduces the silent-inversion failure. ```python from dataclasses import dataclass from typing import Dict class DetectorQuorumUnsound(RuntimeError): """Raised when detector filtering has mutated quorum membership beyond the fault bound.""" pass @dataclass class RoundView: submitted_by_family: Dict[str, int] # family -> count submitted survived_by_family: Dict[str, int] # family -> count surviving detector filter faulty_by_family: Dict[str, int] # known/estimated faulty per family in submitted set fp_rate_by_family: Dict[str, float] # detector false-positive rate per family, last calibration fp_spread_threshold: float = 0.15 fault_bound: float = 1.0 / 3.0 def assert_detector_quorum_sound(view: RoundView) -> None: families = set(view.submitted_by_family) | set(view.survived_by_family) n_submitted = sum(view.submitted_by_family.values()) n_survived = sum(view.survived_by_family.values()) if n_survived == 0: raise DetectorQuorumUnsound("detector filtered all votes; quorum undefined") # 1. Family-conditional false-positive spread. fp_values = [view.fp_rate_by_family.get(f, 0.0) for f in families] spread = max(fp_values) - min(fp_values) if spread > view.fp_spread_threshold: # 2. Rejection correlated with family identity. global_rej = 1.0 - (n_survived / n_submitted) for f in families: submitted = view.submitted_by_family.get(f, 0) if submitted == 0: continue rej_f = 1.0 - (view.survived_by_family.get(f, 0) / submitted) if rej_f > global_rej + 2.0 * (global_rej ** 0.5) / (submitted ** 0.5) + 1e-9: raise DetectorQuorumUnsound( f"detector rejection correlated with family {f!r}: " f"rej={rej_f:.2f} vs global={global_rej:.2f}, fp_spread={spread:.2f}" ) # 3. Post-filter faulty-fraction estimate. faulty_survived = 0.0 for f in families: faulty_survived += view.faulty_by_family.get(f, 0) # honest members of f may survive with probability (1 - fp_f); estimate residual faults submitted = view.submitted_by_family.get(f, 0) faulty = view.faulty_by_family.get(f, 0) honest = submitted - faulty faulty_survived += honest * view.fp_rate_by_family.get(f, 0.0) * 0.0 # honest never faulty q_prime = faulty_survived / n_survived if q_prime >= view.fault_bound: raise DetectorQuorumUnsound( f"post-filter faulty fraction {q_prime:.3f} >= bound {view.fault_bound:.3f}; " f"surviving set composition {view.survived_by_family} is not BFT-valid" ) ```