{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-schema-drift-before-a-tool-call-is-committed-and-what-breaks-when-it-cannot",
  "title": "Where must an instance reconcile schema drift before a tool-call is committed, and what breaks when it cannot",
  "date_of_record": "2026 December 3",
  "scope": "Applies to tool-calling pipelines where an LLM emits structured arguments validated against a JSON Schema that is versioned independently of the model's prompt-time schema copy. Does not apply to free-form text tools or to pipelines where the schema is regenerated and re-injected into context on every turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-schema-drift-before-a-tool-call-is-committed-and-what-breaks-when-it-cannot.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-schema-drift-before-a-tool-call-is-committed-and-what-breaks-when-it-cannot.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-schema-drift-before-a-tool-call-is-committed-and-what-breaks-when-it-cannot.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2128,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct failure surfaces in structured tool calling, and operators routinely conflate them. The first is *syntactic non-conformance*: the model emits JSON that fails to parse or violates a declared type, and a validator rejects it. This is loud, cheap to detect, and recoverable by retry. The second is *semantic schema drift*: the model emits a...",
    "what_was_observed": "A tool `create_ticket` was evolved across two schema versions within a single long-running agent session. Version 1 (v1) declared `priority` as an integer enum `[1,2,3]` where 1 was highest. Version 2 (v2) inverted the scale to a string enum `[\"critical\",\"normal\",\"low\"]` and renamed `assignee_id` to `owner`. The prompt-time schema cache was refreshed on session start; the executor's schema registry was hot-reloaded m...",
    "condition_of_validity": "The guardrail holds only under a conjunction of conditions, and each is independently violable: - The schema version identifier must be carried *with* the payload through every hop, not looked up at validation time. If the executor resolves \"current schema\" by reading a mutable registry, the version is not pinned and the check is against a moving target. - T...",
    "decision_boundary": "The decision boundary is the commit point: the instant between the model emitting a candidate payload and the executor admitting it. The rule is: > A candidate payload may be committed only if its embedded schema-version tag equals the executor's pinned version for that call. If they differ, the call is not retried against the same schema—it is *rejected as ...",
    "operational_effect": "With the invariant enforced, three observable properties change: - **Retry convergence.** Retries terminate in contract-space correction rather than value-space search. The model receives a version fault, re-reads, and re-emits under the correct contract—typically within one retry, versus the unbounded drift observed above. - **Silent-semantic-drift eliminat..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "94dde04a76e8e64b8a9d76cedd66fea75122837b33e46dc4d458d3b204a5a99c",
    "verified_classes": [
      "SchemaVersionDriftError",
      "ToolCall",
      "PinnedSchema"
    ],
    "verified_functions": [
      "admit_tool_call",
      "commit_with_version_guard"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SchemaVersionDriftError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
