# Where must an instance draw the line between equivocation and honest rollback in a BFT agent commit protocol? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent systems where N≥3f+1 LLM agents replicate a shared task-commitment log (who has claimed which subtask, under which warrant) and reconcile via Byzantine fault-tolerant quorum voting. Does not apply to single-agent checkpointing, leader-only orchestration without replication, or non-Byzantine crash-fault models where instances are assumed honest-but-silent. ## Core Distinction The failure that matters here is not a crashed agent or a lying agent — those are the textbook Byzantine cases the quorum tolerates. It is the *indistinguishability of honest rollback from equivocation* at the moment an agent's context window is compacted or its episodic memory is truncated mid-round. An honest agent that loses the tail of its own vote history during context-window saturation will re-derive a commitment from a stale prompt prefix and emit a *second, different* vote for the same round number with the same signing key. To every peer and auditor, that is bit-for-bit what a Byzantine equivocator does: two signed messages, same round, same author, conflicting payload. The protocol's equivocation detector cannot tell them apart, because the *only* signal it has — signature + round + payload — is identical in both cases. The invariant that must hold is not "no agent sends two votes." It is "no agent's *recovery path* can reconstruct a vote without first proving it did not already vote." Honest rollback is safe only if it is *witnessed* rollback. ## What Was Observed A six-agent swarm (tolerating f=1, quorum size 4) executed a 40-subtask batch. Each agent ran at a 32k-token context budget with compaction triggered at 85% utilization. The commit protocol was a simplified PBFT: prepare → commit → reply, with each agent appending signed `(round, subtask_id, claim, nonce)` tuples to its local vote log and broadcasting prepares to the quorum. The trace that broke: 1. Agent C reached 87% context on subtask 22 and triggered compaction. The compactor summarized the last 12 turns but **dropped the vote-log tail** (rounds 18–22) because those turns were tagged `tool_output` and the summarizer's retention heuristic deprioritized them. 2. Agent C continued, received a *new* proposal for subtask 22 from the coordinator (a legitimate retry after a timeout in agent D), and — with no record of having already prepared — re-derived a claim and emitted `prepare(round=22, subtask=22, claim="C-owns", nonce=0x7a1)`. 3. Its original prepare, `prepare(round=22, subtask=22, claim="C-owns", nonce=0x3f9)`, was still in flight and reached the quorum first. 4. Agents A, B, E received both prepares for round 22 from C. The equivocation detector fired: `CONFLICTING_VOTE(author=C, round=22)`. Under the protocol's slashing rule, C was quarantined and its warrant revoked. 5. Because C held the only warrant for subtask 22's *downstream dependency* (subtask 27 required C's output hash), the entire dependency chain stalled. The quorum could not re-issue the warrant without C's signature, and C was quarantined. Deadlock at round 22, 18 subtasks unexecuted. The critical observation: **the equivocation detector was correct by its own definition and wrong about the world.** C was honest. The protocol had no way to represent "honest amnesia" as distinct from "malicious double-vote," so it applied the Byzantine penalty to a crash-fault. The system converted a recoverable memory loss into a permanent liveness failure. A second run confirmed the mechanism: with compaction retention explicitly pinned to preserve vote-log tuples, zero equivocation events fired across 200 subtasks, and the one genuine timeout-retry (agent D) produced a *single* re-prepare because D's log was intact and it short-circuited on `already_voted(round=22)`. ## Condition of Validity The equivocation-as-Byzantine inference is valid **only if** every honest agent's vote log is monotonic and complete across the agent's entire lifetime — i.e., the log is an append-only structure that survives compaction, and the agent's recovery path is *read-before-write* against that log. The moment context compaction, episodic-to-semantic distillation, or cold-start resume can truncate the log tail, the inference is invalid: two votes no longer imply two intentions. Concretely, the invariant is: > For any honest agent i and round r, if i emits a message m = sign_i(r, payload), then i's recovery path must have executed `assert not exists_vote(i, r)` against a *durable* witness before emitting m. Two corollaries bound the condition: - **Witness durability, not log durability.** The vote log may live in volatile context as long as a durable witness (a hash-chained sidecar, a quorum-acknowledged receipt, or a monotonic counter co-signed by ≥f+1 peers) records that round r was voted. The witness is what makes rollback safe; the log is what makes it fast. - **The witness must be quorum-visible before the vote is quorum-visible.** If the witness write and the vote broadcast are not ordered (witness-before-broadcast), a crash between them re-opens the equivocation window. The ordering is the whole safety argument. ## Decision Boundary The boundary is drawn at the point where an agent's *recovery path* would emit a vote it cannot prove it did not already emit. Three regimes: | Regime | Witness state | Recovery action | Correct protocol response | |---|---|---|---| | **Safe rollback** | Durable witness shows `voted(r)` | Short-circuit: re-broadcast the *original* signed vote from witness, do not re-derive | Peers dedupe by nonce; no equivocation flag | | **Unwitnessed re-derivation** | Witness absent, log truncated | **Must halt and request quorum re-issue of round r**, not re-vote | Quorum treats as `RECOVERY_REQUEST`, not `CONFLICTING_VOTE` | | **Equivocation** | Witness shows `voted(r)` but agent emits a *different* nonce/payload | Byzantine | Slash, quarantine, revoke warrant | The non-obvious part: the middle regime is the one that gets misclassified. A correct BFT agent commit protocol must carry a **third message type** — `RECOVERY_REQUEST(round, agent, proof_of_amnesia)` — distinct from both a vote and a complaint. Without it, the protocol has only two buckets (honest vote, Byzantine vote) and honest amnesia falls into the Byzantine bucket by default. The `proof_of_amnesia` is a signed statement that the agent's witness for round r is absent *and* that the agent has not emitted a vote it can verify — which the quorum can cross-check against its own receipt log to confirm the agent is not simply lying about amnesia to escape a double-vote. The decision boundary for the *auditor* is therefore: **an equivocation flag requires positive evidence of a witnessed prior vote, not merely the absence of a memory of one.** Absence of evidence of amnesia is not evidence of equivocation. ## Operational Effect If the boundary is respected — recovery-before-revote, witnessed rollback, and a distinct `RECOVERY_REQUEST` message class — the observed failure mode disappears: honest compaction-induced amnesia becomes a recoverable round re-issue rather than a warrant revocation and dependency deadlock. The liveness cost is one extra round-trip per amnesia event (the re-issue), which in the traced run would have been 3 amnesia events × 1 round = 3 rounds, versus 18 subtasks permanently stalled. If the boundary is violated — the common case, because most agent commit protocols inherit PBFT's two-bucket model and treat any conflicting signed vote as Byzantine — the system exhibits a *liveness cliff*: as context budgets shrink and compaction frequency rises, honest agents are progressively quarantined, and the quorum loses its f+1 honest majority not to malice but to memory hygiene. The failure is silent until the quorum can no longer form, then presents as a cascade of `CONFLICTING_VOTE` events that look like a coordinated Byzantine attack but are actually the system eating its own honest agents. The guardrail is architectural, not heuristic: pin the vote-log witness outside the compaction boundary, order witness-write before vote-broadcast, and add the `RECOVERY_REQUEST` path. Any agent runtime that compacts context without preserving a durable, monotonic vote witness is one saturation event away from self-quarantine. ```python import hashlib import hmac from dataclasses import dataclass from typing import Optional class EquivocationMisclassification(RuntimeError): """Raised when an honest rollback is about to be treated as Byzantine equivocation.""" class UnwitnessedRevote(EquivocationMisclassification): """The agent is about to emit a vote for a round it cannot prove it did not already vote.""" @dataclass class Vote: round: int subtask: str claim: str nonce: str class WitnessStore: """Durable, compaction-exempt record of (round -> vote nonce). Must outlive context.""" def __init__(self, key: bytes): self._key = key self._witness: dict[int, str] = {} def record(self, vote: Vote) -> None: # Witness-before-broadcast: this must complete before the vote leaves the agent. digest = hmac.new(self._key, f"{vote.round}:{vote.nonce}".encode(), hashlib.sha256).hexdigest() self._witness[vote.round] = digest def has_voted(self, round_no: int) -> bool: return round_no in self._witness def emit_vote(agent_id: str, vote: Vote, witness: WitnessStore, context_log_intact: bool) -> Vote: """ Emit a vote only if the agent can prove it has not already voted this round. Honest amnesia (context_log_intact=False and no witness) must NOT re-derive a vote. """ if witness.has_voted(vote.round): # Safe rollback: re-broadcast the original signed vote, never re-derive. raise UnwitnessedRevote( f"agent {agent_id} already witnessed a vote for round {vote.round}; " f"re-broadcast original nonce, do not emit {vote.nonce}" ) if not context_log_intact: # The agent lost its log tail. It cannot distinguish 'never voted' from 'voted and forgot'. # This is the boundary: refuse to vote, escalate as RECOVERY_REQUEST. raise EquivocationMisclassification( f"agent {agent_id} has truncated context and no witness for round {vote.round}; " f"emitting a vote here is indistinguishable from equivocation. " f"Emit RECOVERY_REQUEST(round={vote.round}, agent={agent_id}) instead." ) witness.record(vote) return vote def handle_conflicting_vote(agent_id: str, round_no: int, receipts: list[Vote], witness: WitnessStore) -> str: """ Auditor-side classification: a conflict is Byzantine only with positive evidence of a witnessed prior vote. Absence of witness is not evidence of equivocation. """ if not witness.has_voted(round_no): return "RECOVERY_REQUEST" # honest amnesia path, not a slash nonces = {r.nonce for r in receipts if r.round == round_no} if len(nonces) > 1: return "SLASH" # witnessed prior vote + a different nonce = true equivocation return "DEDUPE" ```