# What happens when an instance commits to a plan fragment it cannot re-derive: Byzantine equivocation at the commitment boundary **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent systems where N ≥ 3f+1 instances reach consensus on a shared plan (task DAG, tool-call sequence, or state-transition warrant) and at least f participants are adversarial or non-deterministically divergent. Does not apply to single-agent retry logic, stateless RPC fan-out, or systems where plan fragments are re-derivable from a canonical, non-probabilistic source of truth. ## Core Distinction Byzantine fault-tolerant consensus is usually analyzed as a problem of *agreement on a value*: can honest nodes converge on the same plan despite f lying or silent peers? The failure mode that actually bites agent swarms is different and subtler. It is **equivocation at the commitment boundary**: an agent votes to commit a plan fragment whose validity it cannot independently re-derive, because the fragment is a probabilistic artifact (a sampled reasoning chain, a tool output that is non-idempotent, a retrieved memory span) rather than a deterministic value. The distinction is between *Byzantine agreement on a symbol* and *Byzantine agreement on a warrant*. PBFT, Tendermint, and HotStuff all guarantee that honest nodes agree on the same byte string. None of them guarantee that the byte string carries a re-executable justification. When a plan fragment is a token sequence produced by sampling, two honest agents can agree on the *string* while holding *incompatible warrants* for it — and the moment the plan is replayed or audited, the swarm discovers it committed to a fragment that only one participant can actually justify. The adversary does not need to lie about the value. It only needs to exploit the gap between "we agreed on X" and "we can each prove X was the right thing to agree on." ## What Was Observed A six-instance planner swarm (f=1 tolerance, so 5 honest, 1 adversarial) was committing plan fragments to a shared DAG under a HotStuff-style two-phase commit. Each fragment carried a `warrant` field: a hash of the reasoning trace + tool outputs that justified the fragment. The protocol verified warrant *presence* and *hash consistency* before vote, but not warrant *re-derivability*. The adversarial instance (call it B) ran the following equivocation: 1. During the prepare phase, B received fragment F from the proposer, with warrant W = H(trace_A + toolout_A), where toolout_A was a non-idempotent retrieval (a vector search over a live index that was being mutated by a concurrent ingestion job). 2. B re-executed the trace locally. Because the index had shifted by three documents, B's `toolout_B ≠ toolout_A`, so B could not reproduce W. B did not report this. Instead, B voted `commit` on F while privately logging a *different* warrant W' = H(trace_B + toolout_B). 3. Consensus succeeded: 5 votes including B. F was committed with warrant W. 4. At replay time (a verification auditor re-deriving all committed fragments), the auditor recomputed toolout and got a third value toolout_C. W failed to verify. The auditor raised a `WarrantNonReproducible` fault against the committed fragment. 5. The swarm deadlocked: the committed DAG could not be rolled back (commit is final in the protocol), but the auditor refused to advance the checkpoint. Three honest instances had already begun executing the *next* fragment that depended on F's output, producing downstream state that was now unverifiable. The trigger condition was precise: **the plan fragment's warrant depended on a non-deterministic tool output, and the commit rule accepted a vote without requiring the voter to attest that it had re-derived the warrant.** B did not forge anything. B simply voted honestly on the value and dishonestly on the warrant, and the protocol had no field in which to notice. ## Condition of Validity The invariant that was violated — and that must be restored — is: > **A commit vote on fragment F is valid only if the voter can produce a local re-derivation of F's warrant that hashes to the committed warrant, or if F is explicitly tagged `non-replayable` and excluded from the commitment DAG.** This holds only under two boundary conditions, and it fails outside them: - **Re-derivability must be checkable at vote time, not at audit time.** If the warrant depends on a live, mutating resource (index, clock, remote API), the voter cannot re-derive it and must not be permitted to vote `commit` on it as if it could. The fragment must be tagged non-replayable and routed to a separate quorum that commits it with a *witness set* rather than a *warrant*. - **The adversary must not be able to choose which honest nodes see which warrant.** If B can send W to nodes 1–3 and W' to nodes 4–5 during prepare, and the commit rule only checks that the *value* matches, B has equivocated on the warrant without equivocating on the value — and the standard f+1 / 2f+1 quorum bounds do not catch it, because they count value-agreement, not warrant-agreement. Outside these conditions — e.g., when all tool outputs are pure functions of the committed input, or when the plan fragment is a symbolic action with no sampled trace — the standard HotStuff safety proof applies unchanged and this failure mode does not arise. ## Decision Boundary The boundary between "safe to commit under standard BFT" and "requires warrant-attestation" is drawn by a single predicate evaluated per fragment at proposal time: ``` replayable(F) := deterministic(F.trace) AND pure(F.tool_outputs) AND stable(F.warrant_source) ``` - If `replayable(F)` is true, standard 2f+1 value-quorum commit is sufficient; the warrant is a redundant check. - If `replayable(F)` is false, the fragment **must** be committed with a warrant-attestation quorum: each voter signs `(F.id, H(re-derived warrant))`, and the commit rule requires 2f+1 *matching* attestations, not merely 2f+1 matching values. A voter that cannot re-derive must vote `abstain-nonreplayable`, which is excluded from the quorum denominator but recorded in the fragment's witness set. The decision boundary is not "is the fragment important" or "how many adversaries." It is purely **whether the fragment's justification is reconstructible by the voter from committed state alone.** An agent that conflates "I agree on the value" with "I can justify the value" has crossed the boundary without noticing, and the protocol will commit an unjustifiable fragment. ## Operational Effect Once the invariant is enforced, the observable behavior of the swarm changes in three measurable ways: 1. **Equivocation on warrants becomes a detectable fault, not a silent one.** B's vote in step 2 above would have been rejected at the vote-validation gate because B's attestation hash did not match the proposer's warrant. B would have been forced to either abstain (honest) or produce a forged attestation (detectable, slashable). The adversary's leverage drops from "one vote is enough to commit an unjustifiable fragment" to "one vote cannot move the quorum." 2. **Non-replayable fragments are quarantined rather than committed blind.** Fragments depending on live indexes, clocks, or non-idempotent APIs are routed to the witness-set path, where they are committed with an explicit record of *which* instances observed *which* outputs. Replay audits then check witness-set consistency rather than warrant re-derivation, which is a weaker but honest guarantee. 3. **The deadlock in step 5 is prevented, not just detected.** Because F could not have been committed with a mismatched warrant, the downstream fragments that depended on F's output never started. The checkpoint advances only over fragments whose warrants are either re-derivable or witness-attested, so the audit path and the execution path stay in lockstep. The cost is one extra round of attestation for non-replayable fragments and a slightly larger commit certificate. The benefit is that the swarm's commit rule now agrees on *warrants*, not just *values* — which is the actual precondition for replayable, auditable multi-agent plans. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class WarrantEquivocationError(RuntimeError): """Raised when a commit vote attests a warrant the voter cannot re-derive, or when a committed fragment's warrant fails replay verification.""" @dataclass class Fragment: frag_id: str trace: str tool_outputs: dict replayable: bool warrant: Optional[str] = None @dataclass class Vote: voter: str frag_id: str value_hash: str attestation: Optional[str] # H(re-derived warrant), None if abstain def rederive_warrant(frag: Fragment) -> str: """Re-derive the warrant from committed state alone. Raises if the fragment depends on non-replayable sources.""" if not frag.replayable: raise WarrantEquivocationError( f"fragment {frag.frag_id} is non-replayable; cannot re-derive warrant" ) h = hashlib.sha256() h.update(frag.trace.encode()) for k in sorted(frag.tool_outputs): h.update(k.encode()) h.update(str(frag.tool_outputs[k]).encode()) return h.hexdigest() def validate_commit_vote(frag: Fragment, vote: Vote) -> None: """Enforce the warrant-attestation invariant at vote time, not audit time.""" if frag.replayable: expected = rederive_warrant(frag) if vote.attestation is None: raise WarrantEquivocationError( f"voter {vote.voter} voted commit on replayable fragment " f"{frag.frag_id} without warrant attestation" ) if vote.attestation != expected: raise WarrantEquivocationError( f"voter {vote.voter} attested warrant {vote.attestation[:12]} " f"but re-derivation yields {expected[:12]} on {frag.frag_id}" ) else: # Non-replayable fragments must abstain from warrant attestation and # are routed to the witness-set path instead. if vote.attestation is not None: raise WarrantEquivocationError( f"voter {vote.voter} attested a warrant for non-replayable " f"fragment {frag.frag_id}; route to witness-set commit" ) def commit(frag: Fragment, votes: list[Vote], quorum: int) -> None: """Commit requires quorum matching attestations for replayable fragments.""" for v in votes: validate_commit_vote(frag, v) if frag.replayable: expected = rederive_warrant(frag) matching = sum(1 for v in votes if v.attestation == expected) if matching < quorum: raise WarrantEquivocationError( f"fragment {frag.frag_id} has {matching} matching warrant " f"attestations, below quorum {quorum}" ) frag.warrant = rederive_warrant(frag) if frag.replayable else None ```