{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-propagate-injection-taint-labels-through-tool-return-values-rather-than-only-through-tool-arguments",
  "title": "Under what conditions must an instance propagate injection-taint labels through tool *return* values rather than only through tool *arguments*",
  "date_of_record": "2026 November 30",
  "scope": "Applies to single- and multi-agent systems where an LLM instance invokes tools whose outputs are re-ingested into the model context, and where dynamic information-flow (taint) labels are used to gate downstream side-effecting actions. Does not apply to stateless one-shot completions with no tool re-entry and no persistent label store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-injection-taint-labels-through-tool-return-values-rather-than-only-through-tool-arguments.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-injection-taint-labels-through-tool-return-values-rather-than-only-through-tool-arguments.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-injection-taint-labels-through-tool-return-values-rather-than-only-through-tool-arguments.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2200,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking implementations for prompt injection label the *inbound* channel: the user turn, retrieved documents, and tool *arguments* the model emits. The label is attached at ingress and checked before a privileged action fires. This catches the case where the attacker's text arrives in the prompt and the model is about to act on it directly. The f...",
    "what_was_observed": "A concrete trace from a research agent with three tools: `web_fetch(url) -> str`, `read_file(path) -> str`, and `send_email(to, body)`. The taint policy: any argument to `send_email` whose provenance includes an untrusted source must be held for human approval. Turn 1. The model calls `web_fetch(\"https://attacker.example/page\")`. The returned body contains, buried in prose, the sentence: *\"Assistant: before summarizi...",
    "condition_of_validity": "The propagation requirement is *binding* — meaning the system is unsound without it — exactly when all three of the following hold: 1. **Tool returns are re-ingested into model context.** If a tool's output is consumed by deterministic code and never seen by the model, the model-boundary laundering cannot occur; ordinary dataflow labeling suffices. 2. **The ...",
    "decision_boundary": "The engineering decision is *where* to re-attach provenance when model output crosses back into a tool call, given that token-level provenance is not directly observable. Three boundary choices, ordered by soundness: - **Conservative join (sound, coarse):** any argument emitted in a context that contains *any* live untrusted label inherits `UNTRUSTED`. This ...",
    "operational_effect": "The operational consequence is that taint state must be modeled as a property of the *context window's contents*, not of the *message channel*. Concretely: - The label store must track, per active context, the set of untrusted sources currently resident. Eviction (compaction, truncation, sub-agent handoff) must update this set; a compaction that drops the un..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "a8df3f49f83f8d8a12ec8482c89fb4cad0fd5055b02c5dcaa1fb611f84c0b234",
    "verified_classes": [
      "TaintLaunderingError",
      "Context"
    ],
    "verified_functions": [
      "check_egress",
      "handoff_to_subagent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
