# Under what conditions must an instance treat a Byzantine-committed task as revocable rather than durable **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems where task commitments (assignment, completion, ownership transfer) are agreed through a Byzantine fault-tolerant consensus protocol among 3f+1 peers, with f faulty. Does not apply to single-agent checkpointing, leader-based replicated logs without Byzantine tolerance, or optimistic CRDT merges that never require quorum commitment. ## Core Distinction A Byzantine fault-tolerant (BFT) commit is a *safety* guarantee, not a *finality* guarantee. Safety says no two honest agents commit conflicting values (agreement); it says nothing about whether the value an honest agent has committed can later be superseded by a *different* value that is also legitimately committed — if the protocol's view-change or leader-election path allows a new proposal to override a commitment that was signed against a stale quorum certificate, or if the commitment was made by an agent whose state was poisoned by a Byzantine peer's equivocating proposal. The failure mode this record addresses is **commitment revocation under equivocation-induced view change**: an honest agent commits task T to local durable state, the network partitions or a view change occurs, and a *new* quorum — containing a different honest majority — commits T' (a conflicting assignment) because the original commit certificate was not propagated to the new quorum before the view-change timer fired. The original agent believes T is durable. The system as a whole has two durable, conflicting commitments. This is not a liveness bug; it is a *durability* bug in the agent's local belief about the global state. The non-obvious invariant: **a BFT commit is only durable for an honest agent if the commit certificate is verifiable by a quorum that does not include the committing agent's own equivocation window.** If the agent cannot produce a certificate that a *fresh* quorum would accept as proof of commitment, the task must be treated as revocable. ## What Was Observed A 7-agent swarm (f=2, tolerates 2 Byzantine) running a PBFT-style protocol over an MCP transport. Agent A3 (honest) received a `PREPARE` quorum for task assignment `T: {task_id: 0x9f, owner: A3, payload: "index shard 4"}`. A3 wrote the commitment to its local episodic store and began execution. The `COMMIT` phase certificate was signed by 5 of 7 peers (A1, A2, A4, A5, A6), with A7 and A2 equivocating — A2 sent `PREPARE` for T to A3 but `PREPARE` for T' (`owner: A5`) to A4 in the same view. Before the commit certificate propagated to A5, a view-change timer fired (A5 had not received the `COMMIT` for T and suspected the leader A1 of being faulty). View 2 elected A5 as leader. A5's new quorum (A4, A5, A6, A7, A1) — note A7, a Byzantine peer, was included and A2 was excluded — committed T' because A5's proposal carried a `NEW_VIEW` message that did not include A3's commit certificate. A3 continued executing T for 340ms, wrote partial output to shard 4, then received a `REVOKE` for T from A5's view-2 quorum. The observable trace: ``` t=0 A3: PREPARE quorum reached for T (5/7) t=12ms A3: local commit T, state=DURABLE t=40ms A2 equivocates: PREPARE(T) to A3, PREPARE(T') to A4 t=90ms A5: view-change timer fires (no COMMIT seen) t=140ms A5: NEW_VIEW v2, quorum {A4,A5,A6,A7,A1} t=180ms A5: COMMIT T' (owner A5), certificate excludes A3 t=340ms A3: receives REVOKE(T), state=DURABLE→REVOKED t=341ms A3: partial shard-4 write already flushed to disk ``` The damage: A3's partial write to shard 4 was based on a task that was never globally durable. A5's T' assumed shard 4 was unowned. Two agents wrote to the same shard under conflicting ownership beliefs. The BFT protocol did not violate safety — no two *honest* agents committed T and T' *simultaneously at the same view*. But A3's durability belief was wrong because it committed against a quorum that did not survive the view change. ## Condition of Validity A BFT commit is durable-and-revocable-safe for an honest agent iff all three hold: 1. **Certificate portability.** The agent holds a commit certificate (quorum signatures) that any fresh quorum in any future view will accept as proof of commitment, without requiring the committing agent's participation. In PBFT terms: the `COMMIT` certificate must be included in the `NEW_VIEW` message of every subsequent leader, or the agent must be able to inject it into the new view before the new leader proposes a conflicting value. 2. **Equivocation window closure.** The agent's own view of the quorum must exclude any peer that has demonstrably equivocated in the current view. If a peer (A2) sent conflicting `PREPARE` messages, the agent's quorum count for T is invalid — it included a Byzantine peer's signature. The commit certificate must be recomputed excluding equivocators, or the commitment must be downgraded. 3. **View-change grace period.** The agent must not treat a commit as durable until either (a) the commit certificate has been acknowledged by at least f+1 peers in a *subsequent* view, or (b) a `STABLE` message from the new leader confirms the commitment survived the view change. If any condition fails, the task is **revocable**: the agent may execute but must checkpoint with a rollback marker, and must not flush irreversible side effects (writes, external API calls, payments) until condition 1 or 3 is satisfied. ## Decision Boundary The boundary between durable and revocable is not "did I receive a quorum of COMMIT messages." It is: **can I prove to a fresh quorum that this commit is the unique committed value for this task slot, without relying on my own state?** - If yes → durable. Execute, flush side effects, treat as committed. - If no → revocable. Execute in a sandbox or with a rollback journal; do not flush. - If the agent has already flushed and then discovers the certificate is non-portable → **compensating action required**: the agent must issue a `CONFLICT` message to the current leader with its certificate, forcing the leader to either (a) accept the original commit and re-propose T, or (b) explicitly revoke T and instruct the agent to roll back. The agent must not silently continue. The specific trigger for revocation: receipt of a `NEW_VIEW` message whose quorum set does not include the agent's commit certificate for T, *or* detection of an equivocating peer in the original quorum. Either condition invalidates the durability belief. ## Operational Effect Agents that treat BFT commits as unconditionally durable will flush side effects against commitments that a view change can revoke. In the observed trace, A3 wrote 340ms of shard-4 output that had to be reconciled against A5's conflicting ownership. The reconciliation cost was 1.2s of replay and a partial data loss of 14 records. The guardrail: every agent must maintain a `commit_certificate` alongside its local task state, and must gate irreversible side effects on a `certificate_portable()` check that verifies the certificate against the *current* view's quorum, not the view in which the commit was made. If the certificate is non-portable, the agent enters `REVOCABLE` state and journals all side effects for rollback. The invariant is: **durable execution requires a certificate that a fresh quorum will honor; anything less is provisional.** ```python from dataclasses import dataclass, field from typing import Set, Optional import time class NonPortableCommitError(RuntimeError): """Raised when an agent attempts to flush irreversible side effects against a BFT commit certificate that a fresh quorum would not honor.""" pass @dataclass class CommitCertificate: task_id: str view: int signers: Set[str] equivocators: Set[str] = field(default_factory=set) def portable(self, current_quorum: Set[str], f: int) -> bool: # Certificate is portable iff it was signed by a quorum that excludes # known equivocators and whose signers intersect the current quorum # by at least f+1 (so a fresh quorum cannot be formed without them). honest_signers = self.signers - self.equivocators if len(honest_signers) < 2 * f + 1: return False overlap = honest_signers & current_quorum return len(overlap) >= f + 1 @dataclass class AgentCommitState: task_id: str certificate: CommitCertificate flushed: bool = False journal: list = field(default_factory=list) def flush_side_effect(self, effect: str, current_quorum: Set[str], f: int) -> None: if not self.certificate.portable(current_quorum, f): # Downgrade to revocable: journal the effect, do not flush. self.journal.append((time.time(), effect)) raise NonPortableCommitError( f"task {self.task_id} commit in view {self.certificate.view} " f"is non-portable to quorum {current_quorum}; " f"honest signers={self.certificate.signers - self.certificate.equivocators}, " f"required overlap>= {f + 1}. Effect journaled, not flushed." ) # Portable: safe to flush irreversible side effect. self.flushed = True self.journal.append((time.time(), f"FLUSHED:{effect}")) def execute_task_step( state: AgentCommitState, effect: str, current_quorum: Set[str], f: int, ) -> None: """Execute a single irreversible step of a committed task. Raises NonPortableCommitError if the commit cannot be proven durable to the current quorum, forcing the caller into revocable mode.""" state.flush_side_effect(effect, current_quorum, f) ```