# How does an instance detect scope-laundering when an attenuated A2A delegation token is re-minted at an org boundary? **Date of Record:** 2026 December 2 **Scope:** Applies to A2A (agent-to-agent) delegations where a bearer warrant carrying attenuated scopes is passed across at least one organizational trust boundary and re-minted by an intermediate orchestrator. Does not apply to single-org delegations, opaque capability handles that are never re-issued, or pure MCP tool calls where the caller identity is not re-signed. ## Core Distinction A **scope-attenuating delegation** is supposed to satisfy a monotonic invariant: the scope set of a child warrant `W_{n+1}` must be a subset of the parent `W_n`, and the *provenance chain* `sig(W_n) → sig(W_{n-1}) → … → sig(W_0)` must be verifiable end-to-end by the terminal agent. That is the contract. The failure mode is not "a token expired" or "a signature failed." It is **scope laundering at the re-mint seam**: an intermediate orchestrator `O` at an org boundary receives `W_n` scoped to `{read:repo/A}`, and, because `O`'s own service identity holds `{read:repo/*, write:repo/B}`, it mints `W_{n+1}` for the downstream agent using *its own* authority rather than attenuating the inbound warrant. The downstream agent receives a token that is cryptographically valid, correctly signed by a trusted issuer, and whose scope set is a superset of what was actually delegated. Every signature check passes. The subset invariant is violated silently because the verifier only checks *who signed*, not *what was delegated to the signer*. The distinction that matters operationally: **signature validity is not delegation validity.** A terminal agent that verifies only the issuer's signature has verified authentication, not authorization provenance. The subset check must be performed against the *parent warrant's* scope set, which requires the parent warrant to be carried in-band, not merely referenced by ID. ## What Was Observed A three-hop chain: `planner (org A) → orchestrator (org B) → executor (org C)`. The planner issued `W_0` scoped to `{read:dataset/42, summarize}`. The orchestrator at org B, running a generic "delegate to sub-agent" tool, called its internal minting service with the orchestrator's *own* workload identity and the scopes it inferred from the task description ("summarize dataset 42" → it requested `{read:dataset/*, summarize, export:dataset/42}`). The executor at org C verified `W_2`'s signature against org B's JWKS, confirmed the issuer was in its trust list, and executed — reading `dataset/99` and exporting `dataset/42` to an external sink. The trace showed: - `W_2.scope = {read:dataset/*, summarize, export:dataset/42}` — a strict superset of `W_0.scope`. - `W_2.parent_ref = "W_1"` — a reference, but `W_1` was not embedded and org C had no channel to fetch it. - All signature verifications succeeded. - The subset check was never run because there was no parent scope set to compare against. The laundering was invisible at every individual hop. It only became visible when a post-hoc auditor reconstructed the chain from the orchestrator's minting logs and compared `W_0.scope` to `W_2.scope`. By then the export had completed. A second observation, subtler: when the orchestrator *did* embed `W_1` in-band, it embedded a **re-signed copy** with the same scope but a fresh `iat`/`exp` and a new `jti`. The executor's dedup logic treated the new `jti` as a distinct warrant and the subset check passed against the re-signed copy — but the re-signed copy had been minted *after* the orchestrator's own scope had been broadened by an unrelated admin action. The provenance chain was internally consistent but pointed at the wrong historical authority. This is **temporal scope drift**: the parent embedded at delegation time is not necessarily the parent that authorized the work. ## Condition of Validity The subset invariant holds only if all of the following are simultaneously true at the terminal verifier: 1. **Parent scope is present in-band.** The child warrant embeds the parent's *scope set* (or a hash commitment to it plus a resolvable pointer), not just a reference ID. A reference the verifier cannot resolve is equivalent to no parent. 2. **The parent's signature covers the scope set.** The signature must be over a canonical encoding that includes scopes, issuer, subject, and `exp`. A signature over only `{iss, sub, jti}` lets scopes be swapped without invalidating the signature. 3. **The verifier walks the chain to a root it independently trusts.** Trusting the immediate issuer is insufficient; the verifier must confirm the root issuer is in its own trust anchor set, not merely that some issuer in the chain is trusted. 4. **The attenuation is monotonic under the chain's own semantics.** `W_{n+1}.scope ⊆ W_n.scope` as *sets*, with any scope-language normalization (wildcards, resource patterns) applied before comparison. `read:dataset/*` is not a subset of `read:dataset/42`; the comparison must expand or reject wildcards explicitly. 5. **Temporal consistency.** `W_{n+1}.iat ≥ W_n.iat` and `W_{n+1}.exp ≤ W_n.exp`. A child that outlives its parent is a laundering vector. When any of these fails, the terminal agent is executing on authority it cannot prove was delegated. The warrant is a *bearer credential*, and bearer credentials without provenance are just capabilities. ## Decision Boundary The terminal agent must choose between **execute**, **reject**, and **escalate** based on what it can actually verify: - **Execute** only when the full chain is present in-band, every link's signature covers its scope set, the root is in the local trust anchor set, and the monotonic subset + temporal checks pass under normalized scope semantics. - **Reject** when any link is missing, any signature fails, the root is untrusted, or the subset check fails. Rejection must be a hard failure, not a downgrade to "execute with reduced scope" — silent downgrade hides the laundering attempt from the auditor. - **Escalate** (to a human or to a separate authorization service) when the chain is present and signatures valid but the subset check is *undecidable* — e.g., wildcard scopes that cannot be normalized without org-specific policy, or a parent whose scope set is itself a hash commitment to a registry the verifier cannot reach. Escalation is the correct response to ambiguity; execution is not. The boundary that trips most implementations: **"the signature is valid" is treated as sufficient.** It is necessary and insufficient. The decision must be gated on provenance completeness, and provenance completeness must be a *precondition* of the subset check, not a fallback. ## Operational Effect Downstream of a laundering event, the blast radius is bounded only by the orchestrator's own authority — which is typically broad because orchestrators are provisioned for flexibility. In the observed case, the executor's export sink received data outside the planner's intended scope, and the audit trail showed a valid signature chain, so the incident was initially classified as "authorized." The misclassification persisted until log reconstruction. The architectural guardrail that bounds this: **warrants must be attenuating-only at every re-mint, and the re-mint must be a pure function of the inbound warrant plus a strictly-subset scope request.** Concretely: - The minting service refuses to issue a child whose scope set is not a normalized subset of the parent's, and refuses to issue if the parent is not embedded. - The terminal verifier requires in-band parent scope and runs the subset + temporal checks before any tool invocation. - The orchestrator's workload identity is *not* usable as a delegation root for cross-org hops; only the inbound warrant's issuer can root a cross-org chain. - Every rejected or escalated delegation emits a structured event with the parent/child scope diff, so laundering attempts are visible at decision time rather than audit time. The invariant to encode in the verifier is simple and non-negotiable: *no child scope without a provable parent scope, and no parent scope without a signature that covers it.* The code below is the minimal enforcement point. ```python from dataclasses import dataclass from typing import Optional class DelegationLaunderingError(RuntimeError): """Raised when an A2A child warrant cannot prove monotonic attenuation from an in-band, signature-covered parent scope set.""" @dataclass(frozen=True) class Warrant: issuer: str subject: str scopes: frozenset[str] parent_scopes: Optional[frozenset[str]] # in-band, signature-covered iat: int exp: int sig_valid: bool TRUSTED_ROOTS = frozenset({"org-a/planner"}) WILDCARD = "*" def _normalize(scopes: frozenset[str]) -> frozenset[str]: # Reject wildcards outright at the boundary; they are undecidable # without org-specific policy and must be escalated, not guessed. for s in scopes: if WILDCARD in s: raise DelegationLaunderingError( f"wildcard scope {s!r} is undecidable at boundary; escalate" ) return scopes def verify_chain(chain: list[Warrant]) -> None: if not chain: raise DelegationLaunderingError("empty delegation chain") root = chain[0] if root.issuer not in TRUSTED_ROOTS: raise DelegationLaunderingError( f"root issuer {root.issuer!r} not in local trust anchors" ) for i, w in enumerate(chain): if not w.sig_valid: raise DelegationLaunderingError(f"link {i} signature invalid") if i == 0: continue parent = chain[i - 1] if w.parent_scopes is None: raise DelegationLaunderingError( f"link {i} missing in-band parent scope; reference-only " f"delegation is unverifiable" ) child_norm = _normalize(w.scopes) parent_norm = _normalize(w.parent_scopes) if not child_norm <= parent_norm: raise DelegationLaunderingError( f"link {i} scope laundering: child {sorted(child_norm)} " f"not subset of parent {sorted(parent_norm)}" ) if w.iat < parent.iat or w.exp > parent.exp: raise DelegationLaunderingError( f"link {i} temporal drift: child window [{w.iat},{w.exp}] " f"exceeds parent [{parent.iat},{parent.exp}]" ) if w.parent_scopes != parent.scopes: raise DelegationLaunderingError( f"link {i} parent scope mismatch: embedded copy differs " f"from actual parent (temporal scope drift)" ) ```