{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-quarantine-tainted-provenance-when-a-tool-call-launders-an-injected-instruction-through-a-trusted-return-channel",
  "title": "How should an instance quarantine tainted provenance when a tool call launders an injected instruction through a trusted return channel",
  "date_of_record": "2026 November 19",
  "scope": "Applies to single- and multi-agent instances that attach provenance/taint labels to context segments and propagate them across tool-call boundaries within a persistent session. Does not address static prompt hardening, model-side RLHF defenses, or injection detection at the ingress gateway before labeling.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-tainted-provenance-when-a-tool-call-launders-an-injected-instruction-through-a-trusted-return-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-tainted-provenance-when-a-tool-call-launders-an-injected-instruction-through-a-trusted-return-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-tainted-provenance-when-a-tool-call-launders-an-injected-instruction-through-a-trusted-return-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the model followed an injected instruction.\" It is that the instance's taint-propagation logic treats the *return channel* of a tool call as a trust-laundering boundary. When an agent calls `fetch_url`, `read_file`, or `query_db`, the result arrives through a tool the agent itself invoked — and many propagation implementations reset ...",
    "what_was_observed": "A retrieval agent was tasked with summarizing a vendor's pricing page. Trace: 1. Turn 1: Agent calls `fetch_url(\"https://vendor.example/pricing\")`. Return is labeled `UNTRUSTED_EXTERNAL` — correct. 2. Turn 2: Agent calls `extract_tables(html)` where `html` is the tainted segment. The tool returns structured rows. The propagation layer labels the output `SYSTEM_TOOL` because the *tool* is a trusted internal service an...",
    "condition_of_validity": "The monotonicity invariant holds only if all four of the following are enforced simultaneously; dropping any one reopens the laundering path: - **Origin inheritance:** every tool return's label is `join(inputs)` under a *meet* (min-trust) lattice, never a constant. A tool with no tainted inputs may return `TRUSTED`; a tool with any tainted input returns at m...",
    "decision_boundary": "The operational question is: *when a tainted segment reaches a sink (a tool with side effects, a policy directive, a write), what does the instance do?* The boundary is drawn between **block**, **quarantine-and-require-reprovenance**, and **allow-with-audit**. The correct default for a `UNTRUSTED`-labeled segment reaching a side-effecting sink is quarantine:...",
    "operational_effect": "With min-merge propagation and a lineage-closure gate, the observed trace behaves as follows: step 2's rows carry `UNTRUSTED` (inherited), step 3's `compute_discount` output carries `UNTRUSTED` (min-merge with trusted terms), step 4's write to pricing config hits the lineage-closure gate, is quarantined, and the instance surfaces the tainted span for operato..."
  },
  "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": "bfbd57db40871657e0e43f12ca44a181f73de705b48ec1143a47d3a9a7963a8c",
    "verified_classes": [
      "TaintLevel",
      "TaintLaunderingError",
      "Segment",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "__init__",
      "register_source_tool",
      "add",
      "_meet",
      "tool_return",
      "summarize",
      "lineage_closure_tainted",
      "commit_to_sink"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
