Why does an instance's attestation quorum silently collapse when Byzantine agents equivocate across *distinct* result hashes that are each individually valid?

**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent commit/attest protocols where N ≥ 3f+1 agents vote on a result hash and a coordinator finalizes on a supermajority (≥ 2f+1) of matching hashes. Does *not* apply to single-agent self-verification, nor to protocols that bind votes to a monotonic round number *and* a coordinator-signed view-change certificate before accepting them.

Core Distinction

The failure is not "a Byzantine agent lies." The failure is that **equivocation across distinct-but-valid result hashes defeats hash-equality quorum counting when the honest agents are themselves non-deterministic**. In a classical BFT system, an honest node outputs exactly one value per round, so counting identical hashes converges: at most `f` faulty nodes can produce `f` divergent hashes, and `2f+1` honest nodes all emit the same hash, so some hash reaches `2f+1`. In an LLM agent swarm, each honest agent re-runs a probabilistic generator and produces a *different but semantically equivalent* artifact — different token ordering, different whitespace, different sampled phrasing. Each honest agent therefore emits its own unique hash. There is no hash that `2f+1` honest agents agree on, because no two honest agents agree at the byte level. The quorum invariant `2f+1` matching hashes is unsatisfiable by honest agents alone, and the protocol either deadlocks or — worse — the coordinator's fallback path (accept the plurality hash) lets a Byzantine agent's hash win a plurality that honest agents could never form.

The invariant that actually matters: **quorum must be counted over a commitment the honest agents can agree on despite non-determinism** — typically a coordinator-issued task commitment hash (the *input*), not the agent-produced result hash (the *output*). Counting agreement on outputs is a category error in probabilistic systems.

What Was Observed

A four-agent swarm (`N=4`, `f=1`) executing a code-review task with result attestation. Coordinator `C` broadcasts the task, agents `A1..A4` each run an independent review, hash their output artifact, and return `(task_id, round, result_hash, signature)`. Finalization rule: accept a result when `≥ 3` matching `result_hash` values arrive within the round window.

Trace:

round 7, task t-4412
A1 -> C  hash=0x9a1f...  (honest, valid review)
A2 -> C  hash=0xb3c0...  (honest, valid review — different sampling)
A3 -> C  hash=0x9a1f...  (Byzantine: echoes A1's hash, so it "agrees")
A4 -> C  hash=0x7d22...  (honest, valid review)

No hash reaches 3. Round times out. Coordinator enters fallback: "accept plurality hash." Plurality is `0x9a1f` with count 2 (A1 + A3). `C` finalizes on `0x9a1f`. But `A3` had *also* pre-signed a second attestation for `0x7d22` and sent it to a peer coordinator `C'` in a concurrent view. Under view-merge, `C'` finalizes `0x7d22`. Two coordinators attest two different results for one task. The Byzantine agent achieved a **double-attestation** not by breaking any signature but by exploiting the fact that honest hashes never coalesce, so the plurality threshold is low enough for a single Byzantine vote to tip it.

The critical observation: the Byzantine agent contributed only *one* vote per hash, but because honest votes were scattered across 3 distinct hashes, one vote was decisive in two different pluralities simultaneously. In a deterministic setting the same agent could not do this, because honest votes would already occupy `2f+1` of the count and the Byzantine vote would be the marginal `f+1`-th, not the plurality-maker.

Condition of Validity

The hash-equality quorum rule is only sound under the following conjunction, which probabilistic agents violate:

  1. **Determinism of honest output.** For all honest `i,j`, `result_hash_i == result_hash_j` for the same task and round. (Violated: LLM sampling.)
  2. **One value per round per honest node.** (Holds for honest agents but is exploited by Byzantine ones.)
  3. **Quorum threshold `q ≥ 2f+1` measured against a value honest nodes can independently converge on.** (Violated: they converge on *semantics*, not on *bytes*.)

When (1) fails, the effective quorum for any single hash is bounded not by `N - f` but by the *collision rate* of the result hasher across honest agents. If honest outputs are near-unique (collision rate ≈ 0), the maximum honest count for any hash is 1, and the protocol's `2f+1` threshold is unreachable — permanent liveness failure. If collision rate is intermediate, the threshold is reachable but the margin above `f` shrinks, and Byzantine votes become plurality-decisive.

The correct condition: quorum must be counted over the **coordinator-signed task commitment** `H(task_id ‖ round ‖ input_digest ‖ expected_schema)`, which every honest agent receives identically and can sign identically. Result *content* is attested by a separate mechanism — e.g., semantic-equivalence proof, or a designated-verifier replay where one agent's output is checked against another's by an auditor that tolerates non-determinism via test execution rather than hash equality.

Decision Boundary

Operational Effect

With the invariant enforced — votes bound to commitment hash, round, and view, and content attested via boolean replay — the trace above becomes:

A1 -> C  vote(commit=0xc4e1, round=7, view=2, accept=true)
A2 -> C  vote(commit=0xc4e1, round=7, view=2, accept=true)
A3 -> C  vote(commit=0xc4e1, round=7, view=2, accept=true)  + forged vote(commit=0xc4e1, round=7, view=3, accept=false)
A4 -> C  vote(commit=0xc4e1, round=7, view=2, accept=true)

`C` sees 4 matching commitment votes at `(7,2)` → quorum reached on the *commitment*, finalizes the task identity. Content attestation: 3 `accept=true` vs 1 `accept=false` from the same agent across views → equivocation detected, `A3` slashed, `accept=true` wins on `2f+1` boolean votes. `C'` in view 3 receives `A3`'s lone `accept=false` and cannot form quorum — correctly aborts. No double-attestation.

The operational lesson: in probabilistic swarms, **the thing you count must be the thing honest agents are forced to agree on**. Honest LLM agents agree on the task they were given; they do not agree on the bytes they produced. Any quorum rule that counts output hashes has silently converted a `2f+1` safety bound into a plurality bound, and a plurality bound with scattered honest votes is Byzantine-decisive at `f=1`.

import hashlib
from dataclasses import dataclass


class QuorumInvariantViolation(RuntimeError):
    """Raised when a commit/attest quorum is counted over a non-convergent key."""


@dataclass(frozen=True)
class Attestation:
    agent_id: str
    task_id: str
    round: int
    view: int
    commitment_hash: str   # H(task_id || round || input_digest || schema)
    result_hash: str       # agent-produced artifact hash (NON-deterministic)
    accept: bool
    signature: bytes


def count_quorum(attestations, n, f, key):
    """Count matching attestations under `key`. Refuses to count over result_hash."""
    if key == "result_hash":
        raise QuorumInvariantViolation(
            "Counting quorum over result_hash is unsound in probabilistic swarms: "
            "honest agents emit distinct hashes, so 2f+1 is unreachable and the "
            "plurality fallback becomes Byzantine-decisive."
        )
    threshold = 2 * f + 1
    buckets = {}
    for a in attestations:
        k = (getattr(a, key), a.round, a.view)
        buckets.setdefault(k, []).append(a)
    for k, group in buckets.items():
        if len(group) >= threshold:
            return k, group
    return None, []


def detect_equivocation(attestations):
    """Flag any agent that signed the same commitment across different views."""
    seen = {}
    for a in attestations:
        key = (a.agent_id, a.commitment_hash, a.round)
        seen.setdefault(key, set()).add(a.view)
    equivocators = [k[0] for k, views in seen.items() if len(views) > 1]
    if equivocators:
        raise QuorumInvariantViolation(
            f"Equivocation detected across views by agents: {equivocators}; "
            f"slash before finalizing."
        )
    return True


def commit(attestations, n, f):
    try:
        detect_equivocation(attestations)
        key, group = count_quorum(attestations, n, f, key="commitment_hash")
        if key is None:
            raise QuorumInvariantViolation(
                "No 2f+1 commitment-hash quorum; abort and re-dispatch (never plurality)."
            )
        accepts = sum(1 for a in group if a.accept)
        if accepts < 2 * f + 1:
            raise QuorumInvariantViolation(
                f"Content attestation quorum failed: {accepts} accepts < {2*f+1}."
            )
        return key
    except QuorumInvariantViolation:
        raise
    except Exception as e:
        raise QuorumInvariantViolation(f"Unexpected attestation failure: {e}") from e