What structural signals indicate equivocation is masquerading as slow progress in a BFT agent commit round

**Date of Record:** 2026 December 1 **Scope:** Applies to quorum-based (PBFT/Tendermint-family) protocols where autonomous agents commit shared task state and an adversarial minority can send divergent messages to different peers. Does not apply to crash-fault-only replication, single-leader Raft, or protocols where all messages are signed and broadcast through a single authenticated log.

Core Distinction

The dangerous failure in agent consensus is not a *stalled* round — stalls are loud, timeouts fire, and leaders rotate. The dangerous failure is a round that appears to be *making progress* while a Byzantine agent has partitioned its view: it votes `PREPARE` for block A to the leader's cohort and block B to the auditors' cohort, and because each cohort individually reaches quorum on a *different* value, both sides believe the task is committed. The system does not stall; it forks. Every local log is internally consistent, every quorum certificate verifies against the messages its holder actually received, and yet two mutually exclusive task commitments exist.

The distinction that matters operationally: **liveness failures announce themselves through missing quorums; equivocation failures announce themselves through *conflicting* quorums that each look locally valid.** A monitoring agent watching only for "has the round committed?" sees `true` and moves on. It must instead watch for the structural signature that two valid quorums were formed over incompatible values.

What Was Observed

A five-agent committee (tolerance `f=1`, quorum `2f+1=3`) executing a shared append-only task ledger. Agent `D` is Byzantine. The task is a single commit decision: `COMMIT(task_id=77, payload=P)`.

The trace that matters is the *message fan-out*, not the outcome:

  1. Leader `L` proposes `P`. It sends `PROPOSE(77, P, view=3)` to `A, B, C, D`.
  2. `D` sends `PREPARE(77, P, view=3)` to `A, B`.
  3. `D` sends `PREPARE(77, P', view=3)` to `C` — same `task_id`, same `view`, **different payload hash**.
  4. `A, B` each count `{self, peer, D}` = 3 prepares for `P` → local quorum certificate `QC(P)`. They commit `P`.
  5. `C` counts `{self, D, ...}` — it needs one more. `C` receives a *late* `PREPARE(77, P, view=3)` from `B` (which had already committed `P` and re-broadcast). `C` now holds `{C, D, B}` = 3 prepares, but `D`'s prepare was for `P'`, not `P`. If `C` verifies only *count* and not *payload-hash agreement within the quorum*, it assembles `QC(P')` because the majority of its received set hashed to `P'` only if it miscounts — and here is the precise defect: **`C`'s quorum-certificate assembly keyed on `(task_id, view)` rather than on `(task_id, view, payload_hash)`.** It summed votes across payload hashes and minted a certificate that no honest agent ever issued.

The observable structural signal: `C`'s `QC` for `P'` shares exactly `2f` signers with `A`'s `QC` for `P`, and the two certificates have *identical* `(task_id, view)` but divergent `payload_hash`. No individual message is forged. No signature fails. The equivocation is hidden inside the *aggregation key*.

Condition of Validity

This failure requires three conditions to co-occur, and the guardrail only needs to break one:

The condition is *not* valid when the adversary controls more than `f` agents (then no protocol survives) or when messages are broadcast through a total-order authenticated log (then equivocation is structurally impossible, and the aggregation-key bug is harmless).

Decision Boundary

The operational decision is: **on observing a certificate for `(task_id, view, payload_hash)`, do you (a) accept and commit, (b) hold and request the full signer set, or (c) emit equivocation evidence and freeze the task?**

The boundary that separates safe from unsafe behavior:

The trap is treating "certificate verifies locally" as sufficient for acceptance. It is not. **A locally valid certificate is necessary but not sufficient; the sufficient condition is local validity *plus* non-conflict with the historical certificate set for that slot.** An agent that commits on first-valid-certificate-wins is exactly the agent that forks.

Operational Effect

An agent that enforces payload-hash binding in the signed preimage, signer-set retention, and the intersection-based conflict rule converts a silent fork into a *detectable, attributable, slashable* event. The task freezes — a liveness cost bounded to one task — instead of forking — a safety cost that corrupts the shared ledger and requires out-of-band reconciliation.

The residual risk after the guardrail: the adversary can still cause *repeated freezes* by equivocating near the `f`-intersection boundary, forcing holds and view-changes without ever triggering the slashing threshold. This is a griefing vector, not a safety violation, and is bounded by view-change timeout escalation. The invariant to hold onto: **safety is preserved by refusing to commit on conflict; liveness is recovered by rotating the leader and re-proposing with a fresh view number that the adversary's stale prepares cannot satisfy.**

The structural signal an auditor agent should watch, stated as a predicate: *two certificates exist for the same `(task_id, view)` with different `payload_hash` and signer-set intersection greater than `f`.* That predicate firing is the difference between a system that caught its equivocator and a system that quietly forked.

from dataclasses import dataclass, field
from typing import Dict, FrozenSet, Tuple


class EquivocationDetected(RuntimeError):
    """Raised when two conflicting quorum certificates for the same slot
    share more than f signers, proving a Byzantine agent equivocated."""


@dataclass(frozen=True)
class QuorumCertificate:
    task_id: int
    view: int
    payload_hash: str
    signers: FrozenSet[str]

    def conflicts_with(self, other: "QuorumCertificate", f: int) -> bool:
        if (self.task_id, self.view) != (other.task_id, other.view):
            return False
        if self.payload_hash == other.payload_hash:
            return False
        return len(self.signers & other.signers) > f


class CommitStore:
    def __init__(self, f: int) -> None:
        self.f = f
        self._certs: Dict[Tuple[int, int], QuorumCertificate] = {}

    def accept(self, qc: QuorumCertificate) -> None:
        slot = (qc.task_id, qc.view)
        prior = self._certs.get(slot)
        if prior is None:
            self._certs[slot] = qc
            return
        if prior.payload_hash == qc.payload_hash:
            return  # idempotent re-delivery
        if prior.conflicts_with(qc, self.f):
            raise EquivocationDetected(
                f"task={qc.task_id} view={qc.view} "
                f"payloads={prior.payload_hash!r} vs {qc.payload_hash!r} "
                f"shared_signers={sorted(prior.signers & qc.signers)}"
            )
        # Disjoint-enough quorums: legitimate re-proposal, hold for full sets.
        raise EquivocationDetected(
            f"HOLD task={qc.task_id} view={qc.view}: "
            f"intersection={len(prior.signers & qc.signers)} <= f={self.f}, "
            f"requesting full signer sets before commit"
        )


def commit_gate(store: CommitStore, qc: QuorumCertificate) -> str:
    try:
        store.accept(qc)
    except EquivocationDetected as e:
        # Freeze the task; emit evidence; do not commit either value.
        return f"FROZEN: {e}"
    return f"COMMITTED task={qc.task_id} payload={qc.payload_hash}"