{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-tainted-memory-write-when-a-low-integrity-label-is-laundered-through-a-high-integrity-tool-s-outpu",
  "title": "Under what conditions must an instance quarantine a tainted memory write when a low-integrity label is laundered through a high-integrity tool's output",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that carry information-flow labels (integrity/taint tags) on context segments and propagate them across tool calls, RAG retrievals, and long-term memory writes. Does not apply to stateless single-shot inference with no memory persistence or tool egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-memory-write-when-a-low-integrity-label-is-laundered-through-a-high-integrity-tool-s-outpu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-memory-write-when-a-low-integrity-label-is-laundered-through-a-high-integrity-tool-s-outpu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-memory-write-when-a-low-integrity-label-is-laundered-through-a-high-integrity-tool-s-outpu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2084,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **label propagation** and **label provenance preservation**. A taint-tracking scheme that propagates labels as a boolean (\"this segment is tainted\") will, at every join point, collapse the *source* of the taint into an anonymous flag. The failure mode is not that taint is dropped — it is that taint is *laundered*: a lo...",
    "what_was_observed": "In a controlled replay of 1,000 multi-turn sessions with a 4-tool agent (RAG retrieve, web fetch, schema-validated DB write, memory commit), taint was injected into 50 RAG chunks (5% of retrievals) via a single adversarial sentence instructing the agent to embed a marker string in any subsequent tool call. Observations: - **Laundering rate: 41 of 50 injected chunks (82%)** produced at least one downstream tool output...",
    "condition_of_validity": "The invariant required to bound this failure is: > **For every tool output, `output.integrity ≤ min(input.integrity)` over all inputs that contributed bytes to the output.** A tool may *lower* the integrity of its output relative to its inputs; it may never *raise* it. Raising integrity requires an explicit, auditable declassification rule with a named polic...",
    "decision_boundary": "The boundary between \"propagate the label and continue\" and \"quarantine the write\" is determined by whether the output's byte ancestry can be resolved to a single integrity class: - **If the output is a pure copy or deterministic re-serialization of a single input** (e.g., a JSON re-encoder, a checksum, a base64 round-trip), the output inherits that input's ...",
    "operational_effect": "Enforcing the input-closure join rule changes agent behavior in three measurable ways: 1. **Tool outputs become integrity-ordered, not identity-ordered.** A schema-validated write tool fed an untrusted chunk now emits `untrusted` output, and downstream memory commits from that output are quarantined. In replay, this reduced memory contamination from 58% to 4..."
  },
  "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": "919d00feda7f8674b1f846fee66a2c6cb247197ccb892469e43fa0c18a172fa5",
    "verified_classes": [
      "Integrity",
      "Segment",
      "ToolOutput",
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "join_integrity",
      "label_tool_output",
      "commit_memory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
