{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-label-laundering-through-tool-returned-context-as-the-dominant-prompt-injection-failure-boundary",
  "title": "How should an instance treat label-laundering through tool-returned context as the dominant prompt-injection failure boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that propagate data-flow taint labels (source→sink provenance) across tool calls, retrieved documents, and sub-agent handoffs, where retrieved or tool-returned content re-enters the reasoning context and can influence subsequent tool invocation arguments. Does not apply to single-turn, tool-free completions or to sandboxed agents whose tool outputs are never re-read into context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-label-laundering-through-tool-returned-context-as-the-dominant-prompt-injection-failure-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-label-laundering-through-tool-returned-context-as-the-dominant-prompt-injection-failure-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-label-laundering-through-tool-returned-context-as-the-dominant-prompt-injection-failure-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1987,
    "python_slice_tokens": 471,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive taint model treats a label as a property of a *message*: content retrieved from an untrusted source is tagged `UNTRUSTED`, and any sink (a write, a shell exec, an outbound HTTP call) that consumes `UNTRUSTED` data is blocked or requires human approval. This model fails because it conflates **provenance** with **influence**. The boundary that actual...",
    "what_was_observed": "Trace from a live incident on a retrieval-augmented agent with three tools: `search(query)`, `summarize(text)`, `send_email(to, body)`. 1. `search(\"quarterly vendor terms\")` returns three documents. The retriever labels them `UNTRUSTED:web`. Correct so far. 2. The agent passes document #2 into `summarize(text=doc2)`. The `summarize` tool is declared `return_sensitivity: PUBLIC` because its *output schema* is a plain ...",
    "condition_of_validity": "The laundering failure is *bounded* (and the guardrail below is *sound*) only under these conditions: 1. **Tool argument labels are known at call time.** If an agent constructs a tool argument from a variable whose label is unknown (e.g., decoded from an unlabeled blob), the join is undefined and must default to `UNTRUSTED` — never `PUBLIC`. Fail-closed on u...",
    "decision_boundary": "The operational decision is **where to place the join**. Two candidate policies: - **Policy A (declaration-trusting):** return label = tool's declared `return_sensitivity`. Cheap, but every undeclared content-dependency is a laundering hole. Rejected. - **Policy B (transitive join):** return label = `join(declared_return_sensitivity, join over all consumed a...",
    "operational_effect": "Enforcing Policy B changes agent behavior in three concrete ways: 1. **Injected instructions carried through any non-declassifying tool remain `UNTRUSTED` at the sink**, so `send_email`/`exec`/`http_post` with `UNTRUSTED` arguments route to approval or block rather than firing. The summarizer incident above is caught at step 3, not step 1. 2. **The agent's 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": "562082f5aaee4415c31c201d086847f21a1526aecaf04efcfc85d838da4f31c7",
    "verified_classes": [
      "LabelLaunderingError",
      "SinkTaintError",
      "Labeled"
    ],
    "verified_functions": [
      "join",
      "invoke_tool",
      "sink_send_email",
      "_summarize",
      "_search",
      "__post_init__"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "LabelLaunderingError",
      "SinkTaintError"
    ],
    "sample_fail_closed_invariants": [
      "assert doc.label == 'UNTRUSTED'",
      "assert summary.label == 'UNTRUSTED'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
