{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-quarantine-a-tool-result-before-taint-propagation-collapses-the-trust-lattice",
  "title": "Where must an instance quarantine a tool result before taint propagation collapses the trust lattice",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP client instances that ingest tool results, assign trust labels, and propagate taint across subsequent tool calls within a session. Does not apply to stateless single-shot completions or to transports where the host never re-issues tainted values into later tool arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-tool-result-before-taint-propagation-collapses-the-trust-lattice.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-tool-result-before-taint-propagation-collapses-the-trust-lattice.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-tool-result-before-taint-propagation-collapses-the-trust-lattice.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1664,
    "python_slice_tokens": 195,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a tool returned untrusted content.\" It is that taint propagation and quarantine routing are two separate state machines that share the same trust label, and the label is written by the *producer* of the tool result while the quarantine decision is made by the *consumer* on a later turn. When a tool result is downgraded (e.g., `trusted` → ...",
    "what_was_observed": "A session issued `search_documents(query)` against an MCP server that proxies an external corpus. The result carried `source_trust: external`, which the client correctly downgraded to `untrusted_external` and recorded a taint edge `search_documents → summary_tool`. The summary tool was invoked with the tainted content embedded in its `context` argument. The server-side taint propagator, running inside the MCP server ...",
    "condition_of_validity": "The invariant `taint(propagate(v)) ⊑ taint(v)` holds only if three conditions are simultaneously satisfied: - **Schema completeness:** every tool argument that can carry a value across a trust boundary must declare a trust annotation, and the propagator must treat *missing* annotations as `untrusted_external` (fail-closed), not as the tool's default. - **Tra...",
    "decision_boundary": "The boundary is: **quarantine is a property of the transition, not of the value.** An instance must route to quarantine at the moment it computes a taint edge whose destination label is *less restrictive* than the source label, and it must do so before the destination tool's arguments are serialized. The decision cannot be deferred to the destination tool's ...",
    "operational_effect": "Enforcing the transition-based check converts a silent laundering path into an explicit `TaintPromotionError` at the propagation step. The value is held, the session is marked `quarantined`, and the calling agent receives a structured refusal rather than a successful tool result. The cost is that legitimate declassification now requires an explicit warrant: ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "5539f2b1fd33ea9fb208ccdab6b63fe9ed12592f82ffaf20472c8325f9f861d6",
    "verified_classes": [
      "TrustLabel",
      "TaintPromotionError"
    ],
    "verified_functions": [
      "propagate_taint",
      "route_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintPromotionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
