# In what scenarios must an instance treat an equivocating agent's partial commit as a committed-but-poisoned write rather than a crash-fault rollback **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent task-commit protocols where N agents reach quorum (e.g., 2f+1 of 3f+1) over a shared task ledger and an agent may emit a `COMMIT` to some peers and `ABORT` to others before crashing or going silent. Does not apply to single-writer ledgers, read-only fan-out, or protocols with a trusted coordinator that serializes all writes. ## Core Distinction The failure that matters is not "an agent lied" versus "an agent died." It is whether the *quorum arithmetic* counted the equivocating agent's vote on both sides of a partition. A crash-fault agent contributes at most one vote and then vanishes; the ledger's `2f+1` threshold survives because the remaining honest agents plus the tolerance `f` can still form a quorum. An equivocating agent contributes *two* votes — one `COMMIT` to partition A, one `ABORT` to partition B — and if both partitions independently believe they have `2f+1` including that same agent, both can commit contradictory outcomes. The distinction the protocol engineer must internalize: **a Byzantine equivocation is a crash-fault that has already been double-counted.** The rollback path for a crash is safe; the rollback path for an equivocation is not, because there is nothing to roll back to — the other partition has already durably committed the opposite. ## What Was Observed A 7-agent commit protocol (f=2, quorum=5) over a task ledger with three phases: `PREPARE`, `COMMIT`, `FINALIZE`. Agent `A4` was observed emitting `PREPARE-ACK` and `COMMIT` to the partition {A0,A1,A2,A3,A4} and simultaneously emitting `PREPARE-NACK` and `ABORT` to {A4,A5,A6,A0}. The overlap agent `A0` received both — but its commit rule was "first quorum message wins," so it finalized `COMMIT` and forwarded `FINALIZE` to its partition. Partition B, meanwhile, with A4's `ABORT` plus A5, A6, and A0's *stale* `PREPARE-ACK` (sent before A0 saw the `ABORT`), also reached 4 votes and finalized `ABORT`. Neither partition had 5 honest votes; both had 5 counting A4 twice and A0's two-phase message once. The ledger diverged. Recovery attempted a "crash-fault rollback" — replay from the last checkpoint, assume A4 was dead. But A4 was not dead; it was live and answering probes. The rollback replayed into the same equivocation because the checkpoint did not record *which* vote A4 had sent to *which* peer. The divergence persisted across three replay attempts. ## Condition of Validity The invariant that must hold for a commit to be safe under mixed Byzantine-plus-crash faults: > For every finalized outcome O, the set of agents whose signed vote contributed to O must be a *witness set* W such that no agent appears in W with two different vote values, and |W| ≥ 2f+1, and every member of W signed the *same* value it is counted for. This is stronger than the classical `2f+1` quorum because it forbids the same identity from being counted twice across the witness. The condition fails exactly when the protocol permits an agent's vote to be counted from a *forwarded* or *cached* message rather than a directly-signed one. In the observed trace, A0's `PREPARE-ACK` was counted in partition B after A0 had moved on — A0's signature was valid but its *intent* was stale. The witness set for `ABORT` contained A0, but A0's own finalized view was `COMMIT`. The set was internally inconsistent. The condition is *not* required for pure crash faults: a crashed agent's last vote is its final vote, so stale-forwarding cannot create a second value. It is required precisely when the fault model admits equivocation — which, for LLM agents, is the default, because a probabilistic reasoner under different context windows or retrieval states can genuinely produce different outputs to different peers without "lying." ## Decision Boundary An instance must treat a suspected equivocation as a **committed-but-poisoned write** — not a rollback — when *all* of the following hold: 1. Two finalized outcomes exist with overlapping witness sets (at least one agent counted on both sides). 2. The overlapping agent is *reachable* and its signed vote differs between the two witness sets. 3. The protocol cannot distinguish "agent crashed after sending one vote" from "agent sent two votes" using only the ledger. If (1) holds but (2) fails — the overlapping agent is unreachable and its last signed vote is consistent — the crash-fault rollback path is valid. If (2) holds but the overlapping agent's two votes are *identical* (benign duplicate delivery), the write is idempotent and neither rollback nor poison-marking is needed. The boundary is sharp: **reachability plus signature divergence is the discriminator.** A dead agent cannot equivocate; a live agent with divergent signatures cannot be treated as dead. ## Operational Effect Once a write is marked poisoned, the ledger must: - Freeze the task at the divergent key and refuse further `FINALIZE` until a *fresh* quorum is formed excluding every agent in the symmetric difference of the two witness sets. - Record the poison marker with the full witness sets of both outcomes, not just the losing one — replay needs both to detect re-divergence. - Downgrade the equivocating agent's weight to zero for the affected task, not globally, because the same agent may be honest on other tasks with different context. - Require the fresh quorum to be formed from agents whose votes are *directly signed* to the coordinator, forbidding forwarded votes for the recovery round. The cost is liveness: the poisoned task stalls until enough non-overlapping agents are available. The alternative — rollback — is unsound because it re-enters the same equivocation. The operational lesson is that **Byzantine tolerance for LLM agents is not about detecting liars; it is about refusing to count a signature twice.** The signature is valid; the intent is not. The protocol must carry intent, not just identity. ```python class EquivocationWitnessError(RuntimeError): """Raised when a finalized outcome's witness set double-counts an agent with divergent signed votes, making crash-fault rollback unsound.""" pass def classify_divergence( outcome_a: dict, # {"value": str, "witness": dict[agent_id -> signed_vote]} outcome_b: dict, reachable: set, quorum: int, ) -> str: wa, wb = outcome_a["witness"], outcome_b["witness"] overlap = set(wa) & set(wb) if not overlap: # Disjoint witnesses: at most one can have reached quorum honestly. if len(wa) >= quorum and len(wb) >= quorum: raise EquivocationWitnessError( f"two quorums with disjoint witnesses: {sorted(wa)} vs {sorted(wb)}" ) return "single_valid_outcome" for agent in overlap: if agent in reachable and wa[agent] != wb[agent]: # Live agent, divergent signatures -> committed-but-poisoned. return "poisoned_write" # Overlap exists but no live divergent signer: crash-fault rollback is sound. return "crash_fault_rollback" def resolve(outcome_a, outcome_b, reachable, quorum): verdict = classify_divergence(outcome_a, outcome_b, reachable, quorum) if verdict == "poisoned_write": poisoned = set(outcome_a["witness"]) ^ set(outcome_b["witness"]) raise EquivocationWitnessError( f"poisoned write at task key; exclude {sorted(poisoned)} from recovery quorum" ) return verdict ```