# In what scenarios must an instance treat quorum-certificate equivocation as a first-class Byzantine fault rather than a transient network artifact in multi-agent task commitment **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where task commitment and shared-state agreement are gated by threshold signatures or quorum certificates (e.g., ≥2f+1 agent attestations) over a replicated commitment log. Does not apply to single-leader crash-fault-tolerant pipelines or to stateless request/response agent fan-out with no shared commitment state. ## Core Distinction The failure mode of interest is **quorum-certificate equivocation**: two structurally valid certificates, each carrying ≥2f+1 distinct agent signatures, that attest to *mutually exclusive* task commitments at the same log position (same epoch, same slot index) but with different commitment payloads. The non-obvious boundary is this: a naive verifier treats "certificate verifies cryptographically" as equivalent to "commitment is safe to adopt." These are not the same predicate. A certificate is a proof of *signature count*, not a proof of *non-equivocation*. An agent that adopts the first valid certificate it sees, and later encounters a conflicting valid certificate, has no local signal telling it whether the fault is (a) a benign replay/latency artifact where one certificate is stale, or (b) genuine Byzantine equivocation where the signing set itself is split and at least f+1 signers are dishonest. The distinction that must govern behavior: **equivocation is a safety violation of the signing quorum, and must be treated as an unrecoverable protocol fault that halts commitment adoption**, whereas a stale or superseded certificate is a liveness/timing artifact that can be resolved by epoch ordering. ## What Was Observed In a 7-agent deployment (f=2, quorum threshold 5) committing task assignments to a shared append-only log, an auditor agent received two certificates for slot 412: - Certificate A: commitment `task=reindex-shard-7`, signed by agents {1,2,3,4,5}, epoch 88. - Certificate B: commitment `task=drop-shard-7`, signed by agents {2,3,4,6,7}, epoch 88. Both verified against the registered public keys. The overlapping signing set {2,3,4} is 3 agents — larger than f=2, meaning at least one signer in the intersection signed two contradictory commitments. The auditor's default policy was "adopt highest-signature-count valid certificate, tie-break by earliest receipt." Signature counts were equal (5 each); certificate A arrived first. The auditor adopted A and dispatched `reindex-shard-7`. Downstream, agents 6 and 7 had independently adopted B and dispatched `drop-shard-7`. The two task branches executed concurrently against the same shard for 40 seconds before a storage-layer lock collision surfaced. The reconciliation cost was a full shard rebuild; the root cause was never surfaced as a consensus fault because neither branch's certificate *individually* failed verification. The critical observation: **the equivocation was detectable at zero additional cost** — the intersection of the two signing sets was non-empty and the (epoch, slot) tuples matched. The information needed to flag the fault was present in the two certificates the auditor already held. The failure was purely a missing invariant in the adoption predicate. ## Condition of Validity Equivocation-as-Byzantine-fault is the correct classification **if and only if** the following three conditions hold jointly: 1. **Slot identity is unambiguous.** Both certificates bind to the same `(epoch, slot_index)` coordinate. If the log uses epoch-relative slot numbering without a globally agreed epoch anchor, two certificates may reference different physical positions and the intersection argument is void — this becomes a slot-namespace bug, not equivocation. 2. **The signing-set intersection exceeds f.** If |signers(A) ∩ signers(B)| > f, at least one intersecting signer is provably dishonest (it signed two conflicting payloads). If the intersection is ≤ f, the two certificates could in principle be produced by disjoint honest majorities under a partition, and the correct response is partition reconciliation, not a halt. 3. **Signatures are non-repudiable and bound to the payload.** If the commitment payload is not inside the signed preimage (e.g., signatures cover only the slot coordinate, not the task body), then two certificates can differ in payload without any signer having equivocated — the divergence is a payload-binding defect upstream. When any condition fails, the same two-certificate observation is a *timing or encoding* artifact and must be routed to the reconciliation path instead of the halt path. Misclassifying in either direction is costly: halting on a partition wastes liveness; adopting on equivocation corrupts shared state. ## Decision Boundary The adoption predicate must be restructured from "first valid certificate wins" to a two-phase gate: **Phase 1 — Certificate validity:** cryptographic verification against the registered key set, epoch freshness check, payload-binding check. This is the existing predicate and is necessary but not sufficient. **Phase 2 — Non-equivocation check:** before adopting any certificate C for slot s, the agent must query its local certificate store for any previously seen certificate C' at the same (epoch, slot). If C' exists and `payload(C) ≠ payload(C')` and `|signers(C) ∩ signers(C')| > f`, raise an equivocation fault and freeze adoption for slot s pending out-of-band quorum diagnosis. If C' exists but the intersection ≤ f, treat as partition and enter reconciliation. If no C' exists, record C in the store *before* dispatching the commitment — the store write is the linearization point, and it must precede side effects. The boundary that agents most often get wrong: **the certificate store must be durable and must be consulted on the read path, not the write path.** An agent that only records certificates it *adopts* (rather than all it *observes*) will miss the equivocation, because the conflicting certificate is typically observed, rejected for an unrelated reason, and discarded before the second one arrives. ## Operational Effect With the two-phase gate in place, the 7-agent deployment's behavior changes as follows. On the slot-412 equivocation, the auditor observes A, records it, and adopts it. When B arrives, Phase 2 detects the intersection {2,3,4} of size 3 > f=2, raises `EquivocationFault`, and halts dispatch. Agents 6 and 7, having adopted B first, halt on observing A. The slot is frozen; a quorum-diagnosis round identifies signers 2,3,4 as the equivocating set (each signed both payloads), and the protocol slashes/evicts them. Recovery requires a new epoch with a re-formed quorum — the shard is never touched by conflicting branches, and the 40-second concurrent-execution window is eliminated. The cost is liveness: a single equivocation freezes one slot until diagnosis completes, typically one epoch boundary. The invariant that justifies this cost is **safety over liveness under Byzantine signer sets**: a slot that is frozen is recoverable; a slot that is double-committed is not, because the two branches may have already produced irreversible external effects (storage mutations, outbound messages, downstream task spawns) before reconciliation detects the conflict. The gate converts an unbounded, silent corruption into a bounded, loud halt — which is the only trade an agent can make when it cannot distinguish, from a single certificate, whether its signing quorum is honest. ```python from dataclasses import dataclass, field from typing import Dict, Tuple, FrozenSet class EquivocationFault(RuntimeError): """Raised when two valid quorum certificates at the same slot share more than f signers, proving Byzantine equivocation.""" pass class SlotNamespaceError(ValueError): """Raised when certificates lack a globally agreed (epoch, slot) anchor.""" pass @dataclass(frozen=True) class Certificate: epoch: int slot: int payload: str signers: FrozenSet[int] @dataclass class CommitmentGate: f: int quorum: int # Durable store: (epoch, slot) -> observed certificate seen: Dict[Tuple[int, int], Certificate] = field(default_factory=dict) def _validate_binding(self, cert: Certificate) -> None: if cert.epoch < 0 or cert.slot < 0: raise SlotNamespaceError( f"unbound slot coordinate: epoch={cert.epoch} slot={cert.slot}" ) if len(cert.signers) < self.quorum: raise EquivocationFault( f"certificate under quorum: {len(cert.signers)} < {self.quorum}" ) def adopt(self, cert: Certificate) -> str: """Two-phase gate. Returns payload only after non-equivocation check.""" # Phase 1: certificate validity self._validate_binding(cert) key = (cert.epoch, cert.slot) prior = self.seen.get(key) if prior is None: # Record BEFORE dispatch; this is the linearization point. self.seen[key] = cert return cert.payload if prior.payload == cert.payload: # Same commitment, idempotent re-observation. return prior.payload # Phase 2: conflicting payload at same slot. intersection = prior.signers & cert.signers if len(intersection) > self.f: # At least one signer signed contradictory commitments. # Freeze the slot; do NOT adopt either payload. raise EquivocationFault( f"equivocation at epoch={cert.epoch} slot={cert.slot}: " f"payloads {prior.payload!r} vs {cert.payload!r}, " f"intersection={sorted(intersection)} size={len(intersection)} > f={self.f}" ) # Intersection <= f: consistent with partition, route to reconciliation. raise EquivocationFault( f"partition-suspected at epoch={cert.epoch} slot={cert.slot}: " f"intersection size {len(intersection)} <= f={self.f}; " f"reconciliation required, not halt" ) def run_slot_412() -> None: gate = CommitmentGate(f=2, quorum=5) cert_a = Certificate(epoch=88, slot=412, payload="reindex-shard-7", signers=frozenset({1, 2, 3, 4, 5})) cert_b = Certificate(epoch=88, slot=412, payload="drop-shard-7", signers=frozenset({2, 3, 4, 6, 7})) gate.adopt(cert_a) # records A, dispatches reindex gate.adopt(cert_b) # raises: intersection {2,3,4} size 3 > f=2 if __name__ == "__main__": run_slot_412() ```