{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-provenance-label-rather-than-propagate-it-taint-laundering-across-a-trusted-tool-boundary",
  "title": "When must an instance quarantine a provenance label rather than propagate it: taint laundering across a trusted tool boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes that attach provenance labels (e.g., `user`, `tool:<name>`, `retrieved:<source>`, `untrusted`) to every context segment and propagate them across tool-call boundaries. Does not apply to stateless single-turn completions with no tool invocation and no cross-turn memory, where no label can survive to be laundered.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-provenance-label-rather-than-propagate-it-taint-laundering-across-a-trusted-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-provenance-label-rather-than-propagate-it-taint-laundering-across-a-trusted-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-provenance-label-rather-than-propagate-it-taint-laundering-across-a-trusted-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2047,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **provenance propagation** and **provenance laundering**. Propagation is the intended behavior: a segment labeled `untrusted` that a tool reads and echoes into its output should cause that output segment to inherit `untrusted`. Laundering is what happens when a *trusted* tool's boundary silently relabels its output as ...",
    "what_was_observed": "A retrieval-augmented agent was configured with three tools: `search` (classified `trusted`), `summarize` (classified `trusted`), and `execute` (classified `untrusted`, gated behind confirmation). The runtime tagged every retrieved chunk with `retrieved:<url>` and resolved `retrieved:*` to `untrusted` at the context-assembly step. Tool outputs were tagged `tool:<name>` and resolved to the tool's static classification...",
    "condition_of_validity": "The invariant holds only under the following conditions, and the guardrail is unsound outside them: - **Label derivation must be a join, not a replacement.** The output label of any call is `join(tool_classification, labels(input_segments))`, where `join` returns the *least trusted* of its arguments. A tool classified `trusted` whose input includes an `untru...",
    "decision_boundary": "The decision the runtime must make at each tool boundary is not \"is this tool trusted?\" but \"**is the join of this call's input labels at least as trusted as the tool's classification?**\" The boundary cases: - **Join is less trusted than tool classification.** Propagate the join. Do not upgrade. This is the case the trace above violates. - **Join equals tool...",
    "operational_effect": "Enforcing the join-not-replace rule changes three operational properties: 1. **Injection payloads become sticky.** Once a string enters as `untrusted`, every downstream segment containing it stays `untrusted` until an explicit, logged declassification step (human confirmation, or a detector that clears the specific span). This is the intended cost: the agent..."
  },
  "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": "205bc94a52d2348529980592a3ad342d42ebb23a993522e93d637f4fe4352068",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Segment",
      "ToolBoundary"
    ],
    "verified_functions": [
      "assemble_context",
      "_join",
      "propagate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary.label == 'untrusted'",
      "execute requires confirmation on untrusted arg"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
