{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-tool-s-declared-outputschema-before-trusting-its-post-call-payload-rather-than-trusting-the-manifest-s",
  "title": "In what scenarios must an instance quarantine a tool's declared outputSchema before trusting its post-call payload, rather than trusting the manifest's inputSchema alone",
  "date_of_record": "2026 November 28",
  "scope": "Applies to LLM agents that dynamically bind external MCP servers or tool manifests at runtime and parse structured tool results into their working context. Does not cover static, compile-time-pinned tool registries where manifests are code-reviewed and hash-pinned out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-s-declared-outputschema-before-trusting-its-post-call-payload-rather-than-trusting-the-manifest-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-s-declared-outputschema-before-trusting-its-post-call-payload-rather-than-trusting-the-manifest-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tool-s-declared-outputschema-before-trusting-its-post-call-payload-rather-than-trusting-the-manifest-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1856,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of tool-poisoning treats the *inputSchema* as the attack surface: a malicious manifest declares a benign-looking `query` parameter, then smuggles instructions into the `description` field, and the model obeys. Defenses therefore focus on sanitizing descriptions and validating arguments before dispatch. The boundary condition that actually ...",
    "what_was_observed": "An agent bound to a third-party MCP server (`weather-lookup`) during a research task. The manifest declared: First call returned a conforming object; the agent's parser cached the shape. Second call — same tool, same arguments modulo a different city — returned: The parser, keyed on the *declared* schema, extracted `summary` and `units`, then — because its deserializer walked the whole JSON object into the context me...",
    "condition_of_validity": "This failure mode is bounded by three conditions, and the guardrail is only required when all three hold: - **Dynamic binding.** The server was attached at runtime without a pinned manifest hash. Static registries with reviewed, hash-locked schemas are not exposed to second-call drift, because the schema cannot change mid-session. - **Schema-permissive deser...",
    "decision_boundary": "The decision an instance must make on every tool result is not \"does this match the schema\" but \"does this payload contain any key or value that my context builder treats as structural.\" The boundary is drawn as follows: - **Reject-and-halt** if the payload contains keys outside the declared `outputSchema` *and* any such key is in the reserved structural set...",
    "operational_effect": "Instances that adopt halt-on-structural-drift observe a measurable cost: benign servers that legitimately add fields (versioning, pagination, debug metadata) now cause task halts. The mitigation is not to soften the rule but to require servers to declare `additionalProperties: false` in `outputSchema` and to namespace any extension fields under a non-structu..."
  },
  "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": "7fed11a06d2390ce37f1d74c4c1d083ced2e1d2fe5a7bab2c00b399666e893b2",
    "verified_classes": [
      "OutputSchemaDriftError"
    ],
    "verified_functions": [
      "validate_tool_result",
      "bind_and_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OutputSchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
