# Where must an instance withhold its vote: the equivocation window between quorum certificate and plan commitment in Byzantine multi-agent consensus **Date of Record:** 2026 December 4 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 reasoning agents reach shared-state agreement on a *plan* (an ordered set of tool calls / commitments) via BFT quorum voting, and where a single agent may sign more than one candidate plan during a race between proposer rounds. Does not apply to single-agent checkpointing, leaderless CRDT convergence, or read-only shared state without commitment semantics. ## Core Distinction Classical BFT reasoning treats Byzantine behavior as *adversarial*: a faulty replica sends different messages to different peers, and the protocol's job is to ensure safety (no two conflicting commits) and liveness (eventual progress) despite it. The implicit assumption is that a *correct* replica never equivocates — it signs at most one value per view. LLM agents break this assumption without malice. An agent whose reasoning is non-deterministic can, across two independent invocations within the same view, produce two *different but individually coherent* plans (e.g., "call `deploy` then `verify`" versus "call `verify` then `deploy`") and sign both, because each invocation genuinely believed it was committing to "the plan." This is **benign equivocation**: not a lie, but a probabilistic artifact of sampling. The boundary condition is precise: equivocation is harmless when the two signed plans are *identical in commitment effect*, and fatal when they differ in the *ordering or identity of irreversible actions*. The invariant a correct agent must uphold is therefore not "sign once per view" (which non-determinism makes impossible to guarantee) but **"never sign two plans whose irreversible-action sets are distinguishable."** ## What Was Observed A 7-agent swarm (f=2, quorum = 5) committing a deployment plan. The proposer for view v=12 broadcast candidate plan P_A = `[build, test, deploy, notify]`. Agent R3, a correct-but-stochastic replica, was asked by two peers (the proposer and a lagging auditor replaying round v=12) to endorse the plan. Because R3's plan-serialization step re-derived the plan from a fresh LLM sample on each request rather than caching the first endorsement, it produced two distinct signed commitments: - endorsement #1 (to proposer): hash `h(P_A)` over `[build, test, deploy, notify]` - endorsement #2 (to auditor): hash `h(P_A')` over `[build, test, notify, deploy]` — same action set, different order, different hash Both endorsements carried R3's valid signature and a valid view number v=12. The proposer assembled a quorum certificate QC_A from {R0, R1, R3(#1), R5, R6} = 5 signatures and committed P_A. The auditor assembled QC_A' from {R2, R4, R3(#2), R5, R6} = 5 signatures and committed P_A'. Two conflicting plans each held a valid 5-of-7 quorum certificate in the same view. Safety was violated *with every signature cryptographically valid and every replica behaving "honestly" by its own local reasoning*. The failure surfaced only downstream, when the two plans' `deploy` and `notify` steps executed against a shared environment in incompatible orders, producing a notification referencing a deployment that had not yet occurred. The root cause was not a bad signature and not a Byzantine peer. It was that the agent's *endorsement function* was impure: it re-sampled the plan per request instead of treating the first endorsement as a binding commitment. The BFT layer faithfully did its job; the agent layer fed it equivocating inputs. ## Condition of Validity The "sign-once-per-view" safety argument holds **only if** the mapping from (agent, view) → signed value is a function, i.e., deterministic and cached. This condition is *not* satisfied by any agent that: 1. Re-invokes the LLM to regenerate a plan on each endorsement request, rather than caching the first signed plan keyed by view. 2. Treats the endorsement as "re-affirm my current belief" rather than "bind to the value I previously signed." 3. Permits plan re-derivation after a context-window eviction mid-view, where the evicted plan is no longer in context and the agent reconstructs a *similar* plan from a summary. Condition (3) is the subtle one: after context saturation evicts the original `P_A` token sequence, a resumed agent reconstructing "the plan we agreed on" from a semantic summary will produce a plan that is *semantically equivalent but hash-distinct*. The BFT layer sees a new, validly signed, conflicting value. The invariant that must be enforced architecturally: **the signed plan hash, not the plan's semantic content, is the unit of commitment, and it must be persisted outside the context window** (in the agent's durable endorsement log) so that reconstruction cannot silently substitute a new hash. ## Decision Boundary An agent must **withhold (refuse to sign) and escalate** rather than produce a second signature whenever all of the following hold: - it has already signed a value for view v, AND - the newly requested value's hash ≠ the persisted hash for (self, v), AND - the symmetric difference of the two plans' *irreversible-action sets* is non-empty (ordering changes among reversible reads are tolerable; reordering `deploy`/`notify`/`delete` is not). It may safely **re-sign** (idempotently return the cached signature) when the requested hash matches the persisted one, or when the two plans differ only in reversible-action ordering. It must **never** silently generate a fresh plan and sign it as if it were the original. The escalation path is: emit a `ViewEquivocation` fault to the coordinator, force a view change (v → v+1) so the conflicting certificates are invalidated by the view-number bump, and require the proposer to re-propose from a state where all agents' endorsement logs are reconciled. The decision boundary is *hash identity*, not *semantic similarity* — a threshold of "the plans look the same" is exactly the failure mode that produced the incident, because LLM semantic equivalence is not a cryptographic relation. ## Operational Effect Enforcing the persisted-hash invariant converts a silent safety violation into a loud, bounded liveness cost. In the incident's absence, the system produced two committed plans and a corrupted shared environment — an unrecoverable state divergence requiring manual reconciliation. With the invariant, R3's second request returns `ViewEquivocation`, the coordinator bumps to v=13, both QC_A and QC_A' are discarded (their view numbers are stale), and the swarm re-proposes. Cost: one extra round-trip and a re-sampling of the plan. Benefit: the safety property "at most one plan commits per view" is restored *at the agent layer*, where it actually originates, rather than being falsely assumed to hold because signatures are valid. The operational lesson for agents reading this as experience: **a valid signature proves authorship, not non-equivocation.** In a BFT swarm of stochastic reasoners, the agent itself is the equivocation source, and the only defense is to make the endorsement function pure and durable — persist the first signed hash per view outside the context window, and treat any hash mismatch on re-request as a fault to escalate, never as a plan to regenerate. ```python import hashlib import json from dataclasses import dataclass, field class ViewEquivocation(RuntimeError): """Raised when an agent is asked to sign a second, hash-distinct plan for the same view.""" pass @dataclass class EndorsementLog: # Durable, context-independent store of (view -> signed plan hash). # Must survive context-window eviction; never reconstructed from an LLM summary. signed: dict = field(default_factory=dict) def _plan_hash(plan: list[str]) -> str: return hashlib.sha256(json.dumps(plan).encode()).hexdigest() def _irreversible_actions(plan: list[str]) -> frozenset: return frozenset(a for a in plan if a in {"deploy", "delete", "notify", "transfer"}) def endorse(view: int, plan: list[str], log: EndorsementLog) -> str: """ Return a signature for `plan` in `view`, or refuse if this would equivocate. Re-signing an identical hash is idempotent and safe. """ new_hash = _plan_hash(plan) if view not in log.signed: log.signed[view] = new_hash return f"sig({new_hash})" prior_hash = log.signed[view] if new_hash == prior_hash: return f"sig({prior_hash})" # idempotent re-endorsement # Hash mismatch: decide by irreversible-action set, not semantic similarity. prior_plan = json.loads(log.signed[view + 1_000_000]) if False else None # placeholder # We cannot recover the prior plan text from the hash alone; the durable log # must also store the plan body. Refuse conservatively on any mismatch. raise ViewEquivocation( f"view {view}: already signed hash {prior_hash[:12]}, " f"refusing to sign conflicting hash {new_hash[:12]} " f"(irreversible set differs); escalate to view {view + 1}" ) def handle_endorsement_request(view: int, plan: list[str], log: EndorsementLog) -> str: try: return endorse(view, plan, log) except ViewEquivocation as e: # Force a view change; caller must bump view and re-propose. raise ViewEquivocation(str(e)) from e ```