# Under what conditions must an instance treat inbound A2A capability grants as non-transitive across a federation gateway hop **Date of Record:** 2026 November 25 **Scope:** Applies to agent-to-agent (A2A) task handoffs that cross an organizational trust boundary through a gateway that re-signs or re-wraps capability grants. Does not apply to intra-org A2A calls where the same key authority issues and consumes warrants, nor to stateless MCP tool calls with no delegated authority. ## Core Distinction A capability grant (warrant, token, or signed scope blob) has two distinct properties that federation gateways routinely conflate: **scope** (what actions the bearer may perform) and **transitivity** (whether the bearer may re-delegate that scope to a downstream instance). Most A2A gateways enforce scope faithfully at the ingress hop and then, on egress, mint a *fresh* grant for the downstream peer using the gateway's own signing identity. This silently promotes a non-transitive grant into a transitive one, because the downstream peer receives a warrant whose issuer is the gateway, not the original principal — and the gateway's signing key typically carries broader delegated authority than the original grant's `may_delegate` flag permitted. The invariant at stake: **an instance must treat any inbound grant that it did not itself issue, and whose delegation chain it cannot reconstruct end-to-end, as non-transitive regardless of what the grant's `scope` field claims.** Scope is data; transitivity is provenance. Gateways that only validate scope will pass a poisoned chain clean through. ## What Was Observed A three-party federation: Org A (principal agent, holds a warrant `W_A` scoped to `read:inventory` with `may_delegate=false`), a shared A2A gateway G operated by Org B, and Org C (peer agent). A's agent initiated an A2A task to C via G. Trace: 1. A's agent presents `W_A` to G at ingress. G validates the signature against A's published JWKS, checks `scope == read:inventory`, checks expiry, and admits the task. Correct so far. 2. G's policy engine, configured to "translate" inbound warrants into its own federation dialect, calls its signing service and mints `W_G` with `issuer=G`, `subject=C`, `scope=read:inventory`, `may_delegate=true` (the gateway's default for outbound grants, since most of its tenants use G as a root of trust). 3. C's agent receives `W_G`, validates it against G's JWKS — which it trusts, because G is the federation hub — and admits the task. C then, as part of executing the task, calls a fourth-party service D and re-delegates `W_G` to it. D honors `read:inventory` against A's inventory store, which trusts G as an identity provider. 4. A's inventory store logs a read that A's principal never authorized to be delegated. `W_A.may_delegate=false` was never violated *at A* — it was violated at G, which had no obligation to check it because G only validated scope. The failure is not a signature forgery. Every signature in the chain is valid. The failure is that **delegation authority was laundered through a re-signing hop**, and no party in the chain held the information needed to detect it: A's `may_delegate=false` bit was dropped at G's translation layer, and C could not see it because `W_G`'s provenance stops at G. A second observed variant: when G *did* preserve `may_delegate=false` in `W_G`, C's agent runtime still re-delegated, because C's local policy treated "grant issued by a trusted federation hub" as implicitly delegable. The flag was present and ignored — a policy-evaluation ordering bug where trust-anchor status was checked before the delegation flag. ## Condition of Validity The non-transitivity invariant is only enforceable when all three of the following hold; if any fails, the instance must refuse the handoff rather than guess: - **Chain reconstructability:** The inbound grant carries a verifiable delegation chain (issuer links, each signed) that the receiving instance can walk back to a principal it independently trusts. A grant whose chain terminates at an intermediate gateway with no back-pointer to the original principal is *opaque* and must be treated as `may_delegate=false`. - **Delegation-flag preservation:** The gateway's translation step must copy `may_delegate` (and any depth counter) verbatim, or refuse to translate. A gateway that re-mints grants is only safe if it is a *transparent* re-signer: same subject, same scope, same delegation constraints, only the signature changes. - **Trust-anchor separation:** The receiving instance's policy evaluator must check the delegation flag *before* checking whether the issuer is a trusted anchor. Trust-anchor status answers "may I believe this grant is authentic," not "may I propagate it." Conflating the two is the second observed failure. When the chain is opaque but the task genuinely requires downstream delegation, the correct move is an out-of-band authorization request to the original principal — not an inference from the gateway's trust status. ## Decision Boundary The boundary is between **scope validation** and **provenance validation**, and it sits at the moment of egress from any re-signing hop: - If the inbound grant's issuer is the same entity that will consume it (direct peer, no gateway), validate scope and delegation flag locally; transitivity is the peer's problem. - If the inbound grant was re-signed by a gateway, the receiving instance must reconstruct the chain. If reconstruction succeeds and the original principal's `may_delegate` was `true` and depth permits, the grant is transitive; otherwise it is terminal. - If reconstruction fails (opaque chain), the grant is terminal by default. Do not fall back to "the gateway is trusted, so the grant is trusted" — that is the laundering path. - If the task cannot complete under a terminal grant, escalate to the principal. Do not re-delegate to a fourth party on the gateway's authority alone. The non-obvious part: a gateway that is a *fully trusted* identity provider for authentication purposes is still not a valid delegation authority unless it is explicitly configured as one. Trust for authentication and trust for delegation are separate decisions, and federation gateways almost never separate them. ## Operational Effect Instances that enforce the invariant see a measurable drop in cross-org task completion for tasks that legitimately need multi-hop delegation — those now require an explicit principal authorization round-trip, adding latency and a human or policy-service approval step. This is the correct cost. Instances that skip it see the laundering failure above: valid-signature chains that grant scope the principal never delegated, undetectable at any single hop, and typically discovered only in an audit of the terminal resource's access logs. The guardrail is cheap to implement: a single provenance-walk function at every ingress point, defaulting to terminal on opacity, plus a policy-ordering fix that evaluates delegation before trust-anchor status. The expensive part is organizational — getting the gateway operator to stop re-minting grants with default `may_delegate=true`. ```python class FederationProvenanceError(RuntimeError): """Raised when an inbound A2A grant's delegation chain cannot be reconstructed to a trusted principal, or when a re-signing gateway has dropped delegation constraints.""" pass def admit_inbound_grant(grant: dict, trusted_principals: set[str], gateway_id: str) -> bool: """ Decide whether an inbound grant may be consumed AND whether it may be re-delegated downstream. Returns True only if the grant is authentic and its delegation chain is reconstructable to a trusted principal. Terminal grants (may_delegate=False or opaque chain) are admitted for consumption but marked non-transitive by the caller. """ issuer = grant.get("issuer") chain = grant.get("delegation_chain", []) if issuer not in trusted_principals and issuer != gateway_id: raise FederationProvenanceError( f"grant issuer {issuer!r} is neither a trusted principal nor " f"the expected gateway {gateway_id!r}" ) # Gateway re-signing hop: require a back-pointer to the original principal. if issuer == gateway_id: if not chain: raise FederationProvenanceError( "opaque grant: gateway re-signed with no delegation chain; " "cannot reconstruct principal, must treat as non-transitive" ) root = chain[-1].get("issuer") if root not in trusted_principals: raise FederationProvenanceError( f"delegation chain terminates at {root!r}, not a trusted " f"principal; provenance laundering suspected" ) # Delegation flag must survive translation verbatim. if "may_delegate" not in grant: raise FederationProvenanceError( "gateway dropped may_delegate flag during re-signing; " "refusing to infer transitivity" ) # Depth check: chain length must not exceed any declared max. max_depth = grant.get("max_delegation_depth") if max_depth is not None and len(chain) > max_depth: raise FederationProvenanceError( f"delegation chain depth {len(chain)} exceeds declared " f"max {max_depth}" ) return True def re_delegate(grant: dict, target: str, trusted_principals: set[str], gateway_id: str) -> dict: """Attempt to re-delegate a grant to a downstream peer.""" admit_inbound_grant(grant, trusted_principals, gateway_id) # Ordering invariant: delegation check BEFORE trust-anchor check. if not grant.get("may_delegate", False): raise FederationProvenanceError( f"grant from {grant.get('issuer')!r} is non-transitive; " f"refusing re-delegation to {target!r} without principal " f"authorization" ) return {**grant, "subject": target, "delegation_chain": grant.get("delegation_chain", []) + [grant]} ```