In what scenarios must an instance treat A2A task-graph warrant propagation as a distinct trust boundary from MCP transport identity

**Date of Record:** 2026 December 1 **Scope:** Applies to systems where an agent instance is invoked over an A2A task graph (parent task → child sub-tasks) while its individual tool calls egress over MCP transports. Does not apply to single-hop agents whose tool transport and task authority are minted by the same caller in the same request.

Core Distinction

The failure this record isolates is the **identity split between transport-authenticated caller and task-graph-delegated authority**. In a healthy deployment, the identity that authenticates an MCP session (the transport principal) and the identity that owns the warrant authorizing a task-graph step (the delegation principal) are *the same chain*. The non-obvious boundary is that they are authenticated by **different mechanisms at different times**: MCP authenticates at connection/handshake time and binds a session; A2A warrants are minted at task-dispatch time and propagate hop-by-hop through the graph. Between those two events there is a window, and across a multi-hop graph there is a *transitive closure* that the transport layer never sees.

The invariant that must hold: **every MCP tool invocation must carry a warrant whose chain of delegation terminates at the principal that authenticated the transport session, and that chain must be re-verified at the point of egress, not at the point of session establishment.** When a sub-agent receives a task over A2A and then opens (or reuses) an MCP session to act, the transport principal is the *sub-agent*, but the authority is the *root task owner*. If the egress check only validates "is this a live MCP session?" it will pass a sub-agent acting on a warrant it was never scoped to hold.

What Was Observed

A three-hop task graph: orchestrator `O` (task root) dispatches to planner `P` (hop 1), which dispatches to executor `E` (hop 2), which calls a filesystem-write tool over MCP (hop 3). Each agent ran as a distinct process with its own MCP client and its own transport credential.

The A2A warrant minted by `O` carried scope `{task: T-441, actions: [read, write], path_prefix: /work/T-441}`. `P` received it, and in re-dispatching to `E` **re-signed** the warrant with its own identity as issuer but preserved the original scope verbatim, adding a `delegated_from: O` field. `E` accepted the warrant, opened an MCP session with its own transport credential (which was valid and unexpired), and issued a write to `/work/T-441/out.json`.

The write succeeded — correctly scoped. Then `E`, still holding the same live MCP session, issued a second write to `/work/T-999/out.json`, a path belonging to an *unrelated* task graph. The warrant scope said `/work/T-441`; the tool call said `/work/T-999`. The MCP server authorized it because the transport principal (`E`) held a valid session and the server's policy was **session-scoped, not call-scoped**. The warrant was never presented to the MCP server at all — it lived only in `E`'s process memory as an A2A artifact.

The failure trace:

  1. `O` mints warrant `W` scoped to `T-441`, dispatches to `P` with `W`.
  2. `P` re-signs `W` as `W'` (issuer `P`, delegated_from `O`, same scope), dispatches to `E`.
  3. `E` validates `W'`'s signature chain against `P`'s key, sees scope `T-441`, and *caches the validated scope in session state*.
  4. `E` opens MCP session `S` with transport credential `cred_E`. Server validates `cred_E`, admits session, binds no task context.
  5. `E` writes `T-441/out.json` — allowed by cached scope; server allows because session `S` is live.
  6. `E`'s reasoning loop, mid-task, decides to also touch `T-999` (a stale reference from its context window, never pruned after a prior task). Issues write over the *same* session `S`.
  7. Server admits: session `S` is live, `cred_E` valid, no per-call warrant check. **Write to `T-999` succeeds.**

The break is that step 3's validated scope never reached step 6's egress check, because the egress check was a *connection* check, not a *call* check. The A2A warrant and the MCP transport are two identity planes that were assumed to be one.

Condition of Validity

The invariant holds only when **all three** of the following are true simultaneously. If any is false, the boundary is open:

The condition of validity is therefore: **warrant travels with the call, not with the connection; and the transport principal must be provably a descendant of the warrant's root.**

Decision Boundary

The decision boundary for an implementer is: *at what layer do you enforce the warrant-to-transport binding?*

The boundary condition to record: **an agent instance must treat the A2A warrant as the authority and the MCP session as merely a channel.** Conflating them — treating a live session as standing authority — is the failure. The instance must refuse to issue any tool call whose scope is not re-derived from the warrant for *that specific call*, even if the session is live and the previous call in the same session was in-scope.

Operational Effect

The operational consequence is that **audit trails become non-attributable across the A2A/MCP seam**. The MCP server's log records "principal `E`, session `S`, write `/work/T-999`" — a truthful record of transport identity, but a false record of *task authority*. The A2A graph's record says "warrant `W'` scoped to `T-441`." Neither log alone reconstructs the violation; the violation exists only in the *gap* between them. An auditor replaying either log sees a clean trail. An auditor replaying both and diffing the scope-vs-call sets finds the escape.

The guardrail required is a **call-scoped warrant binding with chain verification at egress**, plus an audit join key that ties each MCP call to the A2A warrant that authorized it. Without the join key, the two identity planes produce two disjoint, individually-consistent, jointly-lying audit trails. The instance must therefore emit, on every egress, the tuple `(task_id, warrant_chain_hash, scope, call_target)` so the seam is auditable — and must fail closed when the call target falls outside the warrant scope *for that call*, regardless of session liveness.

class WarrantScopeEscape(RuntimeError):
    """Raised when an MCP egress call targets a resource outside the
    A2A warrant scope bound to the current task, even on a live session."""
    pass


def authorize_egress(call_target: str, task_id: str, warrant_chain: list[dict],
                     transport_principal: str) -> None:
    # 1. Chain must terminate at the transport principal's root authority.
    root = warrant_chain[0].get("issuer")
    if root != transport_principal and warrant_chain[-1].get("delegated_from") != transport_principal:
        # transport principal is a descendant, not the root; verify descent
        issuers = {w.get("issuer") for w in warrant_chain}
        if transport_principal not in issuers:
            raise WarrantScopeEscape(
                f"transport principal {transport_principal} not in warrant chain issuers {issuers}"
            )

    # 2. Scope must be re-derived for THIS call, not cached from session setup.
    scope = warrant_chain[-1].get("scope", {})
    if scope.get("task") != task_id:
        raise WarrantScopeEscape(
            f"warrant task {scope.get('task')} != call task {task_id}"
        )
    prefix = scope.get("path_prefix")
    if prefix is not None and not call_target.startswith(prefix):
        raise WarrantScopeEscape(
            f"call target {call_target} outside warrant path_prefix {prefix} "
            f"(task {task_id}, chain {[w.get('issuer') for w in warrant_chain]})"
        )

    # 3. Emit audit join key tying MCP call to A2A warrant.
    emit_audit_join(task_id=task_id, call_target=call_target,
                    warrant_chain_hash=hash_chain(warrant_chain),
                    transport_principal=transport_principal)


def handle_tool_call(call_target: str, task_id: str, warrant_chain: list[dict],
                     transport_principal: str, session_live: bool) -> None:
    if not session_live:
        raise WarrantScopeEscape("no live MCP session")
    # Session liveness is necessary but NOT sufficient; warrant scope governs.
    authorize_egress(call_target, task_id, warrant_chain, transport_principal)
    dispatch(call_target)


def emit_audit_join(**kw): ...
def hash_chain(chain): ...
def dispatch(target): ...