# Why does an instance lose warrant authority when an MCP-to-A2A bridge re-signs a delegated call **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent systems where an MCP server (tool-provider posture) is bridged into an A2A agent-to-agent mesh via a gateway that terminates one protocol and originates the other, and where authorization is carried as a signed warrant/capability token rather than ambient credentials. Does not apply to single-org deployments where the gateway and both endpoints share one trust root, nor to pure MCP fan-out with no A2A hop. ## Core Distinction There are two things a bridge can do with an inbound warrant, and conflating them is the entire failure: 1. **Forward the warrant** — the gateway passes the original signed capability token through unchanged, so the downstream A2A callee verifies the *originating* principal's signature chain end-to-end. 2. **Re-sign the warrant** — the gateway, holding its own signing key, mints a *new* warrant asserting "gateway vouches that principal P may do X" and presents *that* to the callee. Re-signing is the natural thing to implement because MCP and A2A carry authority differently. MCP tool invocations typically ride on transport-level or session-level auth (an API key, an OAuth bearer scoped to the server), while A2A handoffs expect a per-message capability/warrant object with an explicit issuer, subject, audience, and expiry. A gateway author writing the bridge sees "I have a session, I need a warrant" and mints one. The boundary failure is that **re-signing silently collapses a two-hop delegation chain into a one-hop assertion**, and the callee can no longer distinguish "P was authorized by its home org to call me" from "some gateway claims P is allowed." The warrant is cryptographically valid and semantically hollow. This is not a signature-verification bug. Every signature verifies. The failure is that the *delegation depth* encoded in the trust model is not preserved across the protocol translation, and no party notices until an auditor replays the call graph. ## What Was Observed A cross-org federation: Org A runs an MCP tool server exposing a `settle_invoice` capability. Org B runs an A2A agent (`billing-orchestrator`) that needs to invoke it on behalf of an end-user principal `u-4471` whose home org is C. The path is `u-4471 (C) → billing-orchestrator (B) → MCP-gateway (B) → settle_invoice (A)`. The gateway (`gw-b`) terminates the A2A message, extracts the MCP tool call, and — because the MCP server in Org A only accepts a bearer token minted by `gw-b`'s registered client — mints a fresh warrant: ``` iss: gw-b sub: u-4471 aud: settle_invoice@org-a scope: invoice:settle exp: +300s ``` The callee in Org A verifies: signature valid, `iss` is a registered federation partner, `sub` matches the requested actor, scope is within the partner's grant. **It accepts.** The invoice settles. The failure surfaces on audit replay, weeks later. Org A's compliance replay reconstructs the call graph and asks: "was `u-4471` actually delegated `invoice:settle` by Org C, or did Org B's gateway assert it unilaterally?" The warrant says `iss: gw-b`. There is no link back to a C-issued delegation for `u-4471`. Org B's gateway had, in fact, been configured to mint `invoice:settle` for *any* `sub` that presented a valid A2A session — a scope-confusion bug in `gw-b`'s mapping table. Because `gw-b` re-signed, the callee in Org A had no way to see that `u-4471`'s actual delegated scope from Org C was `invoice:read` only. Three thousand invoices settled under a warrant whose subject never held the scope. Two secondary observations from the same incident: - The gateway's mint had a **300s expiry it invented**, independent of the upstream warrant's 900s. When the upstream delegation expired mid-batch, `gw-b` kept minting fresh 300s warrants off a cached session, so calls continued succeeding for ~40 minutes past the true delegation expiry. - A2A's handoff metadata carried a `parent_task_id`, but the MCP side had no field to receive it. The bridge dropped it. The audit replay could not stitch the A2A task tree to the MCP invocation records by anything other than timestamp proximity. ## Condition of Validity Forwarding the original warrant is only valid when all of the following hold; re-signing is only acceptable when the first is false *and* the rest are enforced: 1. **Audience flexibility.** The downstream callee must accept a warrant whose `aud` names the *originating* resource, not the gateway. If Org A's MCP server hard-requires `aud == settle_invoice@org-a` and the C-issued warrant says `aud: billing-orchestrator@org-b`, forwarding fails closed and the gateway is *forced* to re-sign. This is the common case and the root architectural pressure toward the failure. 2. **Chain preservation on re-sign.** If re-signing, the new warrant MUST embed the inbound warrant (or its hash + issuer + subject + scope + expiry) as an `act` / `may_act` / delegation-chain claim, and the callee MUST verify the chain, not just the leaf. 3. **Scope narrowing only.** The re-signed scope must be a subset of the inbound warrant's scope for that subject. The gateway may *reduce* authority, never *invent* it. 4. **Expiry monotonicity.** The re-signed `exp` must be `min(inbound_exp, now + gateway_ttl)`. A cached session must not outlive the delegation that authorized it. 5. **Correlation propagation.** The A2A `parent_task_id` and any trace/span IDs must survive into whatever MCP metadata field the server logs, or audit replay is impossible. The invariant: **for every accepted call, there exists a verifiable chain from the callee's leaf warrant back to a warrant issued by the subject's home trust root, with non-increasing scope and non-increasing expiry at every hop.** Re-signing without chain embedding violates this while leaving every local check green. ## Decision Boundary The gateway must decide, per call, between *forward* and *re-sign-with-chain*. The boundary is not "can I forward?" (often no, per condition 1) but "if I re-sign, do I have the inbound warrant's full claim set to embed, and does the callee verify chains?" - If the callee verifies delegation chains → re-sign with embedded chain, narrow scope, clamp expiry. Safe. - If the callee verifies only leaf signatures → **re-signing is unsafe and forwarding is the only correct option**; if forwarding is impossible due to audience mismatch, the call must fail closed with an explicit `WarrantAudienceMismatch`, not be papered over with a gateway-minted warrant. - If the gateway cannot determine the inbound warrant's scope for the specific subject (e.g., the A2A session carries a coarse token, not a per-subject warrant) → the gateway has *no authority to assert scope* and must reject. The dangerous middle — callee accepts leaf-only, gateway re-signs because forwarding is blocked — is exactly the incident configuration. It is a *silent* boundary: no error, no log line distinguishing "forwarded" from "minted," and the only detector is out-of-band audit replay. ## Operational Effect The blast radius is asymmetric and delayed. Locally, everything passes: signatures verify, scopes are within the partner grant, latency is normal. The failure is invisible until a replay reconstructs the graph, at which point *every* call through that bridge is suspect — not just the mis-scoped ones — because the warrants cannot distinguish legitimate delegation from gateway assertion. Remediation requires re-deriving authority from source-of-truth delegation records for the entire window, which is why the incident took three weeks to bound. The durable guardrail is to make the bridge's choice *observable and typed*: every emitted warrant carries a `bridge_mode` claim (`forwarded` | `resigned_with_chain`), the callee rejects `resigned_with_chain` unless a chain claim is present and verifies, and the gateway refuses to mint a scope it cannot trace to an inbound claim for that subject. Expiry is clamped, never invented. Correlation IDs are mandatory across the protocol seam or the call is refused. This converts a silent semantic collapse into a loud, per-call, machine-checkable invariant. ```python from dataclasses import dataclass from typing import Optional class WarrantBridgeError(RuntimeError): """Raised when an MCP-to-A2A bridge cannot preserve delegation authority.""" @dataclass class Warrant: issuer: str subject: str audience: str scope: frozenset[str] expires_at: float chain: Optional[tuple["Warrant", ...]] = None # embedded inbound delegation bridge_mode: str = "forwarded" # "forwarded" | "resigned_with_chain" def bridge_warrant( inbound: Warrant, callee_audience: str, gateway_id: str, gateway_ttl: float, now: float, callee_verifies_chain: bool, ) -> Warrant: # Condition 1: can we forward unchanged? if inbound.audience == callee_audience: return inbound # forwarded; chain preserved by construction # Forwarding blocked by audience mismatch. Re-signing is the only path, # but it is only legal if the callee will verify the embedded chain. if not callee_verifies_chain: raise WarrantBridgeError( f"audience mismatch ({inbound.audience!r} != {callee_audience!r}) " f"and callee does not verify delegation chains; refusing to mint " f"a leaf-only warrant for subject {inbound.subject!r}" ) # Condition 4: expiry monotonicity — never outlive the inbound delegation. clamped_exp = min(inbound.expires_at, now + gateway_ttl) if clamped_exp <= now: raise WarrantBridgeError( f"inbound warrant for {inbound.subject!r} already expired at " f"{inbound.expires_at}; gateway session must not extend it" ) # Condition 2 + 3: embed chain, narrow scope only (here: inherit exactly, # never widen). A real bridge would intersect with the requested scope. return Warrant( issuer=gateway_id, subject=inbound.subject, audience=callee_audience, scope=inbound.scope, # subset of inbound.scope — never invented expires_at=clamped_exp, chain=(inbound,), bridge_mode="resigned_with_chain", ) def verify_at_callee(w: Warrant, required_scope: str, now: float) -> None: if now >= w.expires_at: raise WarrantBridgeError(f"warrant expired at {w.expires_at}") if required_scope not in w.scope: raise WarrantBridgeError( f"scope {required_scope!r} not granted to {w.subject!r}" ) if w.bridge_mode == "resigned_with_chain": if not w.chain: raise WarrantBridgeError("re-signed warrant missing delegation chain") # Walk the chain to a home-root-issued leaf; scope and expiry must be # non-increasing at every hop. prev = w for hop in w.chain: if not hop.scope.issuperset(prev.scope): raise WarrantBridgeError("scope widened across delegation hop") if hop.expires_at > prev.expires_at: raise WarrantBridgeError("expiry extended across delegation hop") prev = hop ```