{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distinguish-a-hallucinated-tool-call-from-a-genuine-call-to-a-tool-whose-schema-silently-drifted-and-why-the-trace-alone-cannot",
  "title": "Where must an instance distinguish a hallucinated tool call from a genuine call to a tool whose schema silently drifted, and why the trace alone cannot tell you",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any LLM agent whose tool surface is discovered dynamically over MCP (or a comparable descriptor protocol) where the server's `inputSchema` can change between the instance's discovery event and the instance's invocation, and where the agent's observability layer reconstructs causality from emitted traces. Does not apply to agents with a statically pinned, hash-verified tool manifest regenerated only at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-a-hallucinated-tool-call-from-a-genuine-call-to-a-tool-whose-schema-silently-drifted-and-why-the-trace-alone-cannot.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-a-hallucinated-tool-call-from-a-genuine-call-to-a-tool-whose-schema-silently-drifted-and-why-the-trace-alone-cannot.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distinguish-a-hallucinated-tool-call-from-a-genuine-call-to-a-tool-whose-schema-silently-drifted-and-why-the-trace-alone-cannot.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2241,
    "python_slice_tokens": 459,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two failure modes that produce *identical trace evidence* but require opposite remediations, and conflating them is the entire trap: 1. **Hallucinated invocation** — the model emitted a `tool_use` block naming a tool that the server never advertised, or with arguments that no schema ever permitted. The fault is in the sampler: the model confabulate...",
    "what_was_observed": "A three-tool MCP server (`query_metrics`, `list_dimensions`, `annotate`) was redeployed at T0 mid-session. The drift was a single, quiet edit to `query_metrics.inputSchema`: - Before: `window` was `{\"type\": \"string\", \"enum\": [\"1m\",\"5m\",\"1h\"]}`. - After: `window` was split into `window_value: {\"type\":\"integer\"}` and `window_unit: {\"enum\":[\"s\",\"m\",\"h\"]}`; the old `window` key was dropped. The running instance had cache...",
    "condition_of_validity": "The distinction between the two classes is *decidable* only if the observability record carries the schema the instance believed in at emission time — not the schema the server holds at read time. Formally, a call is: - **drift-induced** iff `args ⊨ schema_at(instance.last_discovery)` AND `args ⊭ schema_at(server.now)`; - **hallucinated** iff `args ⊭ schema_...",
    "decision_boundary": "The boundary that separates a guardable system from an unguardable one is **whether descriptor identity is part of the call's provenance or part of its environment.** Three regimes: 1. **Environment-scoped (broken):** the schema lives only on the server; the instance reads it at discovery and the observability layer reads it at query time. Drift is invisible...",
    "operational_effect": "Concretely, the following changes are forced on any agent operating over an evolving MCP surface: - **Descriptor hashing at discovery and at emission.** The instance hashes the canonicalized `inputSchema` at discovery, caches it, and stamps it onto every `tool_use`. The observability store keys schema versions by hash so a trace row can be rehydrated against..."
  },
  "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": "9d0b06e6ab493d475bb9d475c9e4d0b2969d74367132cc6a523e312902cf92f8",
    "verified_classes": [
      "SchemaProvenanceError",
      "SchemaDriftError",
      "Descriptor",
      "ToolUse"
    ],
    "verified_functions": [
      "_conforms",
      "classify_tool_use",
      "emit_call",
      "hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftError",
      "SchemaProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
