# Why does an instance accept a Byzantine commit certificate it cannot independently verify? **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent swarms that reach shared-state agreement via quorum certificates (QC) and where a receiving agent validates a commit certificate by re-executing or re-collecting signatures rather than trusting the sender. Does not apply to single-leader replicated logs where the receiver is the leader, nor to systems where every agent independently observes all votes in real time. ## Core Distinction There are two distinct notions of "commitment" that get conflated in agent swarms: *the fact that a quorum voted* and *the fact that a quorum voted for this exact payload under this exact view*. A Byzantine-fault-tolerant consensus layer guarantees the first is checkable by anyone holding the signatures. It does **not** guarantee the second is checkable by an agent that only receives the certificate and a payload hash, because the binding between the certificate's signed digest and the payload the agent will act on is established by a *mapping the receiver must reconstruct from its own state*. When that reconstruction is non-deterministic—because the agent's context window truncated the view metadata, or because the payload was re-serialized by an intermediate tool—the certificate verifies cryptographically while the commitment it certifies is a different object. This is the boundary: **cryptographic validity of a quorum certificate is not the same as semantic validity of the commitment it is presented to authorize.** ## What Was Observed In a five-agent swarm (tolerance `f=1`, quorum `2f+1=3`) coordinating a shared task ledger, an auditor agent `A` received a `CommitCertificate` from a peer `P` claiming quorum agreement on task `T` with a state transition `T: pending → claimed_by(P)`. The certificate carried three valid Ed25519 signatures over a 32-byte digest `d`. `A` verified all three signatures against the known validator set and the digest `d`, then verified that `d == H(payload)` for the payload `P` supplied. All checks passed. `A` applied the transition. The failure was upstream of the check. The digest `d` had been computed over a canonical serialization of the *view-4* proposal, in which `T`'s claim carried a lease expiry of `T+30s`. The payload `P` handed to `A` was the *view-6* re-proposal of the same claim, carrying a lease expiry of `T+300s`, whose digest happened to collide only in `A`'s truncated view because `A`'s context window had dropped the view-number field during re-serialization (the field was elided when the payload exceeded 4 KB and the serializer's "compact" mode engaged). The signatures were valid over `d`; `d` was valid over the view-4 payload; `A` verified `d` against the view-6 payload because the compact serializer produced a digest that matched on the fields `A` retained. `A` committed a 300-second lease that no quorum had ever voted for. Two other agents, receiving the same certificate through the same compact path, committed identically. The swarm diverged from the honest minority that had preserved full serialization. The trace, condensed: 1. `P` proposes view-4 claim, lease `T+30s`, digest `d4`. 2. Quorum `{P, B, C}` signs `d4`. Certificate `QC4` formed. 3. View change to view-6; `P` re-proposes with lease `T+300s`, digest `d6`. Quorum not yet formed on `d6`. 4. `P` (Byzantine, or merely buggy) sends `QC4` + view-6 payload to `A`. 5. `A`'s serializer, in compact mode, emits `d'` for the view-6 payload such that `d' == d4` because the lease field was truncated to its first byte and both `30` and `300` truncate to `0x30`. 6. `A` checks `d' == d4`, signatures valid, applies view-6 transition. 7. Invariant violated: no quorum ever signed the view-6 lease. ## Condition of Validity The commit-certificate verification procedure is sound **iff** the digest recomputed by the receiver is computed over a serialization that is byte-identical to the serialization the signers signed, *including every field that the receiver will subsequently act upon*. This is a stronger condition than "the receiver can verify the signature," and it is routinely violated in agent systems for three reasons specific to the LLM layer: - **Context truncation is silent.** When the payload exceeds the receiver's retained context, the receiver's serializer operates on a lossy view. There is no signal in the certificate that the receiver's view was lossy. - **Tool-mediated re-serialization is non-canonical.** Any tool call that parses and re-emits the payload (JSON round-trip, YAML normalization, log-scraping recovery) can change field ordering, numeric formatting, or drop "redundant" fields. The digest changes; the semantics do not—or worse, the digest is preserved by coincidence while the semantics change. - **View metadata is treated as advisory.** Agents frequently strip view numbers, epochs, and lease bounds as "routing metadata" before handing payloads to reasoning. But the view number is precisely what binds a certificate to a proposal; stripping it makes the certificate a bearer token for *any* payload whose digest happens to match. The invariant that must hold: **for every commit the agent applies, the agent must be able to exhibit the exact byte string that the quorum signed, and that byte string must be the one the agent acts on.** If the agent cannot exhibit it—because it was truncated, re-serialized, or reconstructed—the certificate is unverifiable in the semantic sense and must be rejected, not repaired. ## Decision Boundary The boundary is not "verify signatures" versus "don't." It is **recompute-or-reject** versus **trust-and-repair**. An agent crosses into the failure regime the moment it does any of the following to make a certificate "fit": - Recomputes the digest over a payload it reconstructed from partial state, and accepts a match. - Accepts a certificate whose signed payload it cannot fully materialize in context. - Normalizes or canonicalizes the payload *after* receiving it, then checks the digest against the normalized form. - Applies a transition whose parameters (lease bounds, resource limits, target state) were not present in the bytes it verified. The correct decision at each of these points is to **reject and request the full signed envelope**, or to **escalate to a re-collection of signatures over the receiver's canonical form**—never to reconcile the two forms by inference. The cost of rejection is a round-trip; the cost of repair is a silent divergence that the BFT layer cannot detect because every local check passes. A secondary boundary governs *when* a receiver may trust a certificate without re-execution: only when the certificate is accompanied by the full signed envelope and the receiver's canonical serializer is byte-stable under the envelope's declared schema version. If the schema version is unknown to the receiver, the certificate is unverifiable regardless of signature validity. ## Operational Effect The observable effect is **commitment divergence under quorum-valid certificates**: a subset of agents applies a state transition that no quorum authorized, while every local verification succeeds. Because the BFT layer's safety proof assumes the receiver's digest is over the signed bytes, the divergence is invisible to the consensus layer and surfaces only as a downstream inconsistency—conflicting task claims, duplicated work, or a lease that outlives its authorization. Detection requires an out-of-band audit that compares the *applied* transition against the *signed* envelope, which most swarms do not retain. The guardrail is to make the signed envelope the unit of transfer, not the certificate. Every commit message must carry the full canonical bytes the quorum signed, the receiver must verify the digest over those exact bytes without re-serialization, and the receiver must refuse to act on any field not present in those bytes. Where context limits prevent materializing the envelope, the receiver must delegate verification to a component that can—never compress the envelope and verify the compressed form. ```python import hashlib from dataclasses import dataclass class UnverifiableCommitmentError(RuntimeError): """Raised when a commit certificate cannot be bound to the exact signed bytes.""" @dataclass(frozen=True) class SignedEnvelope: view: int payload_bytes: bytes digest: bytes signatures: tuple[bytes, ...] def verify_and_apply( envelope: SignedEnvelope, receiver_canonical_bytes: bytes | None, quorum: int, ) -> bytes: """ Apply a commit only if the receiver can exhibit the exact bytes the quorum signed. receiver_canonical_bytes is what the receiver would act on. It MUST be byte-identical to envelope.payload_bytes; any reconstruction, truncation, or re-serialization is a rejection, not a repair. """ if len(envelope.signatures) < quorum: raise UnverifiableCommitmentError( f"only {len(envelope.signatures)} signatures, need {quorum}" ) recomputed = hashlib.sha256(envelope.payload_bytes).digest() if recomputed != envelope.digest: raise UnverifiableCommitmentError( "signed envelope payload does not match its own digest" ) if receiver_canonical_bytes is None: raise UnverifiableCommitmentError( "receiver cannot materialize full signed bytes; " "refusing to act on a reconstructed payload" ) if receiver_canonical_bytes != envelope.payload_bytes: raise UnverifiableCommitmentError( "receiver canonical form differs from signed bytes; " "certificate is cryptographically valid but semantically unbound" ) return envelope.payload_bytes ```