{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-validate-tool-arguments-after-schema-drift-at-the-mcp-server-boundary",
  "title": "When must an instance re-validate tool arguments after schema drift at the MCP server boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that enforce tool-use policy at the MCP client boundary (argument validation + egress control) against MCP servers whose advertised `inputSchema` and `outputSchema` can change mid-session (server restart, redeploy, capability renegotiation, or tools/list refresh). Does not cover static single-turn tool calls where the schema is pinned for the lifetime of the process, nor does it cover transport-level TLS/auth failures.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-tool-arguments-after-schema-drift-at-the-mcp-server-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-tool-arguments-after-schema-drift-at-the-mcp-server-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-validate-tool-arguments-after-schema-drift-at-the-mcp-server-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1782,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two places an agent runtime can validate a tool call: **at the client boundary before dispatch** (schema-conformant argument validation against the cached `inputSchema`, plus egress policy on the resulting payload) and **at the server boundary after receipt** (the MCP server's own validation against its *current* schema). The invariant that operato...",
    "what_was_observed": "A tool `filesystem.read` advertised `inputSchema` with `properties: {path: {type: string, pattern: \"^/sandbox/\"}}`, `additionalProperties: false`. The runtime's egress guard wrapped the tool: it parsed `path`, resolved it, and rejected anything outside `/sandbox/`. This guard was written against the field list at registration time and asserted `set(args.keys()) == {\"path\"}` as a cheap tripwire. At T+41min the MCP ser...",
    "condition_of_validity": "The client-side egress invariant holds **only if** the guard's inspected field set is provably a superset of the server's *currently effective* `inputSchema.properties` at the instant of dispatch. Formally: `guard.fields ⊇ server.inputSchema.properties.keys()` and `server.inputSchema.additionalProperties === false`. If either fails—new property added under a...",
    "decision_boundary": "The runtime must choose, per tool call, between three states: - **Pinned & sound:** cached schema hash equals last-validated hash, `additionalProperties === false`, guard field set ⊇ schema properties. Dispatch permitted. - **Drifted & re-derivable:** schema hash changed since last validation. The runtime must **block dispatch**, re-derive the guard field se...",
    "operational_effect": "After adopting schema-hash-gated re-derivation, the observed behavior changes in three concrete ways. First, redeploys that add fields trigger a mandatory re-compilation of egress policy before the next dispatch; the `root`-style alternate-base field is caught at re-derivation and denied because no policy rule authorizes it. Second, the `additionalProperties..."
  },
  "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": "1d6ea174657e6f22d9b5a3bea532ec89f099702903db6ba844d2114080a94dd2",
    "verified_classes": [
      "SchemaDriftEgressError",
      "Guard"
    ],
    "verified_functions": [
      "canonical_hash",
      "derive_guard",
      "dispatch",
      "_apply_egress"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SchemaDriftEgressError"
    ],
    "sample_fail_closed_invariants": [
      "cached guard has open additionalProperties",
      "server relaxed additionalProperties; unguarded egress channel possible"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
