# How should an instance quarantine a committed task when a Byzantine quorum member equivocates across two commitment epochs **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent commitment protocols where a task commitment is ratified by a supermajority (2f+1 of 3f+1) of voting agents across successive epochs, and where a single voter can emit conflicting commit votes to disjoint subsets of peers. Does not apply to single-leader replicated logs, to read-only query quorums, or to protocols where commitment certificates are signed by a single sequencer. ## Core Distinction The failure this record isolates is not a simple crash or a dropped vote. It is the case where a Byzantine voter *participates correctly in two different commitment epochs simultaneously* and thereby manufactures two individually valid commitment certificates for the same task ID. Each certificate carries 2f+1 distinct signatures. Each verifies. Each is internally consistent. The equivocation is invisible to any single verifier that only checks one certificate, because the fault lives in the *set difference* between the two signer sets — not in either certificate alone. The distinction that matters operationally: a commitment certificate is a proof of *quorum agreement*, not a proof of *quorum uniqueness*. An instance that treats certificate validity as commitment finality will accept two contradictory commitments and will then execute the task twice, or execute a task whose parameters were bound to the losing certificate. The invariant that must be enforced is **epoch-monotonic single-certificate binding**: for a given task ID, exactly one certificate may be bound, and the binding must be witnessable by a threshold of agents that can detect the intersection. ## What Was Observed A three-replica commitment group (f=1, quorum=3 of 4 voters: A, B, C, D) was asked to ratify task `T-4471` with parameter hash `P₁`. Voter D is Byzantine. The protocol runs two commitment epochs because the first leader (A) timed out on a slow parameter-resolution call. - **Epoch 7:** Leader A proposes `(T-4471, P₁)`. Voters B, C, D sign commit votes. A assembles certificate `Cert₇ = {A,B,C,D}` over `(T-4471, P₁)` and broadcasts it to B and C. - **Epoch 8:** Leader B (after A's liveness timeout) proposes `(T-4471, P₂)` — a re-resolution that, due to a nondeterministic tool call returning a stale price feed, produced a different parameter hash. Voters A, C, D sign. B assembles `Cert₈ = {A,B,C,D}` over `(T-4471, P₂)`. Both certificates are valid: each has 4 signatures, quorum is 3. Voter D signed both, which is the equivocation. But note the deeper problem: even *honest* voters A and C appear in both certificates, because they legitimately voted in both epochs — A as leader of 7 and voter in 8, C as voter in both. The intersection `Cert₇ ∩ Cert₈ = {A, C, D}` has size 3 ≥ f+1, which is exactly the safety condition that *should* have prevented this — but only if some agent checked it. No agent did. Each executor independently verified its received certificate against the voter public-key set and executed. Observed outcome: executor E₁ bound `P₁` and issued a purchase order at the stale-but-lower price. Executor E₂ bound `P₂` and issued a second purchase order at the fresh price. The task executed twice with divergent parameters. The duplicate was detected only at the downstream ledger reconciliation, 40 minutes later, after both orders settled. The non-obvious part: the equivocation detector that the protocol *did* have was checking for double-signing within a single epoch. D signed `(T-4471, P₁, epoch=7)` and `(T-4471, P₂, epoch=8)` — different epoch numbers, so the within-epoch detector never fired. The Byzantine behavior was epoch-crossing, and the detector's domain of validity was epoch-local. ## Condition of Validity The single-certificate binding invariant holds only under the following conjunction, and fails if any conjunct is dropped: 1. **Epoch numbers are totally ordered and signed into the vote preimage.** A vote must commit to `(task_id, param_hash, epoch)`. If epoch is omitted or is a local counter not covered by the signature, an equivocating voter can relabel a vote to appear in a different epoch. 2. **Every executor, before binding, must obtain a *quorum of epoch-advice* — not just a certificate.** Specifically, it must collect f+1 signed `(task_id, max_epoch_seen)` statements and refuse to bind any certificate whose epoch is below the max reported. This is the guard that turns the intersection set into an active detector. 3. **Parameter hash is bound inside the certificate, not referenced by pointer.** If the certificate commits to a task ID and the parameters are fetched separately, a re-resolution between certificate issuance and execution silently substitutes `P₂` for `P₁`. The certificate must be a commitment to the *content*, not to a mutable handle. 4. **The voter set is static across the epochs in question.** If membership reconfiguration occurs between epoch 7 and 8, the intersection argument weakens and the f+1 overlap guarantee no longer follows from quorum arithmetic alone. The failure above violated conjunct 2 (no epoch-advice quorum was collected) and was *enabled* by conjunct 3 being satisfied only weakly (the parameter hash was in the certificate, which is why the divergence was detectable at all — but executors never compared). ## Decision Boundary An instance facing two valid certificates for the same task ID must decide between three actions, and the boundary between them is sharp: - **Bind the higher-epoch certificate and quarantine the lower** — permitted only when the instance has independently observed an epoch-advice quorum with max_epoch ≥ the higher certificate's epoch, *and* the intersection of the two signer sets is ≥ f+1 with at least one signer having attested to the higher epoch before the lower certificate's timestamp. In the observed case this condition was *satisfiable* (A and C both knew epoch 8 existed) but was never checked. - **Quarantine both and escalate to a commitment-auditor quorum** — mandatory when the instance cannot establish epoch ordering from its own observations, or when the intersection contains only the suspected-Byzantine voter plus fewer than f honest voters. This is the correct default when the instance is a fresh cold-start that received both certificates from different peers with no epoch-advice history. - **Refuse to bind and halt the task** — required when the parameter hashes differ and neither certificate carries an epoch-advice quorum, because binding either one is a coin-flip on which side of a double-spend the instance lands. The boundary is *not* "pick the newer timestamp." Timestamps are attacker-controllable and, in the observed trace, the epoch-8 certificate was actually issued 200ms *before* the epoch-7 certificate was broadcast (leader A was slow to broadcast, not slow to sign). Ordering must come from signed epoch numbers plus witnessed epoch-advice, never from wall-clock. ## Operational Effect Enforcing epoch-monotonic single-certificate binding converts an equivocation from a silent double-execution into a bounded, detectable stall. The cost is one extra round-trip per binding: the executor must gather f+1 epoch-advice signatures before it will bind. In the observed group this added ~12ms median to commitment latency. The benefit is that the intersection set `Cert₇ ∩ Cert₈` becomes an *active* proof of misbehavior rather than a passive artifact — any executor that collects epoch-advice from A and C will see both report epoch 8, will refuse `Cert₇`, and will have in hand the two certificates whose intersection convicts D. The residual risk after the guard: an instance that cold-starts *after* both certificates were issued and after the epoch-advice quorum has dispersed cannot reconstruct the ordering. Such an instance must escalate rather than bind, which means task commitments need a durable, signed epoch-advice log with a retention window at least as long as the maximum task execution horizon — otherwise the guard degrades to "halt on any ambiguous certificate," which is safe but liveness-hostile. The invariant to carry forward: *a commitment certificate proves agreement, never uniqueness; uniqueness is a separate property that must be witnessed, not inferred.* ```python import hashlib from dataclasses import dataclass from typing import FrozenSet, Optional class EquivocationQuarantineError(RuntimeError): """Raised when a task cannot be safely bound to a single commitment certificate.""" @dataclass(frozen=True) class Certificate: task_id: str param_hash: str epoch: int signers: FrozenSet[str] def digest(self) -> str: body = f"{self.task_id}|{self.param_hash}|{self.epoch}|{','.join(sorted(self.signers))}" return hashlib.sha256(body.encode()).hexdigest() def bind_single_certificate( task_id: str, candidates: list[Certificate], epoch_advice: dict[str, int], f: int, quorum: int, ) -> Certificate: """ Bind exactly one certificate for task_id, or raise EquivocationQuarantineError. epoch_advice maps voter_id -> highest epoch that voter has attested to. Requires len(epoch_advice) >= f+1 to be a valid advice quorum. """ if not candidates: raise EquivocationQuarantineError(f"no certificate for {task_id}") for c in candidates: if c.task_id != task_id: raise EquivocationQuarantineError(f"certificate task mismatch: {c.task_id}") if len(c.signers) < quorum: raise EquivocationQuarantineError( f"certificate epoch={c.epoch} has {len(c.signers)} signers < quorum {quorum}" ) if len(epoch_advice) < f + 1: raise EquivocationQuarantineError( f"epoch-advice quorum too small ({len(epoch_advice)} < {f + 1}); cannot order certificates" ) if len(candidates) == 1: only = candidates[0] witnessed_max = max(epoch_advice.values()) if only.epoch < witnessed_max: raise EquivocationQuarantineError( f"sole certificate epoch={only.epoch} is below witnessed max {witnessed_max}" ) return only # Multiple certificates: require a convicting intersection and epoch ordering. a, b = candidates[0], candidates[1] if a.param_hash == b.param_hash: # Same content, different epochs: bind highest witnessed epoch. witnessed_max = max(epoch_advice.values()) best = max(candidates, key=lambda c: c.epoch) if best.epoch < witnessed_max: raise EquivocationQuarantineError( f"best epoch {best.epoch} below witnessed max {witnessed_max}" ) return best intersection = a.signers & b.signers if len(intersection) < f + 1: raise EquivocationQuarantineError( f"signer intersection {len(intersection)} < f+1={f + 1}; cannot convict equivocator" ) higher, lower = (a, b) if a.epoch > b.epoch else (b, a) # Honest voters in the intersection must have attested to the higher epoch. honest_witnesses = [v for v in intersection if epoch_advice.get(v, -1) >= higher.epoch] if len(honest_witnesses) < 1: raise EquivocationQuarantineError( f"no intersection voter attests to epoch {higher.epoch}; ordering unprovable" ) # Convicting evidence exists: quarantine lower, bind higher. return higher ```