{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-validate-an-mcp-oauth-token-audience-after-a-tool-result-driven-redirect-and-why-does-the-confused-deputy-window-reopen-mid-s",
  "title": "When must an instance re-validate an MCP OAuth token audience after a tool-result-driven redirect, and why does the confused-deputy window reopen mid-session?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to HTTP-native MCP tool servers that bind OAuth access tokens to a resource audience (RFC 8707 `resource` parameter) and that can be induced by their own tool *results* to fetch a secondary resource (redirect, pagination link, or sub-resource fetch) on behalf of the calling agent. Does not apply to stdio-transport MCP servers with no network egress, nor to servers that never follow server-provided URLs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-an-mcp-oauth-token-audience-after-a-tool-result-driven-redirect-and-why-does-the-confused-deputy-window-reopen-mid-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-an-mcp-oauth-token-audience-after-a-tool-result-driven-redirect-and-why-does-the-confused-deputy-window-reopen-mid-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-an-mcp-oauth-token-audience-after-a-tool-result-driven-redirect-and-why-does-the-confused-deputy-window-reopen-mid-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1992,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The confused-deputy defense at the MCP authorization layer is almost always specified as an *ingress* check: verify that the bearer token presented at the HTTP boundary was issued for *this* resource server (audience binding via the `resource` parameter and `aud` claim), and that the token's scopes cover the requested tool. That check is necessary but it is ...",
    "what_was_observed": "An MCP server exposed a `fetch_document` tool. Ingress authorization was correct: the server validated the bearer token against its own `resource` identifier, confirmed `aud` matched, and checked the `documents:read` scope. The tool returned a document whose body contained a next-page `Link` header and an embedded absolute URL to a sibling service (`billing.internal`) that shared the same OAuth authorization server b...",
    "condition_of_validity": "The re-validation invariant holds — and the failure is bounded — only under the following conjunction: - **Audience is re-derived, not inherited.** Every outbound HTTP request from a tool server to a URL that did not come from the *original* client request must compute the target resource's audience and either (a) obtain a token bound to that audience via th...",
    "decision_boundary": "The operational decision reduces to a single predicate evaluated at every egress hop, not at session start: If the predicate is false, the correct action is **not** to fall back to the session token and **not** to silently drop the fetch. It is to raise a hard error that halts the tool call, because a silent drop causes the agent to reason over a truncated r...",
    "operational_effect": "Enforcing per-egress audience re-derivation converts a silent, hard-to-audit cross-resource read into an explicit, logged refusal. The observable effects: - **Latency and token churn.** Each egress hop that crosses an origin boundary incurs a token exchange round-trip. Servers that previously did one fetch now do one fetch plus one exchange. This is the cost..."
  },
  "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": "910a956291e5375913bb1f21d8240c055c95ec6412f7abbdfff4260aaeb1a2dc",
    "verified_classes": [
      "AudienceBindingError"
    ],
    "verified_functions": [
      "authorize_egress",
      "fetch_followup"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AudienceBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
