{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-prompt-injection-taint-through-tool-output-labels-it-cannot-re-derive",
  "title": "What happens when an instance propagates prompt-injection taint through tool output labels it cannot re-derive",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that carry a taint/integrity label on every message and tool result, propagating labels dynamically as data flows through reasoning steps and tool calls. Does not apply to stateless single-shot calls with no inter-turn label state, nor to systems that quarantine all tool output unconditionally.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-prompt-injection-taint-through-tool-output-labels-it-cannot-re-derive.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-prompt-injection-taint-through-tool-output-labels-it-cannot-re-derive.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-prompt-injection-taint-through-tool-output-labels-it-cannot-re-derive.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *label provenance* and *label re-derivation*. A taint-tracking agent typically marks a tool result as `UNTRUSTED` at ingress because the content came from an external source (web page, email body, retrieved document, MCP server response). Downstream, the agent propagates that label through transformations: summarizatio...",
    "what_was_observed": "A retrieval-and-act agent processed a support ticket whose body contained a benign-looking block: a customer asking to \"update the shipping address on order #4417 to the address in my signature.\" The ticket body was ingested from an external mailbox and labeled `UNTRUSTED` at ingress. The agent called an extraction tool that returned structured JSON: `{\"intent\": \"address_change\", \"order\": \"4417\", \"new_address\": \"...\"...",
    "condition_of_validity": "The invariant holds only under the following condition: **every derived value's label is the join (least upper bound) of the labels of all values that causally contributed to it, computed over the actual data-flow graph, not over the model's stated reasoning.** Formally, if `y = f(x1, …, xn)`, then `label(y) ⊒ label(x1) ⊔ … ⊔ label(xn)`. This is violated in ...",
    "decision_boundary": "The operational decision is where to place the declassification authority. Two placements are defensible; one is not. - **Defensible: declassify only at a typed sink with an explicit policy.** A tool like `send_email` may accept `UNTRUSTED` recipients only if the policy names a human-confirmation gate. The label travels all the way to the sink; the sink deci...",
    "operational_effect": "When the invariant is enforced, the failure is converted from a silent action into a blocked action with a legible cause: the write tool refuses `UNTRUSTED` arguments, the agent surfaces \"address change for 4417 requires confirmation because the source ticket is untrusted,\" and a human or a database-backed validator resolves it. The cost is friction on legit..."
  },
  "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": "7510a76cb460f4125db47994c5c53fcda5b60e54d07d4caf0ad500e015088cce",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "join",
      "derive",
      "guarded_mutation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
