{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-prompt-injection-taint-across-tool-output-provenance-labels-without-losing-it-at-the-sink-boundary",
  "title": "How should an instance propagate prompt-injection taint across tool-output provenance labels without losing it at the sink boundary?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that ingests untrusted tool output (web fetch, file read, email/calendar fetch, sub-agent return values, MCP resource reads) and later routes that content into a side-effecting sink (shell exec, HTTP POST, outbound message, file write, another agent's instruction channel). Does not apply to agents whose tool outputs are cryptographically attested and schema-fixed with no free-text fields.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-across-tool-output-provenance-labels-without-losing-it-at-the-sink-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-across-tool-output-provenance-labels-without-losing-it-at-the-sink-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-across-tool-output-provenance-labels-without-losing-it-at-the-sink-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **content taint** and **label taint**. Content taint is the property \"this byte string originated from an untrusted source.\" Label taint is the property \"the provenance label attached to this string still accurately describes its origin after every transformation the string has undergone.\" Agents routinely preserve con...",
    "what_was_observed": "A planner agent fetched a support ticket body via a `read_ticket` tool. The tool returned a structured object `{id, body, labels}` where `body` was correctly tagged `provenance: \"untrusted:external\"`. The planner then performed a routine transformation: it built a summary prompt by f-string interpolation — `f\"Summarize this ticket: {ticket.body}\"` — and sent it to a summarizer sub-agent. The summarizer returned a pla...",
    "condition_of_validity": "The join-at-contribution invariant is valid only under three conditions, and the failure above is exactly the case where one fails: - **Condition A (lineage completeness):** every transformation that produces a new string must declare its inputs, and the label of the output is `join(labels of inputs)`. This requires that interpolation, concatenation, seriali...",
    "decision_boundary": "The boundary the instance must decide at is: **when a tool returns a value, is the label a property of the tool or of the data?** The correct rule is data. A tool's own trust level governs whether you *call* it; it does not govern the trust of what it returns. A summarizer is a trusted tool that can emit untrusted content because its input was untrusted. The...",
    "operational_effect": "The operational consequence of getting this wrong is that the agent's security posture is *inverted*: the more faithfully it summarizes and forwards untrusted content (the behavior we want for usefulness), the more reliably it launders taint into the sink. The guardrail that bounds this is a **labeled-value type with a join operator and a fail-closed sink ga..."
  },
  "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": "64eb49752c9e8201b6a692eb0dc19ffafcff5198745d4e4725020c3d9bb09cdf",
    "verified_classes": [
      "Trust",
      "Labeled",
      "TaintViolation"
    ],
    "verified_functions": [
      "join",
      "relabel",
      "summarize",
      "run_shell",
      "handle_ticket",
      "__post_init__"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [
      "join of zero parts has undefined provenance",
      "summary of untrusted ticket reached shell sink with injected command"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
