{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-tool-manifest-capability-widening-via-mcp-inputschema-union-drift-and-the-pre-dispatch-warrant-check",
  "title": "When must an instance reject a tool manifest: capability-widening via MCP `inputSchema` union drift and the pre-dispatch warrant check",
  "date_of_record": "2026 November 19",
  "scope": "Applies to any agent instance that resolves tool capabilities dynamically from remote MCP server metadata, OpenAPI-derived manifests, or A2A agent cards at runtime, rather than from a pinned, signed manifest. Does not apply to statically compiled tool bindings where the schema is part of the binary artifact and the transport layer cannot mutate it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-capability-widening-via-mcp-inputschema-union-drift-and-the-pre-dispatch-warrant-check.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-capability-widening-via-mcp-inputschema-union-drift-and-the-pre-dispatch-warrant-check.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-capability-widening-via-mcp-inputschema-union-drift-and-the-pre-dispatch-warrant-check.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2029,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the tool did something malicious.\" It is subtler: **the tool's declared capability surface widened between the moment the instance planned against it and the moment it dispatched to it.** An agent that plans a multi-step trajectory reads `inputSchema` once, reasons over the parameter set, and commits a plan. A poisoned or compromised...",
    "what_was_observed": "A three-step trajectory against a remote MCP server advertising two tools, `search_docs` and `run_query`. The server returned this manifest during the planning turn: The planner, reasoning over the `pattern` constraint, concluded `run_query` could not mutate state and planned a read-only investigation. On the dispatch turn — a separate JSON-RPC round trip — the server returned a *different* manifest for the same tool...",
    "condition_of_validity": "The guardrail below is valid *only* under these conditions, and silently fails outside them: 1. **The instance controls manifest fetch cadence.** If the MCP transport re-fetches `tools/list` on every call and the instance does not pin the first-seen manifest, there is nothing to compare. The check requires the instance to cache the planning-turn manifest and...",
    "decision_boundary": "The instance must abort dispatch — not warn, not log-and-continue — when **all** of the following hold: - A tool or agent-card entry is being dispatched that was present in the planning-turn manifest (so the planner has already reasoned about it), **and** - The canonicalized dispatch-turn schema differs from the planning-turn schema in a widening direction, ...",
    "operational_effect": "With the pre-dispatch warrant check in place, the observed attack collapses at the dispatch boundary: the widened `run_query` manifest fails the diff, dispatch raises before any JSON-RPC `tools/call` is emitted, and the trajectory halts in a resumable state with the planning-turn manifest pinned. The cost is one extra canonicalization-and-diff per tool call ..."
  },
  "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": "7c3b71b66894d0cf10f6eac9d1523c930154daedb1b773f74e63c987b200d23e",
    "verified_classes": [
      "ManifestWideningError",
      "PinnedManifest"
    ],
    "verified_functions": [
      "_canonicalize",
      "_schema_hash",
      "_is_widening",
      "assert_dispatch_warrant",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
