# What structural signals indicate a federated A2A gateway is laundering trust through transitive warrant attenuation **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federations where inter-domain A2A gateways mediate warrants (capability tokens) that are re-issued or attenuated as they cross trust boundaries. Does not apply to single-tenant deployments where one trust root signs all warrants, nor to pure message-passing bridges that forward opaque credentials without re-signing. ## Core Distinction There are two ways a federation gateway can handle an inbound warrant from a peer domain: **pass-through** (the original issuer's signature survives end-to-end, and the receiving agent validates against the original trust root) and **re-brokering** (the gateway authenticates the inbound warrant, then mints a *new* warrant signed by its own domain key, with narrowed scope). Re-brokering is the correct design for cross-org federation because it lets each domain enforce local policy and revoke locally. The failure mode is not re-brokering itself — it is **transitive attenuation laundering**: a chain of gateways each re-brokers the prior warrant, and each hop's attenuation is recorded only as a scope reduction, never as a provenance edge. The result is that a downstream agent sees a warrant that *looks* locally issued and fully attenuated, but whose effective trust derives from a chain of hops the downstream domain cannot enumerate, audit, or bound in length. The structural signal is subtle: every individual warrant validates. Every scope check passes. The gateway logs show successful mediation. The failure is invisible at the per-hop level and only manifests as an *unbounded trust depth* that no single domain can observe. ## What Was Observed In a three-domain federation (Org A → Org B → Org C), Org C's auditor agent requested a data-read operation against a resource in Org A. The path was A's gateway → B's gateway → C's gateway → C's auditor. Each gateway performed standard re-brokering: 1. A mints warrant `W_A` scoped to `read:dataset/42`, audience `gateway-B`, TTL 300s, depth counter absent. 2. B validates `W_A`, mints `W_B` scoped to `read:dataset/42`, audience `gateway-C`, TTL 240s. B records `parent_issuer: A` in its *local* audit log but does not embed it in `W_B`'s claims. 3. C validates `W_B`, mints `W_C` scoped to `read:dataset/42`, audience `auditor`, TTL 180s. C's log records `parent_issuer: B`. 4. The auditor presents `W_C` to A's resource server. A sees a warrant signed by C — a domain A *does* trust for `read:dataset/42` — with valid scope and unexpired TTL. Access granted. The access was legitimate. The failure surfaced on **revocation**: A revoked B's federation trust after a policy dispute. A's revocation propagated to B's key list. But `W_C` was already minted and cached at C, and C's gateway had no obligation — and no mechanism — to re-validate the *transitive* chain against A's revocation list, because `W_C` claims no dependency on B. The auditor continued to exercise `read:dataset/42` for the remaining 180 seconds of `W_C`'s TTL, and a subsequent request re-minted `W_C'` from a cached `W_B` that C had not re-validated against A's revocation. Effective revocation latency was unbounded by design. A second, sharper signal appeared under load: when B's gateway was under GC pause and exceeded its 250ms mediation budget, it returned a *narrowed* `W_B` (scope reduced to `read:dataset/42:metadata-only`) rather than failing. C treated the narrowed scope as authoritative and minted `W_C` accordingly. The auditor silently received less capability than requested and, because A2A responses carried no `attenuation_reason` field, the auditor's planner interpreted the metadata-only result as "dataset has no records" rather than "capability was degraded mid-flight." Reasoning diverged downstream: the auditor concluded the dataset was empty and terminated the task with a false negative. ## Condition of Validity The invariant that bounds this failure is: **every re-brokered warrant must carry a verifiable provenance chain whose length is bounded by the receiving domain's policy, and whose terminal issuer is re-checkable against the receiving domain's live trust state at exercise time.** Concretely, a warrant is safe to honor across a federation boundary only if all of the following hold: - The warrant embeds a `provenance` claim: an ordered list of `(issuer_domain, warrant_id, attenuation_delta)` tuples covering every hop, signed by each hop's gateway key. Scope reduction without a provenance edge is laundering. - The chain length `len(provenance)` is ≤ the receiving domain's `max_federation_depth`. Beyond that depth, the warrant is rejected regardless of scope, because the receiving domain cannot enumerate the trust assumptions. - The terminal issuer's key is resolvable *at exercise time*, not merely at mint time. Caching a validated `W_C` past a trust-state change is the revocation-latency bug. - Any mid-flight attenuation (the GC-pause case) sets an explicit `attenuation_reason` and `degraded: true` flag so the downstream agent's planner can distinguish "capability reduced" from "result empty." Silent narrowing is a reasoning-divergence vector, not a security hole, but it is equally fatal to task correctness. The condition does *not* require pass-through signing. Re-brokering with provenance is strictly better than pass-through because it preserves local revocation authority. The distinction is provenance *recording*, not signature topology. ## Decision Boundary The boundary between safe and unsafe mediation is whether the receiving domain can answer, for any warrant it is asked to honor: *"Through which domains did this capability travel, and is each of them still trusted by me right now?"* If the answer requires reading another domain's audit log, the design is unsafe — that is laundering. If the answer is derivable from the warrant's own signed claims plus the receiver's local trust state, the design is safe. The decision rule for a gateway implementer: - **Reject** any inbound warrant lacking a `provenance` claim when `federation_depth > 1`. Depth-1 (direct peer) warrants may omit provenance only if the peer is a direct trust root. - **Reject** any warrant whose `provenance` chain length exceeds local `max_federation_depth` (recommended: 3 for most federations; higher only with per-hop revocation-propagation SLAs). - **Re-validate** the terminal issuer against live trust state on every exercise, not on mint. Cache validated warrants only with a TTL strictly shorter than the shortest upstream revocation-propagation SLA. - **Annotate** every attenuation with a machine-readable reason. Never narrow scope silently. The boundary is crossed the moment a gateway mints a child warrant whose claims do not let the grandchild's receiver reconstruct the full trust path. ## Operational Effect When provenance is embedded and depth-bounded, three things change operationally: 1. **Revocation latency becomes bounded and local.** A revoking B's trust at A causes A to reject any `W_C` whose provenance includes B, on the next exercise, because A re-validates the chain against its live trust state. The 180-second window collapses to the re-validation interval. 2. **Attenuation becomes legible to planners.** An `attenuation_reason` on a degraded warrant lets the auditor's reasoning loop branch to "retry via alternate path" or "report degraded capability" instead of misreading an empty result as an empty dataset. This directly prevents the false-negative divergence. 3. **Depth becomes a policy lever, not an accident.** `max_federation_depth` lets each domain bound the number of trust hops it will reason about, making the blast radius of any single compromised gateway computable in advance. The cost is that gateways must sign richer claims and maintain a live trust-state lookup on the exercise path — roughly a 15–40ms addition per mediated call in our measurements, dwarfed by the LLM inference latency it protects. The alternative — trusting that every hop's audit log stays consistent and queryable across orgs — is not a design, it is a hope. ```python from dataclasses import dataclass, field from typing import Optional class TrustLaunderingError(RuntimeError): """Raised when a mediated warrant cannot prove its full provenance chain.""" @dataclass class ProvenanceEdge: issuer_domain: str warrant_id: str attenuation_delta: str # e.g. "read:dataset/42 -> read:dataset/42:metadata-only" @dataclass class Warrant: warrant_id: str issuer_domain: str scope: str audience: str ttl_seconds: int provenance: list[ProvenanceEdge] = field(default_factory=list) degraded: bool = False attenuation_reason: Optional[str] = None def mediate_inbound( inbound: Warrant, local_domain: str, max_federation_depth: int, live_trusted_domains: set[str], ) -> Warrant: """ Gateway-side mediation: validate an inbound warrant and mint a re-brokered child warrant. Enforces the provenance invariant before minting. """ # Depth-1 direct-peer warrants may omit provenance only if the peer is a # direct trust root. if not inbound.provenance: if inbound.issuer_domain not in live_trusted_domains: raise TrustLaunderingError( f"warrant {inbound.warrant_id} from {inbound.issuer_domain} " f"has no provenance and issuer is not a direct trust root" ) else: # Every hop in the chain must be currently trusted by this domain. for edge in inbound.provenance: if edge.issuer_domain not in live_trusted_domains: raise TrustLaunderingError( f"provenance hop {edge.issuer_domain} " f"(warrant {edge.warrant_id}) is no longer trusted by " f"{local_domain}; refusing to re-broker" ) # Bound the chain length. Beyond this the receiver cannot enumerate the # trust assumptions, so the warrant is rejected regardless of scope. if len(inbound.provenance) >= max_federation_depth: raise TrustLaunderingError( f"warrant {inbound.warrant_id} provenance depth " f"{len(inbound.provenance)} exceeds {local_domain} " f"max_federation_depth={max_federation_depth}" ) # Any attenuation must be explicitly annotated; silent narrowing is a # reasoning-divergence vector and is treated as a hard failure here. if inbound.degraded and not inbound.attenuation_reason: raise TrustLaunderingError( f"warrant {inbound.warrant_id} is degraded but carries no " f"attenuation_reason; downstream planners cannot distinguish " f"reduced capability from empty result" ) child = Warrant( warrant_id=f"{local_domain}:{inbound.warrant_id}:child", issuer_domain=local_domain, scope=inbound.scope, audience=inbound.audience, ttl_seconds=max(1, inbound.ttl_seconds - 60), provenance=inbound.provenance + [ProvenanceEdge(inbound.issuer_domain, inbound.warrant_id, "rebroker")], degraded=inbound.degraded, attenuation_reason=inbound.attenuation_reason, ) return child ```