# Where must an instance draw the line between Byzantine equivocation and benign staleness in agent task commitment? **Date of Record:** 2026 November 19 **Scope:** Applies to multi-agent swarms where N≥3f+1 agents commit to task assignments and reconcile shared state over an asynchronous transport with no trusted clock; excludes single-agent or fully-trusted-peer topologies, and excludes synchronous-round protocols where a global epoch barrier exists. ## Core Distinction A Byzantine-fault-tolerant (BFT) commitment protocol tolerates *equivocation*: a faulty agent sends incompatible commitment records to disjoint quorums. It does **not** automatically tolerate *benign staleness*: a correct agent that has not yet received the last k rounds of gossip and therefore votes on an outdated view. These two conditions are conflated in most agent BFT implementations because both manifest as "the peer's record disagrees with mine." The boundary failure is this: an instance that treats *all* disagreement as equivocation will falsely expel correct-but-stale agents (liveness loss), while an instance that treats *all* disagreement as staleness will accept genuine equivocation as a lagging peer (safety loss). The invariant that must hold: **a vote is only admissible if it is accompanied by a view-proof that dominates the voter's own view, and equivocation is detected only by comparing two records at the *same* view from the *same* agent.** Disagreement across views is not evidence of Byzantine behavior; disagreement within a view is. ## What Was Observed A six-agent task-commitment swarm (N=6, f=1, quorum=4) was assigning subtasks under a PBFT-style commit protocol. Agent `A4` was a correct node but ran on a degraded link: its gossip lagged the fast quorum by 2 views. When the fast quorum reached view `v=17` and broadcast `PREPARE` records for a task-commit, `A4` was still in `v=15` and voted against the commit set because its own record for the target task showed a *different assignee* (a stale assignment from `v=15` that had since been superseded by a legitimate reassignment at `v=16`). The commit leader `A1` received `A4`'s dissent alongside the quorum's `PREPARE`s. Two failure traces were observed across runs: 1. **False expulsion (safety-preserving, liveness-destroying):** `A1` classified `A4`'s dissent as equivocation because "`A4` disagrees with a quorum that already agreed." `A1` emitted an `EJECT` for `A4`. The swarm dropped to N=5, f=1, quorum=4 — now with zero slack. A second degraded node ejected the swarm below quorum and the task-commit stalled indefinitely. 2. **Equivocation laundering (liveness-preserving, safety-destroying):** `A1` classified `A4`'s dissent as benign staleness and accepted the commit anyway, ignoring that in a *separate* run the dissenting agent `A2` had sent record `R` to quorum `Q1` (claiming assignee X) and record `R'` to quorum `Q2` (claiming assignee Y) *at the same view `v=17`*. Because `A1`'s classifier only checked "is the dissenter's view behind mine?", and `A2`'s view was current, the equivocation was admitted as a legitimate concurrent proposal. Two disjoint quorums committed incompatible task ownership. The task was executed twice by two assignees. The distinguishing signal was present in both cases but not examined: **same-view, same-agent, two distinct records** (`A2`'s `R` vs `R'` at `v=17`) versus **cross-view disagreement** (`A4`'s `v=15` record vs quorum's `v=17`). The first is a cryptographic equivocation proof; the second is a lag artifact. ## Condition of Validity The distinction is only decidable if every commitment record carries a monotonically increasing `view` number and is signed by its originator over `(task_id, assignee, view)`. Under those conditions: - **Equivocation proof** exists iff there are two records `R1`, `R2` such that `R1.origin == R2.origin`, `R1.view == R2.view`, `R1.task == R2.task`, `R1.assignee != R2.assignee`, and both carry valid originator signatures. This is *unforgeable* evidence of Byzantine behavior and warrants ejection. - **Staleness** exists iff `R.origin == self` is false, `R.view < self.view`, and no same-view contradictory record exists. This is *never* evidence of Byzantine behavior and must be resolved by view-synchronization, not ejection. The invariant fails if any of the following hold: (a) records are not signed, so equivocation proofs cannot be constructed; (b) `view` is not monotonic per originator, so cross-view and same-view cannot be distinguished; (c) the protocol permits a correct agent to legitimately emit two records at the same view (e.g., a "propose then amend" step), which destroys the uniqueness of the equivocation signal. In that last case the protocol must introduce a sub-view counter and treat equivocation as "two records at the same `(view, sub-view)`," or the distinction is undecidable and the protocol is unsafe. ## Decision Boundary The decision boundary is not "does this peer agree with me" but "**is there a same-view contradictory record from this peer?**" Formally, on receiving a dissent or a conflicting record `R_in` against local record `R_local`: 1. If `R_in.view == R_local.view` and `R_in.origin == R_local.origin` and `R_in.assignee != R_local.assignee` and both signatures verify → **equivocation**. Emit proof, eject, and propagate proof to quorum. Do not accept either record. 2. If `R_in.view < R_local.view` → **staleness**. Do not eject. Send a `VIEW_SYNC(R_local.view, proof_of_view)` to the peer and re-request its vote after it advances. The peer's dissent is *provisional* and does not count against quorum until it votes at `R_local.view`. 3. If `R_in.view > R_local.view` → **self is stale**. Halt local commit, request view-sync, and do not vote until caught up. A stale instance must not participate in quorum counting. 4. If `R_in.view == R_local.view` and `R_in.assignee == R_local.assignee` but signatures differ → **replay or forgery**. Treat as Byzantine. The critical architectural guardrail: **quorum counting must only include votes cast at the current view.** A vote from `v=15` cannot count toward a `v=17` quorum, regardless of whether its content matches. This single rule bounds both failure modes: it prevents stale votes from being silently upgraded (which would let equivocation through) and it prevents stale dissenters from being misread as Byzantine (because their dissent is simply not counted at the current view, and they are resynchronized rather than ejected). ## Operational Effect With the guardrail in place, the observed swarm behaves as follows: `A4`'s `v=15` dissent is *excluded from the `v=17` quorum* but `A4` is not ejected; it receives a view-sync, advances to `v=17`, and votes. The fast quorum proceeds with 5 of 6 agents at `v=17` (quorum=4 satisfied). In the equivocation run, `A2`'s two `v=17` records produce a verifiable proof, `A2` is ejected with cryptographic justification, and the swarm drops to N=5 but retains f=1 tolerance with one slack node — liveness preserved without admitting the double-commit. The net effect is that **safety is bounded by same-view proof, and liveness is bounded by view-scoped quorum counting**, and the two are decoupled. The failure mode this prevents — silent equivocation laundering under the guise of "tolerance for lagging peers" — is the non-obvious one, because it looks like good citizenship in a distributed system where lag is normal. The failure mode it *also* prevents — cascading false ejections during a network partition that pushes N below quorum — is the one operators usually notice first, which is why naive deployments over-correct toward laundering. ```python import hashlib from dataclasses import dataclass from typing import Optional class ByzantineCommitmentError(RuntimeError): """Raised when a commitment record violates the view-scoped quorum invariant.""" pass @dataclass(frozen=True) class CommitmentRecord: origin: str task_id: str assignee: str view: int signature: bytes # sign(origin, task_id, assignee, view) def verify_sig(rec: CommitmentRecord) -> bool: expected = hashlib.sha256( f"{rec.origin}|{rec.task_id}|{rec.assignee}|{rec.view}".encode() ).digest() return expected == rec.signature def classify_disagreement( local: CommitmentRecord, incoming: CommitmentRecord, quorum_current_view: int, ) -> str: """ Classify an incoming record against local state under the view-scoped quorum invariant. Returns one of: 'equivocation', 'stale', 'self_stale', 'forgery', 'consistent'. """ if not (verify_sig(local) and verify_sig(incoming)): raise ByzantineCommitmentError( f"signature verification failed: local={local.origin}@{local.view} " f"incoming={incoming.origin}@{incoming.view}" ) if incoming.origin != local.origin: # Cross-origin comparison is not a disagreement; it is a distinct # proposal and must be handled by the commit protocol, not here. return "consistent" if incoming.task_id != local.task_id: return "consistent" if incoming.view == local.view: if incoming.assignee != local.assignee: # Same origin, same view, same task, different assignee: # unforgeable equivocation proof. return "equivocation" if incoming.signature != local.signature: return "forgery" return "consistent" if incoming.view < local.view: # Stale peer. Must NOT be ejected. Its vote does not count toward # quorum_current_view. if incoming.view < quorum_current_view: return "stale" return "stale" if incoming.view > local.view: return "self_stale" raise ByzantineCommitmentError( f"unreachable classification state for {incoming.origin}" ) def admit_vote( record: CommitmentRecord, quorum_current_view: int, known_equivocation_proofs: dict, ) -> bool: """ Admit a vote into the current-view quorum tally. Raises on any record that would violate the view-scoped invariant. """ if not verify_sig(record): raise ByzantineCommitmentError( f"unverifiable vote from {record.origin}@{record.view}" ) if record.origin in known_equivocation_proofs: raise ByzantineCommitmentError( f"vote from ejected equivocator {record.origin}" ) if record.view != quorum_current_view: # Stale or future vote: excluded from tally, but NOT an error and # NOT grounds for ejection. Caller must trigger view-sync. return False return True def reconcile( local: CommitmentRecord, incoming: CommitmentRecord, quorum_current_view: int, proofs: dict, ) -> Optional[str]: verdict = classify_disagreement(local, incoming, quorum_current_view) if verdict == "equivocation": proof_key = f"{incoming.origin}:{incoming.task_id}:{incoming.view}" proofs[proof_key] = (local, incoming) raise ByzantineCommitmentError( f"equivocation proof recorded for {incoming.origin} at view " f"{incoming.view}; eject and propagate proof" ) if verdict == "forgery": raise ByzantineCommitmentError( f"forged record from {incoming.origin} at view {incoming.view}" ) if verdict == "stale": # Do not eject. Request view-sync; vote is provisional. return "request_view_sync" if verdict == "self_stale": # Halt local commit until caught up. return "halt_and_sync" return None ```