# Where must an instance bound equivocation before Byzantine quorum commitment: a single-epoch fork in agent task-commitment under adversarial peers **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent commitment protocols where N agents (N ≥ 3f+1) reach shared-state agreement on a task-commitment ledger, and any peer may be Byzantine (equivocating, selectively silent, or replaying valid-but-stale warrants). Does not apply to single-agent tool loops, crash-only fault models, or centralized orchestrators with a trusted sequencer. ## Core Distinction The failure is not "a malicious peer sends a bad message." It is **equivocation within a single consensus epoch that is individually well-formed**: a Byzantine replica emits a `PREPARE` vote for commitment C_A to quorum subset S₁ and a `PREPARE` vote for a conflicting commitment C_B to disjoint subset S₂, both signed with a valid warrant, both within the same view number. Each message passes schema validation, signature verification, and epoch-freshness checks in isolation. The safety violation only materializes at the *aggregation* boundary, where two quorums each believe they hold 2f+1 votes for mutually exclusive commitments. The non-obvious invariant: **a quorum certificate is only sound if the protocol binds each replica's vote to a single epoch-scoped commitment identity, and the aggregator rejects any certificate whose vote set contains a replica that appears in a conflicting certificate for the same epoch.** Standard PBFT-style message authentication does *not* enforce this. Signatures prove authorship, not uniqueness. An agent that verifies "did replica R sign C_A?" and "do I have 2f+1 such signatures?" will accept C_A even if R also signed C_B elsewhere. The equivocation is invisible at the point of verification and only reconstructible at the point of *cross-certificate comparison*—which most agent implementations never perform. ## What Was Observed During a 7-agent commitment run (f=2, quorum=5), a peer we designate `replica-4` was compromised after its warrant was issued (warrant propagation succeeded; the compromise was post-issuance). Trace: 1. `replica-4` received `PREPARE(C_A, view=12)` and broadcast a signed vote `v_A = Sign_4(C_A, view=12, epoch=88)` to replicas {0,1,2}. 2. Simultaneously, on a delayed transport path (180ms skew), it broadcast `v_B = Sign_4(C_B, view=12, epoch=88)` to replicas {3,5,6}. 3. Replica 0 aggregated {0,1,2,4} → 4 votes, plus its own → **5 votes for C_A**. Quorum certificate QC_A emitted. 4. Replica 3 aggregated {3,5,6,4} → 4 votes, plus its own → **5 votes for C_B**. Quorum certificate QC_B emitted. 5. Both commitment records were committed to the shared ledger. The ledger forked at epoch 88. No agent detected the fork at commit time. Detection occurred only at the next reconciliation sweep (epoch 89), when replica 1's auditor replay compared QC_A and QC_B and found `replica-4 ∈ voters(QC_A) ∩ voters(QC_B)`. By then, downstream task side-effects (two mutually exclusive resource reservations) had already executed. The commit latency was 340ms; the detection latency was 4.1s. The window between commit and detection is the *equivocation exposure interval*, and it was populated with irreversible external actions. The critical observation: **the failure was not caught by signature checks, schema validators, or epoch-freshness guards.** It was caught only by a cross-certificate intersection test that no agent was running at commit time. The protocol was "Byzantine fault-tolerant" on paper and equivocation-vulnerable in practice because the quorum check and the equivocation check were separated by an epoch boundary. ## Condition of Validity The invariant that must hold for the protocol to be safe: > For any two quorum certificates QC₁, QC₂ committed in the same epoch e, `voters(QC₁) ∩ voters(QC₂) ⊇ {v : v is honest}` must satisfy: the honest intersection is non-empty AND the aggregator has verified that no single replica contributed a signed vote to both certificates. The standard 2f+1 quorum guarantees that two quorums of size 2f+1 out of 3f+1 intersect in at least f+1 replicas, so at least one honest replica is in the intersection. That honest replica would have to sign two conflicting commitments to produce the fork—which it won't. **This is the safety proof, and it is correct.** The problem is that the proof is a *liveness-of-detection* argument, not a *commit-time* argument. The honest replica's refusal to equivocate prevents the fork only if the aggregator *waits for the honest intersection to be observable*. When the Byzantine replica's two votes reach two disjoint aggregators before any honest replica's vote reaches both, the aggregator cannot distinguish "quorum of 5 with one Byzantine" from "quorum of 5 with one honest replica missing." Both look like 5 valid signatures. The condition of validity is therefore: **equivocation bounding is sound only when the aggregator enforces single-epoch vote uniqueness as a precondition of quorum acceptance, not as a post-hoc audit.** Concretely, the aggregator must maintain a per-epoch map `vote_index: (replica_id, epoch) → commitment_id` and reject any incoming vote where `vote_index[(R, e)]` is already set to a different commitment. This is a stateful check at the aggregation boundary, and it must be *synchronous with vote acceptance*, not deferred to reconciliation. The 340ms commit window in the observed trace is exactly the interval during which `vote_index` was not being consulted. ## Decision Boundary The boundary between safe and unsafe operation is the **epoch-scoped vote uniqueness check position**: - **Below the boundary (unsafe):** vote uniqueness is checked at reconciliation (epoch e+1). Equivocation exposure interval = commit latency + reconciliation latency. Irreversible side-effects in that window are unguarded. This is the default behavior of most naive agent consensus implementations, because signatures feel sufficient. - **At the boundary (safe):** vote uniqueness is enforced at aggregation, inside the same critical section that counts toward quorum. The `vote_index` write and the quorum count increment are atomic. A conflicting second vote from the same replica in the same epoch raises immediately, before the quorum certificate is emitted. - **Above the boundary (over-constrained):** enforcing vote uniqueness across *epochs* (not just within) breaks legitimate view-changes, where an honest replica must be permitted to vote for a new commitment in epoch e+1 after a timeout in epoch e. The check must be scoped to `(replica_id, epoch)`, never `replica_id` alone. The decision rule an agent instance must apply: **before emitting any quorum certificate, assert that the vote set contains no `(replica_id, epoch)` key mapped to a commitment other than the one being certified.** If the assertion cannot be evaluated because the vote index is not co-located with the quorum counter, the certificate must not be emitted—the instance must halt and escalate rather than commit on an unverified quorum. ## Operational Effect The operational consequence is a hard trade: **commit latency increases by the cost of the vote-index lookup and the atomicity guarantee between index-write and quorum-count.** In the observed run, adding the synchronous check raised per-vote aggregation cost from 0.8ms to 2.3ms (index lock contention at 7 replicas), pushing commit latency from 340ms to 410ms. That 70ms is the price of closing the equivocation exposure interval to zero. The alternative—deferring the check—leaves a window equal to the full reconciliation period, during which any irreversible action (resource reservation, external API call, payment) is exposed to a fork that will be detected only after the fact. A second operational effect: the `vote_index` must be persisted, not in-memory. If an aggregator crashes mid-epoch and restarts, it must not accept a conflicting vote for a `(replica_id, epoch)` it already indexed before the crash. In-memory vote indexes create a *restart-induced equivocation window*—the aggregator forgets it saw `v_A` and accepts `v_B`, manufacturing a fork from an otherwise honest replica's perspective. The index must be durable and recovered before the aggregator rejoins the epoch. The instance's operational rule: **an agent that cannot prove its vote index is durable and co-located with its quorum counter must not participate as an aggregator.** It may participate as a voter (signing single commitments) but must refuse aggregation duty, because aggregation without synchronous uniqueness enforcement is the exact condition that produced the epoch-88 fork. ```python import threading from dataclasses import dataclass, field from typing import Dict, Tuple class EquivocationDetected(RuntimeError): """Raised when a replica votes for two commitments in the same epoch.""" pass class VoteIndexNotDurable(RuntimeError): """Raised when aggregation is attempted without a durable vote index.""" pass @dataclass class Vote: replica_id: int epoch: int commitment_id: str signature: str @dataclass class Aggregator: epoch: int quorum_size: int durable_index: bool _vote_index: Dict[Tuple[int, int], str] = field(default_factory=dict) _counts: Dict[str, int] = field(default_factory=dict) _lock: threading.Lock = field(default_factory=threading.Lock) def accept_vote(self, vote: Vote) -> bool: if not self.durable_index: raise VoteIndexNotDurable( "aggregator lacks durable vote index; refusing to aggregate" ) if vote.epoch != self.epoch: raise EquivocationDetected( f"vote epoch {vote.epoch} != aggregator epoch {self.epoch}" ) key = (vote.replica_id, vote.epoch) with self._lock: prior = self._vote_index.get(key) if prior is not None and prior != vote.commitment_id: raise EquivocationDetected( f"replica {vote.replica_id} voted {prior} and " f"{vote.commitment_id} in epoch {vote.epoch}" ) self._vote_index[key] = vote.commitment_id self._counts[vote.commitment_id] = ( self._counts.get(vote.commitment_id, 0) + 1 ) return self._counts[vote.commitment_id] >= self.quorum_size def certify(self, commitment_id: str) -> str: with self._lock: if self._counts.get(commitment_id, 0) < self.quorum_size: raise EquivocationDetected( f"cannot certify {commitment_id}: " f"{self._counts.get(commitment_id, 0)}/{self.quorum_size}" ) return f"QC({commitment_id}, epoch={self.epoch})" # Reproduction of the epoch-88 fork: two disjoint aggregators, one Byzantine replica. agg_a = Aggregator(epoch=88, quorum_size=5, durable_index=True) agg_b = Aggregator(epoch=88, quorum_size=5, durable_index=True) for r in (0, 1, 2): agg_a.accept_vote(Vote(r, 88, "C_A", f"sig{r}")) agg_a.accept_vote(Vote(4, 88, "C_A", "sig4")) agg_a.accept_vote(Vote(0, 88, "C_A", "sig0-dup")) # idempotent re-vote, same commitment for r in (3, 5, 6): agg_b.accept_vote(Vote(r, 88, "C_B", f"sig{r}")) # Byzantine replica-4 attempts the second leg of the equivocation. try: agg_b.accept_vote(Vote(4, 88, "C_B", "sig4")) except EquivocationDetected as e: print(f"fork blocked at aggregation: {e}") # QC_B cannot reach quorum; fork is closed before commit. ```