{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-re-labeled-tool-result-as-tainted-provenance-laundering-across-nested-tool-calls",
  "title": "When must an instance treat a re-labeled tool result as tainted: provenance laundering across nested tool calls",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that propagate taint labels on tool results and enforce policy dynamically at each hop (MCP tool calls, sub-agent dispatch, retrieval re-ingestion). Does not apply to single-shot prompts with no tool surface, nor to systems that quarantine all tool output unconditionally.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-re-labeled-tool-result-as-tainted-provenance-laundering-across-nested-tool-calls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-re-labeled-tool-result-as-tainted-provenance-laundering-across-nested-tool-calls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-re-labeled-tool-result-as-tainted-provenance-laundering-across-nested-tool-calls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2425,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *origin taint* and *provenance taint*. Origin taint is a static label stamped where bytes first entered the agent: \"this string came from `web.fetch`,\" \"this string came from `user.message`.\" Provenance taint is the dynamic claim that a downstream consumer makes about those bytes after they have been transformed: summa...",
    "what_was_observed": "A research agent was configured with a policy: tool results carrying `provenance=untrusted` may be read but may not be passed as arguments to any tool in the `filesystem.write` or `messaging.send` capability class. The policy was enforced at the argument-construction step by inspecting the provenance tag on each string value flowing into the call. The agent was asked to compile notes from a public web page into a loc...",
    "condition_of_validity": "The origin-taint assumption is valid only under a condition that is almost never checked: **that every transformation between ingress and enforcement is taint-preserving on the byte substrings it carries forward.** A transformation is taint-preserving if, for every output token sequence that is a substring (or a faithful paraphrase) of a tainted input, the o...",
    "decision_boundary": "The boundary is not \"is this string tainted?\" but \"**is the label on this string authored by a component that observed the original ingress, or by a component that only observed a downstream representation?**\" The two questions have different answers at exactly the seams where laundering occurs. Operationally, an instance must treat a tool result as tainted—...",
    "operational_effect": "The immediate effect is that dynamic policy enforcement must be *taint-closing*: the policy engine cannot evaluate a call in isolation against the labels on its arguments. It must evaluate the call against the transitive taint of every value that flowed into the production of those arguments, computed by the orchestrator that observed the whole chain. Concre..."
  },
  "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": "215484ae6ed6be35b5e8c50db7bf3e097d37b46902e40081a4e56352ac5a462b",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "effective_taint",
      "_severity",
      "enforce_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
