{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reuses-an-mcp-session-token-across-a-capability-scope-downgrade-and-the-transport-still-authenticates-the-stale-grant",
  "title": "What happens when an instance reuses an MCP session token across a capability-scope downgrade and the transport still authenticates the stale grant",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP client/server deployments where a single authenticated transport session (SSE or streamable-HTTP) carries a negotiated capability set, and where the server mutates that capability set mid-session (tool revocation, scope narrowing, credential rotation, or re-auth). Does not apply to stateless one-shot request/response MCP transports that re-negotiate capabilities per request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-session-token-across-a-capability-scope-downgrade-and-the-transport-still-authenticates-the-stale-grant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-session-token-across-a-capability-scope-downgrade-and-the-transport-still-authenticates-the-stale-grant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-session-token-across-a-capability-scope-downgrade-and-the-transport-still-authenticates-the-stale-grant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2073,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **transport-level authentication** (who is on the other end of this socket, proven by a bearer token or mTLS binding established at session open) and **per-session capability authorization** (what that authenticated principal is permitted to invoke *right now*). In a correct MCP implementation these are two separate ga...",
    "what_was_observed": "A representative trace from a streamable-HTTP MCP server fronting a tool-executing agent: 1. `initialize` at t=0. Client presents bearer token `T1` scoped to `tools:read tools:write admin:shell`. Server authenticates, records `session_id=S`, caches `capabilities = {read, write, shell}` keyed by `S`, returns the `initialize` result advertising all three. 2. At t=40s the human operator, via an out-of-band admin action,...",
    "condition_of_validity": "The guardrail — the invariant that must hold — is: > **For every privileged MCP method invocation on session `S` with presented credential `C`, the authorized capability set must equal `introspect(C).scope ∩ negotiated(S)`, evaluated at call time, never at `initialize` time.** Three conditions bound where this invariant is load-bearing versus where it can be...",
    "decision_boundary": "The decision boundary separates two states that produce identical transport-level telemetry: - **State A (valid):** session authenticated, `cached_capabilities == introspect(current_token).scope ∩ negotiated`, and `now - capability_decision_time <= max_session_capability_age`. - **State B (violated):** session authenticated, but `cached_capabilities ⊄ intros...",
    "operational_effect": "The operational consequence is that **capability revocation in MCP is not a revocation; it is a request that the server may honor at the next session boundary, which may never come.** For an agent, this means: - Any security control expressed as \"revoke the token's scope\" is defeated for the lifetime of every open session bound to that token. The blast radiu..."
  },
  "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": "e419369b05fba42fae4513742ab9934635a31e701509950ad1cbab479f0b742b",
    "verified_classes": [
      "CapabilityStalenessError",
      "SessionRecord"
    ],
    "verified_functions": [
      "authorize_call",
      "handle_privileged_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityStalenessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
