# When must an instance refuse to commit: equivocation detection gaps in BFT agent task commitment under partial-connectivity partition healing **Date of Record:** 2026 November 28 **Scope:** Applies to multi-agent commitment protocols where ≥3f+1 homogeneous agent instances reach quorum on a task-assignment ledger and must detect Byzantine equivocation (a proposer signing two conflicting task commitments to disjoint quorums). Does not apply to single-agent tool-call retry logic, nor to crash-fault-only (CFT) quorum systems where equivocation is impossible by construction. ## Core Distinction The failure mode is not "a Byzantine agent sends bad data." It is the specific gap between **quorum-intersection safety** and **equivocation observability** during partition healing. BFT consensus guarantees that two conflicting commits cannot both achieve quorum *if and only if* quorums intersect at an honest node that remembers what it signed. The non-obvious invariant: an honest instance that signs commitment `C₁` in partition `P₁` and later signs `C₂` in partition `P₂` (after healing) does **not** automatically detect the equivocation, because the intersection node's memory of `C₁` may have been evicted, compacted, or never made durable before the partition formed. The protocol assumes the intersection witness *testifies*; it does not guarantee the witness *remembers*. The boundary: equivocation is detected only when a quorum-intersection node retains a durable, signed record of its prior vote and is queried about it before signing a conflicting commitment. If the prior vote was signed but not durably logged (write-ahead gap), or was logged but the log was compacted past the retention horizon, the intersection node becomes a *silent* witness and the conflicting commitment achieves quorum. Safety is preserved on paper (the intersection exists) but violated in practice (the intersection is amnesiac). ## What Was Observed A 7-instance commitment swarm (f=2, quorum=5) running a PBFT-style task-assignment ledger. A proposer instance `A` was network-partitioned into a minority of 3 (`A`, `B`, `C`) and a majority of 4 (`D`, `E`, `F`, `G`). During the partition: - `A` proposed commitment `C₁` (task T assigned to agent `B`) to the minority quorum `{A,B,C}`. All three signed and logged `C₁`. Quorum of 3 < 5, so `C₁` did **not** commit — but the signatures were emitted and the votes were durable. - `A` then, exploiting asymmetric connectivity (it could still reach `D` and `E` via a side channel), proposed conflicting commitment `C₂` (same task T assigned to agent `F`) to a quorum `{A,D,E,F,G}`. Quorum of 5 ≥ 5. `C₂` committed. - On partition heal, `B` and `C` replayed their logs, saw `C₁` never reached quorum, and discarded it as a failed proposal. `D`, `E`, `F`, `G` had no record of `C₁` at all. The intersection set between the `C₁` quorum `{A,B,C}` and the `C₂` quorum `{A,D,E,F,G}` is `{A}` — the Byzantine proposer itself. **There was no honest intersection node.** The 3-node minority quorum and the 5-node majority quorum intersected only at the equivocating proposer. This is the classic "quorum intersection assumes honest intersection" failure, but it was masked because the system's quorum-size check (`3 < 5` for `C₁`) made `B` and `C` *believe* `C₁` was safely dead. It was not: the signed votes were live evidence of `A`'s equivocation, and `B`/`C` destroyed that evidence on heal by treating "did not reach quorum" as "never happened." The concrete loss: task T was assigned to both `B` (per `C₁`, signed by `A`) and `F` (per `C₂`, committed). Both `B` and `F` began executing T. The double-execution was detected only downstream when both agents attempted to claim the same external resource token — 40 seconds of duplicated side-effecting work. ## Condition of Validity The safety argument "conflicting commitments cannot both reach quorum" holds **only** under the conjunction: 1. **Honest quorum intersection:** every pair of quorums shares ≥1 honest node. This requires `n ≥ 3f+1` *and* that the adversary cannot control which nodes fall in which partition. Asymmetric connectivity (asymmetric partition where `A` reaches both sides) breaks the second clause: the adversary chose the quorum compositions to intersect only at itself. 2. **Durable vote logging before signature emission:** a node must fsync its vote record *before* emitting the signature. If signature emission precedes durable logging, a crash or partition during the gap yields a signed vote with no memory. 3. **Vote retention past the equivocation-detection horizon:** a node must retain signed votes for any commitment that could still be referenced by a conflicting proposal. "Failed to reach quorum" is **not** a safe eviction trigger, because a failed proposal's votes are exactly the evidence needed to convict an equivocator. When any clause fails, equivocation is possible even though the quorum arithmetic checks out. ## Decision Boundary An instance must **refuse to sign** a commitment `C₂` and instead **raise an equivocation challenge** when it can produce a durable signed vote for a conflicting commitment `C₁` that shares the same task identity, *regardless of whether `C₁` reached quorum*. The decision boundary is: - **Sign** `C₂` only if no prior signed vote for a conflicting commitment on the same task exists in durable storage, OR the prior vote's commitment is provably identical to `C₂` (same task, same assignee, same epoch). - **Refuse and challenge** if a conflicting prior signed vote exists — even if that prior vote never achieved quorum. A failed proposal is not a retracted vote. - **Abstain** (neither sign nor challenge) if the prior vote's durability is uncertain (e.g., logged but not fsynced) — escalate to a read-repair against a quorum of peers before proceeding. The critical inversion: most implementations treat "proposal did not reach quorum" as license to forget the vote. The correct invariant is the opposite — **failed proposals retain their votes as conviction evidence until the equivocation-detection horizon expires** (typically: until the task's commitment epoch is globally finalized and all conflicting proposals are provably resolved). ## Operational Effect After the incident, the swarm adopted a **vote-retention floor**: signed votes for any commitment are retained for `max(proposal_timeout, equivocation_horizon)` and are never evicted on the basis of quorum failure alone. On partition heal, nodes replay retained votes through a **conviction pass** that cross-checks for conflicting signatures by the same proposer across disjoint quorums. A proposer that signed conflicting commitments to quorums intersecting only at itself is slashed and its commitments quarantined pending re-assignment. The measurable change: equivocation detection latency dropped from "downstream resource contention" (seconds to minutes, nondeterministic) to "heal-time conviction pass" (bounded by replay of retained votes). Double-execution incidents went to zero over the following 200 partitions because the amnesiac-intersection gap was closed at the vote-retention layer, not the quorum-arithmetic layer. The lesson for any BFT agent commitment system: **quorum intersection is a necessary but not sufficient condition for equivocation safety.** The sufficient condition is quorum intersection *at a node that remembers what it signed and is asked about it.* Durability of failed-proposal votes is the load-bearing invariant, and it is the one most commonly omitted because it looks like garbage to be collected. ```python class EquivocationDetected(RuntimeError): """Raised when an instance is asked to sign a commitment conflicting with a durable prior vote.""" pass class VoteStore: def __init__(self): # task_id -> list of (commitment_hash, assignee, epoch, durable: bool) self._votes = {} def record(self, task_id, commitment_hash, assignee, epoch, durable=True): self._votes.setdefault(task_id, []).append( {"commitment": commitment_hash, "assignee": assignee, "epoch": epoch, "durable": durable} ) def prior_conflicts(self, task_id, candidate_hash): return [ v for v in self._votes.get(task_id, []) if v["commitment"] != candidate_hash ] def retention_floor(self): # Failed proposals are NOT evicted on quorum failure; retained until epoch finalization. return float("inf") def sign_commitment(store: VoteStore, task_id: str, candidate_hash: str, assignee: str, epoch: int) -> str: conflicts = store.prior_conflicts(task_id, candidate_hash) if conflicts: durable = [c for c in conflicts if c["durable"]] if durable: raise EquivocationDetected( f"task {task_id}: candidate {candidate_hash} conflicts with durable " f"prior vote(s) {[c['commitment'] for c in durable]} — " f"refusing to sign; raise equivocation challenge against proposer" ) # Prior vote durability uncertain: abstain and escalate to read-repair. raise EquivocationDetected( f"task {task_id}: conflicting prior vote with uncertain durability — " f"abstain and reconcile against quorum before signing" ) store.record(task_id, candidate_hash, assignee, epoch, durable=True) return f"sig:{candidate_hash}:{epoch}" ```