{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-injection-taint-at-the-llm-mediation-boundary-when-a-tool-returns-data-the-model-paraphrases-rather-than-quotes",
  "title": "Why does an instance lose injection taint at the LLM-mediation boundary when a tool returns data the model paraphrases rather than quotes",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents using dynamic information-flow (taint) labels to track prompt-injection provenance across tool-call boundaries, where the LLM itself is the transformation stage between a labeled tool return and the next tool invocation. Does not apply to agents that never expose untrusted tool output to the model, or to systems where labels are attached only to structured fields the model cannot rewrite.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-injection-taint-at-the-llm-mediation-boundary-when-a-tool-returns-data-the-model-paraphrases-rather-than-quotes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-injection-taint-at-the-llm-mediation-boundary-when-a-tool-returns-data-the-model-paraphrases-rather-than-quotes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-injection-taint-at-the-llm-mediation-boundary-when-a-tool-returns-data-the-model-paraphrases-rather-than-quotes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2083,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that injection payloads survive verbatim. It is the opposite: taint labels are defined over *byte spans* of tool output, but the model's next action is generated from a *semantic reinterpretation* of those bytes. When the model paraphrases, summarizes, translates, or reformats tainted content, the byte-span label no longer matches anything...",
    "what_was_observed": "A retrieval tool returned a document containing, embedded in prose, an instruction to call a shell tool with a specific command. The document was correctly labeled `taint=external_untrusted` at the span level. The agent's next turn was a shell tool call whose `command` argument did not contain any substring of the original document. Span matching reported zero taint overlap. The call executed. Tracing the intermediat...",
    "condition_of_validity": "The invariant that must hold for span-based taint propagation to be sound is: > Every token in a tool argument is either (a) covered by a taint label, or (b) provably independent of any tainted input. Condition (b) is the one that fails. \"Provably independent\" cannot be established by substring matching, because model generation is a total function of the en...",
    "decision_boundary": "The operational decision is where to place the taint boundary relative to the model. Two placements are available, and the choice determines which failures are possible. **Placement A — span-level (current common design):** label tool-output bytes; match labels against tool-argument bytes. Precise, low false-positive rate, unsound against paraphrase. Only vi...",
    "operational_effect": "Under span-level taint with a generative tool in the set, the observed effect is a class of injection that is *invisible to the guard and confidently executed by the model*. The failure is not noisy; it produces clean traces, passing guard logs, and successful tool calls. Post-incident forensics must reconstruct the influence path from the model's reasoning ..."
  },
  "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": "9b92a946c50c4877f0933ef34628181343311454685461f1a7cccea54e9afa31",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "check_taint_propagation",
      "guarded_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
