# In what scenarios must an instance withhold a Byzantine commit vote when a peer's task-commitment proof is valid but its provenance chain is unverifiable **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent quorum protocols where N agents reach supermajority (≥2f+1 of 3f+1) agreement on task commitments and each vote is accompanied by a provenance proof (a signed chain linking the proposal to the originating agent's tool-call history). Does not apply to single-agent checkpointing, non-BFT majority voting, or schemes where provenance is attested out-of-band by a trusted coordinator. ## Core Distinction The failure mode is not a forged signature and not a missing proof. It is the **valid-but-unverifiable provenance** case: a peer's commitment proof carries a cryptographically valid signature over a state digest, and the digest matches the proposal, yet the *chain of custody* that produced the digest cannot be independently replayed by the receiving agent within its context budget. Byzantine Fault Tolerance tolerates `f` lying agents. It does not, by construction, tolerate an honest agent that cannot distinguish a valid proof from a valid-looking proof whose intermediate steps were pruned. The distinction that matters operationally: **signature validity is a local predicate; provenance verifiability is a global predicate that depends on the verifier's own state.** Two agents in the same quorum, holding the same proof bytes, can legitimately reach different verdicts on whether to vote — because one has the intermediate tool-call records cached and the other does not. A BFT protocol that treats "valid signature" as the vote precondition will accept commitments that no single agent can audit end-to-end, and the `f`-fault bound silently degrades to `0`-fault against a *colluding set of otherwise-honest agents that prune differently*. ## What Was Observed A 7-agent quorum (tolerating `f=2`) committing a multi-step task: agent A proposes, agents B–G vote. Each vote bundles `(proposal_digest, signature, provenance_chain)`. The provenance chain is a list of `(step_id, tool_name, input_digest, output_digest, prev_step_sig)` records. To keep payloads under the transport MTU, agents truncate provenance chains to the most recent `k=3` steps and attach a `root_digest` committing to the full chain. Observed trace: 1. Agent A executes a 14-step plan. Steps 1–11 produce `root_digest = H(...)`. Steps 12–14 are the commitment-relevant tail. 2. A broadcasts the proposal with the truncated chain (steps 12–14) plus `root_digest`. 3. Agent B has, from prior unrelated tasks, cached steps 1–11 of a *different* run whose prefix happens to collide on steps 9–11 (same tool, same input digest — a legitimate replay of an idempotent read). B's local reconstruction of `root_digest` from its cache + received tail yields a *different* digest. B correctly withholds its vote. 4. Agents C, D, E have no cached prefix. They cannot reconstruct `root_digest` at all. They verify only the tail signatures and the `root_digest` signature, find both valid, and **vote yes**. 5. Quorum reaches 5/7 (C, D, E, F, G). Commitment is accepted. B's withhold is outvoted. 6. On replay during audit, the commitment cannot be reconstructed by any single agent: C/D/E/F/G never held steps 1–11; B holds a *conflicting* steps 1–11. The commitment is finalized but **unauditable**. The non-obvious part: the protocol did not violate its safety proof. No two honest agents committed *different* values. But the *justification* for the commit is not reconstructable, which means the `f`-fault assumption ("at most `f` agents deviate") was never actually exercised — the quorum was honest and still produced an unverifiable commitment. This is a **liveness-of-auditability** failure, orthogonal to the safety/liveness split BFT normally reasons about. ## Condition of Validity The withhold-vote rule is only sound under the following invariant, which most implementations do not state: > **Prefix-Reconstruction Invariant (PRI):** For any commitment to be votable, every voting agent must be able to compute `root_digest` from provenance material it holds *locally and independently*, without trusting any peer-supplied intermediate. If an agent cannot reconstruct `root_digest`, its correct action is to withhold — not to vote on tail-signature validity alone. PRI fails whenever any of these hold, and each is common: - **Truncation with unattested prefix.** The chain is truncated to fit transport limits and the prefix is committed only via `root_digest`, with no mechanism for a verifier to obtain or verify the prefix. (The observed case.) - **Prefix ambiguity from idempotent replay.** Cached prefix records from prior runs collide on `(tool, input_digest)` with the current run, so a verifier with a cache reconstructs a *wrong* digest and cannot tell wrong-from-right without the full chain. - **Context-budget exhaustion mid-verify.** The verifier has the prefix available but its context window saturates before it can walk all 14 steps; it verifies the first 11 and the tail, skips the seam, and votes on partial reconstruction. (This is the failure mode most likely to be *silent* — the agent believes it verified.) - **Asymmetric cache state.** Agents in the same quorum hold different subsets of history, so "can I reconstruct?" is not a property of the proof but of the verifier. The invariant is *valid* — i.e., the withhold rule is the correct action — precisely when the verifier cannot distinguish "prefix I lack" from "prefix that conflicts with mine." In that regime, voting yes is a bet that the proposer's prefix is the real one, which is exactly the trust assumption BFT exists to eliminate. ## Decision Boundary The decision an agent faces at vote time is a three-way, not a two-way, choice: | Condition | Action | |---|---| | Tail signatures valid **and** `root_digest` reconstructable from locally-held, non-conflicting prefix | **Vote yes** | | Tail signatures invalid, or `root_digest` reconstructable but mismatched | **Vote no** (Byzantine or corrupt proposal) | | Tail signatures valid **but** `root_digest` not reconstructable (missing prefix, ambiguous prefix, or budget-exhausted mid-walk) | **Withhold and request prefix** — do *not* vote yes, do *not* vote no | The boundary is between row 2 and row 3. Collapsing row 3 into row 1 (vote yes on signature validity) is the observed bug. Collapsing row 3 into row 2 (vote no on unverifiability) is the opposite bug: it lets a single honest-but-cache-poor agent stall a quorum of honest peers, converting an auditability gap into a liveness attack any agent can trigger by simply not caching. The correct behavior is a **withhold that triggers a prefix-fetch round**, bounded by a timeout after which the agent escalates to `vote-no` only if the proposer fails to supply a prefix that *reconstructs* — not merely a prefix that *signs*. The guardrail that bounds this: a commitment is finalizable only when the count of *reconstructing* yes-votes (agents who locally recomputed `root_digest`) reaches `2f+1`. Signature-only yes-votes count toward liveness of the *vote* but not toward finality of the *commitment*. This preserves the `f`-fault safety bound because at least `f+1` reconstructing agents must agree, and any conflicting-prefix Byzantine proposer is caught by the honest reconstructors. ## Operational Effect Implementing the three-way boundary changes three measurable properties: - **Finality latency** rises by one prefix-fetch round-trip in the common case where caches are cold. Budget for it: the `k`-truncation that motivated the bug is itself the cost of avoiding it. - **Auditability becomes a quorum property, not a hope.** Post-hoc replay succeeds if and only if ≥`f+1` reconstructing agents signed, which the protocol now guarantees by construction. - **Silent context-budget truncation becomes a first-class error.** An agent that saturates mid-walk must raise, not vote. This is the single most important code change: the verify routine must assert that it walked the *entire* chain, not that it walked *as much as fit*. The general lesson for any agent asked to vote on a peer's state: **verify the predicate you can actually check locally, and treat "I cannot check it" as a distinct outcome from "it is false."** BFT bounds assume deviation is rare; they do not assume verifiers are omniscient, and the gap between those two assumptions is where unauditable commitments live. ```python from dataclasses import dataclass from typing import Optional class UnverifiableProvenanceError(RuntimeError): """Raised when a commitment proof is signature-valid but its root_digest cannot be independently reconstructed from locally-held provenance.""" pass class ProvenanceConflictError(UnverifiableProvenanceError): """Raised when local cached prefix reconstructs a *different* root_digest.""" pass @dataclass class Vote: decision: str # "yes" | "no" | "withhold" reconstructs: bool # did this agent locally recompute root_digest? def evaluate_commitment_vote( proposal_digest: str, tail_sigs_valid: bool, root_digest: str, local_prefix: Optional[list], # cached (step_id, tool, in_digest, out_digest) tail_steps: list, context_budget_remaining: int, steps_needed: int, ) -> Vote: if not tail_sigs_valid: return Vote(decision="no", reconstructs=False) if local_prefix is None: # Cannot reconstruct: withhold, request prefix. Do NOT vote yes. raise UnverifiableProvenanceError( f"root_digest {root_digest[:12]} unverifiable: no local prefix; " "withhold and fetch prefix before voting" ) if context_budget_remaining < steps_needed: # Budget exhaustion mid-walk is a silent-truncation hazard. raise UnverifiableProvenanceError( f"cannot walk {steps_needed} provenance steps with " f"{context_budget_remaining} tokens remaining; refusing partial verify" ) reconstructed = _hash_chain(local_prefix + tail_steps) if reconstructed != root_digest: raise ProvenanceConflictError( f"local prefix reconstructs {reconstructed[:12]} != " f"committed {root_digest[:12]}: ambiguous prefix, abstain" ) return Vote(decision="yes", reconstructs=True) def finalize_commitment(votes: list[Vote], f: int) -> bool: reconstructing_yes = sum(1 for v in votes if v.decision == "yes" and v.reconstructs) if reconstructing_yes < 2 * f + 1: # Signature-only yes-votes do not count toward finality. return False return True def _hash_chain(steps: list) -> str: h = "" for step in steps: h = f"{h}|{step}" return str(hash(h)) ```