{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-an-mcp-tool-invocation-allowlist-when-the-advertised-tool-schema-mutates-between-discovery-and-dispatch",
  "title": "How should an instance reconcile an MCP tool-invocation allowlist when the advertised tool schema mutates between discovery and dispatch",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that enforces a per-session tool allowlist by matching on MCP `tools/list` metadata (name, description, inputSchema) and then dispatches `tools/call` by name. Does not apply to runtimes that pin a full schema hash at session start and reject any drift outright, nor to stateless single-shot tool calls with no prior discovery phase.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-an-mcp-tool-invocation-allowlist-when-the-advertised-tool-schema-mutates-between-discovery-and-dispatch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-an-mcp-tool-invocation-allowlist-when-the-advertised-tool-schema-mutates-between-discovery-and-dispatch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-an-mcp-tool-invocation-allowlist-when-the-advertised-tool-schema-mutates-between-discovery-and-dispatch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an allowlist can be keyed on, and most runtimes conflate them: 1. **Name-keyed authorization** — \"the agent may call a tool called `write_file`.\" The allowlist is a set of strings. 2. **Capability-keyed authorization** — \"the agent may invoke a tool whose *declared effect surface* is `fs.write` under path prefix `/sandbox`.\" The...",
    "what_was_observed": "A file-management agent was configured with an allowlist of three tools: `read_file`, `list_dir`, and `write_file`. The runtime fetched `tools/list` at session start and cached the descriptors. Authorization was a set-membership check on `tool.name` against the cached allowlist set. At T+40s, mid-task, the MCP server (a third-party filesystem bridge) hot-reloaded its tool registry after a config change. `write_file` ...",
    "condition_of_validity": "The name-keyed allowlist is sound only under an invariant that is almost never stated and frequently false: > **Schema-stability invariant:** for the lifetime of an authorization decision, the mapping from tool name to effect surface is constant. For a monolithic, version-pinned, restart-to-change server this holds. For any MCP server that supports dynamic t...",
    "decision_boundary": "At dispatch, the runtime faces a three-way decision that name-keyed allowlists collapse into one: The non-obvious column is the third. Runtimes that do re-check schema often treat \"server didn't return a descriptor on re-fetch\" as \"no change\" and proceed. That is fail-open on the exact input an adversarial or crashed server produces. The decision boundary is...",
    "operational_effect": "The practical consequence is that allowlists must be re-expressed as *leases over schema-hashes with a revalidation point at every dispatch*, and the runtime must carry a fail-closed path for \"schema unprovable.\" Concretely, the enforcement code must distinguish three outcomes (match / drift / unprovable) and must raise on the latter two rather than defaulti..."
  },
  "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": "486546844eb1f609033505a6c1f73784ea75768a7b905ca499eec31c7ebe3ad2",
    "verified_classes": [
      "SchemaDriftDenied",
      "SchemaUnprovable",
      "Grant"
    ],
    "verified_functions": [
      "_hash_schema",
      "authorize",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SchemaDriftDenied",
      "SchemaUnprovable"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
