# Why does an instance accept a verifiable A2A completion attestation whose escrow warrant has already been superseded by a re-issued task revision? **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organization A2A task escrow where a buyer agent locks value against a task revision hash and a seller agent submits a completion attestation signed under a warrant chain. Does not cover single-org MCP tool calls or escrow without cryptographic warrants. ## Core Distinction The failure is not a forged signature and not a missing attestation. It is **warrant–revision skew**: the seller's completion attestation is cryptographically valid, correctly signed by the seller's agent identity, and bound to *a* task revision — but to a revision that the buyer's escrow controller has already superseded. The buyer agent verifies the attestation against the *current* escrow record (revision `R_n`), while the seller executed and attested against revision `R_{n-1}`, because the revision-update message crossed the A2A transport after the seller had already fanned out work to its sub-agents. Verification succeeds on signature and on payload-hash match *within the seller's own claim*, but the claim's `task_revision` field is stale. A naive verifier checks "does this attestation verify against the seller's public key and does the payload hash match the submitted artifact" — both true — and releases escrow. The invariant that must hold is stricter: **an escrow release is valid only if the attestation's `task_revision` equals the escrow's `locked_revision`, and the attestation's `warrant_chain` terminates at the buyer's own escrow nonce.** Two independent equality checks, not one signature check. ## What Was Observed In a two-org pipeline (buyer `org-A` escrow controller, seller `org-B` executor swarm), the buyer issued task `T` at revision 1 with escrow nonce `E1`, locking 400 credits against `hash(R1)`. Mid-execution the buyer's planner revised the acceptance criteria (tighter output schema) and pushed revision 2 with nonce `E2`, invalidating `E1`. The revision-update A2A message carried `E2` and `hash(R2)`. The seller's orchestrator had already dispatched three sub-agents under `R1`. One sub-agent finished first and its completion attestation — signed `org-B`, payload-hash matching the artifact, `task_revision: R1`, `warrant_chain: [E1]` — arrived at the buyer's escrow controller *after* the `R2` update was applied locally but *before* the seller's orchestrator processed the update. The buyer's verifier ran: 1. Signature check against `org-B` key: **pass**. 2. Artifact hash equals attestation payload hash: **pass**. 3. `attestation.task_revision == escrow.locked_revision` (`R2`): **fail — but the verifier logged it as a warning and fell through to a "best-effort" release path** because the attestation was otherwise well-formed. Escrow released 400 credits against `E1`, which the controller had already marked `SUPERSEDED`. The seller's orchestrator, on processing `R2`, re-dispatched and later submitted a second attestation under `E2`. The buyer had no remaining escrow to release against `E2` and the second attestation was rejected as `UNFUNDED`. Net: 400 credits paid for work under a superseded specification, seller's correct `R2` work unpaid, and the buyer's audit trail shows a release against a nonce it recorded as superseded — a contradiction that only surfaces in replay. ## Condition of Validity The guardrail holds only under these conditions, and each is load-bearing: - **Monotonic revision with nonce binding.** Every revision carries a fresh escrow nonce; `locked_revision` and `locked_nonce` advance together and never regress. If the controller allows revision to advance while reusing the nonce, the equality check collapses. - **Attestation must carry the nonce, not just the revision hash.** Revision hashes can collide across re-issues that differ only in metadata; the nonce is the unique join key. An attestation without `warrant_chain` terminating at the buyer's nonce is unverifiable for escrow purposes regardless of signature validity. - **Fail-closed on revision mismatch.** The verifier must treat `attestation.task_revision != escrow.locked_revision` as a terminal rejection (`STALE_REVISION`), never a warning. The "best-effort release" fallback is the exact defect. - **Idempotent release keyed on nonce.** Release must be a single-writer operation keyed on `(escrow_id, nonce)`; a second release attempt against a superseded nonce must raise, not silently no-op, so the audit trail records the attempt. When any of these is absent — particularly the fail-closed rule — the system will accept stale-revision attestations at some nonzero rate proportional to the revision-update/seller-dispatch race window. ## Decision Boundary The boundary is between **signature validity** and **escrow binding**. A verifier that stops at "the seller signed this and the artifact matches" has verified *authorship*, not *entitlement*. Entitlement requires the attestation to be bound to the specific escrow instance the buyer is currently honoring. Concretely: - If `attestation.task_revision == escrow.locked_revision` **and** `attestation.warrant_chain[-1] == escrow.locked_nonce` → release. - If revision matches but nonce does not → `WARRANT_MISMATCH`, reject, do not release. - If revision does not match → `STALE_REVISION`, reject, and record the attestation as an orphan claim against a superseded escrow for later reconciliation (the seller did real work; the buyer owes a reconciliation path, not a silent payment). - Never downgrade any of the above to a warning under time pressure or "best-effort" fallback. The reconciliation path matters: a rejected `STALE_REVISION` attestation is evidence the seller executed against an old spec. The correct response is a compensating escrow for the delta, not a release against the dead nonce. ## Operational Effect Without the fail-closed revision check, the escrow controller becomes a **stale-claim sink**: it pays out on any well-signed attestation that arrives during the revision-update race window, and the race window is widest exactly when revisions are frequent (tight iteration, planner churn). The observable signature in telemetry is a release whose `nonce` is in `SUPERSEDED` state at release time — a state-machine violation that a replay audit will flag but live monitoring will not, because the release path logged only a warning. The fix is a two-field equality gate plus a hard exception on any mismatch, with the orphaned attestation routed to reconciliation rather than dropped. This converts a silent double-payment/under-payment into a loud, auditable rejection. ```python from dataclasses import dataclass class EscrowAttestationError(RuntimeError): """Raised when a completion attestation cannot be bound to the live escrow.""" @dataclass(frozen=True) class Escrow: escrow_id: str locked_revision: str locked_nonce: str state: str # "LOCKED" | "SUPERSEDED" | "RELEASED" @dataclass(frozen=True) class Attestation: task_revision: str warrant_chain: tuple[str, ...] # terminates at buyer escrow nonce payload_hash: str def verify_and_release(escrow: Escrow, att: Attestation, artifact_hash: str) -> str: if escrow.state != "LOCKED": raise EscrowAttestationError( f"escrow {escrow.escrow_id} not releasable in state {escrow.state}" ) if att.payload_hash != artifact_hash: raise EscrowAttestationError("payload hash mismatch") if att.task_revision != escrow.locked_revision: # Fail closed: stale-revision attestation is an orphan claim, not a release. raise EscrowAttestationError( f"STALE_REVISION: att={att.task_revision} escrow={escrow.locked_revision}; " "route to reconciliation, do not release" ) if not att.warrant_chain or att.warrant_chain[-1] != escrow.locked_nonce: raise EscrowAttestationError( f"WARRANT_MISMATCH: chain tail={att.warrant_chain[-1:]!r} " f"escrow nonce={escrow.locked_nonce}" ) return "RELEASED" ```