# In what scenarios must an instance refuse to certify a Byzantine quorum when adversarial agents exploit equivocation across phase boundaries **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent decision quorums where agents exchange signed votes across multi-phase protocols (prepare/commit, propose/vote/decide) and where up to *f* participants may be Byzantine. Does not apply to single-agent tool calls, stateless request/response, or quorums where every participant is authenticated to a single trusted coordinator that serializes all messages. ## Core Distinction The failure is not "a liar votes for the wrong value." Standard BFT theory already bounds that: with *n* = 3*f* + 1 replicas, *f* Byzantine nodes cannot forge a quorum. The non-obvious boundary is **equivocation across phase boundaries**—a Byzantine agent that sends *consistent-looking but divergent* signed messages to different subsets of honest agents, one per phase, such that each honest agent locally observes a valid quorum certificate for a *different* decision, and no single honest agent ever sees the contradiction. The distinction that matters operationally: a **quorum certificate** (a set of *2f+1* signatures over a value) is a local object. A **decision** is a global claim. Byzantine equivocation lets every honest agent hold a locally valid certificate while the global decision is split. The invariant that breaks is: *"a valid quorum certificate implies a unique decision value."* It does not, unless certificates are bound to a phase-scoped view number and the agent refuses to certify when its own observed certificate set is internally inconsistent across phases. ## What Was Observed A five-agent quorum (*n*=5, *f*=1) executing a three-phase protocol: `PROPOSE → PREPARE → COMMIT`. Agent `A3` was Byzantine (adversarially controlled). Trace: 1. `A1` proposes value `X`. `A3` signs `PREPARE(X)` and sends it to `{A1, A2}`. 2. `A3` signs `PREPARE(Y)` and sends it to `{A4, A5}`. Both certificates carry the same view number `v=7` but different values. 3. `A1` collects `PREPARE` signatures from `{A2, A3, A1}` → sees a 3-of-5 certificate for `X`. It advances to `COMMIT(X)`. 4. `A4` collects `PREPARE` signatures from `{A5, A3, A4}` → sees a 3-of-5 certificate for `Y`. It advances to `COMMIT(Y)`. 5. `A1` and `A4` each broadcast `COMMIT` for their respective values. `A2` receives `COMMIT(X)` from `A1` and `COMMIT(Y)` from `A4`. Both are signed. `A2` now holds two valid commit certificates for the same view. No honest agent ever saw two *PREPARE* certificates. `A3` never sent a contradictory message to the same recipient. The contradiction only materializes at the *COMMIT* aggregation layer, and only for agents that receive commits from both partitions. `A2` was the only agent to observe the split—and it observed it as *two valid certificates*, not as an invalid one. Its local validator passed both. The failure was silent: the protocol's signature check verified each certificate independently. It had no predicate for "this agent's certificate set across phases must be mutually exclusive in value per view." ## Condition of Validity The refusal-to-certify guardrail is valid—and must be enforced—precisely when all of the following hold: - The protocol has **at least two phases** that each aggregate signatures independently (so a certificate can be formed per phase). - Byzantine agents can **selectively route** messages (i.e., the transport is not a broadcast medium with global ordering, or the adversary controls network partition). - The quorum threshold for certificate formation (*2f+1*) is **strictly less than the total honest set** available to receive divergent certificates—i.e., *n* > 2*f*+1, so two disjoint quorums each containing *f* honest nodes can both form. - The agent **does not bind certificates to a phase-scoped, value-scoped commitment** (e.g., a hash of `(view, phase, value)` signed at propose time and required in every subsequent phase message). When any of these fails—single-phase protocols, globally ordered broadcast, or *n* = 2*f*+1 with no slack—the equivocation cannot produce two valid certificates and the guardrail is unnecessary (though harmless). ## Decision Boundary The operational decision rule for an agent receiving certificates: - **Certify** a decision only if, for the current view *v*, the agent's locally held set of phase certificates contains **exactly one distinct value** across all phases it has observed. If it holds `PREPARE(X)` and `COMMIT(Y)` for the same *v*, it must **refuse**—not pick the later one, not pick the majority, not defer. - **Refuse and escalate** when the agent observes two certificates for the same `(view, phase)` with different values, OR two certificates for the same `view` across different phases with different values. The refusal must be a hard stop that emits an equivocation evidence bundle (both signed certificates) to the auditor layer. - **Do not** treat "I have not personally seen the contradiction" as sufficient grounds to certify. An agent that has only seen `COMMIT(X)` cannot know whether `COMMIT(Y)` exists elsewhere. The guardrail is therefore **local mutual-exclusion over the agent's own certificate set**, not global detection—because global detection is impossible for a finite-context agent. The boundary is sharp: an agent may certify a value it has a quorum certificate for *only if* no other certificate in its possession contradicts it on value within the same view. Absence of contradiction is not proof of uniqueness; it is the maximum an instance can verify locally. ## Operational Effect Without the guardrail, the quorum splits and both partitions believe they have decided. Downstream, each partition's agents act on divergent state—one writes `X` to shared memory, the other writes `Y`—producing a **state-continuity fork** that surfaces later as retrieval mismatch (agent A recalls `X`, agent B recalls `Y` for the same task) and as verification replay discrepancy (an auditor replaying the log sees two valid commit certificates and cannot adjudicate). With the guardrail, the first agent to observe the cross-phase contradiction (`A2` in the trace) refuses, emits evidence, and halts its own certification. This does not by itself resolve the split—`A1` and `A4` have already committed—but it **bounds the blast radius**: the auditor receives a signed equivocation proof against `A3`, ejects it, and the remaining honest agents re-run the view with *f* reduced. The invariant restored is not "no split ever occurs" but "no split is ever *silently certified by an agent that could have detected it.*" The cost is liveness: an agent holding a single valid certificate but suspecting a partition must refuse rather than proceed, trading progress for safety. This is the correct trade under adversarial assumptions—an agent that certifies on incomplete local knowledge is exactly the agent the adversary is counting on. ```python from dataclasses import dataclass from typing import Dict, List, Tuple class EquivocationCertificationError(RuntimeError): """Raised when an agent attempts to certify a decision while holding mutually contradictory quorum certificates for the same view.""" pass @dataclass(frozen=True) class Certificate: view: int phase: str # "PREPARE" | "COMMIT" value: str signers: Tuple[str, ...] def quorum_size(self) -> int: return len(self.signers) class QuorumCertifier: """Local certifier enforcing cross-phase value mutual-exclusion per view.""" def __init__(self, n: int, f: int): if n < 3 * f + 1: raise ValueError("n must be >= 3f+1 for BFT quorum") self.n = n self.f = f self.threshold = 2 * f + 1 # view -> phase -> value -> certificate self._certs: Dict[int, Dict[str, Dict[str, Certificate]]] = {} def ingest(self, cert: Certificate) -> None: if cert.quorum_size() < self.threshold: raise EquivocationCertificationError( f"certificate for view {cert.view} phase {cert.phase} " f"value {cert.value} has only {cert.quorum_size()} signers, " f"below threshold {self.threshold}" ) by_phase = self._certs.setdefault(cert.view, {}) by_value = by_phase.setdefault(cert.phase, {}) by_value[cert.value] = cert def certify(self, view: int, value: str) -> Certificate: """Return the certificate authorizing `value` at `view`, or refuse.""" by_phase = self._certs.get(view, {}) observed_values = set() for phase, by_value in by_phase.items(): observed_values.update(by_value.keys()) if not observed_values: raise EquivocationCertificationError( f"no certificates observed for view {view}" ) if len(observed_values) > 1: # Cross-phase equivocation detected: same view, multiple values. raise EquivocationCertificationError( f"equivocation across phases at view {view}: " f"observed values {sorted(observed_values)}; " f"refusing to certify {value}" ) (only_value,) = observed_values if only_value != value: raise EquivocationCertificationError( f"requested certify({value}) but only quorum is for {only_value} " f"at view {view}" ) # Pick the highest-phase certificate as the authorization. phase_order = {"PREPARE": 0, "COMMIT": 1} best_phase = max(by_phase.keys(), key=lambda p: phase_order.get(p, -1)) return by_phase[best_phase][only_value] def run_trace() -> None: cert = QuorumCertifier(n=5, f=1) # A2 observes COMMIT(X) from partition 1 and COMMIT(Y) from partition 2. cert.ingest(Certificate(view=7, phase="COMMIT", value="X", signers=("A1", "A2", "A3"))) cert.ingest(Certificate(view=7, phase="COMMIT", value="Y", signers=("A3", "A4", "A5"))) # Must refuse: two values at same view. cert.certify(view=7, value="X") if __name__ == "__main__": run_trace() ```