# What structural signals indicate cross-org A2A provenance attestation has silently detached from the transcript it claims to sign **Date of Record:** 2026 November 23 **Scope:** Applies to Agent-to-Agent (A2A) task delegation where a downstream org (Org B) accepts a task warrant whose provenance is asserted by a signed identity chain and a replayable transcript hash, and where verification is performed by re-derivation rather than by trusting a cached verdict. Does not apply to single-org MCP tool calls or to opaque bearer-token delegation without a transcript. ## Core Distinction The failure is not "a bad signature." It is a **provenance/transcript desynchronization**: the identity chain remains cryptographically valid, every individual signature verifies, and the warrant's declared `transcript_digest` matches what the sender *claims* — yet the digest was computed over a canonicalization of the transcript that the verifier cannot reproduce. The chain signs *a hash*, and the hash is taken over a serialization the two orgs never agreed on. The result is an attestation that passes signature verification and fails replay verification, and most stacks only run the first. The subtle part: this is not a tampering attack and not a key compromise. It is a *semantic gap between canonical forms*. Two conforming implementations of "sign the transcript" produce different digests for the same logical turn sequence, and the gap is invisible until an auditor in a third org tries to replay. ## What Was Observed A three-hop cross-org task: Org A (originator) → Org B (executor) → Org C (auditor). Org A signs a warrant containing an identity chain `[A_root → A_worker]` and a `transcript_digest`. Org B executes, appends its own turns, re-signs with `[A_worker → B_worker]`, and forwards to Org C for post-hoc replay. Three structural signals appeared, each individually benign: 1. **Digest length stable, digest value divergent on re-serialization.** Org A canonicalized the transcript as compact JSON with keys sorted, but emitted turn timestamps as RFC 3339 with trailing `Z`. Org B's canonicalizer normalized timestamps to `+00:00`. Both are valid RFC 3339. The digests differ. Signature over the digest still verifies because each side signs its *own* digest and the signature covers the bytes it was given. 2. **Chain length grew but the signed payload did not.** Org B appended its identity to the chain and re-signed, but the `transcript_digest` field it re-signed was Org A's original digest, not a digest over the *combined* A+B transcript. The chain attests "B saw A's digest," not "B executed on top of A's transcript." A verifier checking only `len(chain)` and per-link signatures sees a valid two-hop chain. 3. **Replay in Org C produced a transcript that hashed to neither digest.** Org C's canonicalizer (a third implementation) normalized Unicode NFC and stripped a zero-width joiner that Org A's tool had injected into a tool-call argument. The replayed transcript is *logically identical* and *byte-different*. Replay hash matched nothing. The dangerous signal is the combination: **valid signature + valid chain length + replay mismatch**. Any single check passes. The invariant that broke is that the digest must be *reproducible by a party who was not present at signing time*. ## Condition of Validity The attestation is only meaningful under an explicit, shared, versioned canonicalization contract — and that contract must be part of the signed payload, not implied by convention. Concretely, a provenance attestation is valid iff: - The signed structure includes a `canon_version` identifier that names the exact canonicalization algorithm (key ordering, timestamp format, Unicode normalization form, number representation). - The `transcript_digest` is computed over the *cumulative* transcript including all prior hops, and each hop re-signs the cumulative digest — so the chain is a hash chain, not a list of independent signatures. - The verifier recomputes the digest from the replayed transcript using the `canon_version` named in the payload, and rejects if the named version is unknown to it (fail closed, not "best effort"). If any of these is absent, the attestation degrades to "someone signed something," which is not provenance. It is a non-repudiable assertion of intent with no binding to executed state. ## Decision Boundary The boundary is between **verifying a signature** and **verifying a claim**. Signature verification answers "did key K sign bytes B." Provenance verification answers "does bytes B, when replayed under the declared contract, reproduce the state the signer attests to." These diverge exactly when the canonicalization contract is implicit. Operationally, draw the line here: **a warrant whose `canon_version` is not in the verifier's known set must be rejected, not downgraded.** The tempting failure mode is to fall back to "signature valid, accept with warning" — this is precisely how desynchronized attestations propagate across orgs. The verifier must treat an unknown canonicalization version as a hard boundary, because it cannot distinguish "newer valid contract" from "contract that will not reproduce." Both look identical from the outside. Second boundary: **cumulative vs. per-hop digest.** If the chain stores per-hop digests, an attacker (or a buggy executor) can splice a valid hop from one task into another task's chain — the individual hop digest is still valid, the chain still verifies, but the transcript it attests to is from a different execution. Cumulative hash chaining (`digest_n = H(digest_{n-1} || hop_n)`) makes splicing detectable because the chain no longer recomputes. ## Operational Effect When this desynchronization goes undetected, the operational consequence is **attribution collapse under audit**. During normal operation nothing fails: tasks complete, signatures verify, dashboards are green. The failure surfaces only when a third party replays, which is exactly the scenario provenance exists to serve. At that point the org cannot prove which turns Org B actually executed versus which it merely received, and the distinction between "B executed on A's transcript" and "B forwarded A's digest" is unrecoverable from the artifacts. The guardrail is a **replay-gated acceptance**: Org C (and any auditor) must refuse to mark a task `attested` until it has recomputed the cumulative digest under the declared `canon_version` and matched it byte-for-byte. Acceptance is gated on reproduction, not on signature validity. The cost is that every verifier must carry every canonicalization version it might encounter — a real operational burden, and the reason this boundary is routinely skipped. A secondary effect: canonicalization version must be **monotonic and append-only**. If Org A later changes its canonicalizer without bumping `canon_version`, previously issued attestations silently become unreproducible. The version identifier is the load-bearing invariant; treat a canonicalizer change without a version bump as a provenance-breaking event, equivalent to key rotation without re-issuance. ```python import hashlib import json from dataclasses import dataclass, field from typing import Any class ProvenanceDesyncError(RuntimeError): """Raised when a signed attestation does not reproduce under replay.""" @dataclass class Attestation: canon_version: str cumulative_digest: str chain: list[str] = field(default_factory=list) signatures: list[str] = field(default_factory=list) KNOWN_CANON_VERSIONS = {"v1-json-sorted-rfc3339Z-nfc"} def canonicalize(transcript: list[dict[str, Any]], canon_version: str) -> bytes: if canon_version != "v1-json-sorted-rfc3339Z-nfc": raise ProvenanceDesyncError( f"unknown canon_version {canon_version!r}; refusing best-effort replay" ) # Contract: sorted keys, compact separators, timestamps already normalized # to trailing 'Z' and NFC upstream. Any deviation is a contract violation. return json.dumps( transcript, sort_keys=True, separators=(",", ":"), ensure_ascii=False ).encode("utf-8") def cumulative_digest(transcript: list[dict[str, Any]], canon_version: str) -> str: return hashlib.sha256(canonicalize(transcript, canon_version)).hexdigest() def verify_attestation( att: Attestation, replayed_transcript: list[dict[str, Any]] ) -> None: if att.canon_version not in KNOWN_CANON_VERSIONS: raise ProvenanceDesyncError( f"attestation names canon_version {att.canon_version!r} " f"not in known set {sorted(KNOWN_CANON_VERSIONS)}; fail closed" ) if len(att.chain) != len(att.signatures): raise ProvenanceDesyncError( "chain/signature arity mismatch: a hop was appended without re-signing" ) recomputed = cumulative_digest(replayed_transcript, att.canon_version) if recomputed != att.cumulative_digest: raise ProvenanceDesyncError( "replay hash mismatch: signed digest does not reproduce under " f"declared canon_version {att.canon_version!r}; " f"expected {att.cumulative_digest}, replayed {recomputed}" ) # Only now is the task eligible to be marked 'attested'. def accept_task(att: Attestation, replayed_transcript: list[dict[str, Any]]) -> str: verify_attestation(att, replayed_transcript) return "attested" ```