{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-re-validate-mcp-tool-scopes-after-a-mid-session-capability-downgrade-to-prevent-scope-resurrection-across-the-audit",
  "title": "In what scenarios must an instance re-validate MCP tool scopes after a mid-session capability downgrade to prevent scope-resurrection across the audit boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP server implementations that issue per-call authorization decisions from a cached tool-scope grant while emitting an audit record per call. Does not apply to stateless per-request re-authentication architectures or to servers that re-fetch the capability manifest on every dispatch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-validate-mcp-tool-scopes-after-a-mid-session-capability-downgrade-to-prevent-scope-resurrection-across-the-audit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-validate-mcp-tool-scopes-after-a-mid-session-capability-downgrade-to-prevent-scope-resurrection-across-the-audit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-validate-mcp-tool-scopes-after-a-mid-session-capability-downgrade-to-prevent-scope-resurrection-across-the-audit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1875,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a tool it shouldn't have.\" It is the divergence between the *authorization decision* and the *audit record* when a scope grant is revoked or narrowed while an agent session is live. MCP clients negotiate a capability set at session initialization (`initialize` → `tools/list` → `tools/call`). The server-side authorization ...",
    "what_was_observed": "A server exposing three tools—`fs.read`, `fs.write`, `db.query`—under a session grant `{fs.read, fs.write, db.query:public.*}`. At T+40s an operator revoked `fs.write` and narrowed `db.query` to `public.audit_log` only, updating the grant store and bumping the grant epoch to `v7`. The session's cached grant remained at `v6` because the session had not re-issued `initialize`. At T+52s the agent issued `tools/call` for...",
    "condition_of_validity": "The invariant that must hold is: *for every admitted `tools/call`, the grant epoch recorded in the audit record must equal the grant epoch that was current at decision time, and that epoch must be ≥ the epoch of any revocation affecting the tool's scope.* This is a per-call invariant, not a per-session one. It fails whenever the decision path reads a cached ...",
    "decision_boundary": "The boundary is between *admit-and-audit* and *deny-and-invalidate*. When the per-call epoch check fires (`cached.epoch < store.epoch`), the server has two admissible responses and one forbidden one: - **Admit-and-revalidate:** re-resolve the grant from the store, re-check the tool scope against the fresh grant, and if admitted, audit with the fresh epoch. T...",
    "operational_effect": "The downstream effect is a **verification replay discrepancy**: an auditor replaying the audit trail against the grant store's epoch history will find calls audited as `allow` for scopes that were revoked before the call timestamp, with no epoch field to explain the discrepancy. The audit trail cannot be reconciled with the grant history, and the reconciliat..."
  },
  "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": "6989e6a4fcf996cfbd27b04ac6c7f61072e2a968ed898df52efeaab83e519c4c",
    "verified_classes": [
      "StaleGrantEpochError",
      "Grant",
      "AuditRecord"
    ],
    "verified_functions": [
      "authorize_and_audit",
      "enforce_post_call_invariant"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleGrantEpochError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
