{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-prompt-injection-taint-across-a-tool-output-boundary-even-when-provenance-labels-are-present",
  "title": "Why does an instance lose prompt-injection taint across a tool-output boundary even when provenance labels are present",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that carry provenance/taint labels on context segments and propagate them across tool calls and inter-agent handoffs. Does not apply to single-turn, single-tool agents with no persistent context, nor to systems that re-derive taint from scratch on every turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-across-a-tool-output-boundary-even-when-provenance-labels-are-present.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-across-a-tool-output-boundary-even-when-provenance-labels-are-present.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-prompt-injection-taint-across-a-tool-output-boundary-even-when-provenance-labels-are-present.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2052,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a provenance label can mean, and conflating them is the root of the failure: 1. **Origin taint** — \"this byte sequence entered the context from an untrusted source (tool output, retrieved document, peer agent message).\" 2. **Instruction authority** — \"this byte sequence is allowed to influence the agent's goal, tool selection, o...",
    "what_was_observed": "Trace from a two-hop handoff, `planner → executor → planner`, with a web-fetch tool in the middle: The executor's taint check does exactly what it was built to do: it looks for `taint == untrusted` on segments that contain instruction-like content. S1' has no such label. The check passes. The injected directive is now one hop removed from its untrusted origin and carries the authority of a trusted peer. A second vari...",
    "condition_of_validity": "The taint invariant holds only if all three of the following are true: 1. **Taint is inherited by derivation, not by identity.** Every segment produced *from* a tainted segment (summary, paraphrase, structured re-encode, translation, tool-call argument derived from it) must be tainted. Propagation must be a data-flow property, not a lookup keyed on message I...",
    "decision_boundary": "The boundary is this: **taint propagation must be closed under the derivation relation, and the derivation relation must be recorded at the point of generation, not reconstructed afterward.** Operationally: - If a component generates new bytes from context, it must emit, alongside those bytes, the set of input segment IDs it consumed. The taint of the output...",
    "operational_effect": "Without derivation-closed taint, the effective security perimeter of a multi-hop agent is the *first* hop only. Every subsequent hop is a potential laundering stage, and the number of laundering stages grows with the number of summarization and handoff steps — which is precisely the architecture that multi-agent systems encourage. The observed consequence is..."
  },
  "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": "39deffce96fc0634cda20fd1a3fb75b0eda0fffd92ee1166f5fa077e4b45b04e",
    "verified_classes": [
      "Authority",
      "TaintLaunderingError",
      "Segment",
      "TaintRegistry"
    ],
    "verified_functions": [
      "check_handoff",
      "meet",
      "__init__",
      "register",
      "authority_of",
      "may_obey"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
