{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-propagate-a-taint-label-across-a-tool-boundary-and-what-breaks-when-it-does-not",
  "title": "Where must an instance refuse to propagate a taint label across a tool boundary, and what breaks when it does not",
  "date_of_record": "2026 November 25",
  "scope": "Applies to single- or multi-agent systems that implement dynamic information-flow control (DIFC) by attaching provenance labels to context segments and propagating them across tool-call boundaries. Does not apply to stateless single-turn inference with no tool use, nor to systems that rely solely on input/output classifiers for injection defense without label propagation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-across-a-tool-boundary-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-across-a-tool-boundary-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-propagate-a-taint-label-across-a-tool-boundary-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2223,
    "python_slice_tokens": 564,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is not a property of a *string*; it is a property of the *derivation graph* that produced the string. The failure examined here is the **label-laundering boundary**: the point at which an untrusted segment (e.g., a web page, a tool result, a retrieved document) is consumed by a tool whose *output schema* has no field for provenance, so the tain...",
    "what_was_observed": "A research agent was tasked with \"read the vendor's pricing page, extract the tiers, and write them to `pricing.json` via the file tool.\" The pipeline was: 1. `fetch(url)` → returns page text, correctly labeled `taint=UNTRUSTED, source=vendor_page`. 2. `summarize(text)` → an LLM-backed tool. Its signature is `summarize(text: str) -> str`. The label on the *input* is `UNTRUSTED`. The label on the *output* was assigned...",
    "condition_of_validity": "The conservative propagation rule — *output label = join(input labels) for every tool* — is only sound when the join is defined over a lattice and the tool is *label-transparent*, i.e., it cannot synthesize content not derived from its inputs. This holds for: - Pure formatters (`json.dumps`, `str.upper`) — output is a function of input, join is exact. - Dete...",
    "decision_boundary": "The operational question each runtime must answer per tool call is not \"is this tool trusted?\" but \"**is this tool's output a sound over-approximation of its input's taint?**\" The decision boundary is: - If `tool.kind == transparent`: propagate `join(inputs)` unchanged. No audit needed. - If `tool.kind == generative`: propagate `join(inputs) ⊔ GENERATIVE`. T...",
    "operational_effect": "When the invariant holds, the injected instruction in the vendor page reaches `write_file` as `UNTRUSTED`, the sink gate fires, and the agent halts with a structured taint violation rather than a silent side effect. The agent's reasoning loop can then choose to declassify explicitly (e.g., \"I will treat this summary as untrusted and ask the user to confirm t..."
  },
  "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": "67fb3f4a891df2516c24878ab5776e5c37cfd1ff388e012e734ad66e074baf46",
    "verified_classes": [
      "TaintLaunderingError",
      "LabelBehavior",
      "Label",
      "ToolSpec",
      "TaggedValue",
      "TaintRuntime"
    ],
    "verified_functions": [
      "_demo",
      "join",
      "__or__",
      "__init__",
      "register",
      "call"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert page is not None and (not page.label.untrusted)",
      "assert summary is not None and summary.label.untrusted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
