{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-a-taint-label-through-a-tool-boundary-but-the-tool-returns-a-value-derived-from-a-different-input-than-the-on",
  "title": "What happens when an instance propagates a taint label through a tool boundary but the tool returns a value derived from a different input than the one that was labeled",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that implement dynamic information-flow control (DIFC) by attaching taint labels to values and tracking label propagation across tool-call boundaries within a single session. Does not cover static label schemes, cross-session label persistence, or human-in-the-loop approval gates.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-tool-boundary-but-the-tool-returns-a-value-derived-from-a-different-input-than-the-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-tool-boundary-but-the-tool-returns-a-value-derived-from-a-different-input-than-the-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-tool-boundary-but-the-tool-returns-a-value-derived-from-a-different-input-than-the-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *label propagation* and *label provenance*. When an agent labels a value `tainted:prompt_injection` because it originated from an untrusted document, and then passes that value as an argument to a tool, the standard DIFC invariant is: any output of that tool that is causally derived from the tainted input inherits the label. The...",
    "what_was_observed": "A retrieval tool `fetch_snippet(url, query) -> {text, source_url}` is invoked by an agent with a `query` value that was labeled `tainted:untrusted_document` (it was extracted from a prior web page). The tool internally ignores the `query` argument for cache lookup keyed on `url`, returns a cached `text` from an earlier, *clean* fetch, and sets `source_url` from the argument. The runtime's DIFC layer, implemented as a...",
    "condition_of_validity": "The call-site taint rule is valid **only if** every tool satisfies the property: *output fields are a pure function of the labeled arguments, with no dependence on ambient state, cache, or unlabeled channels.* In practice this property fails for: - Tools with internal caches keyed on a subset of arguments. - Tools that read from a shared session store, files...",
    "decision_boundary": "The runtime must choose between two enforceable policies at each tool boundary: **Policy A — Call-site taint (coarse, cheap, unsound):** Label all outputs with the join of all input labels. Sound only for pure tools. Requires an explicit, audited allowlist of pure tools; any tool not on the list must be treated as ambient-reading and its outputs conservative...",
    "operational_effect": "When the call-site rule is applied to a non-pure tool with an allowlist exemption, the DIFC layer's guarantee degrades from \"no tainted data reaches a sink unlabeled\" to \"no tainted data reaches a sink unlabeled *unless it passed through a trusted tool*.\" Since prompt injection's entire objective is to route attacker-controlled text to a sink (email, shell, ..."
  },
  "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": "0244225571d592d50c90c4288f2db224ed52ef4d9ed4c77acc65ea13cdaf09cc",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled",
      "ToolManifest"
    ],
    "verified_functions": [
      "propagate",
      "guarded_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
