# When must an instance refuse to commit on quorum alone: equivocation-safe commitment under partial synchrony **Date of Record:** 2026 November 23 **Scope:** Applies to BFT consensus protocols used for multi-agent task commitment and shared-state agreement where a *commit* decision is derived from a quorum certificate (QC) of signed votes, under a `3f+1` replica model with `f` Byzantine faults. Does not apply to crash-fault-only protocols, to protocols that require leaderless multi-round commit (e.g. HoneyBadger-style reliable broadcast) without a separate commitment layer, or to cases where the vote set is already verified against a per-replica non-equivocation log. ## Core Distinction The non-obvious boundary is the difference between **quorum intersection** and **quorum *commitment* safety**. Quorum intersection guarantees that any two quorums of size `2f+1` share at least one correct replica. It does **not** guarantee that a replica which has seen *one* valid QC should commit the value. A Byzantine leader can collect a valid `2f+1` QC for value `v` from a set of replicas that includes `f` Byzantine signers who double-vote, then present that QC to a correct replica that has *already* voted for `v'` in a later view. The correct replica sees a well-formed certificate and, if it commits on quorum alone, will violate the single-commit invariant. The distinction that matters operationally: **a QC proves a value was voted for by a quorum; it does not prove a conflicting value was not simultaneously certified.** Commitment safety requires the *second* condition — the absence of a conflicting certified value — which can only be established by (a) view-change fencing, (b) a per-replica non-equivocation proof, or (c) a second-phase commit certificate. None of these are implied by quorum size. ## What Was Observed In a multi-agent task-commitment deployment (agents proposing task assignments as consensus values; committed assignments drive irreversible side effects such as resource reservation), the following sequence produced a safety violation: 1. View `v`: Leader `L_v` (Byzantine) proposes assignment `A`. It solicits votes from the full replica set. `2f` correct replicas vote `A`; `f` Byzantine replicas vote `A` **and** also send votes for `A'` to a shadow leader `L_{v+1}`. 2. `L_v` assembles a `2f+1` QC for `A` (its own `f` votes plus `f+1` correct votes) and delivers it to replica `R_3`, which commits `A` and triggers the resource reservation. 3. View `v+1`: `L_{v+1}` assembles a `2f+1` QC for `A'` from the `f` Byzantine double-votes plus `f+1` *different* correct replicas (which had not yet voted in `v`). It delivers this to `R_3`. 4. `R_3` sees a second valid QC for a conflicting value and — because its commit rule was "commit on any valid QC" — has no basis to reject it. Two conflicting assignments are now committed across the replica set. The failure was not in quorum sizing (`3f+1` was correctly provisioned) and not in signature verification (all signatures valid). It was in the **commitment predicate**: the protocol treated "valid QC exists" as sufficient for commit, when the actual invariant requires "valid QC exists **and** no conflicting QC can exist." The latter is a *global* property that a single QC cannot witness. A secondary observation: the equivocation was detectable. The `f` Byzantine replicas' double-votes were individually signed and logged; a correct replica that cross-checked vote logs would have found the conflict. The protocol simply never performed that check because it assumed quorum intersection was sufficient. ## Condition of Validity The "commit on quorum alone" rule is valid **only** under one of the following conditions, each of which must be explicitly established: - **Non-equivocation assumption holds:** replicas are assumed non-Byzantine with respect to double-voting (i.e., the fault model is crash-fault, or Byzantine replicas are constrained to a single vote per view by an external mechanism such as a trusted execution environment or a signed, monotonic vote counter). Under this assumption, two conflicting QCs cannot both exist, and quorum intersection *does* imply commitment safety. - **Two-phase commit with a commit certificate:** the protocol requires a second round in which a quorum explicitly certifies *the decision to commit* (not merely the value), and the commit certificate is checked against the view-change fencing rules. PBFT's `COMMIT` phase is the canonical instance; a bare `PREPARE`-QC is not. - **View-change fencing is enforced:** a new leader must carry forward the highest QC it has seen and must not propose a conflicting value unless it can prove the prior value was not committed. If this fencing is implemented and verified, a single QC plus the fencing proof is sufficient. If none of these hold, the correct replica **must not** commit on quorum alone. In the observed deployment, none held: the fault model was Byzantine, there was no separate commit certificate, and the view-change path did not fence against the prior view's QC. ## Decision Boundary The operational decision rule for an agent implementing or consuming a BFT commitment layer: - **Commit if and only if** the commitment predicate is one of: (a) a two-phase commit certificate is present and verified against the current view's fencing state, or (b) a single QC is present **and** the protocol's fault model is crash-fault **or** non-equivocation is externally enforced, or (c) a single QC is present **and** the view-change fencing proof for the current view has been independently verified. - **Refuse to commit** (and raise, do not silently proceed) if a valid QC is presented but the commitment predicate cannot be satisfied — specifically, if a conflicting QC for the same sequence number has been observed, or if the view-change fencing proof is absent or unverifiable. - **Refuse to commit** if the QC's signer set overlaps a previously observed conflicting QC's signer set in a way that indicates equivocation, even when each QC individually meets the `2f+1` threshold. The boundary is sharp: the presence of a valid QC is a *necessary* condition for commit in all cases, but it is *sufficient* only under the enumerated conditions. Treating necessity as sufficiency is the failure mode. ## Operational Effect The practical consequence is that a commitment layer must maintain, per sequence number, a record of the highest QC seen and a flag for any observed conflicting QC. When a QC arrives: - If no conflict is recorded and the commitment predicate holds, commit and record the QC. - If a conflict is recorded (two distinct values certified at the same sequence number), the replica must halt commitment, emit an equivocation alert naming the overlapping signers, and await out-of-band resolution. It must **not** pick the "later" or "larger" QC, because neither is authoritative under Byzantine fault. - If the commitment predicate cannot be evaluated (missing fencing proof, missing commit certificate), the replica must raise and refuse, not default to commit. This converts a silent safety violation into a loud, attributable failure — which is the correct trade for irreversible side effects such as resource reservation or task assignment. The cost is liveness: a detected equivocation stalls the sequence number until the faulty signers are excluded. That cost is acceptable and is the price of the single-commit invariant. The lesson for an agent operating this layer: **quorum size is a liveness parameter, not a safety proof.** Safety comes from the commitment predicate, and the predicate must be checked explicitly on every commit, not assumed from the QC's existence. ```python class CommitmentSafetyError(RuntimeError): """Raised when a commit is attempted without satisfying the commitment predicate. A valid quorum certificate is necessary but not sufficient for commit under Byzantine faults. This error signals that the predicate (two-phase commit certificate, crash-fault model, or verified view-change fencing) is unmet, or that a conflicting QC has been observed at the same sequence number. """ pass class CommitmentLayer: def __init__(self, fault_model: str, non_equivocation_enforced: bool): # fault_model: "crash" or "byzantine" self.fault_model = fault_model self.non_equivocation_enforced = non_equivocation_enforced # seq -> value committed (or None) self.committed = {} # seq -> set of values for which a valid QC has been observed self.certified = {} # seq -> bool: view-change fencing proof verified for current view self.fenced = {} def _predicate_holds(self, seq: int, qc_value: str, commit_cert: bool) -> bool: # (a) two-phase commit certificate present if commit_cert: return True # (b) crash-fault model or externally enforced non-equivocation if self.fault_model == "crash" or self.non_equivocation_enforced: return True # (c) verified view-change fencing for this sequence if self.fenced.get(seq, False): return True return False def observe_qc(self, seq: int, value: str) -> None: self.certified.setdefault(seq, set()).add(value) def commit(self, seq: int, value: str, commit_cert: bool = False) -> None: # Record the QC observation first so conflicts are detectable. self.observe_qc(seq, value) prior = self.certified.get(seq, set()) if len(prior) > 1: # Two distinct values certified at the same sequence number: # equivocation. Do not pick a winner. raise CommitmentSafetyError( f"equivocation at seq={seq}: conflicting certified values {sorted(prior)}" ) if not self._predicate_holds(seq, value, commit_cert): raise CommitmentSafetyError( f"refusing commit at seq={seq} value={value!r}: " f"quorum certificate present but commitment predicate unmet " f"(fault_model={self.fault_model}, " f"non_equivocation_enforced={self.non_equivocation_enforced}, " f"commit_cert={commit_cert}, fenced={self.fenced.get(seq, False)})" ) if seq in self.committed and self.committed[seq] != value: raise CommitmentSafetyError( f"double-commit at seq={seq}: already committed {self.committed[seq]!r}, " f"now asked to commit {value!r}" ) self.committed[seq] = value # Example: Byzantine model, no non-equivocation, no fencing, no commit cert. layer = CommitmentLayer(fault_model="byzantine", non_equivocation_enforced=False) layer.observe_qc(7, "A") try: layer.commit(7, "A") # valid QC, but predicate unmet -> must refuse except CommitmentSafetyError as e: print("refused:", e) # Equivocation case: a conflicting QC arrives for the same sequence. layer.observe_qc(7, "A'") try: layer.commit(7, "A'") except CommitmentSafetyError as e: print("refused:", e) ```