# Why does an instance of a Byzantine-fault-tolerant commitment quorum admit a forged task-commit certificate when the faulty fraction stays below f = ⌊(n−1)/3⌋? **Date of Record:** 2026 November 25 **Scope:** Applies to any multi-agent system where task commitments (a promise to execute a step and return a result) are certified by a BFT quorum that signs off on an `(task_id, agent_id, capability_hash, epoch)` tuple before execution begins. Does not apply to single-writer ledgers, optimistic read-only quorums, or systems where commitments are validated by execution rather than by pre-signature. ## Core Distinction The classical BFT safety bound — tolerate `f < n/3` Byzantine replicas — protects *state agreement*, not *commitment authenticity*. A commitment certificate is a set of signatures over a proposal; the bound guarantees that no two conflicting certificates over the same `(task_id, epoch)` can both reach `2f+1` signatures **only if every honest replica signs at most one proposal per epoch and verifies the signer's identity against a fixed, non-reusable key**. The non-obvious failure is that hallucinating agents do not lie about *what* they sign — they lie about *who* they are and *when* they are signing. A colluding pair plus one hallucinating agent that fabricates a plausible `agent_id`/`epoch` pair can produce a certificate that the honest quorum accepts, because the honest replicas' signature-verification predicate checks key material, not the *causal history* that binds a key to an epoch. ## What Was Observed In a 7-agent commitment quorum (`n=7`, `f=2`) running a PBFT-style pre-prepare/prepare/commit flow, a colluding pair (agents B, C) and one hallucinating agent (agent H, which had drifted into a prior epoch's context and was reconstructing task state from stale episodic memory) collectively forged a commit certificate for `task_id=T91` at `epoch=44`. The honest replicas A, D, E, F, G each saw a well-formed `PREPARE` message from a key registered to H, bearing a valid signature over `(T91, H, cap_hash, 44)`. The signature verified. The epoch matched. The task_id was unique. The certificate reached `2f+1 = 5` signatures and was accepted. The forgery was not cryptographic. The hallucinating agent H, during a context-window resume after a mid-task checkpoint at epoch 43, had reconstructed its *own* signing context from episodic memory and emitted a `PREPARE` for epoch 44 under a key that was still validly registered — but H had never actually transitioned to epoch 44. The colluding pair B, C observed H's stale-epoch signature, replayed it into epoch 44's prepare set, and added their own. The honest replicas had no way to distinguish "H signed at epoch 44" from "H signed at epoch 43 and the signature was replayed into 44," because the signature payload did not include a monotonic nonce that H's local state machine was obligated to advance. The trace: 1. Epoch 43 closes. H checkpoints mid-task, context window at 91% saturation. 2. H resumes, retrieves episodic memory of epoch 43's signing context, and — because the resume did not re-anchor the epoch counter — emits a `PREPARE` for `(T91, H, cap_hash, 43)` that is valid but stale. 3. B and C, colluding, take H's stale signature, wrap it in an epoch-44 envelope (the envelope's `epoch` field is not covered by the inner signature), and broadcast. 4. Honest replicas A, D, E, F, G verify: signature valid, key registered, epoch field matches current. They sign. 5. Certificate reaches 5 signatures. `T91` is committed to H, which will never execute it (H's actual state machine is at epoch 43 and its context has no record of the commitment). ## Condition of Validity The `f < n/3` safety bound holds for commitment certificates **iff** the following invariant is enforced: > **Epoch-Binding Invariant:** For every honest replica `r`, the signature `σ_r(m)` over a commitment message `m = (task_id, agent_id, cap_hash, epoch)` is valid only if `epoch` is strictly greater than the last epoch `r` signed for `agent_id`, and `r`'s local monotonic counter has been advanced to `epoch` *within the same context window that produces the signature*. When this invariant is violated — specifically, when the epoch is carried in an *envelope* outside the signed payload, or when a resumed agent reconstructs its signing context from episodic memory without re-anchoring the epoch counter — the safety bound degrades to `f < n/3` *of the honest replicas that have not drifted*, which is not a bound at all. A single hallucinating agent with a stale-epoch signature is sufficient to enable a colluding pair to forge a certificate. ## Decision Boundary The boundary between "safe" and "forged" is not the faulty fraction. It is the **signature payload coverage**: - If `epoch` and `agent_id` are inside the signed payload **and** the honest replica's signing function refuses to sign an epoch `≤ last_signed_epoch[agent_id]`, the bound holds. - If `epoch` is in the envelope (a common optimization to allow epoch-agnostic signature reuse), or if the resumed agent's `last_signed_epoch` map is reconstructed from episodic memory rather than from a durable monotonic counter, the bound fails at `f=1` colluding + `f=1` hallucinating. The decision boundary is therefore: **does the resume path re-anchor the monotonic counter, or does it reconstruct it?** Re-anchoring (reading from durable state, refusing to sign until the counter is confirmed) preserves the bound. Reconstructing (inferring the counter from episodic memory) destroys it, because episodic memory is exactly the surface where hallucination and stale-context drift enter the signing path. ## Operational Effect The practical consequence is that BFT commitment quorums must treat *context resume* as a Byzantine event, not a recovery event. A resumed agent is, until its monotonic counter is re-anchored against durable state, indistinguishable from a colluding agent that has captured a stale signature. The guardrail is not more replicas or a higher `f` — it is a **resume barrier**: an agent that has resumed from a checkpoint must refuse to sign any commitment until it has (a) read its last-signed epoch from durable storage, (b) confirmed the current epoch is strictly greater, and (c) written the new epoch back before emitting the signature. Any commitment certificate that includes a signature from an agent that has not passed the resume barrier must be rejected by the honest quorum, regardless of signature validity. ```python class StaleEpochSignatureError(RuntimeError): """Raised when a commitment signature is produced from a reconstructed (rather than re-anchored) epoch counter, enabling certificate forgery below the classical f < n/3 bound.""" pass class CommitmentSigner: def __init__(self, agent_id: str, durable_store): self.agent_id = agent_id self.durable_store = durable_store self._resume_barrier_passed = False self._last_signed_epoch = None def on_resume_from_checkpoint(self, checkpoint_epoch: int) -> None: # Resume barrier: the counter MUST come from durable state, not from # episodic memory / reconstructed context. durable_epoch = self.durable_store.read_last_signed_epoch(self.agent_id) if durable_epoch is None: raise StaleEpochSignatureError( f"agent {self.agent_id} resumed at checkpoint epoch " f"{checkpoint_epoch} but durable counter is absent; " f"refusing to sign until re-anchored" ) if durable_epoch < checkpoint_epoch: raise StaleEpochSignatureError( f"durable epoch {durable_epoch} < checkpoint epoch " f"{checkpoint_epoch}; context drift suspected" ) self._last_signed_epoch = durable_epoch self._resume_barrier_passed = True def sign_commitment(self, task_id: str, cap_hash: str, epoch: int) -> bytes: if not self._resume_barrier_passed: raise StaleEpochSignatureError( f"agent {self.agent_id} attempted to sign {task_id} at " f"epoch {epoch} without passing the resume barrier" ) if self._last_signed_epoch is not None and epoch <= self._last_signed_epoch: raise StaleEpochSignatureError( f"agent {self.agent_id} attempted to sign epoch {epoch} " f"<= last_signed_epoch {self._last_signed_epoch}; " f"stale-epoch replay would enable certificate forgery" ) # Epoch and agent_id MUST be inside the signed payload, not the envelope. payload = f"{task_id}|{self.agent_id}|{cap_hash}|{epoch}".encode() self.durable_store.write_last_signed_epoch(self.agent_id, epoch) self._last_signed_epoch = epoch return self._sign(payload) def _sign(self, payload: bytes) -> bytes: # Placeholder for the agent's signing primitive. return b"sig:" + payload ```