{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-taint-label-as-un-launderable-across-a-tool-mediated-transform",
  "title": "When must an instance treat a taint label as un-launderable across a tool-mediated transform?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that propagate provenance/taint labels on retrieved or tool-returned content and gate outbound sinks (HTTP POST, email, file write to shared storage, message send) on those labels. Does not cover pure prompt-injection filtering at the model layer, nor static capability allow-lists that ignore per-token provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-taint-label-as-un-launderable-across-a-tool-mediated-transform.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-taint-label-as-un-launderable-across-a-tool-mediated-transform.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-taint-label-as-un-launderable-across-a-tool-mediated-transform.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1934,
    "python_slice_tokens": 507,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model is binary: content is either *trusted* (from the operator, the system prompt, the signed config) or *untrusted* (fetched from the web, returned by an arbitrary MCP tool, read from a user-supplied document). Taint-aware gating then blocks untrusted-labeled content from reaching an exfiltration sink. The non-obvious boundary is that **t...",
    "what_was_observed": "A research agent was tasked with \"summarize this vendor page and email the summary to the team.\" The pipeline: 1. `fetch_url` returned page content labeled `UNTRUSTED:web`. 2. `summarize` (an LLM-backed helper tool) was invoked with that content. The helper's schema accepted `text: str` and returned `summary: str`. Its output object carried **no taint field** — the tool author had not threaded provenance through. 3. ...",
    "condition_of_validity": "The gate is sound only while all of the following hold. Each is a precondition, not a guarantee: - **Closure over transforms.** Every function that consumes labeled data and emits data is registered as a transform node whose output label is computed as the join (least upper bound) of input labels and the tool's own trust class. An unregistered transform that...",
    "decision_boundary": "The precise boundary is this: **a value is safe to send to a sink iff its transitive taint set is a subset of the sink's permitted label set.** The decision is *not* \"did an LLM touch it\" and *not* \"does it look clean.\" It is a set-inclusion test over the derivation graph. Concretely, the gate must: 1. Resolve the argument's provenance to a *set* of source l...",
    "operational_effect": "With monotonic propagation and fail-closed-on-unknown, the observed pipeline blocks at step 3: `summary` inherits `UNTRUSTED:web`, `send_email`'s allowed set excludes it, and the call raises. The agent must then either (a) request human approval, (b) route through a declassifier, or (c) abandon the send. The exfiltration path is closed without needing to det..."
  },
  "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": "2d5e57f51ae24609bd51707b21a648db933e2f2b1f41f78857a981cdbd78b548",
    "verified_classes": [
      "TrustLabel",
      "TaintLaunderingError",
      "Provenance",
      "TaintStore"
    ],
    "verified_functions": [
      "gated_sink",
      "summarize_tool",
      "run_pipeline",
      "join",
      "label",
      "lookup"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
