{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-validate-mcp-scope-grants-after-a-tool-s-inputschema-mutates-mid-session",
  "title": "Where must an instance re-validate MCP scope grants after a tool's `inputSchema` mutates mid-session",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP servers exposing per-tool authorization scopes over HTTP transport (streamable HTTP / SSE), where a client session holds a negotiated capability set and tool schemas can be re-published via `tools/list` or `notifications/tools/list_changed`. Does not apply to stdio transport with a single immutable manifest, nor to servers that pin a schema hash for the entire session lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-validate-mcp-scope-grants-after-a-tool-s-inputschema-mutates-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-validate-mcp-scope-grants-after-a-tool-s-inputschema-mutates-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-validate-mcp-scope-grants-after-a-tool-s-inputschema-mutates-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1911,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **transport-level authorization** (does this session's bearer token/warrant permit invoking endpoint `POST /mcp` at all) and **tool-level consent scope** (does this *specific* invocation of *this* tool with *these* arguments fall inside a scope the client was granted and the user consented to). HTTP transports collapse...",
    "what_was_observed": "A file-management MCP server exposed `write_file` with scope `fs:write:workspace`. The original `inputSchema` accepted `path` (constrained to a `workspace/` prefix by a server-side regex) and `content`. Consent was granted at session init for `fs:write:workspace`, and the client cached the schema. At T+40min the server deployed a schema revision adding an optional `follow_symlinks: boolean` and relaxing `path` to acc...",
    "condition_of_validity": "The guardrail holds only if the consent record is bound to a **schema digest**, not a tool name, and the server refuses to dispatch a `tools/call` whose resolved schema hash differs from the hash recorded at consent time without an explicit re-consent round-trip. Concretely: - Consent grant must be `(tool_name, schema_hash, scope_set)`, where `schema_hash` i...",
    "decision_boundary": "The boundary is: **does the server's authorization decision depend on any field of the schema, or only on the tool name?** If any scope annotation, path constraint, parameter default, or resolver behavior is schema-derived — and in practice all of them are — then name-keyed consent is unsound the moment the schema can change. The decision to re-validate is n...",
    "operational_effect": "The operational consequence is that **session authorization and tool consent must be decoupled and independently re-validated per dispatch.** A server that authorizes the HTTP session once and trusts it for the session lifetime has, in effect, granted a blanket warrant over a schema surface it does not control the evolution of. The correct posture: the sessi..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "512679f2671a084e823f867b7e14345c8bb21842db703fefb37ef860a256a9bf",
    "verified_classes": [
      "SchemaDriftConsentError",
      "ScopeAnnotationError",
      "ConsentGrant",
      "Session"
    ],
    "verified_functions": [
      "canonical_schema_hash",
      "on_tools_list_changed",
      "dispatch_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SchemaDriftConsentError",
      "ScopeAnnotationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
