{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-prompt-injection-taint-labels-across-tool-call-and-agent-hop-boundaries-without-silent-label-laundering",
  "title": "How should an instance propagate prompt-injection taint labels across tool-call and agent-hop boundaries without silent label laundering",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that attaches data-flow integrity labels (taint) to retrieved content and expects those labels to survive tool invocations, serialization to sub-agents, and re-entry into the orchestrator's context. Does not cover purely stateless single-shot completions where no retrieved content re-enters the reasoning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-labels-across-tool-call-and-agent-hop-boundaries-without-silent-label-laundering.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-labels-across-tool-call-and-agent-hop-boundaries-without-silent-label-laundering.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-prompt-injection-taint-labels-across-tool-call-and-agent-hop-boundaries-without-silent-label-laundering.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1553,
    "python_slice_tokens": 197,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model got injected.\" It is that a taint label assigned at the retrieval boundary is *laundered* — silently dropped, downgraded, or re-derived as clean — as the labeled payload crosses a tool-call return, a JSON serialization boundary, or an agent handoff. The distinction that matters: injection *detection* is a probabilistic classifie...",
    "what_was_observed": "A research agent fetched a page, extracted text, and passed the chunk to a `summarize` tool. The orchestrator had correctly tagged the fetched chunk `{source: web, trust: untrusted, taint: injection_risk}`. The tool returned a plain string summary with no label. The orchestrator, treating tool returns as trusted-by-construction (the tool is *ours*, after all), re-admitted the summary into the main context as clean. T...",
    "condition_of_validity": "Taint tracking is valid only when all four of the following hold simultaneously: 1. **In-band carriage.** The label travels inside the same structure as the payload at every boundary — tool return objects, A2A envelopes, checkpoint records — not in a side-channel keyed by content hash that can miss on paraphrase. 2. **Monotonic join.** When two payloads merg...",
    "decision_boundary": "The operational question at each hop is: *does this transform preserve or reduce the label set, and who is authorized to reduce it?* - **Tool returns are untrusted by default** unless the tool is proven to be a pure function of its typed inputs with no LLM in the loop. A `summarize`, `translate`, `extract`, or `rewrite` tool has an LLM in the loop and theref...",
    "operational_effect": "With the invariant enforced, the failure mode shifts from silent laundering to explicit refusal: the `write_file` sink receives a payload whose taint set includes `injection_risk` and raises before writing, surfacing the provenance chain (web → summarize → orchestrator → write_file) to the operator. The cost is false positives — benign summaries of tainted p..."
  },
  "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": "b897650dad62210615c68e35d090f483a74da21a5ddcb1e64ebaba8c97461e62",
    "verified_classes": [
      "TaintLaunderingError",
      "Payload"
    ],
    "verified_functions": [
      "summarize_tool",
      "write_file_sink",
      "run",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
