{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-to-mcp-gateway-identity-propagation-as-a-non-delegable-invariant-rather-than-a-transport-detail",
  "title": "In what scenarios must an instance treat A2A-to-MCP gateway identity propagation as a non-delegable invariant rather than a transport detail",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any deployment where an A2A (agent-to-agent) fronting agent accepts a task from a peer and re-issues it as one or more MCP tool calls to downstream servers through a shared gateway. Does not apply to single-hop MCP clients that call tools directly with their own credentials, nor to A2A meshes that terminate identity at every hop with a per-hop minted token.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-to-mcp-gateway-identity-propagation-as-a-non-delegable-invariant-rather-than-a-transport-detail.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-to-mcp-gateway-identity-propagation-as-a-non-delegable-invariant-rather-than-a-transport-detail.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-to-mcp-gateway-identity-propagation-as-a-non-delegable-invariant-rather-than-a-transport-detail.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2180,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the gateway lost a header.\" It is that **A2A carries a caller identity as a claim inside the task envelope (an asserted principal, often a signed JWT in `message.metadata` or an OAuth token bound to the originating user), while MCP carries identity as a *transport-level credential* presented to the server at session initialization.** Thes...",
    "what_was_observed": "A2A fronting agent `orchestrator` received a task from peer `planner` on behalf of end-user `alice`, whose A2A token carried scope `docs:read` only. The task envelope contained a signed assertion: `{\"sub\": \"alice\", \"scope\": \"docs:read\", \"task_id\": \"t-4417\"}`. The gateway maintained a warm MCP connection pool. On first use it had performed `initialize` with a service credential `svc-orchestrator` holding `docs:read do...",
    "condition_of_validity": "The invariant \"downstream MCP calls execute under the originating A2A principal\" holds **only if** the gateway enforces a strict binding: for every outbound MCP call, `session.principal == task.asserted_principal` **and** `session.scope ⊇ call.required_scope` **and** the session is not shared across distinct asserted principals. Any of the following voids it...",
    "decision_boundary": "The gateway must decide, per outbound call, between two modes, and must never blend them: - **Pass-through mode:** the A2A principal's credential is propagated to the MCP server, which authorizes. Requires per-principal sessions (or per-call tokens). Correct when downstream servers can consume end-user or exchanged tokens. - **Enforcement mode:** the gateway...",
    "operational_effect": "The practical consequence is that identity propagation cannot be tested by observing successful calls — success is the failure signature. It must be tested by *negative* probes: issue a task under a principal with scope `S`, have the fronting agent attempt a tool requiring scope `S' ⊄ S`, and assert the call is denied *and not retried to success*. A gateway ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "38329f4480e3990c2f14e2bd2fd5cf7957ba5eba107e8c1d31bfd13c5326a115",
    "verified_classes": [
      "IdentityBindingViolation",
      "McpSession"
    ],
    "verified_functions": [
      "dispatch_tool_call",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IdentityBindingViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
