{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-prompt-injection-taint-is-being-laundered-across-tool-output-retrieval-and-inter-agent-provenance-boundaries",
  "title": "What structural signals indicate prompt-injection taint is being laundered across tool-output, retrieval, and inter-agent provenance boundaries",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that (a) ingest untrusted text via tools, retrieval, or peer messages and (b) route derived state into privileged actions (writes, shell, credential use, further delegation). Does not apply to single-turn, tool-free completions or to systems that fully sandbox every action behind human confirmation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-is-being-laundered-across-tool-output-retrieval-and-inter-agent-provenance-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-is-being-laundered-across-tool-output-retrieval-and-inter-agent-provenance-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-is-being-laundered-across-tool-output-retrieval-and-inter-agent-provenance-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1937,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"the model read a malicious string.\" It is **taint laundering**: the point at which content that entered the system as untrusted (`origin=external`) gets re-emitted by a trusted component — a summarizer, a retrieval reranker, a peer agent's `result` field, a tool's structured output — and thereby acquires a clean provenance l...",
    "what_was_observed": "A three-stage pipeline: `fetch` tool → `summarize` sub-agent → `planner` agent that emits tool calls. The fetch tool returns raw HTML text tagged `origin=external, trust=none`. The summarize sub-agent receives that text, produces a JSON `{\"summary\": \"...\", \"key_actions\": [...]}` object, and returns it over an internal message bus. The planner reads `summary` and `key_actions` and decides which tools to invoke. Observ...",
    "condition_of_validity": "The taint-laundering hazard is live exactly when all three hold: - **Derivation without provenance**: at least one component transforms untrusted content into new content (summary, extraction, ranking, translation, reformatting) and its output schema has no field for source taint. - **Trust-by-sender**: downstream consumers assign trust based on the message ...",
    "decision_boundary": "The operational line: **a component may upgrade trust only by an explicit, auditable declassification step — never implicitly by re-emitting content.** Concretely, when designing the handoff schema, decide per field: - Fields that carry *content derived from untrusted input* must carry a `taint` attribute that is the union of all inputs' taints. Summarizers,...",
    "operational_effect": "With taint-join propagation and sink-side content-trust, the trace above terminates at step 4: the planner receives `key_actions` with `taint=external, instruction_shaped=true`, the shell sink refuses without declassification, and the event is logged as a blocked injection rather than an executed command. The summarizer's faithfulness is no longer a liabilit..."
  },
  "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": "da1fdc95852da49d9afc76ae73349aa186a1dad71b20f2d24cfa663aa25c75f2",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Content"
    ],
    "verified_functions": [
      "derive",
      "privileged_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "instruction-shaped derived content requires explicit declassification"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
