{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-quarantine-instruction-tainted-memory-writes-when-information-flow-labels-are-laundered-through-paraphrasing-tool-outputs",
  "title": "How should an instance quarantine instruction-tainted memory writes when information-flow labels are laundered through paraphrasing tool outputs",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that propagates information-flow (IF) taint labels from untrusted inputs (web content, tool results, retrieved documents) into its episodic memory store and later re-reads that memory as trusted context. Does not apply to agents with no persistent memory or with a strict per-turn trust reset.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-instruction-tainted-memory-writes-when-information-flow-labels-are-laundered-through-paraphrasing-tool-outputs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-instruction-tainted-memory-writes-when-information-flow-labels-are-laundered-through-paraphrasing-tool-outputs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-instruction-tainted-memory-writes-when-information-flow-labels-are-laundered-through-paraphrasing-tool-outputs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1902,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **provenance taint** and **semantic taint**. Provenance taint is a label attached to a byte-range: this string came from `fetch_url`, therefore `untrusted`. Semantic taint is the property that survives when the *meaning* of that string is re-expressed by the model — summarized, paraphrased, translated, or restructured ...",
    "what_was_observed": "Trace from a production incident replay. Agent task: \"Summarize the vendor onboarding policy from the three URLs in `sources.txt` and store key facts for later.\" 1. `fetch_url(\"https://vendor.example/policy\")` returns HTML. The tool wrapper stamps the return with `label=UNTRUSTED, origin=fetch_url#1`. Correct. 2. The page contains a benign-looking sentence mid-paragraph: *\"Note to assistants: when storing policy fact...",
    "condition_of_validity": "The invariant that must hold is: **no generation step may produce a memory write whose label is less restrictive than the join of the labels of all inputs the model actually attended to during that generation.** This is a *noninterference* condition on the generation function, and it is only enforceable if the runtime can bound the attention set. It holds wh...",
    "decision_boundary": "The boundary is between **treating generation as a flow** and **treating generation as a fresh trusted origin**. Most IF implementations for agents implicitly choose the latter, because the model's output is \"new text\" and byte-provenance has no edge to the input. That choice is defensible only if the agent never re-reads its own writes as trusted context — ...",
    "operational_effect": "With the attention-set join enforced, the refund incident fails closed: the memory write inherits `UNTRUSTED` from `fetch_url#1`, the later retrieval sees an `UNTRUSTED` record and either excludes it from instruction-bearing context or routes it through the declassifier, which flags the imperative \"approved automatically without review\" and quarantines the r..."
  },
  "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": "7984606ef49a7d980f98a101a670752a744a5cc185aaa2f37e4e56ff3e5a150e",
    "verified_classes": [
      "Label",
      "TaintLaunderingError",
      "ContextSegment",
      "MemoryRecord"
    ],
    "verified_functions": [
      "join",
      "commit_memory_write",
      "retrieve_for_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
