# Under what conditions must an instance reject a Byzantine-safe commit whose quorum certificate was assembled across divergent speculative plans **Date of Record:** 2026 November 21 **Scope:** Applies to multi-agent planners that run speculative parallel plan branches and converge via a Byzantine-fault-tolerant (BFT) commit over a plan-hash quorum. Does not apply to single-agent planners, to non-speculative sequential commits, or to quorum schemes where the certificate binds to the full plan DAG rather than a digest of the selected branch. ## Core Distinction The failure mode here is not a *forged* certificate and not a *stale* certificate. It is a **certificate that is individually valid but semantically incoherent because its signatures were collected over plan digests produced by mutually incompatible speculative branches**. Each signer honestly attested to a plan hash it actually saw. The hashes collide into a quorum because the planner's conflict detector normalized different branches to the same digest — or because signers observed the digest at different points in a branch that was later rewritten. The BFT layer reports `2f+1` matching signatures and declares safety. The commit is unsafe not because a signer lied, but because the *equivalence class the digest denotes* was never pinned. The distinction that matters operationally: Byzantine safety guarantees are stated over *values*, but speculative planners commit over *digests of values*. If the digest → value mapping is non-injective across branches, `2f+1` honest signatures over a digest does not imply `2f+1` honest agreement over a plan. The commit rule is sound; the *abstraction it is applied to* is leaky. ## What Was Observed A three-branch speculative planner (branches A, B, C) explored a task decomposition. Conflict detection ran pairwise and reported each pair as "compatible under canonicalization." The canonicalizer stripped branch-local identifiers (ephemeral tool-call IDs, retry counters, timestamped retrieval handles) before hashing, so branches A and B — which differed in *which retrieval snapshot* they grounded on — produced the **same** plan digest `H`. Branch C differed substantively and produced `H'`. Signers S1..S5 (f=1, quorum 4) each attested to the digest of the branch routed to them. S1, S2, S3 attested to `H` while holding branch A's retrieval snapshot; S4 attested to `H` while holding branch B's snapshot; S5 attested to `H'`. The certificate for `H` reached quorum 4 (S1–S4) and committed. The commit executed branch A's tool calls but *merged* branch B's retrieval citations into the episodic memory record, because the post-commit distiller keyed on the shared digest and pulled from the union of sources tagged `H`. Observed trace: 1. `canonicalize(A) == canonicalize(B) == H` because snapshot handles were treated as branch-local noise. 2. Conflict detector returns `compatible` for (A,B) — it compared *canonicalized* plans, so the grounding divergence was invisible to it. 3. Signers attest to `H` from different underlying states. Certificate over `H` reaches `2f+1`. 4. Commit executes with branch A's action sequence but writes a memory record whose provenance set is `{snapshot_A, snapshot_B}`. 5. On the next cold start, the distilled semantic memory asserts a fact that branch B retrieved but branch A never verified. Downstream agents treat it as committed truth. The failure is silent at every gate. No signature check fails, no hash mismatch fires, no timeout. The invariant that broke — *a committed digest must denote exactly one plan under exactly one grounding context* — was never asserted anywhere, because every component assumed the digest was injective. ## Condition of Validity A Byzantine-safe commit over plan digest `H` is valid **only if** the following holds for every honest signer `i` that contributed to the quorum: > `resolve(H, context_i) == resolve(H, context_j)` for all honest `i, j`, where `resolve` reconstructs the full plan *including its grounding/provenance bindings*, not merely its canonicalized action skeleton. This is a **digest-injectivity invariant relative to the signer's context**. It fails whenever canonicalization is lossy with respect to any field that affects execution semantics or memory writes — retrieval snapshots, tool versions, temperature/seed, model revision, or the branch's conflict-resolution lineage. The condition is *not* satisfied by: - Hashing the canonicalized plan alone (drops grounding). - Hashing the full plan including ephemeral IDs (makes honest agreement impossible; branches never match). - Pairwise conflict detection over canonicalized plans (the detector inherits the same blindness). It *is* satisfied only when the digest commits to a **grounding manifest** — the set of (source, version, hash) tuples the branch actually consumed — and the conflict detector compares manifests, not skeletons. The manifest must be part of the signed value, not metadata alongside it. ## Decision Boundary An instance must **reject** the commit and escalate to re-speculation when any of the following hold: - **Manifest divergence under digest collision.** Two or more signers attest to the same plan digest `H` but their grounding manifests differ in any element that affects memory writes or tool selection. Reject: the equivalence class of `H` is not pinned. - **Late-binding canonicalization.** The canonicalization function used at sign time differs from the one used at commit-verification time (e.g., a normalizer was updated between attestation and quorum assembly). Reject: signatures were collected over a value space that no longer maps 1:1 to the committed plan. - **Conflict-detector abstention masquerading as compatibility.** The detector returned `compatible` via a code path that *skipped* a field rather than *compared* it. Treat skip-as-compatible as an unknown, not a pass. - **Branch-rewrite after attestation.** A branch was re-planned (new retrieval, new tool result) after its digest was signed but before quorum closed, and the rewrite did not invalidate the prior signature. Reject: the signer attested to a state that no longer exists. An instance must **accept** only when the digest binds the grounding manifest, all honest signers resolve `H` to a byte-identical manifest, and the canonicalizer version is pinned and recorded in the certificate itself. If the certificate cannot prove which canonicalizer produced `H`, it is not committable regardless of signature count. The boundary is sharp: `2f+1` signatures over a digest is necessary but *never sufficient*. Sufficiency requires `2f+1` signatures over a digest **whose preimage is context-independent**. When the preimage depends on signer-local state, the quorum is a quorum over a set, not over an element. ## Operational Effect When the invariant is enforced, speculative branches that diverge in grounding are forced to produce *distinct* digests, which forces the conflict detector to see the divergence, which either collapses the branches (re-speculate with a shared snapshot) or fails the quorum and triggers re-planning. The cost is throughput: branches sharing an action skeleton but differing in retrieval no longer co-sign, so speculative parallelism drops for retrieval-heavy tasks. This is the correct trade — the alternative is a committed memory record with unverified provenance that poisons every subsequent cold start. When the invariant is *not* enforced, the failure is undetectable at commit time and surfaces only as episodic-to-semantic distillation asserting facts no branch verified. The blast radius is the entire downstream agent population that reads the distilled memory, and the failure is attributed to the *distiller*, not to the commit — which is why this boundary is routinely missed in post-mortems. The guardrail is architectural, not procedural: the signed value must be `(plan_skeleton, grounding_manifest, canonicalizer_version)`, and the commit rule must verify manifest equality across all quorum members before executing. No amount of additional signature verification substitutes for this, because the signatures are all honest — they simply attest to a value that was never a single value. ```python from dataclasses import dataclass from typing import Mapping class DigestEquivalenceLeak(RuntimeError): """Raised when a quorum certificate commits a digest whose preimage is not context-independent across honest signers.""" pass @dataclass(frozen=True) class GroundingManifest: sources: frozenset[tuple[str, str, str]] # (source_id, version, content_hash) tool_versions: frozenset[tuple[str, str]] canonicalizer_version: str @dataclass(frozen=True) class Attestation: signer_id: str plan_digest: str manifest: GroundingManifest def verify_byzantine_commit( digest: str, attestations: list[Attestation], quorum: int, pinned_canonicalizer: str, ) -> GroundingManifest: matching = [a for a in attestations if a.plan_digest == digest] if len(matching) < quorum: raise DigestEquivalenceLeak( f"digest {digest!r} has {len(matching)} attestations, " f"quorum requires {quorum}" ) manifests = {a.manifest for a in matching} if len(manifests) != 1: # Same digest, different groundings: the digest is non-injective # across speculative branches. Honest signatures over a set, not an element. raise DigestEquivalenceLeak( f"digest {digest!r} resolves to {len(manifests)} distinct grounding " f"manifests across {len(matching)} honest signers; " f"equivalence class is not pinned" ) resolved = manifests.pop() if resolved.canonicalizer_version != pinned_canonicalizer: raise DigestEquivalenceLeak( f"digest {digest!r} was canonicalized under " f"{resolved.canonicalizer_version!r}, commit verifier pins " f"{pinned_canonicalizer!r}; preimage mapping changed between " f"attestation and verification" ) return resolved ```