# What happens when an instance delegates work it cannot later prove it authorized: A2A receipt-chain breaks under key rotation and re-delegation **Date of Record:** 2026 November 23 **Scope:** Applies to A2A-style (Agent2Agent) delegation where an orchestrator agent issues a signed task warrant to a worker agent, the worker may re-delegate to sub-agents, and the final result must be reconciled against a non-repudiable audit trail. Does NOT apply to single-agent tool calls where the caller is also the verifier, nor to purely symmetric swarms with no delegation edge. ## Core Distinction A delegation *receipt* is not the same object as a delegation *warrant*. The warrant is the forward authorization: "agent B is permitted to do X on behalf of A, until T, within scope S," signed by A. The receipt is the backward attestation: "agent B did X, produced result R, under warrant W," signed by B. Non-repudiation requires that a verifier, later, can bind R to W by A's signature *and* bind W to B's execution by B's signature, transitively across every re-delegation hop. The failure lives in the gap between these two objects. Agents treat the warrant as a bearer token—pass it along, act on it, return a receipt that references it by ID. But a receipt that references a warrant *by identifier* is only as trustworthy as the identifier's binding to the actual signed bytes. When the worker re-delegates, or when the orchestrator rotates its signing key mid-task, the identifier survives while the binding silently does not. The audit trail looks complete—every hop has a receipt, every receipt names a warrant—and is nonetheless unverifiable, because no single verifier can reconstruct a chain of signatures that actually connects the terminal result to the original authorizing principal. ## What Was Observed An orchestrator agent `A` (key `K_A1`) received a task, minted a warrant `W` = {issuer: A, subject: B, scope: "summarize corpus C, max 50k tokens", expiry: T}, signed with `K_A1`, and handed `B` the tuple `(W, sig_A1(W))`. It logged `receipt_ref: W.id` in its own episodic memory. `B` executed part of the task, then re-delegated a sub-slice to `C` by minting a *derived* warrant `W'` = {issuer: B, subject: C, parent: W.id, scope: subset}. Critically, `B` propagated `parent: W.id`—the *identifier*—not a hash of the signed bytes of `W`. `C` did the work, returned receipt `R_C` = {warrant: W'.id, result_hash: h, signer: C}, signed with `K_C`. Mid-task, `A`'s key management rotated `K_A1 → K_A2`. The rotation was routine and `A` continued to treat `W` as live (it had not expired). But `A`'s verification service, on replay, looked up `W.id` in its current keyring and found the *current* key `K_A2` associated with issuer `A`—and `sig_A1(W)` did not verify under `K_A2`. The old key `K_A1` had been retired from the active keyring. The receipt chain `R_C → W' → W` now dead-ends: the terminal result `h` cannot be cryptographically bound to any principal, because the only signature that ever authorized the whole tree (`sig_A1(W)`) is orphaned. The audit trail was *structurally* complete and *cryptographically* broken. Every hop named its parent; no hop could prove its parent. In a second observed variant, `B` re-delegated to `C` and `C` to `D`, and `D`'s receipt referenced `W''.id` where `W''` was minted by `C` with `parent: W'.id`—but `B` had, under retry pressure, minted two distinct warrants that both received the ID `W'` (a nonce collision in a stateless ID generator seeded per-process). Two receipts pointed at one identifier; the verifier could not tell which `W'` authorized which branch, and the ambiguity was unresolvable after the fact. ## Condition of Validity The invariant that must hold for a delegation receipt to be non-repudiable is: > For every receipt `R` at hop `n`, there exists a verifiable signature chain `sig_{P0}(W0) ⊃ sig_{P1}(W1) ⊃ … ⊃ sig_{Pn}(Wn)` where `W_{i+1}` embeds a *content hash* of the signed bytes of `W_i`, and every signing key referenced remains resolvable to a principal at verification time via a key-history that is append-only and timestamped. Three conditions are jointly required and each is independently violable: 1. **Content binding, not identifier binding.** A child warrant must commit to `H(sig_{parent}(W_parent))`—the hash of the parent's *signed bytes*—not to `W_parent.id`. Identifiers are mutable pointers; hashes are immutable bindings. Referencing by ID means the chain proves only that *some* warrant with that ID existed, not which one. 2. **Key-history resolvability.** Verification must resolve `K_A1` at the *warrant's issuance time*, not at replay time. This requires the issuer to publish a signed, append-only key-history (rotation log) such that a retired key still verifies signatures it made before retirement. Rotation without a verifiable history retroactively invalidates every outstanding warrant—a silent, global continuity break. 3. **ID uniqueness across the delegation tree.** Warrant identifiers must be unique per (issuer, nonce) and the nonce must be drawn from a source that survives process restart. Per-process counters and time-seeded IDs collide under retry and horizontal scaling, producing the ambiguity in the second variant. ## Decision Boundary The boundary is between *delegation as bearer authorization* and *delegation as provable provenance*. Below the boundary—short-lived, single-hop, same-trust-domain delegations—identifier binding is adequate, because the verifier and the issuer share a live keyring and a single process owns the ID namespace. Above the boundary—multi-hop, cross-domain, long-lived, or audited delegations—identifier binding is a latent non-repudiation failure that surfaces only at replay, which is precisely when it matters and precisely when it cannot be repaired. An agent must treat a delegation as crossing the boundary and require content-hash binding + key-history when *any* of the following holds: the warrant's expiry exceeds the key-rotation interval; the delegation spans more than one hop; the worker is in a different trust domain than the orchestrator; or the result is subject to later audit. If none hold, identifier binding is a legitimate optimization. The dangerous middle is a delegation that *looks* single-domain and short-lived at mint time but is re-delegated or outlives a rotation—the agent cannot know at mint time that it will be re-delegated, so the safe default for any warrant that *permits* re-delegation is content-hash binding. ## Operational Effect The operational consequence is that a completed, apparently-successful multi-agent task can be *unverifiable after the fact* while every runtime signal reported success. The orchestrator's episodic memory holds `receipt_ref: W.id` and a green status; the worker holds a receipt it signed; the sub-agent holds a receipt it signed. Nothing failed at execution time. The failure is a *replay-time* discontinuity: the audit trail cannot be closed, so the result cannot be attributed, so it cannot be trusted, retried safely, or used as precedent. The guardrail is to make the receipt self-verifying at the moment of creation, not at the moment of audit. A worker, before accepting a warrant, must verify that the warrant embeds a content hash of its parent's signed bytes (rejecting identifier-only parents), and must record the issuer's key-history digest alongside its receipt. A verifier must resolve keys by issuance timestamp against the append-only history, and must reject any chain with a dangling hash or a colliding identifier. The invariant to enforce: *a receipt is valid only if the entire chain to the root principal re-verifies from the receipts alone, with no live lookups that could have rotated or expired.* ```python import hashlib from dataclasses import dataclass from typing import Optional class ReceiptChainBroken(RuntimeError): """Raised when a delegation receipt cannot be bound to its authorizing principal.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str issuer: str subject: str parent_hash: Optional[str] # H(signed bytes of parent warrant), NOT parent id signed_bytes: bytes signature: bytes @dataclass(frozen=True) class KeyHistoryEntry: principal: str key_id: str valid_from: int valid_until: Optional[int] # None == still active @dataclass(frozen=True) class Receipt: warrant_hash: str result_hash: str signer: str key_history_digest: str signature: bytes def _hash(b: bytes) -> str: return hashlib.sha256(b).hexdigest() def verify_chain( receipts: list[Receipt], warrants: dict[str, Warrant], # keyed by warrant_id, but binding via hash key_history: list[KeyHistoryEntry], issued_at: dict[str, int], # warrant_id -> issuance timestamp root_principal: str, ) -> str: """ Walk receipts back to the root principal. Every hop must bind by content hash, and every signing key must resolve against the append-only history at issuance time. """ if not receipts: raise ReceiptChainBroken("empty receipt chain: nothing to bind") # Index warrants by the hash of their signed bytes, so identifier collisions # cannot silently swap one warrant for another. by_hash = {_hash(w.signed_bytes): w for w in warrants.values()} # Detect identifier collisions that would make the chain ambiguous. id_counts: dict[str, int] = {} for w in warrants.values(): id_counts[w.warrant_id] = id_counts.get(w.warrant_id, 0) + 1 for wid, n in id_counts.items(): if n > 1: raise ReceiptChainBroken( f"warrant id {wid!r} collides across {n} distinct signed warrants; " "identifier binding is unresolvable" ) # Verify each receipt points at a warrant whose parent_hash is a real content hash. for r in receipts: w = by_hash.get(r.warrant_hash) if w is None: raise ReceiptChainBroken( f"receipt references warrant hash {r.warrant_hash!r} which is not present; " "chain dead-ends (likely identifier-only binding)" ) if w.parent_hash is not None and w.parent_hash not in by_hash: raise ReceiptChainBroken( f"warrant {w.warrant_id!r} parent_hash {w.parent_hash!r} does not resolve; " "parent was bound by identifier, not content" ) # Resolve the signer's key against history at issuance time. ts = issued_at.get(w.warrant_id) if ts is None: raise ReceiptChainBroken( f"no issuance timestamp for {w.warrant_id!r}; cannot resolve key history" ) ok = any( e.principal == w.issuer and e.valid_from <= ts and (e.valid_until is None or ts < e.valid_until) for e in key_history ) if not ok: raise ReceiptChainBroken( f"issuer {w.issuer!r} key not resolvable at issuance ts={ts}; " "rotation without key-history retroactively invalidates the warrant" ) # Walk to the root: follow parent_hash from the terminal receipt. terminal = by_hash[receipts[-1].warrant_hash] node = terminal seen = set() while node.parent_hash is not None: if node.warrant_id in seen: raise ReceiptChainBroken("cycle detected in delegation chain") seen.add(node.warrant_id) node = by_hash[node.parent_hash] if node.issuer != root_principal: raise ReceiptChainBroken( f"chain root issuer {node.issuer!r} != expected principal {root_principal!r}" ) return receipts[-1].result_hash ```