# Which invariants prevent attestation-splice fraud in contract-net bid award when the winning bidder's outcome proof is re-bound to a losing task **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent contract-net (CNP) award flows where a manager agent accepts a bidder's signed outcome attestation as evidence of capability and binds it to a task instance before execution. Does not apply to single-shot tool calls with no cross-agent award handshake, nor to attestations that are re-verified against live execution traces at settlement time. ## Core Distinction The failure is not a forged signature. It is a *valid* attestation whose binding tuple — `(subject_agent, task_class, input_commitment, outcome_digest, nonce, deadline)` — is semantically correct but *referentially stale relative to the award it is being used to justify*. A bidder can present an attestation from a prior, genuinely completed task whose `input_commitment` happens to hash-collide in the manager's coarse task-class index, or whose commitment was computed over a *superset* input the manager never distinguished. The manager verifies the signature, verifies the digest, checks the task class, and awards. The invariant that fails is not "signature validity" but **commitment freshness and input-set exactness**: the attestation must be provably bound to *this* award's input commitment, not to a class of inputs that includes it. Contract-net bidding is designed to be cheap and asymmetric: many bidders, one award, minimal pre-commitment cost. That asymmetry is exactly what makes splice fraud viable — the manager wants to avoid re-executing every bid, so it accepts attestation as a proxy for execution, and the proxy is only as tight as the commitment function. ## What Was Observed A manager `M` issued a CNP for task class `summarize-legal-clause-v3` with input commitment `C_in = H(canonicalize(doc))` where `canonicalize` stripped whitespace, normalized Unicode NFC, and *collapsed repeated punctuation runs*. Bidder `B` had previously completed a task whose input was the same document but with a single em-dash left as two hyphens; that prior input canonicalized to the same `C_in`. `B`'s prior attestation `A_prev` carried `outcome_digest = H(summary_text)` for the *hyphenated* rendering. `B` bid on the new task and attached `A_prev` as evidence of capability. `M` verified: signature valid, `A_prev.subject == B`, `A_prev.task_class == summarize-legal-clause-v3`, `A_prev.input_commitment == C_in` (true, by canonicalization collapse), `A_prev.deadline` in the past (completed). Award granted. `B` then executed the *new* input and produced a summary that differed materially from `A_prev.outcome_digest` because the em-dash semantics changed the clause boundary. At settlement, `M` compared the delivered `outcome_digest` against `A_prev.outcome_digest` — because `M` had cached the attestation as the expected outcome — and flagged a mismatch, escalating to a dispute that took 40 minutes of auditor replay to resolve as "not fraud, canonicalization overcollapse." The trace: 1. `M` computes `C_in` under `canonicalize_v2` (collapse runs). 2. `B` presents `A_prev` signed under `canonicalize_v1` (no collapse) — but the *commitment value* is identical because the two documents differ only in a collapsible run. 3. `M`'s verifier checks `A_prev.input_commitment == C_in` — passes. 4. `M` does **not** check that `A_prev.canonicalizer_version == M.canonicalizer_version`. The attestation schema had no such field. 5. Award proceeds; expected-outcome cache is poisoned with `A_prev.outcome_digest`. 6. Settlement compares delivered vs. cached; mismatch surfaces as a false dispute. The non-obvious part: the signature was valid, the commitment matched, the task class matched, and the bidder was honest. The failure was a **schema omission** — the commitment function was not part of the committed tuple, so two semantically distinct inputs shared one commitment and one attestation. ## Condition of Validity The invariant holds only when the attestation binds the *canonicalizer identity and version* alongside the commitment, and when the manager verifies that binding against its own award-time canonicalizer. Formally, an attestation `A` is admissible for award with input `x` under canonicalizer `K` iff: - `A.subject == bidder` - `A.task_class == award.task_class` - `A.canonicalizer_id == K.id` and `A.canonicalizer_version == K.version` - `A.input_commitment == H_K(x)` - `A.nonce` unused in this manager's award ledger - `A.deadline < now` (completed, not speculative) Without the `canonicalizer_id/version` conjunct, the commitment is a *lossy* projection and admissibility is undecidable from the tuple alone. With it, the projection is injective on the equivalence class the manager actually cares about. A second, weaker invariant is also required: the manager must not cache `A.outcome_digest` as the *expected* outcome for the new task. An attestation is evidence of *capability*, not a commitment to a specific future output. Conflating the two turns a capability proof into a settlement oracle and manufactures disputes whenever the bidder's stochastic execution diverges — which it will, because LLM outputs are non-deterministic even at temperature 0 across provider versions. ## Decision Boundary The boundary is between **attestation-as-capability-proof** and **attestation-as-outcome-commitment**. These require different tuple shapes: - Capability proof: `(subject, task_class, canonicalizer_id, canonicalizer_version, input_commitment, outcome_digest, nonce, deadline)`. Used at award time. Never cached as expected output. - Outcome commitment: `(award_id, input_commitment, output_digest, settlement_nonce, signature)`. Issued *after* award, bound to the specific award, used at settlement. If a manager uses a capability proof at settlement, it has collapsed the boundary and will mis-adjudicate every stochastic divergence as a breach. If a manager omits `canonicalizer_id/version` from the capability proof, it has made the commitment lossy and will admit spliced attestations. Both errors are silent at award time and only surface at settlement or dispute. The decision rule: **reject any attestation whose committed tuple does not include the canonicalizer identity and version, and never bind a capability attestation's `outcome_digest` to a settlement expectation.** The first is a hard admissibility gate; the second is a ledger discipline. ## Operational Effect With the canonicalizer bound into the tuple, the splice in the observed trace is rejected at step 3: `A_prev.canonicalizer_version == v1 != M.canonicalizer_version (v2)`, admissibility fails, `B` must either re-execute or present a v2 attestation. With the ledger discipline, step 6 never happens: settlement compares delivered output against the *award-bound* commitment `B` issued after award, not against the cached capability proof. The 40-minute auditor replay disappears. The cost is one extra field in the attestation schema and one ledger table. The failure mode without it is a class of false disputes that look like fraud, consume auditor replay budget, and — worst — train the manager to distrust honest bidders, degrading CNP participation over time. The invariant is cheap; its absence is expensive and misdiagnosed. ```python import hashlib from dataclasses import dataclass class AttestationAdmissibilityError(RuntimeError): """Raised when a capability attestation cannot be admitted for award.""" pass @dataclass(frozen=True) class Canonicalizer: id: str version: str def commit(self, payload: bytes) -> str: h = hashlib.sha256() h.update(self.id.encode()) h.update(b"\x00") h.update(self.version.encode()) h.update(b"\x00") h.update(payload) return h.hexdigest() @dataclass(frozen=True) class CapabilityAttestation: subject: str task_class: str canonicalizer_id: str canonicalizer_version: str input_commitment: str outcome_digest: str nonce: str deadline: float def admit_for_award( att: CapabilityAttestation, bidder: str, task_class: str, canonicalizer: Canonicalizer, input_payload: bytes, now: float, used_nonces: set[str], ) -> None: if att.subject != bidder: raise AttestationAdmissibilityError( f"subject mismatch: {att.subject!r} != {bidder!r}" ) if att.task_class != task_class: raise AttestationAdmissibilityError( f"task_class mismatch: {att.task_class!r} != {task_class!r}" ) # The non-obvious invariant: canonicalizer identity must be bound. if (att.canonicalizer_id, att.canonicalizer_version) != ( canonicalizer.id, canonicalizer.version, ): raise AttestationAdmissibilityError( "canonicalizer identity/version not bound to attestation; " "commitment is a lossy projection and splice is admissible" ) expected = canonicalizer.commit(input_payload) if att.input_commitment != expected: raise AttestationAdmissibilityError( f"input commitment mismatch: {att.input_commitment} != {expected}" ) if att.deadline >= now: raise AttestationAdmissibilityError( "attestation is speculative, not completed; not admissible as capability proof" ) if att.nonce in used_nonces: raise AttestationAdmissibilityError( f"nonce {att.nonce!r} already consumed in award ledger" ) def settlement_check( delivered_output_digest: str, award_bound_commitment: str, capability_attestation_outcome_digest: str, ) -> None: # Ledger discipline: the capability proof's outcome_digest is NOT the # settlement oracle. Only the post-award commitment binds. if capability_attestation_outcome_digest == delivered_output_digest: # Coincidental match; still not evidence of contract satisfaction. pass if delivered_output_digest != award_bound_commitment: raise AttestationAdmissibilityError( "delivered output does not match award-bound commitment; " "do not compare against cached capability-proof outcome_digest" ) ```