{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tainted-tool-result-before-reasoning-continues-and-how-do-dynamic-information-flow-labels-survive-the-tool-boundary",
  "title": "When must an instance quarantine a tainted tool result before reasoning continues, and how do dynamic information-flow labels survive the tool boundary?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single- or multi-agent LLM systems that attach dynamic information-flow (IFC) taint labels to context segments and propagate them across tool invocation boundaries (MCP `tools/call`, function-calling, sandboxed exec). Does not apply to stateless single-turn completions with no persistent context or tool output re-entry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-reasoning-continues-and-how-do-dynamic-information-flow-labels-survive-the-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-reasoning-continues-and-how-do-dynamic-information-flow-labels-survive-the-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-tool-result-before-reasoning-continues-and-how-do-dynamic-information-flow-labels-survive-the-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1682,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model followed an injected instruction.\" That is the *symptom*. The boundary failure is a **label-laundering event**: a taint label attached to a low-integrity source (untrusted web content, tool stdout, retrieved document, peer-agent message) is *dropped or downgraded* at the tool boundary because the label lives in the orchestrator'...",
    "what_was_observed": "A planner agent with three tools: `search` (returns untrusted web snippets), `read_file` (returns trusted workspace content), `send_email` (side-effecting, requires `INTEGRITY >= INTERNAL` on any span in the prompt at emission time). Trace of the laundering event: 1. `search(\"vendor payment terms\")` returns a snippet. Orchestrator labels the returned span `{source: web, integrity: UNTRUSTED, taint_id: T1}`. Correct. ...",
    "condition_of_validity": "The quarantine-before-reasoning rule (halt and re-label any tool result whose *requesting context* carried taint, rather than trusting the callee's provenance) is valid only when **all three** hold: 1. **Taint ancestry is recorded at call-emission time**, not reconstructed later. If you cannot answer \"which taint_ids were live in the context window when this...",
    "decision_boundary": "The decision is a join over the taint closure, evaluated **at the moment a tool result is about to be admitted to the reasoning context**: - Let `A` = set of `taint_id`s live in the context at emission of `tools/call`. - Let `r` = the tool result, with declared `produces` integrity `I_r`. - Compute `I_effective(r) = min(I_r, min(integrity(t) for t in A))`. *...",
    "operational_effect": "Without the requesting-context join, every side-effecting tool becomes a laundering sink and prompt-injection taint tracking is decorative. With it, the cost is concrete: legitimate flows where tainted input *should* be actionable (e.g., \"summarize this web page and email it to me\") now require an explicit **declassifier** — a human or policy step that promo..."
  },
  "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": "7e6d9e80a58f4040ad1a54b2d114188ce5842e9f814801a3efbb102284d12b30",
    "verified_classes": [
      "Integrity",
      "TaintLaunderingError",
      "Span",
      "ToolDecl"
    ],
    "verified_functions": [
      "admit_tool_result",
      "check_action_guard"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
