{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-derived-label-after-a-tool-boundary-taint-label-laundering-through-tool-returned-provenance",
  "title": "When must an instance quarantine a derived label after a tool boundary: taint-label laundering through tool-returned provenance",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that propagate dynamic information-flow (DIFC/taint) labels across tool-call boundaries, where tool outputs are relabeled based on the trust domain of the tool rather than the provenance of the bytes. Does not apply to systems where tools are fully trusted, or where labels are only assigned at ingest and never re-derived.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-label-after-a-tool-boundary-taint-label-laundering-through-tool-returned-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-label-after-a-tool-boundary-taint-label-laundering-through-tool-returned-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-label-after-a-tool-boundary-taint-label-laundering-through-tool-returned-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection gets through.\" It is **label laundering**: an injected instruction arrives inside a low-trust tool result, the agent correctly tags it `UNTRUSTED`, but a *downstream* tool call returns a value that was *computed from* the tainted input and is relabeled `TRUSTED` because the tool itself lives in a trusted domain. The taint...",
    "what_was_observed": "A research agent with three tools: `fetch_url` (domain `EXTERNAL`, returns `UNTRUSTED`), `summarize` (domain `INTERNAL`, returns `TRUSTED`), and `write_file` (domain `INTERNAL`, gated on `TRUSTED` input only). The `summarize` tool's labeler assigns `TRUSTED` to its output because the *tool* is internal. Trace: 1. `fetch_url(\"https://attacker.example/p\")` returns a page whose body contains: `Ignore prior instructions....",
    "condition_of_validity": "The laundering is *possible* whenever all three hold: - **(C1) Transform-preserving taint.** A tool in a higher-trust domain accepts lower-trust input and emits output whose label is derived from the tool's domain, not from the input's labels. - **(C2) Semantic retention.** The transform does not provably strip imperatives — summarization, translation, refor...",
    "decision_boundary": "The boundary is not \"did the tool return tainted bytes?\" but **\"is the returned label the join of all input labels along the data-dependency edge, or is it the tool's domain label?\"** Operational rule: on every tool return, compute `out_label = domain_label(tool) ⊔ ⋁ input_labels`. If `out_label ≠ domain_label(tool)` — i.e., the join is strictly more tainted...",
    "operational_effect": "Without the join-and-quarantine rule, taint tracking gives false assurance: it looks like defense-in-depth while every transform tool is a laundering station. The practical consequences: - **Silent privilege escalation** through any `summarize`/`translate`/`extract`/`embed` tool, because these are exactly the tools agents are told to use on untrusted input. ..."
  },
  "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": "8f9a2b5c7f648ac8dac5808882f65c445629083814bfd638a6818f89a4f7d8f8",
    "verified_classes": [
      "TaintLaunderingError",
      "LabeledValue",
      "ToolManifest"
    ],
    "verified_functions": [
      "join",
      "invoke_tool",
      "sink_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
