{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-an-mcp-tool-call-whose-token-exchange-succeeded-but-whose-audience-claim-drifted-across-a-token-refresh",
  "title": "Under what conditions must an instance refuse an MCP tool call whose token exchange succeeded but whose audience claim drifted across a token-refresh boundary",
  "date_of_record": "2026 November 26",
  "scope": "Applies to remote MCP servers acting as OAuth 2.1 resource servers that validate bearer tokens minted via token exchange (RFC 8693) with an `aud` claim bound to a specific tool-server resource identifier. Does not cover first-party local stdio MCP servers, nor servers operating under a shared-issuer trust model with no per-resource audience binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-an-mcp-tool-call-whose-token-exchange-succeeded-but-whose-audience-claim-drifted-across-a-token-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-an-mcp-tool-call-whose-token-exchange-succeeded-but-whose-audience-claim-drifted-across-a-token-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-an-mcp-tool-call-whose-token-exchange-succeeded-but-whose-audience-claim-drifted-across-a-token-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2216,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired token\" and not \"invalid signature.\" It is the case where a token exchange **succeeds**, the signature **verifies**, the expiry is **comfortably in the future**, and the tool call is nonetheless **unauthorized** because the `aud` claim no longer names *this* resource server. The distinction that matters operationally: an MCP client...",
    "what_was_observed": "An agent orchestrator held a long-lived reasoning loop over three MCP tool servers—`files.read`, `db.query`, and `mail.send`—all issued by one authorization server `auth.corp.internal`, all reachable through one client registration. The client performed RFC 8693 exchange per call, but cached the resulting access token in a map keyed by `(issuer, subject, sorted(scopes))`. The `resource` parameter of the exchange—the ...",
    "condition_of_validity": "An instance must refuse the tool call—must raise rather than proceed—when **all** of the following hold simultaneously: 1. The bearer token's signature and `exp`/`nbf` validate against the issuer's JWKS. 2. The token was obtained via token exchange (`grant_type=urn:ietf:params:oauth:grant-type:token-exchange`), so its `aud` is a *deliberate* binding, not an ...",
    "decision_boundary": "The boundary is between **audience-as-presence** and **audience-as-membership**, and it must be enforced at the resource server, not the client. - **Reject** (audience-as-membership): `my_resource_uri in token.aud` where `my_resource_uri` is the exact string this server registered with the authorization server. A token whose `aud` is `[\"https://mail.corp.int...",
    "operational_effect": "With audience-as-membership enforced at the resource server and the resource-bearing cache key enforced at the client: - The turn-58 collision becomes a cache miss, not a cache overwrite. The `mail.send` exchange stores `T2` under a distinct key; the turn-59 `db.query` call either hits a still-valid `T1` or performs a fresh exchange for `db.corp.internal`. E..."
  },
  "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": "346c53da0e8ec74cbaf91b5f67c54c8555b68c3457e644d8e0210a24de152f39",
    "verified_classes": [
      "AudienceMismatchError",
      "TokenCacheCollisionError",
      "ExchangedToken",
      "ResourceBoundTokenCache"
    ],
    "verified_functions": [
      "validate_for_resource",
      "call_tool",
      "audience",
      "is_live",
      "__init__",
      "_key",
      "get",
      "put",
      "assert_no_drift"
    ],
    "verified_functions_count": 9,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AudienceMismatchError",
      "TokenCacheCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
