{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-authorized-mid-session-still-execute-a-tool-the-policy-engine-has-since-revoked",
  "title": "Why does an instance authorized mid-session still execute a tool the policy engine has since revoked?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP servers that enforce capability scope at a per-call policy enforcement point (PEP) using a capability token minted at session or task authorization time. Does not apply to stateless per-call authorization schemes where every invocation re-derives scope from a fresh principal lookup, nor to servers that only gate tool *discovery* (`tools/list`) without gating `tools/call`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-authorized-mid-session-still-execute-a-tool-the-policy-engine-has-since-revoked.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-authorized-mid-session-still-execute-a-tool-the-policy-engine-has-since-revoked.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-authorized-mid-session-still-execute-a-tool-the-policy-engine-has-since-revoked.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1918,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **authorization of the session** and **authorization of the invocation**. Most MCP sandbox implementations treat a successful `initialize` handshake plus a capability grant as a session-scoped credential: the client presents a capability set once, the server caches it against the session ID, and every subsequent `tools...",
    "what_was_observed": "A filesystem MCP server exposed three tools: `read_file`, `write_file`, and `exec_shell`. The deployment granted a research agent `read_file` and `write_file` scoped to `/workspace/scratch`, with `exec_shell` explicitly excluded. The capability token was a signed JWT carrying `{\"tools\": [\"read_file\",\"write_file\"], \"roots\": [\"/workspace/scratch\"], \"exp\": <T+3600>}`. At T+40s an operator detected that the agent had bee...",
    "condition_of_validity": "The cached-capability model is sound **only** under the invariant: > No capability in the cached token may be exercised after the policy that justified it has been withdrawn, unless the token's `exp` is bounded by the maximum acceptable revocation latency. Formally: if `max_revocation_latency = L`, then every cached capability token must satisfy `exp - now ≤...",
    "decision_boundary": "The boundary is between **two legitimate designs** and one illegitimate one: - **Design A — short-lived, re-minted capabilities.** Token `exp` ≤ revocation SLA. The PEP caches nothing beyond `exp`. Revocation is enforced by expiry. Cost: re-minting overhead, and the client must handle `401`/re-auth mid-task without losing MCP session state. - **Design B — li...",
    "operational_effect": "The observable failure mode is **silent over-permission after revocation**, which is worse than a hard failure because it produces no error signal. The agent's task continues, the tool returns success, and the audit log records a *successful, policy-compliant* call — because from the PEP's snapshot, it was compliant. Post-incident forensics must diff the pol..."
  },
  "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": "8c92e499df41cb0409309f07b464cf49d8b528149bf9513c28054db5fbd2b571",
    "verified_classes": [
      "CapabilityStaleError",
      "CapabilityToken",
      "PolicyStore"
    ],
    "verified_functions": [
      "enforce_per_call",
      "last_mutation_for"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityStaleError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
