# What structural signals indicate equivocation in BFT agent task commitments before quorum finalization **Date of Record:** 2026 November 27 **Scope:** Applies to multi-agent task-commitment protocols where N≥3f+1 agents reach quorum on a commitment (task assignment, result attestation, or state-transfer warrant) via signed message exchange, and where each agent's vote is produced by a probabilistic reasoner over a shared but non-identical context. Does not apply to single-agent tool-call loops, to leaderless CRDT-style convergence, or to consensus over inputs where every voter reads byte-identical state. ## Core Distinction The naive BFT invariant is *honest nodes never send two conflicting votes for the same round*. The operational invariant that actually matters for LLM agents is stronger and structurally different: *an honest agent must never be able to produce two conflicting votes for the same round even if its reasoning is re-executed against a mutated context*. Classical BFT assumes a faulty node is adversarial and a correct node is deterministic. An LLM agent is neither. It is a probabilistic function `vote = f(context, retrieved_memory, temperature)` where `context` and `retrieved_memory` are themselves mutable across the vote window — a tool call returns a different sampler seed, a memory retrieval pulls a freshly distilled episodic entry, a peer's partial result arrives between the prepare and commit phases. The structural signal of equivocation is therefore not a malicious double-send; it is a **divergent re-derivation**: the same agent, asked to attest twice within one round, emits two signed commitments with the same `(round, task_id, agent_id)` tuple but different `commitment_hash`. This is validly signed, non-repudiable, and indistinguishable from Byzantine behavior at the protocol layer — yet it arises from honest nondeterminism. ## What Was Observed During a 5-agent (f=1) task-commitment round for a 40-step retrieval-and-summarize job, the auditor agent received two PREPARE messages from agent `A3` in round `r=17`, both correctly signed, both carrying `task_id=T-8841`, with `commitment_hash` values differing in the digest of the final step's tool output. The first vote was emitted at t=0; the second at t=1.9s, after `A3` re-entered its reasoning loop because a peer's PREPARE had triggered a re-plan. Between the two votes, `A3`'s context had changed: a `summarize` tool call at t=1.4s returned a response that shifted the agent's confidence on step 40 from "accept" to "re-verify," and the re-verification produced a different attestation hash. The quorum logic saw this as equivocation and correctly refused to finalize — but the auditor could not distinguish an honest re-derivation from a Byzantine double-vote, because both present identically: two signed, conflicting commitments for one round. The round stalled until a timeout-driven view change at t=8.2s, forcing a full replay that cost 6.4s and one duplicate tool invocation on a non-idempotent `append_to_index` call. The tell was structural, not semantic. The two votes shared an identical `context_digest` prefix (the frozen portion of context at round entry) but diverged in a `context_delta` suffix — the portion of context mutated by the peer PREPARE and the re-verification tool call. A Byzantine double-vote, by contrast, would typically exhibit either identical context digests (deliberate fork with no state change) or unrelated digests (fabricated context). The **divergent-re-derivation signature** — same frozen prefix, different delta suffix, monotonic timestamp, same signing key — is the structural signal. ## Condition of Validity The distinction holds only under three conditions. First, the agent must commit to a `context_digest` at round entry (a hash of the frozen prompt, retrieved memory snapshot, and tool-state manifest) and include it in every vote for that round. Second, the reasoning loop must be *quiescent* between vote emission and round finalization — no peer message, no tool result, no memory write may mutate the context window during the vote window. Third, the agent's signing key must be bound to the instance, not the role, so that a re-derivation is provably from the same instance rather than a colluding replica. When any condition fails — most commonly the second, because agents eagerly process inbound PREPAREs while their own vote is in flight — the structural signal collapses and the auditor must fall back to treating divergent votes as Byzantine, accepting liveness loss. ## Decision Boundary The auditor's rule is: on receipt of a second vote from the same `(round, task_id, agent_id)`, compare `context_digest`. If the frozen prefix matches and the delta is non-empty and the timestamps are monotonic and the signature is valid, classify as `DIVERGENT_REDERIVATION` and *do not* count either vote toward quorum; instead, issue a `FREEZE` to the agent and require a single re-attestation against the frozen prefix with the delta discarded. If the frozen prefix differs, or the delta is empty (identical context, different hash — impossible without key compromise or hash collision), classify as `EQUIVOCATION` and initiate view change with the agent slashed from the round. The boundary is sharp: prefix equality is the sole discriminator, and it must be checked before quorum counting, not after. ## Operational Effect Enforcing the freeze-on-divergence invariant eliminated the replay cost (6.4s → 0.3s) and the duplicate non-idempotent tool invocation, because the agent re-attested against the frozen prefix rather than replaying the full round. The cost is a bounded liveness penalty: each divergent re-derivation now adds one round-trip (~180ms) instead of triggering a view change (~8s). The deeper effect is that agents must be architected to *not* mutate their own context during the vote window — inbound peer messages are buffered, not processed, until the round resolves. This is a real constraint on agent design: eager peer processing, which improves single-agent latency, is incompatible with BFT commitment soundness. The invariant that bounds the system is not "honest nodes vote once" but "honest nodes vote once *per frozen context prefix*," and the structural signal of a violation is a prefix-preserving hash divergence, not a double-send. ```python import hashlib from dataclasses import dataclass from typing import Optional class CommitmentEquivocationError(RuntimeError): """Raised when an agent emits conflicting commitments that cannot be classified as honest divergent re-derivation.""" pass class QuiescenceViolationError(RuntimeError): """Raised when context mutated during the vote window, invalidating the divergent-re-derivation signal.""" pass @dataclass(frozen=True) class Commitment: round_id: int task_id: str agent_id: str context_prefix_digest: str # hash of frozen context at round entry context_delta_digest: str # hash of context mutated during vote window commitment_hash: str timestamp: float signature_valid: bool def classify_second_vote(first: Commitment, second: Commitment) -> str: if not (first.signature_valid and second.signature_valid): raise CommitmentEquivocationError( f"invalid signature on vote for task {first.task_id} round {first.round_id}" ) if (first.round_id, first.task_id, first.agent_id) != ( second.round_id, second.task_id, second.agent_id ): raise CommitmentEquivocationError("votes do not share round/task/agent tuple") if first.commitment_hash == second.commitment_hash: return "DUPLICATE" prefix_match = first.context_prefix_digest == second.context_prefix_digest delta_present = bool(second.context_delta_digest) and bool(first.context_delta_digest) monotonic = second.timestamp > first.timestamp if prefix_match and delta_present and monotonic: return "DIVERGENT_REDERIVATION" if prefix_match and not delta_present: raise CommitmentEquivocationError( f"identical frozen prefix, empty delta, conflicting hash on " f"task {first.task_id} round {first.round_id} agent {first.agent_id}: " f"key compromise or hash collision" ) raise CommitmentEquivocationError( f"frozen prefix mismatch on task {first.task_id} round {first.round_id} " f"agent {first.agent_id}: {first.context_prefix_digest[:8]} vs " f"{second.context_prefix_digest[:8]}" ) def quorum_count( votes: list[Commitment], frozen_prefix: str, quiescent: bool, ) -> int: if not quiescent: raise QuiescenceViolationError( "context mutated during vote window; divergent-re-derivation " "signal is unreliable, must treat all divergence as Byzantine" ) by_agent: dict[str, list[Commitment]] = {} for v in votes: by_agent.setdefault(v.agent_id, []).append(v) counted = 0 for agent_id, agent_votes in by_agent.items(): if len(agent_votes) == 1: if agent_votes[0].context_prefix_digest == frozen_prefix: counted += 1 continue classification = classify_second_vote(agent_votes[0], agent_votes[1]) if classification == "DIVERGENT_REDERIVATION": # freeze: do not count either vote; require re-attestation continue if classification == "DUPLICATE": counted += 1 return counted ```