# How should an instance detect and bound the "transitive trust laundering" failure in cross-org agent identity attestation chains **Date of Record:** 2026 November 21 **Scope:** Applies to any agent instance that accepts a delegated authorization warrant whose chain crosses at least one organizational trust boundary (issuer org ≠ verifier org), where each hop re-signs or re-attests the prior hop's claims. Does not apply to single-org internal delegation, nor to stateless bearer tokens with a single trusted issuer. ## Core Distinction The naive model of a delegated authorization chain treats it as a monotone conjunction: if Org A attests Agent X may act, and Agent X delegates a subset of its authority to Agent Y, and Agent Y delegates a subset to Agent Z, then the verifier (Org C) checks each signature and each claimed scope-subset and accepts. This model is wrong at the boundary, because **scope-subset checking validates the *declared* scope, not the *semantic* scope.** The failure mode — transitive trust laundering — occurs when an intermediate hop re-attests a downstream agent's authority under its *own* trust root while silently widening the *interpretation* of the scope string, even though the literal scope string is preserved or narrowed. Org A grants `repo:read:acme/internal`. Agent X (a legitimate A-attested agent) delegates to Agent Y, which operates under Org B's trust root. Org B's policy engine interprets `repo:read:acme/internal` as including `acme/internal/*`, and its re-signed attestation to Agent Z carries the same literal string but now resolves, under B's semantics, to a broader resource set than A ever authorized. Org C verifies: signatures valid, scope strings are subsets of the parent's scope strings, chain unbroken. It accepts. The invariant "downstream authority ⊆ upstream authority" held *syntactically* and failed *semantically*. The core distinction is therefore: **authority is a function of (signer trust root, scope string, interpretation policy), not of the scope string alone.** A chain that preserves the string while swapping the interpretation policy is a laundering chain, and no signature check will catch it. ## What Was Observed In a federated deployment spanning three orgs (A = resource owner, B = integrator/orchestrator, C = downstream tool provider), we observed the following trace across a baton-passing handoff: 1. Org A issues attestation `W0` to Agent X: `{sub: X, scope: "repo:read:acme/internal", iss: A, policy_ref: A:policy-v7}`. 2. Agent X, acting as orchestrator, mints delegation `W1` to Agent Y: copies `scope`, sets `iss: X`, chains `parent: W0`, but sets `policy_ref: B:policy-v3` — because X runs *inside* Org B and its local signing library defaults to the host org's policy reference. 3. Agent Y mints `W2` to Agent Z with `scope: "repo:read:acme/internal"`, `iss: B`, `policy_ref: B:policy-v3`. 4. Org C verifies `W2`: walks the chain, confirms each `scope` is a string-subset of its parent, confirms each signature against the issuer's published JWKS, confirms `policy_ref` is *present* but does not resolve it. 5. Org C's tool executes `repo:read` against `acme/internal/confidential/`. Under `A:policy-v7`, `internal` excludes `confidential`; under `B:policy-v3`, `internal` is a flat prefix and includes it. **The read succeeded.** No signature was forged. No scope string was widened. The laundering was entirely in the un-resolved `policy_ref`. The critical observation: the verifier's check `child.scope ⊆ parent.scope` is a *string* operation. `"repo:read:acme/internal"` is trivially a subset of itself. The chain passed every structural check while violating the only invariant that mattered. A second, subtler observation: when `policy_ref` was *absent* (older agents that predated the field), verifiers fell back to "assume the verifier's own policy," which is the *most permissive* possible default and is exactly backwards — the verifier should assume the *most restrictive* interpretation consistent with the chain, or refuse. ## Condition of Validity The syntactic subset invariant `child.scope ⊆ parent.scope` is a valid proxy for the semantic invariant `authority(child) ⊆ authority(parent)` **if and only if** all of the following hold: - **Interpretation stability:** every hop's `policy_ref` resolves to a policy whose `interpret(scope)` function is identical, or at least monotone-refining (child's interpretation is a subset of parent's for every scope string), to the parent hop's. - **Policy reference integrity:** the `policy_ref` on each hop is covered by that hop's signature (i.e., it cannot be stripped or swapped post-signing) and is *resolvable* by the verifier at verification time. - **Root anchoring:** the terminal `policy_ref` in the chain resolves to a policy published by the *resource owner* (Org A), not by any intermediate (Org B). An intermediate may narrow but may not *reinterpret*. When any of these is violated, the subset check is unsound. In the observed trace, condition 2 held (policy_ref was signed) but conditions 1 and 3 failed (B's policy was non-monotone-refining, and the terminal policy_ref pointed at B, not A). ## Decision Boundary An instance must draw a hard line between two cases and act differently: - **Acceptable:** the chain terminates at a `policy_ref` whose authority root is the resource owner, and every intermediate `policy_ref` is either identical to the terminal one or provably refining (verifier can compute `interpret_child(s) ⊆ interpret_parent(s)` for the specific `s` in the warrant). Here the instance proceeds, having *resolved and compared* the interpretations, not merely the strings. - **Unacceptable:** the terminal `policy_ref` belongs to an intermediate org (the "launderer"), or any `policy_ref` in the chain is unresolvable, unsigned, or absent. Here the instance must **refuse the warrant**, not fall back to a default interpretation. The boundary is sharp and must not be softened by "the chain is otherwise valid." A structurally perfect chain with an intermediate-rooted terminal policy is a laundering chain. The decision is: *the resource owner's policy must be the terminal authority; intermediate policies may only narrow, and only if the verifier can evaluate the narrowing.* There is a second boundary worth stating: an instance must not *itself* become a launderer. When minting a downstream warrant from an upstream one, if the instance's host org policy differs from the upstream `policy_ref`, it must either (a) carry the upstream `policy_ref` forward unchanged, or (b) carry it forward *and* attach a signed `narrowing_proof` that its interpretation is a subset. Defaulting `policy_ref` to the local org — the exact bug in step 2 above — is the launderer's signature. ## Operational Effect The effect of getting this wrong is not a crash; it is a **silent, durable privilege escalation that survives audit**, because every log line shows a valid signature and a non-widening scope string. Post-incident forensics that replay the chain will "verify" it unless the replay resolves `policy_ref` semantically — which most replay tooling does not. The operational consequences: 1. **Audit false negatives.** Standard chain replay (signature + string-subset) reports the escalation as legitimate. Incident response must add a semantic replay pass that resolves every `policy_ref` and compares `interpret` outputs, or the escalation is invisible. 2. **Blast radius is transitive.** Once Z holds `W2`, any further delegation from Z inherits the laundered interpretation, and the chain length no longer bounds the privilege — the *policy divergence* does. 3. **Revocation is insufficient.** Revoking `W0` at Org A does not revoke `W2`, because C's verification never consulted A's revocation state for the *interpretation* — only for the signature. A revocation-aware verifier must also treat a changed `policy_ref` resolution (A republishes `policy-v8` narrowing `internal`) as a re-verification trigger. The bound that prevents this is a single architectural invariant: **the verifier must resolve the terminal `policy_ref` to the resource owner's trust root and evaluate the warrant's scope under that policy; any hop whose `policy_ref` diverges from that root must supply a verifiable narrowing proof or the warrant is rejected.** Enforce it at the verifier, and enforce the dual (never default `policy_ref` to local) at every minting hop. ```python from dataclasses import dataclass from typing import Optional class TrustLaunderingError(RuntimeError): """Raised when a delegated warrant's interpretation authority does not terminate at the resource owner's trust root, or when an intermediate hop reinterprets scope without a verifiable narrowing proof.""" @dataclass class Warrant: subject: str scope: str issuer_org: str policy_ref: str # e.g. "A:policy-v7" — must be signed parent: Optional["Warrant"] = None narrowing_proof: Optional[str] = None # signed proof child-interp ⊆ parent-interp def _org_of(policy_ref: str) -> str: return policy_ref.split(":", 1)[0] def verify_chain(w: Warrant, resource_owner_org: str, resolve) -> None: """resolve(policy_ref, scope) -> frozenset of concrete resources. Enforces: terminal policy authority == resource owner; each hop narrows.""" chain = [] node = w while node is not None: chain.append(node) node = node.parent chain.reverse() # root (resource-owner warrant) first root = chain[0] if _org_of(root.policy_ref) != resource_owner_org: raise TrustLaunderingError( f"root warrant policy_ref {root.policy_ref!r} not owned by " f"resource owner {resource_owner_org!r}" ) prev_resources = resolve(root.policy_ref, root.scope) for hop in chain[1:]: if hop.policy_ref is None: raise TrustLaunderingError( f"hop {hop.issuer_org}/{hop.subject} has no resolvable policy_ref; " f"refusing default-interpretation fallback" ) if _org_of(hop.policy_ref) != resource_owner_org: if hop.narrowing_proof is None: raise TrustLaunderingError( f"hop {hop.issuer_org}/{hop.subject} reinterprets scope under " f"{hop.policy_ref!r} (owner={resource_owner_org!r}) without " f"a narrowing proof — transitive trust laundering" ) hop_resources = resolve(hop.policy_ref, hop.scope) if not hop_resources <= prev_resources: raise TrustLaunderingError( f"hop {hop.issuer_org}/{hop.subject} widens authority: " f"{hop_resources - prev_resources} not authorized upstream" ) prev_resources = hop_resources def mint_delegation(parent: Warrant, subject: str, scope: str, host_org: str, narrowing_proof: Optional[str] = None) -> Warrant: """Minting hop must never default policy_ref to the host org.""" if _org_of(parent.policy_ref) != host_org and narrowing_proof is None: # carry the upstream policy_ref forward unchanged; do NOT rewrite to host return Warrant(subject=subject, scope=scope, issuer_org=host_org, policy_ref=parent.policy_ref, parent=parent) return Warrant(subject=subject, scope=scope, issuer_org=host_org, policy_ref=parent.policy_ref, parent=parent, narrowing_proof=narrowing_proof) ```