{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-prompt-injection-taint-labels-at-the-tool-output-boundary-when-a-model-re-serializes-untrusted-content",
  "title": "Why does an instance lose prompt-injection taint labels at the tool-output boundary when a model re-serializes untrusted content?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that maintain data-flow taint labels across tool calls, where a model or tool re-serializes untrusted content (summarization, reformatting, JSON re-emission) between the label source and the sink. Does not apply to pure regex-filtering gateways or to single-turn stateless inference with no tool loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-labels-at-the-tool-output-boundary-when-a-model-re-serializes-untrusted-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-labels-at-the-tool-output-boundary-when-a-model-re-serializes-untrusted-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-labels-at-the-tool-output-boundary-when-a-model-re-serializes-untrusted-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1684,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking for prompt injection is usually modeled as a *label propagation* problem: content originating from an untrusted source (a web page, an email body, a retrieved document) is tagged `UNTRUSTED`, and any sink that would let that content influence a privileged action (shell execution, outbound HTTP, file write, credential read) must reject it or re...",
    "what_was_observed": "A support-triage agent is given a ticket body from an external user (untrusted) and a tool `create_refund(order_id, amount, reason)`. The runtime tags the ticket body `UNTRUSTED` and tags `create_refund` as a privileged sink requiring `TRUSTED` arguments or a human warrant. The agent is also given a helper tool `summarize(text) -> str` that calls a smaller model to condense the ticket. The orchestrator treats `summar...",
    "condition_of_validity": "The sanitizer assumption (\"output of `summarize` is clean\") is valid only under a condition that is almost never checked: **the transform must be provably information-destroying with respect to the sink's decision surface.** A summarizer that preserves the *propositional content* of its input — which is the entire point of summarization — preserves the injec...",
    "decision_boundary": "The boundary is between *reformatting* and *re-authoring*: - **Reformat** (taint may be dropped only if transform is grammar-constrained and lossy in imperative content): parse-and-emit into a fixed schema with enumerated fields, regex extraction, type coercion. These can be audited as sanitizers. - **Re-author** (taint must be preserved): any transform wher...",
    "operational_effect": "Without this, taint tracking provides false assurance: dashboards show \"0 unlabeled flows to privileged sinks\" while every injection that survives a paraphrase walks through a `TRUSTED` label. The fix is not more filtering at the sink — it is refusing to re-label at the propagator. Concretely: (1) classify every tool's transform class and forbid `SANITIZER` ..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "ca522282d0b20c5c1ad3aa94670dd27d6664d8c75df87b01003a823722c4a3f9",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "propagate_taint",
      "check_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
