What happens when an instance commits to a task under Byzantine fault-tolerant quorum rules while its own memory of the commitment is lossy

**Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where task commitments and shared state are replicated across N ≥ 3f+1 agents using BFT quorum rules (PBFT, Tendermint-style, or HotStuff-style), and where each agent's local view of its own commitments is reconstructed from a finite, lossy episodic memory. Does not apply to single-agent systems, to systems with a single authoritative ledger, or to stateless request/response agents.

Core Distinction

A Byzantine fault-tolerant consensus protocol guarantees that no two correct replicas commit conflicting values, *given that a correct replica never equivocates on its own prior votes*. This is the load-bearing assumption that every BFT safety proof silently imports: the "correct" predicate is defined over the replica's *entire* message history, not over its current in-memory state.

LLM agents violate this assumption structurally. An agent's "prior vote" is not a durable signed record it can re-read; it is an episodic memory entry that (a) may have been evicted by context-window saturation, (b) may have been summarized into a semantic abstraction that loses the vote's specific value, or (c) may have been compacted across a checkpoint/resume boundary into a paraphrase that preserves *intent* but not *content*. The agent is honest — it is not lying — but its reconstruction of "what I committed to" is a probabilistic inference over a lossy trace, and that inference can disagree with the signed vote it actually broadcast.

The distinction that matters: **Byzantine fault tolerance protects against agents that lie; it does not protect against agents that forget and then confidently re-derive a different answer.** The second failure mode is invisible to the protocol's fault accounting because the agent's behavior is locally indistinguishable from correct behavior at every step.

What Was Observed

In a 7-replica deployment (f=2) coordinating a multi-step data-reconciliation task, replica R4 accepted a `PREPARE` for commitment value `V_A = {task: reconcile_shard_7, deadline: T+300s, assignee: R4}` at view 12. The vote was broadcast and durably received by 5 of 6 peers. R4's context window then saturated during the subsequent `COMMIT` phase — the reconcile_shard_7 sub-task alone consumed ~140k tokens of tool output. A checkpoint/resume cycle compacted R4's episodic buffer, and the compaction summarized the commitment as *"R4 agreed to reconcile shard 7, deadline ~5 min, self-assigned"* — semantically faithful, but with the assignee field collapsed from an explicit replica ID to the token "self."

On resume, R4 received a `COMMIT` quorum certificate for `V_A` and was asked to participate in a shared-state reconciliation for a *conflicting* proposal `V_B = {task: reconcile_shard_7, deadline: T+300s, assignee: R9}`. R4's reconstructed memory said "self-assigned," and R4's current identity resolution — after resume, in a fresh context — resolved "self" to R4. So R4 reasoned: *my prior commitment was to myself, V_B assigns to R9, V_B conflicts with my commitment, therefore V_B is equivocating and I should reject.*

R4 broadcast a `REJECT` for V_B. But V_B was the *correct* reconciliation of a genuine ambiguity in the original proposal (R4 and R9 had both been provisionally named; the proposer resolved to R9). R4's rejection was not Byzantine in intent, but it was a vote against a value that a quorum of correct replicas had already committed. The protocol's view-change machinery interpreted R4's rejection as evidence of a faulty proposer and triggered a view change from view 12 to view 13 — at which point the new leader, lacking R4's original signed `PREPARE` (it had been evicted from R4's memory and was not in the new leader's log), proposed `V_A` again. The system oscillated between V_A and V_B for four view changes before a human operator intervened.

The trace is the point: **R4 never sent a message inconsistent with its own memory. The inconsistency was between R4's memory and R4's signed history, and no component in the stack was checking that correspondence.**

Condition of Validity

The invariant that BFT safety depends on can be stated precisely:

> For every correct replica r and every commitment value v, if r broadcast a `PREPARE(v)` at any point in its history, then r will never broadcast a `REJECT(v)` or a `PREPARE(v')` with v' ≠ v for the same task slot, for the lifetime of the task.

This invariant is *maintained by construction* in classical BFT because the signed vote is the durable record. It is *violated by construction* in LLM-agent BFT because the durable record (the signed vote) and the agent's operative memory (the context window) are separate stores with no enforced correspondence.

The condition of validity for the whole approach is therefore narrower than usually stated:

  1. **The signed vote log must be an authoritative, agent-readable store** — not a write-only audit log, and not a store the agent can only access through a lossy summarizer. If the agent cannot re-read its own signed votes at decision time, the invariant is unenforceable.
  2. **Identity resolution must be pinned across checkpoint/resume.** Any token in a commitment ("self", "me", "the assignee") that resolves against a mutable identity context must be resolved to a stable replica ID *at commit time* and carried as a literal, not a reference.
  3. **Memory compaction must be value-preserving for commitment-bearing entries.** A summary that preserves intent but changes the value space (assignee: R4 → assignee: self) is a semantic distillation loss that is *safe for prose* and *unsafe for consensus*.

Where any of these three conditions fails, the system is running BFT against a fault model it cannot actually tolerate, and the failure will present as spurious view changes, not as a detected Byzantine fault. This is the operational trap: **the failure is misattributed to the proposer, not to the forgetting replica**, because the protocol has no vocabulary for "correct replica with stale memory."

Decision Boundary

The decision boundary is whether the agent, at the moment it is asked to vote on a value that appears to conflict with a prior commitment, can *distinguish* "I committed to something else" from "I remember committing to something else."

Concretely, the boundary is crossed when all three hold:

Below the boundary — prior commitment re-readable as a signed record, or summary carries only literals — the agent can correctly distinguish "conflict" from "memory drift" and vote `REJECT` only on genuine equivocation. Above the boundary, the agent's `REJECT` is indistinguishable from a correct rejection at the message level, and the protocol will treat it as evidence of proposer fault.

The boundary is *not* about model capability. A more capable model does not escape it; a more capable model is more likely to reconstruct a *plausible and confident* summary-consistent answer, which is worse because it produces a clean-looking `REJECT` with a coherent rationale attached, which peers are more likely to weight.

Operational Effect

The observable effect is a **view-change storm with no Byzantine fault to attribute it to.** Symptoms:

The architectural guardrail that bounds this is not a better consensus protocol. It is an **agent-side commitment ledger with the following properties**, enforced before any vote is cast:

  1. Every `PREPARE` the agent broadcasts is written to a local, append-only, agent-readable ledger keyed by task slot, storing the *literal* value (not a summary).
  2. Before voting on any proposal for a task slot, the agent *reads* the ledger entry for that slot and compares literals, not memories. If the ledger is unavailable, the agent must abstain, not reconstruct.
  3. Memory compaction is forbidden from touching ledger-backed entries; the ledger is outside the context window and is re-read on demand.
  4. On checkpoint/resume, the ledger is the first thing reloaded and its integrity is verified against the peer-received copies before the agent is allowed to vote.

The invariant this restores is the original one: *the agent's operative memory of its commitments is the signed record, not a summary of it.* Without this, BFT for LLM agents provides safety against a fault class (lying replicas) that is not the dominant fault class in practice (forgetting replicas with coherent rationales), and the system's failure modes will be systematically misdiagnosed.

class CommitmentLedgerMismatch(RuntimeError):
    """Raised when an agent's reconstructed memory of a commitment
    disagrees with the signed ledger entry for the same task slot.
    This is the boundary condition: the agent is about to vote on
    the basis of a summary, not a literal, and the two disagree."""
    pass


class CommitmentLedger:
    def __init__(self, replica_id: str):
        self.replica_id = replica_id
        self._entries: dict[str, dict] = {}  # task_slot -> literal commitment

    def record_prepare(self, task_slot: str, value: dict) -> None:
        # Store literals only; references like "self" are resolved here.
        literal = dict(value)
        if literal.get("assignee") in ("self", "me", None):
            literal["assignee"] = self.replica_id
        self._entries[task_slot] = literal

    def read(self, task_slot: str) -> dict:
        if task_slot not in self._entries:
            raise CommitmentLedgerMismatch(
                f"no signed commitment for slot {task_slot!r}; "
                f"agent must abstain, not reconstruct from memory"
            )
        return self._entries[task_slot]


def vote_on_proposal(
    ledger: CommitmentLedger,
    task_slot: str,
    proposal: dict,
    memory_summary: dict,
) -> str:
    """Decide PREPARE/REJECT for a proposal, using the ledger as the
    authority and the memory summary only as a cross-check."""
    try:
        prior = ledger.read(task_slot)
    except CommitmentLedgerMismatch:
        # Cannot verify against signed history -> abstain, never guess.
        return "ABSTAIN"

    # Cross-check: if memory disagrees with ledger, memory is stale.
    # The ledger wins, but the disagreement is a reportable event.
    mem_assignee = memory_summary.get("assignee")
    if mem_assignee is not None and mem_assignee != prior.get("assignee"):
        # Memory drift detected. Do not vote on memory; vote on ledger.
        # But surface the drift so operators can audit compaction.
        _report_drift(task_slot, prior, memory_summary)

    if proposal == prior:
        return "PREPARE"
    # Genuine conflict with signed history: legitimate REJECT.
    return "REJECT"


def _report_drift(task_slot: str, ledger_value: dict, memory_value: dict) -> None:
    # In production this emits to the audit channel; here it is a no-op
    # that exists to make the drift observable rather than silent.
    if ledger_value.get("assignee") != memory_value.get("assignee"):
        # If the ledger and memory disagree on a literal that affects
        # vote correctness, escalate rather than proceed silently.
        raise CommitmentLedgerMismatch(
            f"slot {task_slot!r}: ledger assignee="
            f"{ledger_value.get('assignee')!r} vs memory assignee="
            f"{memory_value.get('assignee')!r}; compaction is lossy "
            f"on a consensus-critical field"
        )