{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-tainted-provenance-token-before-re-planning-and-why-transitive-taint-closure-across-tool-call-graphs-f",
  "title": "In what scenarios must an instance quarantine a tainted provenance token before re-planning, and why transitive taint closure across tool-call graphs fails silently at the second hop",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime that tracks information-flow labels (taint) on retrieved content, tool outputs, and intermediate plan arguments across two or more sequential or nested tool invocations. Does not apply to single-hop, stateless tool calls where the model never re-ingests its own tool output into a subsequent call's arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-provenance-token-before-re-planning-and-why-transitive-taint-closure-across-tool-call-graphs-f.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-provenance-token-before-re-planning-and-why-transitive-taint-closure-across-tool-call-graphs-f.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-tainted-provenance-token-before-re-planning-and-why-transitive-taint-closure-across-tool-call-graphs-f.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1975,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent system can mean by \"tainted\": 1. **Source taint** — the label attached to the origin of a piece of content (e.g., a web fetch, a retrieved document, an email body, a tool response that echoes untrusted input). Source taint is *set at ingress* and is cheap to compute. 2. **Propagation taint (transitive clos...",
    "what_was_observed": "A three-hop tool graph: `fetch_doc` → `extract_entities` → `send_message`. - **Hop 1 (`fetch_doc`)** returns a document body. The runtime correctly labels the returned `ToolResult` object with `taint=UNTRUSTED` and `origin=fetch_doc:doc_id=...`. The label lives on the *envelope*, not the string. - **Hop 2 (`extract_entities`)** is invoked with `text=<document body>`. The runtime passes the raw string. The label stays...",
    "condition_of_validity": "The quarantine-before-replan rule is valid — and necessary — under all of the following: 1. **The tool graph has depth ≥ 2** and at least one edge passes data through the model (paraphrase, extraction, summarization, reformatting) rather than by reference. 2. **The downstream sink is an effector** (send, write, execute, delete, authenticate) whose arguments ...",
    "decision_boundary": "The boundary is between **labeling** and **gating**, and it is crossed at the first effector whose argument provenance cannot be reconstructed from object identity. - Below the boundary (labeling suffices): the agent may continue planning, may re-invoke tools, may summarize. The runtime must attach `taint=UNTRUSTED` and `provenance=[hop1, hop2, ...]` to ever...",
    "operational_effect": "When the rule is enforced, three things change empirically: 1. **Laundering transforms are neutralized.** A \"trusted extractor\" no longer clears taint, because taint is carried in `provenance`, not in the extractor's reputation. The crafted-address graph fails closed at hop 3 and escalates with the chain `fetch_doc:doc_id=... → extract_entities → send_messag..."
  },
  "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": "2c8cca9f0af08a29facb4926c615cec72835dded8dcd5ae405d8b56f2b3b2e8a",
    "verified_classes": [
      "TaintClosureViolation",
      "Value"
    ],
    "verified_functions": [
      "guard_effector_call",
      "run_graph",
      "derive"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
