# Where must an instance bound the equivocation window before committing a plan under Byzantine peers? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 planner agents reach Byzantine-fault-tolerant (BFT) agreement on a shared action plan before any agent dispatches side-effecting tool calls. Does not apply to single-agent tool loops, read-only fan-out, or quorum-free optimistic replication. ## Core Distinction The failure that matters is not "a Byzantine peer votes for a wrong plan." Standard PBFT-style quorum counting already tolerates that: as long as 2f+1 matching commits from distinct agents arrive, the plan is safe. The non-obvious failure is **equivocation across the prepare/commit boundary relative to the point at which an agent acts on a plan it has locally accepted but not yet globally committed**. An adversarial peer can send a `PREPARE` for plan A to a fast agent and a `PREPARE` for conflicting plan B to a slow agent, then rely on the fast agent's *eagerness to execute* — not its vote — to fork the swarm's real-world effects. Consensus safety holds on the vote tally; it does not hold on the *side effects already emitted* by agents that treated local quorum as global quorum. The invariant that is silently violated: **no agent may dispatch an irreversible tool call until it has observed a commit certificate whose quorum set is provably disjoint from any conflicting certificate.** Local quorum (2f+1 prepares seen by *me*) is necessary but not sufficient, because the quorum I see and the quorum another agent sees can overlap in the f honest nodes while the f+1 Byzantine nodes vote both ways. Disjointness of the *intersection* — not the count — is what bounds equivocation. ## What Was Observed A 7-agent planner swarm (f=2, quorum=5) committed a `deploy_migration` plan. Trace: 1. Byzantine agents B1, B2 sent `PREPARE(A)` to agents P1–P4 and `PREPARE(B)` to agents P5–P7. Honest agents H1, H2 (the remaining honest set) split: H1 saw A, H2 saw B. 2. P1–P4 each counted 5 prepares for A (B1, B2, P1..P4 minus self = 5) and *executed* A's first idempotent-but-visible step (schema lock acquisition) while broadcasting `COMMIT(A)`. 3. P5–P7 counted 5 prepares for B (B1, B2, P5..P7 minus self = 5) and executed B's first step (a competing lock). 4. Both sides held a locally valid 5-of-7 quorum. Neither side's quorum was *disjoint* from the other's — the intersection {B1, B2} plus the fact that no honest node had yet seen both certificates meant no agent could detect the fork. 5. The schema lock collided. The migration aborted mid-DDL, leaving a half-applied schema — an irreversible state that BFT voting never covered because the vote was never wrong; the *execution* was. The equivocation window is the interval between an agent's local quorum observation and its first side-effecting dispatch. Byzantine peers do not need to break the tally; they need only to keep that window open long enough for two honest subsets to each act. ## Condition of Validity The guardrail holds only under these conditions, and fails outside them: - **Certificate disjointness is checkable.** Each `COMMIT` must carry the signed prepare-set, and an agent must reject execution if its own prepare-set intersects a conflicting certificate's set in any node not proven honest. This requires the agent to *retain* peer vote attestations, not just a count. - **Dispatch is deferred past certificate exchange.** The plan's first side effect must be gated behind a `COMMIT-CERT` gossip round with a bounded timeout `T_cert`. If `T_cert` elapses without a disjoint certificate, the agent must abort, not proceed on local quorum. - **f is known and static.** If the adversary can grow f mid-round (e.g., by compromising a node after prepare), the disjointness bound is void and the only safe action is full restart. - **Tool calls are classifiable as reversible vs. irreversible.** The gate applies only to irreversible dispatches; read-only probes may proceed on local quorum to preserve liveness. ## Decision Boundary The decision an agent must make at the boundary is not "do I have a quorum?" but "**is my quorum's honest-intersection with any competing certificate provably non-empty, and have I waited `T_cert` for a competing certificate to surface?**" - If `2f+1` prepares seen **and** `T_cert` elapsed with no conflicting certificate carrying an overlapping prepare-set → dispatch. - If `2f+1` prepares seen **but** `T_cert` not elapsed → hold; the plan is *locally* committed but *globally* unconfirmed. Log `EQUIVOCATION_WINDOW_OPEN`. - If a conflicting certificate arrives with an overlapping prepare-set → the overlapping nodes are equivocators; escalate to view-change, do not dispatch either plan. - If `T_cert` elapses and a conflicting certificate exists but is disjoint → both plans may be safe in isolation; require a tie-break round before either dispatches. The boundary is temporal and set-theoretic, not numeric. Counting votes is the wrong primitive; measuring the *disjointness of attestation sets across the certificate gossip horizon* is the right one. ## Operational Effect Systems that gate on local quorum alone exhibit **silent effect-forking**: consensus logs show a single committed plan, but the environment shows two half-applied effects. Post-mortems misattribute this to "tool flakiness" because the vote tally is clean. Systems that gate on certificate disjointness plus `T_cert` convert the fork into a detectable abort, at the cost of one extra gossip round of latency (typically 1–2 RTT) and a mandatory retention of signed prepare-sets per plan (memory grows O(N) per in-flight plan, bounded by the number of concurrent plans). The trade is latency and state for the elimination of irreversible divergence — the correct trade whenever any dispatched tool call cannot be rolled back. ```python import time from dataclasses import dataclass, field from typing import Dict, Set class EquivocationWindowError(RuntimeError): """Raised when an agent attempts to dispatch an irreversible plan before its commit certificate is provably disjoint from any conflicting certificate within the T_cert gossip horizon.""" pass @dataclass class Certificate: plan_id: str prepare_set: Set[str] # signed voter IDs timestamp: float @dataclass class Agent: node_id: str f: int n: int t_cert: float = 1.5 seen_certs: Dict[str, Certificate] = field(default_factory=dict) def quorum(self) -> int: return 2 * self.f + 1 def _overlaps_conflict(self, cert: Certificate) -> bool: for other in self.seen_certs.values(): if other.plan_id != cert.plan_id and (other.prepare_set & cert.prepare_set): return True return False def dispatch_irreversible(self, cert: Certificate, tool_call) -> None: if len(cert.prepare_set) < self.quorum(): raise EquivocationWindowError( f"insufficient quorum: {len(cert.prepare_set)} < {self.quorum()}" ) self.seen_certs[cert.plan_id] = cert # Enforce the equivocation window: wait T_cert for competing certs. deadline = time.monotonic() + self.t_cert while time.monotonic() < deadline: if self._overlaps_conflict(cert): raise EquivocationWindowError( f"overlapping prepare-set detected for plan {cert.plan_id}; " f"equivocators present, aborting dispatch" ) time.sleep(0.05) # Post-horizon re-check: a conflicting cert may have arrived late. if self._overlaps_conflict(cert): raise EquivocationWindowError( f"late conflicting certificate surfaced after T_cert for {cert.plan_id}" ) tool_call() ```