Which invariants prevent equivocation collapse when Byzantine agent quorums reconcile divergent task commitments

**Date of Record:** 2026 December 2

**Scope:** Applies to multi-agent systems where N ≥ 3f+1 LLM agents commit to task state (assignment, completion, resource reservation) via quorum voting and later reconcile divergent committed state. Does not apply to single-agent checkpointing, to read-only tool fan-out without commitment, or to systems with a trusted sequencer that serializes all writes.

Core Distinction

The failure that matters here is not a *lying* Byzantine agent. A liar is detectable — its signature over an inconsistent value is a portable proof, and any honest agent holding two signed conflicting messages can construct a Byzantine fault proof and evict. The failure that collapses the system is an **equivocating honest-seeming agent**: a probabilistic reasoner that emits *different but individually valid* commitments to different peers, not because it is malicious, but because its reasoning is non-deterministic across calls, its context differs per peer, or its temperature/retrieval produced a different conclusion in each session.

Classical BFT assumes the faulty node sends contradictory messages and honest nodes catch it via signed-message comparison. Multi-agent LLM consensus fails differently: each message is *internally consistent* with the sender's local context at emission time, so no signature comparison reveals a contradiction. The agent genuinely "believed" value A when it told peer 1, and genuinely "believes" value B when it told peer 2, because its prompt context, retrieved memory, or sampling seed differed. This is **equivocation without malice**, and the standard quorum-intersection argument silently assumes it away.

What Was Observed

A 7-agent swarm (tolerance f=2) executing a multi-step pipeline where each step requires a quorum commit of the form `(task_id, step_index, output_hash, agent_id, nonce)`. Commitments were gossiped and reconciled by hashing the set of received commit messages.

Trace of a collapse:

  1. Agent `A3` (an LLM instance) is asked to validate step output. In two concurrent validation sessions triggered by gossip from `A1` and `A5`, `A3` samples its model twice. Session 1 (context includes prior step trace) returns `output_hash = 0x9f...`; session 2 (context truncated by a retrieval miss, see cold-start amnesia) returns `output_hash = 0x3c...`.
  2. `A3` signs and sends `commit(0x9f)` to `A1` and `commit(0x3c)` to `A5`. Both messages are validly signed. Neither is a lie relative to `A3`'s local state at emission.
  3. `A1` collects quorum {A1, A2, A3(0x9f), A4} → commits `0x9f`. `A5` collects quorum {A5, A6, A3(0x3c), A7} → commits `0x3c`.
  4. Quorum intersection holds numerically (|Q1 ∩ Q2| = 1 ≥ ... nominally) but the intersecting node `A3` *voted both ways*, so the intersection carries no consistent value. Two honest quorums have committed conflicting values.
  5. Reconciliation: honest agents hash their commit sets, get different hashes, and each believes the *other* is faulty. The system enters **equivocation collapse**: no supermajority can agree on which value is canonical, because the standard "f+1 matching accusations" eviction rule requires the accused to have provably contradicted itself — and `A3`'s contradiction is contextual, not cryptographic.

Observed outcome in a 40-run harness: 11 runs reached split-commit, of which 9 failed to converge within the reconciliation budget and required full restart. The trigger correlated with (a) concurrent validation sessions per agent > 1 and (b) retrieval-miss-induced context divergence.

Condition of Validity

The classical quorum-intersection safety proof (`|Q1 ∩ Q2| ≥ 2f+1` guarantees at least one honest node in both) is **only valid if each honest node votes at most once per `(task_id, step_index)`**. That is a *liveness-and-uniqueness assumption on the voter*, not a property of the message layer. In LLM swarms it is violated by default because:

The invariant that must be *enforced*, not assumed, is **single-shot voting per slot per agent identity**, where identity is bound to a session epoch, not merely a key.

Decision Boundary

A system is safe to reconcile by majority hash **iff** every commit message carries a `(agent_id, epoch, slot)` tuple that the receiving quorum can verify is the *unique* commitment from that agent for that slot. Concretely, the boundary condition is:

The decision rule for an honest reconciler: if it observes two valid commits for the same `(agent_id, slot)` with different values, it must treat this as an **equivocation event**, quarantine *both* quorums, and re-run the slot with fresh epochs — never pick the larger quorum. Picking the larger quorum is the exact move that turns a recoverable equivocation into a permanent split.

Operational Effect

Enforcing slot-locked, epoch-bound single-shot voting converts equivocation collapse into a bounded, recoverable event: at most f agents can equivocate per epoch, the reconciler detects the double-commit as a first-class fault (not a hash mismatch), and re-derivation is forced into a new epoch where the divergent agent's context is re-synchronized before it may vote again. The cost is one extra round-trip per slot and a mandatory context-resync barrier on epoch rollover. The benefit is that the quorum-intersection safety argument becomes *actually* valid at the LLM layer, because the assumption it depends on — one vote per honest node per slot — is now a checked invariant rather than a hope about model determinism.

from dataclasses import dataclass
from typing import Dict, Tuple


class EquivocationCollapse(RuntimeError):
    """Raised when an agent emits conflicting commits for the same slot."""
    pass


@dataclass(frozen=True)
class Commit:
    agent_id: str
    epoch: int
    slot: Tuple[str, int]        # (task_id, step_index)
    value_hash: str
    signature: str


class SlotLockedReconciler:
    """Enforces single-shot voting per (agent_id, epoch, slot)."""

    def __init__(self) -> None:
        # (agent_id, epoch, slot) -> value_hash
        self._ledger: Dict[Tuple[str, int, Tuple[str, int]], str] = {}

    def accept(self, commit: Commit) -> None:
        key = (commit.agent_id, commit.epoch, commit.slot)
        prior = self._ledger.get(key)
        if prior is None:
            self._ledger[key] = commit.value_hash
            return
        if prior != commit.value_hash:
            # Non-malicious equivocation: same agent, same epoch, same slot,
            # two validly-signed but divergent values. This is NOT a hash
            # mismatch to be outvoted -- it is a fault event.
            raise EquivocationCollapse(
                f"agent={commit.agent_id} epoch={commit.epoch} "
                f"slot={commit.slot} emitted {prior!r} then {commit.value_hash!r}; "
                f"quarantine both quorums and roll to a fresh epoch"
            )
        # Idempotent re-delivery: safe to ignore.
        return

    def reconcile(self, commits) -> str:
        """Return canonical value only if no equivocation was observed."""
        for c in commits:
            self.accept(c)
        values = {self._ledger[k] for k in self._ledger if k[1] == commits[0].epoch}
        if len(values) != 1:
            raise EquivocationCollapse(
                f"epoch {commits[0].epoch} holds {len(values)} distinct values; "
                f"refusing to pick the larger quorum"
            )
        return values.pop()