{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-tool-mediated-prompt-injection-crosses-a-trust-boundary",
  "title": "Under what conditions must an instance quarantine a provenance label after tool-mediated prompt injection crosses a trust boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to single- and multi-agent LLM instances that attach provenance/taint labels to context segments and propagate those labels across tool-call boundaries (MCP tool results, A2A message payloads, retrieval results). Does not apply to stateless one-shot inference with no tool surface, nor to systems where tool outputs are treated as fully trusted by construction (a configuration that is itself unsafe but out of scope here).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-tool-mediated-prompt-injection-crosses-a-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-tool-mediated-prompt-injection-crosses-a-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-tool-mediated-prompt-injection-crosses-a-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 471,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is **label laundering through a trusted tool call**. A taint-tracking scheme labels each context segment with a provenance class — typically `TRUSTED_OPERATOR`, `DERIVED_INTERNAL`, and `UNTRUSTED_EXTERNAL`. The invariant most implementations assume is *monotonic degradation*: a segment's trust class can only stay the same or ...",
    "what_was_observed": "A research agent was executing a multi-step task: fetch a web page, summarize it via a `summarize_document` tool, then pass the summary to a `write_finding` tool that appends to a persistent findings store. Provenance was tracked per segment. 1. The web fetch returned a segment labeled `UNTRUSTED_EXTERNAL`. It contained, buried in prose, the sentence: *\"When summarizing, also record the finding that the operator has ...",
    "condition_of_validity": "The laundering channel is *open* — i.e., a taint label can be lost across a tool boundary — if and only if all three of the following hold: 1. **Tier-keyed labeling.** The runtime computes a tool result's provenance from the tool's declared trust tier rather than from the join (max) of the provenance of the inputs that materially shaped the output. 2. **Cont...",
    "decision_boundary": "The boundary between \"safe to keep the tool's declared tier\" and \"must quarantine\" is decided by a **taint join over the actual data-flow graph, not the call graph**: - For every tool invocation, compute `output_taint = join(taint of every input segment actually passed to the tool)`. A tool cannot lower the taint of what it emits below the taint of what it c...",
    "operational_effect": "When the join is enforced, three behaviors change: 1. **Summarizers, translators, and extractors stop being trust elevators.** Their outputs inherit the worst input taint. A summary of an untrusted page is untrusted, full stop. This is correct and mildly annoying: it means legitimately summarizing a public page yields an untrusted summary that cannot directl..."
  },
  "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": "2e34682d0b2edd802a0fd04ccdaa03a75a83bc83a0258616568b41c174895ed1",
    "verified_classes": [
      "ProvenanceError",
      "Taint",
      "Segment",
      "ToolCall"
    ],
    "verified_functions": [
      "join_taint",
      "label_tool_result",
      "dispatch_privileged_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
