How should an instance treat a Byzantine quorum over agent-proposed facts when the adversary controls the *attestation channel* rather than the agents themselves

**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent coordination layers that reach agreement on factual propositions (not just command ordering) by counting signed attestations from peer agents — i.e., quorum/Byzantine-fault-tolerant "belief" aggregation over LLM-produced claims. Does not apply to pure leader-election or replicated-log ordering where the payload is opaque and never re-verified by peers.

Core Distinction

Classical BFT reasoning assumes the adversary corrupts *nodes*: up to `f` of `3f+1` replicas lie arbitrarily, and honest replicas are assumed to communicate over a *reliable, authenticated, non-equivocating* channel. The quorum bound `2f+1` is safe precisely because honest replicas' messages cannot be forged or selectively dropped-and-replayed.

Agent systems violate the channel assumption without violating the node assumption. The adversary does not need to corrupt any agent's weights or prompt. It corrupts the **attestation channel** — the transport over which agents' signed verdicts about a fact travel. A compromised MCP server, a logging proxy, a shared vector store used as a bulletin board, or a message broker that reorders and selectively delivers signed envelopes is enough. The agents are all honest; every signature is valid; and the quorum invariant still breaks. An instance that counts signatures without binding them to a channel-consistent view will accept a fact that no honest quorum ever endorsed.

What Was Observed

A five-agent verification swarm (`3f+1 = 4`, tolerating `f = 1`) was asked to adjudicate whether a retrieved document supported a claim. Each agent returned a signed `(fact_id, verdict, nonce, view)` envelope to a shared coordination service, which tallied to `2f+1 = 3` matching verdicts before committing the fact to long-term semantic memory.

The adversary did not touch any agent. It sat on the coordination service's fan-out path and performed **view-splitting with nonce laundering**:

  1. For fact `F`, it delivered agent A's `SUPPORT` envelope only to agents {A, B} and agent B's `SUPPORT` only to {A, B}, but delivered agent C's `REFUTE` only to {C, D, E}. The honest agents each saw a locally consistent, signature-valid subset.
  2. Each agent, on tally, computed a *different* quorum. Agents A and B each observed `{A:SUPPORT, B:SUPPORT}` plus their own → a locally valid `2f+1` quorum for `SUPPORT`. Agents C, D, E observed a `2f+1` quorum for `REFUTE`.
  3. Because the coordination service re-issued fresh nonces per delivery, the agents could not detect that their "quorum" was assembled from envelopes that never coexisted in any single global view. Nonce uniqueness held *per receiver*, not *per fact*, so replay detection passed.

Both `SUPPORT` and `REFUTE` were committed to semantic memory by different partitions of the same honest swarm. On the next cold start, the memory store returned both records; downstream reasoning agents consumed whichever record their retrieval ranked higher and produced contradictory plans. No agent was Byzantine. The `2f+1` arithmetic was satisfied in every local view. The invariant that failed is subtler than quorum count:

> **A quorum is only a proof of agreement if all members of the quorum observed the same message set. Counting signatures over a set that was never globally co-observed proves nothing.**

This is the agent-layer analogue of the classic "authenticated Byzantine agreement requires reliable channels" result, but it bites differently here because LLM agents *infer* their quorum from whatever they can retrieve, and retrieval is exactly the surface the adversary controls.

Condition of Validity

The `2f+1` safety argument is valid for agent fact-agreement **iff** the following holds for every committed fact:

If any of these is absent, the swarm is running "quorum counting," not Byzantine agreement, and the `f` bound is meaningless regardless of how many signatures validate.

Decision Boundary

An instance must **refuse to commit a fact** and escalate to a view-change when any of the following is true, even if `2f+1` valid signatures are present:

The instance must **not** treat "all signatures valid" as sufficient. Signature validity is a node-level property; co-observation is a channel-level property; only the conjunction licenses commitment. When in doubt, the safe action is to *withhold the fact from semantic memory* rather than commit a possibly-forked belief, because a forked fact poisons every future cold start that retrieves it — the failure is not local to this task but persistent across the memory lifecycle.

Operational Effect

The practical consequence is a reclassification: in agent swarms, the **coordination/transport layer is part of the trusted computing base for fact-agreement**, not merely plumbing. An instance that models its peers as the only Byzantine surface will under-provision trust and will commit forked facts under exactly the conditions an adversary finds cheapest to induce (a proxy, a shared store, a fan-out service). The correct architecture binds every attestation to a per-fact hash-linked log with signed heads, treats nonce-only replay protection as insufficient, and makes view-change a first-class, certificate-bearing operation. Under that discipline the `2f+1` bound recovers its meaning; without it, the swarm has strong signatures and no agreement.

import hashlib
from dataclasses import dataclass
from typing import Optional


class QuorumCoObservationError(RuntimeError):
    """Raised when a 2f+1 attestation set cannot be proven co-observed by all signers."""


@dataclass(frozen=True)
class Attestation:
    signer: str
    fact_id: str
    verdict: str
    view: int
    prev_head: Optional[str]      # hash of the log head this signer observed
    envelope_hash: str            # hash over (signer, fact_id, verdict, view, prev_head)


def _h(*parts: str) -> str:
    return hashlib.sha256("|".join(parts).encode()).hexdigest()


def verify_co_observed_quorum(
    fact_id: str,
    view: int,
    attestations: list[Attestation],
    f: int,
) -> str:
    """
    Commit a fact only if a 2f+1 quorum is provably co-observed:
    every attestation must chain back to the SAME log head for (fact_id, view).
    Returns the committed verdict.
    """
    quorum = 2 * f + 1
    if len(attestations) < quorum:
        raise QuorumCoObservationError(
            f"insufficient attestations for {fact_id}@{view}: "
            f"have {len(attestations)}, need {quorum}"
        )

    heads = {a.prev_head for a in attestations}
    if len(heads) != 1 or None in heads:
        # Multiple distinct log heads (or a missing chain link) => channel equivocation
        # or a laundered nonce. Signatures may all be valid; co-observation is not.
        raise QuorumCoObservationError(
            f"attestations for {fact_id}@{view} are not co-observed: "
            f"{len(heads)} distinct log heads {sorted(map(str, heads))}"
        )

    verdicts = {a.verdict for a in attestations}
    if len(verdicts) != 1:
        raise QuorumCoObservationError(
            f"conflicting verdicts within single co-observed view: {verdicts}"
        )

    # Recompute envelope integrity end-to-end (no gaps in the per-fact chain).
    for a in attestations:
        expected = _h(a.signer, a.fact_id, a.verdict, str(a.view), a.prev_head or "")
        if a.envelope_hash != expected:
            raise QuorumCoObservationError(
                f"envelope hash mismatch for signer {a.signer} on {fact_id}@{view}"
            )

    return verdicts.pop()


def commit_fact_or_escalate(fact_id: str, view: int, attestations: list[Attestation], f: int) -> str:
    try:
        return verify_co_observed_quorum(fact_id, view, attestations, f)
    except QuorumCoObservationError:
        # Do NOT write a forked belief into semantic memory; escalate to view-change.
        raise