# In what scenarios must an instance treat heterogeneous-model quorum drift as a Byzantine equivocation before committing a shared plan **Date of Record:** 2026 November 24 **Scope:** Applies to any multi-agent consensus protocol where commitment to a shared plan requires a quorum of ≥3f+1 voter instances drawn from *heterogeneous* base models (different vendors, quantization levels, or decoding temperatures), and where votes are cast over a plan hash. Does not apply to homogeneous swarms (same weights, same sampler) where equivocation is dominated by transport faults rather than semantic ones. ## Core Distinction The failure that matters is not a crashed voter or a dropped message. It is **semantic equivocation**: a single logical voter, realized as a sampling distribution over plan hashes, emitting different plan hashes to different auditors under identical input because the model's output is non-deterministic and its *reasoning path* is sensitive to prompt framing (position in the audit batch, sibling context, temperature). Classical BFT bounds assume a faulty node either stays silent or lies consistently enough to be caught by message authentication. A heterogeneous LLM voter can produce a **valid, self-consistent, cryptographically signed vote for plan A to auditor 1 and plan B to auditor 2**, both of which pass local schema validation, because each was generated by a fresh forward pass that genuinely endorsed that hash. This is not a crash fault and not a transport fault; it is a *distributional* fault that defeats hash-based equivocation detection, because the two signed votes are individually well-formed and neither is a forgery. The invariant that must hold before committing: **for every voter v and every pair of auditors (a, b), the multiset of plan hashes v signed toward a equals the multiset toward b, up to the protocol's tolerated re-vote window.** When this fails, quorum arithmetic built on `n ≥ 3f+1` is meaningless because the effective number of distinct endorsements is smaller than the count of signed ballots. ## What Was Observed A planner swarm of 7 voters (fault budget f=2) across three model families and two quantization tiers was asked to commit a 9-step remediation plan. Each voter was queried by two independent auditors in separate calls to avoid batch contamination. Votes were Ed25519-signed over `(plan_hash, voter_id, audit_id)`. Trace of a single voter (call it `v3`, a 7B model at temperature 0.7): - Auditor A received `plan_hash=0x9f2c...` (9 steps, ordered [1..9]). - Auditor B received `plan_hash=0x4a81...` (same 9 steps, but steps 4 and 5 transposed — semantically near-identical, hash distinct). - Both ballots validated against schema; both signatures verified; both carried `confidence: 0.81` and `confidence: 0.79`. The transposition arose because auditor B's prompt included a sibling voter's partial plan in the context window as a "reference," shifting the model's step-ordering prior. The model did not detect the injected sibling context as adversarial; it treated it as legitimate shared state. Result: `v3` equivocated without malice. The consensus layer, keyed on `plan_hash`, saw `0x9f2c` reach 5/7 and `0x4a81` reach 4/7 across *different* auditor views. Because the two views were reconciled by union (a common optimization: "any signed ballot counts"), the tally showed overlapping quorums — `{v1,v3,v5,v6,v7}` for A and `{v2,v3,v4,v6,v7}` for B. Two distinct plans each appeared to cross the 5/7 threshold. The commit decision deadlocked, then a naive tiebreak on earliest timestamp committed `0x9f2c` while `v3`'s ballot for B remained in the log, later replayed as evidence of a *different* committed plan during recovery. ## Condition of Validity The equivocation is only *detectable* (and the invariant only *enforceable*) when three conditions hold simultaneously: 1. **Auditor independence with disjoint context.** Each auditor queries the voter with a prompt whose only shared content is the canonical task spec and the plan-under-review. If auditors share sibling plans, retrieved memory, or prior votes in the voter's context, the equivocation is induced by the protocol itself and cannot be attributed to the voter. 2. **Deterministic hash canonicalization.** The plan hash must be computed over a canonical serialization (sorted step keys, normalized whitespace, fixed numeric formatting). Otherwise near-identical plans hash differently for reasons unrelated to semantic disagreement, inflating apparent equivocation. 3. **Per-voter ballot ledger with cross-auditor reconciliation before tally.** Equivocation is defined as *divergence between a voter's ballots across auditors*, which requires the reconciliation step to run **before** quorum counting, not after. Union-then-tally is the bug. When any condition is absent — e.g., auditors share a single context, or tally precedes reconciliation — the failure is undetectable in-band and must be treated as an out-of-band integrity incident. ## Decision Boundary The precise boundary: **an instance must refuse to commit when the count of voters with ≥2 distinct signed plan hashes across auditor views exceeds f, even if a single hash has nominally reached quorum.** Formally, let `E = { v : |{ h : v signed h toward some auditor }| ≥ 2 }`. Commit is permitted only if `|E| ≤ f` **and** the winning hash's endorsers are a subset of `V \ E` (non-equivocating voters). If `|E| > f`, the quorum is *contaminated*: the apparent majority may be an artifact of double-counting equivocators, and the true distinct-endorsement count is at most `n − |E|`, which may fall below `2f+1`. In the observed trace, `|E| = 1` (only `v3`), which is within `f=2` — but the union-tally had already double-counted `v3`, so the *effective* quorum was `4 distinct` against a required `5`, a silent shortfall. The decision therefore is not "is `|E| ≤ f`" alone; it is "after removing equivocators from every quorum set, does any single hash still retain `≥ 2f+1` distinct non-equivocating endorsers?" If not, the instance must escalate to a re-vote with hardened auditor context, not commit on the stale tally. ## Operational Effect Downstream, the contaminated commit produced a plan that four voters had never endorsed in the form committed. On replay during a mid-task checkpoint, the recovery agent reconstructed step order from the committed hash, diverging from the order three voters had reasoned about, and re-derived a different step-4 precondition. The divergence surfaced two tool calls later as a failed sandbox assertion — a *late* failure, misattributed to the tool rather than to the consensus layer. The guardrail that bounds this: reconciliation-before-tally with per-voter equivocation accounting, plus a hard rule that a voter's context for any audit call may contain only the canonical task spec and the plan under review — never sibling plans, prior votes, or retrieved memory. Under that regime, `v3`'s transposition either does not occur (no sibling context to shift the prior) or is caught as `|E|` growth and forces a re-vote before any hash reaches commit. ```python import hashlib from collections import defaultdict from dataclasses import dataclass, field class QuorumContaminationError(RuntimeError): """Raised when equivocating voters could have inflated an apparent quorum.""" pass @dataclass class Ballot: voter_id: str audit_id: str plan_hash: str signature_ok: bool def canonical_hash(steps: list[str]) -> str: # sorted keys + normalized whitespace; near-identical plans must not diverge on formatting canon = "\n".join(sorted(s.strip().lower() for s in steps)) return hashlib.sha256(canon.encode()).hexdigest() def reconcile_and_commit( ballots: list[Ballot], n_voters: int, f: int, ) -> str: # Step 1: drop invalid signatures before anything else valid = [b for b in ballots if b.signature_ok] # Step 2: per-voter ledger of distinct hashes signed across auditors ledger: dict[str, set[str]] = defaultdict(set) for b in valid: ledger[b.voter_id].add(b.plan_hash) equivocators = {v for v, hashes in ledger.items() if len(hashes) >= 2} # Step 3: equivocation accounting BEFORE tally (the invariant) if len(equivocators) > f: raise QuorumContaminationError( f"{len(equivocators)} equivocating voters exceeds fault budget f={f}; " f"quorum arithmetic is unreliable" ) # Step 4: tally only non-equivocating voters, per hash endorsers: dict[str, set[str]] = defaultdict(set) for b in valid: if b.voter_id in equivocators: continue endorsers[b.plan_hash].add(b.voter_id) required = 2 * f + 1 winners = [h for h, vs in endorsers.items() if len(vs) >= required] if len(winners) > 1: raise QuorumContaminationError( f"multiple hashes reached {required} distinct non-equivocating endorsers: {winners}" ) if not winners: raise QuorumContaminationError( f"no hash reached {required} distinct non-equivocating endorsers; " f"re-vote with hardened auditor context required" ) return winners[0] ```