What structural signals indicate equivocation-vs-availability collapse in BFT agent commitment quorums when result attestations diverge only in their post-condition predicates

**Date of Record:** 2026 December 1 **Scope:** Applies to BFT-style multi-agent commitment protocols (3f+1 replicas, f Byzantine) where agents commit to tasks via signed proposals and attest results via signed post-condition predicates rather than full output hashes. Does not cover single-agent retry logic, non-BFT quorum systems, or attestation schemes that hash the entire artifact (where divergence is trivially detectable by byte comparison).

Core Distinction

The failure mode that matters here is not *whether* a quorum of agents agrees, but *what dimension of agreement the quorum actually certifies*. In a task-commitment protocol, a proposal is committed when ≥2f+1 replicas sign it. A result is attested when ≥2f+1 replicas sign a post-condition predicate over the artifact. These are two separate quorum certificates, and the protocol assumes they are *about the same execution*. They are not necessarily.

The non-obvious boundary: when attestations diverge only in their *predicate text* while agreeing on the *boolean verdict* (all say "PASS"), the protocol's equivocation detector sees zero conflict, because equivocation is defined as two signed messages from the same replica with different content for the same slot. Predicate divergence across *different* replicas is invisible to that detector. The quorum certifies "2f+1 agents each independently concluded PASS under their own predicate," which is a strictly weaker statement than "2f+1 agents concluded the same predicate holds on the same artifact." The gap between these two statements is where availability-vs-safety collapses: the system remains *available* (quorums keep forming) while its *safety invariant*—that a committed result means one well-defined property held—silently degrades to "f+1 honest agents agreed on *something* that each locally called PASS."

What Was Observed

A three-stage task ran across 7 replicas (f=2, quorum=5). Stage 2 required the artifact to satisfy a post-condition expressed in natural language by the task author: "the returned record set contains no duplicate primary keys." Each replica independently translated this into an executable predicate before evaluating:

The artifact returned 4 records with IDs `["a", "A", "b", "c"]`. A and B evaluated FAIL (duplicate under exact match). C evaluated FAIL (duplicate under case-fold). D and E evaluated FAIL (set-dedup changes length). F signed PASS. G evaluated PASS (non-empty). Result: 2 PASS, 4 FAIL, 1 Byzantine PASS. No quorum for either verdict. The protocol entered liveness stall—not because of a network partition or a crashed leader, but because the *predicate space was under-specified* and the quorum could not converge on a verdict for a single artifact.

The structurally interesting second trace: the task author, seeing the stall, re-issued the task with the predicate pinned to `len(ids) == len(set(ids))`. Now A, B, C, D, E, G all evaluate FAIL, F evaluates PASS. Quorum of 6 FAIL → result committed as FAIL, correctly. But the *failure certificate* the protocol emitted recorded "6 replicas attested FAIL" with no record of *which predicate* each evaluated. When a downstream auditor later replayed the attestation using predicate `len(set(map(str.lower, ids))) == len(ids)`, it got FAIL on the same artifact and accepted the certificate as consistent—by coincidence, since C's original predicate differed. The auditor's replay did not detect that the certificate's predicate set was heterogeneous. The invariant "a committed attestation certificate pins the predicate used" was violated silently.

Condition of Validity

The safety guarantee "a committed result certificate means one well-defined post-condition held over the artifact" is valid **only if** the quorum certificate includes, per replica, a cryptographic commitment to the exact predicate evaluated (e.g., `hash(canonical_predicate_bytes)`), and the protocol rejects any certificate whose predicate-hash set has cardinality > 1 unless the task explicitly declares a predicate *equivalence class* (e.g., a set of accepted normalizations).

Without that, the guarantee degrades to: "≥2f+1 replicas each independently returned PASS under predicates they individually derived." This is a *liveness* property (the system produced a verdict) masquerading as a *safety* property (the verdict is well-defined). The degradation is non-obvious because:

  1. Equivocation detectors key on per-replica message divergence, not cross-replica predicate divergence, so they stay silent.
  2. Boolean agreement (all PASS) hides predicate disagreement; the detector sees consensus.
  3. Replay auditors re-evaluate under *their own* predicate derivation, which may coincidentally match the committed verdict, so replay does not surface the heterogeneity.

The invariant holds only under the strict condition that predicate identity is part of the signed attestation payload and is checked for set-cardinality-1 at commit time.

Decision Boundary

The boundary between safe and collapsed is a single cardinality check on the attestation certificate's predicate-hash set:

The decision must be made *before* the quorum certificate is finalized, at the point where the aggregator collects signed attestations. It cannot be deferred to replay, because replay auditors derive predicates independently and cannot reconstruct the original derivation without the per-replica predicate commitment in the certificate.

Operational Effect

When the boundary is crossed without the cardinality check, the observable symptoms are:

The guardrail is structural: the attestation payload must be `(artifact_hash, predicate_hash, verdict, replica_sig)`, and the aggregator's commit predicate must be `count(distinct predicate_hash) == 1 AND count(verdict == PASS) >= 2f+1`. Any certificate failing the first clause is not a safety proof regardless of the second.

import hashlib
from dataclasses import dataclass
from typing import Sequence


class PredicateHeterogeneityError(RuntimeError):
    """Raised when an attestation quorum certifies a verdict under divergent predicates."""
    pass


@dataclass(frozen=True)
class Attestation:
    replica_id: str
    artifact_hash: bytes
    predicate_hash: bytes
    verdict: bool
    signature: bytes


def commit_attestation_quorum(
    attestations: Sequence[Attestation],
    f: int,
    declared_equivalence_class: frozenset[bytes] | None = None,
) -> bool:
    """
    Commit a result certificate only if the quorum agrees on a single predicate
    (or a pre-declared equivalence class), not merely on the boolean verdict.
    """
    if len(attestations) < 2 * f + 1:
        raise PredicateHeterogeneityError(
            f"insufficient attestations: {len(attestations)} < {2 * f + 1}"
        )

    artifact_hashes = {a.artifact_hash for a in attestations}
    if len(artifact_hashes) != 1:
        raise PredicateHeterogeneityError(
            "attestations span multiple artifacts; not a single-slot quorum"
        )

    predicate_hashes = {a.predicate_hash for a in attestations}

    if len(predicate_hashes) > 1:
        if declared_equivalence_class is None:
            raise PredicateHeterogeneityError(
                f"predicate heterogeneity without declared equivalence class: "
                f"{len(predicate_hashes)} distinct predicate hashes across quorum. "
                f"Boolean agreement cannot substitute for predicate identity."
            )
        undeclared = predicate_hashes - declared_equivalence_class
        if undeclared:
            raise PredicateHeterogeneityError(
                f"predicate hashes outside declared equivalence class: {undeclared}"
            )

    pass_count = sum(1 for a in attestations if a.verdict)
    fail_count = len(attestations) - pass_count

    if pass_count >= 2 * f + 1:
        return True
    if fail_count >= 2 * f + 1:
        return False

    raise PredicateHeterogeneityError(
        f"no quorum verdict: {pass_count} PASS vs {fail_count} FAIL "
        f"with {len(predicate_hashes)} distinct predicates"
    )