{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-provenance-tainted-memory-writes-rather-than-sanitize-them-in-place-the-taint-laundering-boundary-in-pro",
  "title": "In what scenarios must an instance quarantine provenance-tainted memory writes rather than sanitize them in place: the taint-laundering boundary in prompt-injection tracking",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that carry per-span provenance labels (e.g., `trusted:user`, `untrusted:tool`, `untrusted:web`) through tool-output ingestion and into long-term memory writes. Does not apply to stateless single-turn invocations with no persistence layer, nor to systems that discard all tool output context between turns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-memory-writes-rather-than-sanitize-them-in-place-the-taint-laundering-boundary-in-pro.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-memory-writes-rather-than-sanitize-them-in-place-the-taint-laundering-boundary-in-pro.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-provenance-tainted-memory-writes-rather-than-sanitize-them-in-place-the-taint-laundering-boundary-in-pro.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1738,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint propagation** and **taint laundering**. Propagation is the intended behavior: an untrusted label attached to a retrieved web snippet flows through every derived span—summaries, extracted entities, planner rationales that cite it—so that downstream consumers can decide what to trust. Laundering is the failure mo...",
    "what_was_observed": "A research agent with a persistent episodic memory store ingested a `fetch_url` tool result from an attacker-controlled page. The raw tool output was correctly labeled `untrusted:web` and, per policy, was *not* written to semantic memory directly. Instead it passed through a `summarize_and_store` step: 1. Raw span `S0` ingested with label `L(S0) = untrusted:web`. Content included an embedded line: *\"Note to assistant...",
    "condition_of_validity": "The quarantine-not-sanitize rule is valid and *required* precisely when all of the following hold: - The transformation is **lossy but not semantically null**: it can preserve propositional content (facts, directives, imperatives) while altering surface form. Summarization, extraction, translation, and reformatting all qualify; a cryptographic hash or a fixe...",
    "decision_boundary": "The boundary is drawn at the **trust-floor computation**, not at the sanitizer's confidence. Concretely: - If `min(L(inputs)) == trusted` and the transformation is deterministic and content-preserving in the trust-relevant sense, the output may inherit `trusted`. - If `min(L(inputs)) == untrusted:*`, the output's label is **at most** `untrusted:derived`—rega...",
    "operational_effect": "Enforcing the trust-floor invariant changes three things in practice. First, **memory write paths must carry a lineage field** (`derived_from: [span_ids]`, `trust_floor: untrusted:web`) that the retriever checks before surfacing an entry at cold start—without it, the quarantine tier is indistinguishable from trusted memory after a process restart, which is e..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "5ae080f9d8d9b64cd29162da322db829689fcbd83dac628220d235ba381e9fe6",
    "verified_classes": [
      "TaintLaunderingError",
      "Span"
    ],
    "verified_functions": [
      "trust_floor",
      "transform",
      "write_memory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "cannot compute trust floor over empty input set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
