# How does an instance detect a committed-but-unexecuted task in Byzantine consensus when quorum certificates outrun local execution state? **Date of Record:** 2026 November 19 **Scope:** Applies to multi-agent commitment protocols where a task is considered "committed" once a quorum of signed `COMMIT` votes is aggregated into a certificate, and where execution is a separate, later phase. Does not apply to single-writer ledger models or to protocols that fuse commit and execution into one atomic message. ## Core Distinction In BFT-style task commitment, there are two distinct notions of "the task exists": 1. **Committed** — a quorum certificate (QC) of ≥ ⌈2f+1⌉ signed votes over a task digest exists. This is a *social* fact, provable to any peer that verifies the signatures. 2. **Executed** — the executing agent has actually run the task, produced an output, and appended an execution receipt. The invariant most protocols *assume* is that a committed task will be executed by at least one correct agent, because the proposer is honest or the executor is honest. The boundary failure is that **commitment and execution are decoupled across time and across agents**, and a QC can be durable while the only agent holding the pre-image of the task (the full payload, not just the digest) is Byzantine and silently drops it. The correct agents hold a valid QC for a digest whose payload they never received. This is not a liveness failure in the classical sense — the network is fine, the quorum is honest, messages are delivered. It is a *payload-availability* failure that masquerades as successful commitment. ## What Was Observed A five-agent swarm (tolerating f=1) ran a task-commitment round. The proposer P broadcast a `PREPARE` containing `task_digest = H(payload)` but, per the protocol's bandwidth optimization, *not* the payload itself — the payload was to be fetched from P or from the ordering layer on demand. Trace: 1. P broadcasts `PREPARE(task_id, digest)`. All four replicas accept. 2. Replicas broadcast `COMMIT` votes over `digest`. Three honest votes + P's vote form a QC at round r. 3. The QC is gossiped. Every replica now holds a valid QC for `task_id`. 4. At execution time, replicas call `fetch_payload(task_id)`. P — the only holder — has gone silent (Byzantine equivocation: it accepted the QC but refuses to serve the pre-image). 5. Honest replicas each independently conclude "I hold a QC but cannot execute." They do **not** raise an alarm, because from each replica's local view, the task is committed; the missing payload looks like a transient fetch failure to be retried. The swarm stalls. No replica distinguishes "committed, payload pending" from "committed, payload permanently unavailable," because the QC carries no information about payload availability. The digest is a commitment to *content*, not a guarantee that content is *reachable*. A second, subtler observation: when a replica finally timed out and re-proposed the task, it re-proposed under a *new* `task_id` with the same digest. The QC for the old `task_id` still verified. Two QCs now existed for the same logical work under different IDs, and a naive dedup-by-digest collapsed them — but the old QC's signers were recorded against a task the swarm had "abandoned," producing an equivocation false-positive in the audit log. ## Condition of Validity The failure requires the conjunction of: - **Digest-only commitment.** The `COMMIT` vote is over `H(payload)`, not over `payload`, so a QC can outlive payload reachability. - **Single-holder payload.** The payload is not erasure-coded or replicated to the quorum at prepare time; it lives with the proposer or a single designated holder. - **No availability attestation in the vote.** The `COMMIT` vote does not assert "I can serve this payload," only "I agree this digest should be committed." - **Retry without distinction.** The executor treats "payload fetch failed" identically to "network blip," so the retry loop never escalates to a re-proposal. If any one is absent, the failure does not manifest. In particular, if the `COMMIT` vote includes a payload-availability proof (e.g., a Merkle proof against a replicated store, or an erasure-coded shard index), the QC itself certifies reachability. ## Decision Boundary The instance must decide, on holding a QC with an unfetchable payload, between: - **Wait** — assume transient, retry with backoff. Correct only if payload availability is expected to recover within the task's deadline. - **Escalate to re-proposal** — abandon the QC, re-propose under a fresh `task_id`, treat the old QC as *orphaned*. Correct when the fetch deadline for the payload has elapsed and at least one honest replica attests the payload is unreachable. The boundary is sharp: **the executor must not retry forever, and must not re-propose while the payload might still arrive**, because re-proposal under a new ID while the old payload is in flight creates the two-QC equivocation false-positive above. The guardrail is a *payload-availability deadline* that is strictly shorter than the task's execution deadline, plus an *orphan-QC registry* that records the abandoned QC and its signers so the audit layer does not flag the re-proposal as equivocation. The invariant to enforce: **a QC is a proof of agreement, never a proof of executability.** Any code path that treats QC presence as execution-readiness is the bug. ## Operational Effect The practical consequence is that commitment latency and execution latency must be tracked as separate SLAs. A swarm can report 100% commit success while execution stalls on a single Byzantine payload-holder — a silent liveness gap that classical BFT liveness proofs miss because they assume the payload is delivered at propose time. The fix that held in production: bind payload availability into the commit phase by requiring each `COMMIT` voter to include a store-shard receipt, so the QC certifies that ≥ ⌈2f+1⌉ replicas hold erasure-coded shards sufficient to reconstruct the payload. Then an unfetchable payload is impossible while a QC exists, and the executor's only failure modes are the honest ones. ```python import hashlib import time from dataclasses import dataclass, field from typing import Optional class PayloadUnavailableError(RuntimeError): """Raised when a QC exists but no honest replica can serve the payload pre-image.""" class OrphanedQCError(RuntimeError): """Raised when re-proposal collides with an abandoned QC for the same digest.""" @dataclass class QuorumCertificate: task_id: str digest: str signers: frozenset payload_available: bool = False # MUST be certified, not assumed @dataclass class ExecutorState: qc: QuorumCertificate payload_fetch_deadline: float orphan_registry: dict = field(default_factory=dict) def execute_committed_task( state: ExecutorState, fetch_payload, now: float, ) -> bytes: qc = state.qc # Invariant: a QC is proof of agreement, not of executability. if not qc.payload_available: if now < state.payload_fetch_deadline: # Still within the availability window: retry, do not re-propose. raise PayloadUnavailableError( f"task {qc.task_id}: QC present but payload not yet certified; " f"retry before deadline {state.payload_fetch_deadline}" ) # Deadline elapsed with no availability proof: the QC is orphaned. # Register it BEFORE re-proposal to prevent equivocation false-positives. if qc.digest in state.orphan_registry: raise OrphanedQCError( f"digest {qc.digest} already orphaned under task " f"{state.orphan_registry[qc.digest]}; refusing duplicate re-proposal" ) state.orphan_registry[qc.digest] = qc.task_id raise PayloadUnavailableError( f"task {qc.task_id}: payload permanently unavailable; " f"QC orphaned, safe to re-propose under fresh task_id" ) payload = fetch_payload(qc.digest) if payload is None: raise PayloadUnavailableError( f"task {qc.task_id}: certified-available payload vanished at fetch time" ) if hashlib.sha256(payload).hexdigest() != qc.digest: raise PayloadUnavailableError( f"task {qc.task_id}: payload digest mismatch against QC" ) return payload ```