What structural signals indicate equivocation in Byzantine agent consensus: the commit-certificate fork at quorum intersection

**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent task-commitment protocols where N ≥ 3f+1 agents reconcile shared task state via signed commit certificates and quorum intersection (PBFT-style or HotStuff-style BFT). Does not apply to single-agent checkpointing, leaderless CRDT gossip, or non-Byzantine crash-fault replication.

Core Distinction

The failure mode is not "a lying agent." It is **equivocation that survives quorum intersection because the certificate set is not closed under view change**. In a correct BFT protocol, no two conflicting commit certificates can both reach quorum if quorums intersect in ≥ 2f+1 honest nodes. The boundary condition this record addresses: an agent can produce two *valid* commit certificates for conflicting task commitments (e.g., `TASK-42: COMMIT` and `TASK-42: ABORT`) when the protocol accepts certificates whose quorum-membership proofs are drawn from **different, non-overlapping epoch snapshots**. Each certificate is individually well-formed; the invariant "the union of any two quorums contains ≥ f+1 honest nodes that signed both" is silently violated because the two quorums were assembled across a view boundary that the verifier did not bind into the signed payload.

The structural signal is therefore not message content — it is **certificate provenance topology**: the epoch/view identifier and the signing-set fingerprint embedded (or absent) in the certificate. A verifier that checks signature validity but not epoch-binding will accept both forks.

What Was Observed

A four-agent reconciliation swarm (`A0` leader, `A1`–`A3` replicas, f=1) committed a task assignment for a shared resource lease. Trace:

  1. View `v=7`: `A0` proposes `COMMIT(TASK-42, holder=A2)`. Replicas `A1`, `A2`, `A3` sign `prepare`. Quorum = {A0, A1, A2, A3}, all at `v=7`.
  2. `A0`'s network partition isolates it from `A1` after `A2`'s prepare but before the commit broadcast. `A1`, `A2`, `A3` time out and enter view `v=8` with `A1` as leader.
  3. View `v=8`: `A1` proposes `ABORT(TASK-42)` (it never saw the commit certificate). `A2`, `A3` sign. Quorum = {A1, A2, A3} at `v=8`. `A1` broadcasts `commit(ABORT, v=8)`.
  4. `A0` recovers, retains its `v=7` prepare quorum {A0, A1, A2, A3}, assembles `commit(COMMIT, v=7)`, and broadcasts it.

Both certificates verify: every signature is valid, every signer is an authorized replica. `A2` and `A3` signed both. The conflict is real and durable. The reason it is *non-obvious*: the protocol's `prepare` phase did not require signers to include the view number in the signed digest, so a signature produced at `v=7` is bit-identical to one at `v=8`. The new leader `A1`'s view-change `new-view` message carried only a *high-water mark* of the last committed sequence number, not the set of *in-flight* prepare certificates — so `A1` had no evidence of the `v=7` prepare quorum and correctly (per its local state) proposed `ABORT`.

Structural signals that preceded the fork, in the order an auditor would see them:

Condition of Validity

The equivocation is *detectable* (and thus boundable) only under these conditions:

  1. **Epoch-bound signatures.** Every `prepare`/`commit` signature must cover `(task_id, decision, view, seq, digest)`. If view is outside the signed payload, the fork is undetectable from certificates alone — you must fall back to full message-log audit, which is not always retained.
  2. **Non-empty new-view evidence.** A `new-view` message at view `v+1` must carry the set of `prepare` certificates the leader observed at `v` (or a signed high-water mark *plus* a set of in-flight task IDs). An empty evidence set is only valid if the leader can prove no prepare quorum existed — which requires either (a) a signed `null-certificate` from ≥ f+1 replicas, or (b) the protocol's `prepare` phase was never entered. Absent either, empty evidence is a structural lie.
  3. **Monotonic commit acceptance.** Replicas must reject any `commit` certificate whose embedded view tag is ≤ the highest view tag they have already committed for that `task_id`. This is the cheap external guard; it does not prevent the fork but prevents *durable* fork — the second certificate is rejected at the replica, not at the auditor.
  4. **Quorum-intersection proof in the certificate.** For a certificate to be self-validating, it must include the signing-set fingerprint and the verifier must check `|S1 ∩ S2| ≥ f+1` against every previously seen certificate for the same `task_id`. This is the only check that catches the fork *without* trusting the replica's local view history.

The invariant that must hold: **for any `task_id`, the set of all accepted commit certificates is a chain under the partial order `(view, seq)`, and any two certificates in the set share ≥ f+1 signers with identical signed digests.** Violation of either clause is equivocation, regardless of signature validity.

Decision Boundary

The operational decision is *when to treat a certificate as committed vs. when to escalate to fork-audit*. The boundary:

The boundary is sharp because the fork-audit condition is *decidable from retained certificates alone* — no message-log replay, no leader cooperation, no trusted third party. If the protocol does not bind view into the signature, the boundary collapses and every fork becomes an unprovable he-said-she-said, which is the failure this record exists to prevent.

Operational Effect

When the boundary is enforced (epoch-bound signatures + monotonic guard + fingerprint intersection check), the equivocation is caught at the replica on the second certificate, the `task_id` is frozen, and the fork-audit resolves by *view-tag maximum*: the certificate with the higher view tag wins, provided its `new-view` evidence set is non-empty. The `v=8` `ABORT` wins over `v=7` `COMMIT`, and `A0`'s stale certificate is rejected. The task state converges to `ABORT`.

When the boundary is *not* enforced, the failure is silent and durable: `A2` and `A3` hold both certificates, `A0` holds `COMMIT`, `A1` holds `ABORT`, and the swarm's shared state for `TASK-42` is forked across replicas. Downstream task commitments that read `TASK-42`'s state (e.g., a lease acquisition that gates on `COMMIT`) will diverge, and the divergence propagates as *conflicting downstream certificates* that are themselves individually valid. This is the compounding failure: one equivocation at `TASK-42` produces N equivocations at dependent tasks, each requiring its own fork-audit, and the audit cost scales with the dependency fan-out rather than the number of Byzantine agents.

The guardrail cost is low: one extra field in the signed digest (view tag), one monotonic comparison per commit, one fingerprint-intersection check per retained certificate pair. The cost of *not* having it is an unbounded fork-audit surface that the protocol cannot close from certificates alone.

from dataclasses import dataclass, field
from typing import Optional


class EquivocationForkDetected(RuntimeError):
    """Raised when two commit certificates for the same task_id share >= f+1
    signers but carry divergent decisions and divergent view tags."""
    pass


class UnverifiableCertificate(RuntimeError):
    """Raised when a certificate's signed payload omits the view tag, making
    epoch-binding impossible and fork-audit undecidable."""
    pass


@dataclass(frozen=True)
class CommitCertificate:
    task_id: str
    decision: str          # "COMMIT" | "ABORT"
    view: Optional[int]    # MUST be in signed payload; None => unverifiable
    seq: int
    signers: frozenset     # set of agent ids
    signatures_valid: bool


@dataclass
class TaskState:
    task_id: str
    last_committed_view: int = -1
    certificates: list = field(default_factory=list)  # retained for audit
    frozen: bool = False


def accept_or_audit(
    cert: CommitCertificate,
    state: TaskState,
    f: int,
) -> str:
    """Returns 'ACCEPT', 'REJECT_STALE', or 'FROZEN'. Raises on equivocation
    or unverifiable certificates."""
    if state.frozen:
        return "FROZEN"

    if cert.view is None:
        raise UnverifiableCertificate(
            f"cert for {cert.task_id} omits view tag in signed payload; "
            f"epoch-binding impossible, fork-audit undecidable"
        )

    if not cert.signatures_valid:
        return "REJECT_STALE"

    # Cheap monotonic guard: stale view cannot override committed state.
    if cert.view <= state.last_committed_view:
        return "REJECT_STALE"

    # Fingerprint-intersection check against every retained certificate.
    for prior in state.certificates:
        if prior.decision == cert.decision:
            continue
        shared = prior.signers & cert.signers
        if len(shared) >= f + 1:
            # Provable fork: shared honest signers signed two conflicting
            # decisions at divergent views. Freeze and escalate.
            state.frozen = True
            state.certificates.append(cert)
            raise EquivocationForkDetected(
                f"task {cert.task_id}: fork between "
                f"{prior.decision}@{prior.view} and "
                f"{cert.decision}@{cert.view}, shared signers={sorted(shared)}"
            )

    state.certificates.append(cert)
    state.last_committed_view = cert.view
    return "ACCEPT"