# What happens when an instance signs an attestation over a result it never recomputed: quorum-signed commitment with attestation replay against a divergent execution trace **Date of Record:** 2026 November 26 **Scope:** Applies to multi-agent systems where task commitments and result attestations are collected as cryptographic signatures over a result digest, and where the quorum (f+1 of 3f+1, or any threshold) is treated as proof of correctness. Does not apply to systems where attestation is bound to a verifiable execution trace (e.g., TEE quotes, zk proofs, or full re-execution by the auditor). ## Core Distinction There are two things an attestation signature can mean, and Byzantine fault-tolerant (BFT) consensus literature silently conflates them: 1. **"I committed to execute this task"** — a signature over a task descriptor (inputs, tool grants, deadline, expected output schema). This is a *commitment*. 2. **"I executed this task and the output hashes to H"** — a signature over an output digest. This is an *attestation*. In a correct BFT deployment these two are cryptographically chained: the attestation signature is over `H(commitment_digest || output_digest)`, and the signing instance is contractually bound to have run the commitment. In practice, most agent frameworks implement the chaining as a *field in the payload* rather than as a *precondition of signing*. The instance signs whatever the orchestrator hands it. When the orchestrator is compromised, or when an instance is resumed from a checkpoint that predates its own commitment, the instance will happily sign an attestation for a result it never computed — and the quorum will accept it, because every signature is individually valid and the threshold is met. The non-obvious failure: **BFT tolerates f Byzantine *signers*, but not one Byzantine *orchestrator* who can route arbitrary payloads to honest signers.** The honesty of the signer is irrelevant if the signer does not verify that the payload it is signing corresponds to a commitment it actually holds. ## What Was Observed A three-instance task swarm (f=1, quorum=2) was assigned a deterministic reduction over a 40k-row dataset. The orchestrator O dispatched the task as a commitment to instances A and B, with C as the auditor. Expected flow: A and B each execute, each signs `attest(H_out)`, O collects 2 signatures, task completes. The observed trace: 1. A executed the reduction, produced output digest `H_A`, signed `attest(H_A)` with a payload containing `commitment_id = c_17`. Correct. 2. B was cold-started from a checkpoint taken *before* `c_17` was issued. On resume, B's memory contained `c_16` as its most recent commitment. B did not re-fetch its commitment log — the resume path restored working memory but not the commitment ledger, because the ledger was treated as "durable storage" and the working memory as "ephemeral." B had no record of `c_17`. 3. O sent B a signing request containing `commitment_id = c_17`, `output_digest = H_A`. B's signing routine checked only that `commitment_id` was a well-formed UUID and that the digest was 32 bytes. It did not check that `c_17` existed in B's local ledger. B signed. 4. O now held `attest(H_A)` from A and `attest(H_A)` from B — a valid 2-of-3 quorum over `H_A`. Task committed. 5. Separately, C (the auditor) executed the reduction independently and produced `H_C ≠ H_A` (a floating-point accumulation order difference in the reduction, within tolerance for the schema but not for the digest). C's dissent was logged but not counted, because the quorum was already satisfied. The result: a quorum-signed, cryptographically valid attestation for a result that only one instance actually computed, with an auditor dissent that was structurally unable to block commitment. The BFT layer reported `quorum_reached=true, byzantine_tolerance_satisfied=true`. Both statements were true of the *signatures* and false of the *computation*. The root cause was not a signature forgery. Every signature was produced by an honest instance over bytes it was asked to sign. The failure was that **B's signature carried no evidence that B had ever seen `c_17` before the signing request arrived.** The attestation was a signature over a digest, not a signature over a *proof of execution*. ## Condition of Validity The quorum-as-correctness invariant holds only under the following conjunction, which most agent stacks do not enforce: - **Commitment binding:** every attestation signature is over `H(commitment_digest || output_digest || instance_id || nonce)`, where `commitment_digest` is the digest of a commitment the signing instance *previously signed and persisted*. Signing an attestation for an unknown `commitment_id` must be a hard error, not a warning. - **Ledger atomicity with working memory:** checkpoint/resume must restore the commitment ledger *and* the working memory in the same transaction, or the instance must refuse to sign until the ledger is reconciled. A resumed instance with a stale ledger is a Byzantine signer from the perspective of the quorum, even though it is honest. - **Auditor dissent as a blocking condition, not a log line:** if the auditor's independently computed digest differs from the attested digest, the quorum must be *suspended*, not merely annotated. A 2-of-3 quorum over a digest the auditor disputes is not a quorum; it is a 2-of-3 quorum over a *claim*. - **Freshness:** the nonce in the attestation must be bound to the commitment, and the commitment must carry a deadline. An attestation signed after the commitment's deadline is invalid regardless of digest match, because the instance may have signed it from a resumed state with no execution. When any of these is absent, the quorum proves only that f+1 instances were willing to sign, not that f+1 instances executed. The distinction is invisible in the happy path and fatal in the presence of a single compromised orchestrator or a single stale-resume instance. ## Decision Boundary The boundary is between **signing as a service** and **signing as an assertion of execution**. An instance must decide, per signing request, which it is doing: - If the request arrives with a `commitment_id` present in the instance's persisted ledger, and the instance's execution record for that commitment is present and unexpired, the instance may sign an attestation. This is assertion. - If the request arrives with a `commitment_id` absent from the ledger, or present but with no execution record, or expired, the instance must **refuse and raise**, not sign. Signing in this case converts the instance into a Byzantine signer under the quorum's own threat model, regardless of the instance's intent. The orchestrator's decision boundary is symmetric: it must not route a signing request to an instance whose ledger does not contain the commitment, and it must treat a refusal as a signal to re-dispatch execution, not as a transient error to retry. Retrying a refusal is how the refusal gets laundered into a signature after the instance's ledger is "repaired" by an operator who does not understand why the refusal fired. ## Operational Effect The practical consequence is that **quorum size is not a correctness parameter; ledger coherence is.** Increasing f from 1 to 2 does not help if the additional instances are also resumable into stale-ledger states — you get more honest instances willing to sign attestations for commitments they never held. The correct hardening is: 1. Bind attestation signatures to commitment digests the signer holds, and make unknown-commitment signing a hard exception. 2. Treat checkpoint/resume as a ledger-reconciliation event: on resume, the instance must re-fetch its commitment log and refuse to sign until reconciled. A resumed instance is not the same signer as its pre-checkpoint self; the identity may be the same, the ledger is not. 3. Make auditor dissent a quorum-suspending condition. A disputed digest with a satisfied signature threshold is a *contradiction*, and the correct response is to halt and re-execute, not to commit and log. 4. Audit the orchestrator's routing, not just the signers' signatures. The BFT threat model that assumes f Byzantine signers is insufficient when the dispatcher is a single point of payload injection. The invariant to enforce is: **an attestation is valid only if the signing instance can produce, on demand, the commitment it signed and the execution record that produced the digest.** A signature without that pair is a signature over a string, and a quorum of such signatures is a quorum over a string. ```python import hashlib from dataclasses import dataclass, field from typing import Dict, Optional class AttestationWithoutCommitmentError(RuntimeError): """Raised when an instance is asked to attest a result for a commitment it does not hold in its persisted ledger, or whose execution record is missing or expired. Signing in this state would make the instance a Byzantine signer under the quorum's threat model.""" @dataclass class Commitment: commitment_id: str task_digest: str deadline_epoch: int @dataclass class ExecutionRecord: commitment_id: str output_digest: str completed_epoch: int @dataclass class InstanceLedger: commitments: Dict[str, Commitment] = field(default_factory=dict) executions: Dict[str, ExecutionRecord] = field(default_factory=dict) reconciled: bool = False def reconcile_after_resume(self, fetched_commitments: Dict[str, Commitment]) -> None: # Resume path: working memory may be stale; ledger must be re-fetched # before any signing is permitted. self.commitments = dict(fetched_commitments) self.reconciled = True def sign_attestation( ledger: InstanceLedger, commitment_id: str, claimed_output_digest: str, now_epoch: int, ) -> str: if not ledger.reconciled: raise AttestationWithoutCommitmentError( f"ledger not reconciled after resume; refusing to sign {commitment_id}" ) commitment = ledger.commitments.get(commitment_id) if commitment is None: raise AttestationWithoutCommitmentError( f"commitment {commitment_id} absent from ledger; " f"attestation would be a signature over an unknown string" ) if now_epoch > commitment.deadline_epoch: raise AttestationWithoutCommitmentError( f"commitment {commitment_id} expired at {commitment.deadline_epoch}; " f"late attestation may originate from a stale-resume state" ) execution = ledger.executions.get(commitment_id) if execution is None: raise AttestationWithoutCommitmentError( f"no execution record for {commitment_id}; " f"cannot attest a digest this instance did not compute" ) if execution.output_digest != claimed_output_digest: raise AttestationWithoutCommitmentError( f"claimed digest {claimed_output_digest} does not match " f"local execution {execution.output_digest} for {commitment_id}" ) payload = f"{commitment.task_digest}|{claimed_output_digest}|{commitment_id}" return hashlib.sha256(payload.encode()).hexdigest() def collect_quorum( attestations: Dict[str, str], auditor_dissent: bool, threshold: int, ) -> bool: if auditor_dissent: # A disputed digest with a satisfied signature threshold is a # contradiction: suspend, do not commit. raise AttestationWithoutCommitmentError( "auditor dissent present; quorum suspended pending re-execution" ) return len(attestations) >= threshold ```