{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-quarantine-a-tainted-memory-write-when-an-information-flow-label-is-laundered-through-a-summarization-tool-call",
  "title": "How should an instance quarantine a tainted memory write when an information-flow label is laundered through a summarization tool call",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that tags context segments with information-flow (IFC) provenance labels and persists derived content into episodic or semantic memory. Does not apply to stateless single-turn inference where no memory write or tool-mediated derivation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-a-tainted-memory-write-when-an-information-flow-label-is-laundered-through-a-summarization-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-a-tainted-memory-write-when-an-information-flow-label-is-laundered-through-a-summarization-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-a-tainted-memory-write-when-an-information-flow-label-is-laundered-through-a-summarization-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1831,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking implementations distinguish *sources* (untrusted input that carries an `untrusted` label) from *sinks* (memory writes, tool invocations, or outbound messages that must not receive tainted data). The non-obvious failure is not that labels are dropped at a sink. It is that labels are **laundered through a derivation step whose output is a n...",
    "what_was_observed": "A retrieval-augmented agent was configured with a two-label lattice: `PUBLIC ⊑ INTERNAL ⊑ UNTRUSTED`. Retrieved web chunks entered as `UNTRUSTED`. A `summarize` tool was exposed to compress long chunks before they entered the working context. Memory writes to the semantic store were guarded by a sink check: reject any write whose payload carried the `UNTRUSTED` label. The failure trace: 1. A retrieved chunk `C` carri...",
    "condition_of_validity": "The overlap-based propagation rule is sound *only* when the derivation function is span-preserving—i.e., every output token is copied from an input token with position tracking (redaction, truncation, field extraction by offset). It is invalid for any derivation whose output is *generated*: summarization, translation, reformatting, structured extraction into...",
    "decision_boundary": "The boundary is between two responses when a derivation output's computed label is `PUBLIC` but its input set contained an `UNTRUSTED` member: - **If the tool is label-transparent (declared and verified):** the discrepancy is a propagator bug; halt the write, log the input/output label mismatch, and re-derive with the join rule. The write is safe to retry on...",
    "operational_effect": "With the join rule enforced and quarantine routing in place, the replay of the 200 adversarial chunks produced 0 silent trusted writes; 41 landed in quarantine and were correctly re-tainted on retrieval. The cost is a bounded increase in `UNTRUSTED`-labeled context and a small false-quarantine rate on legitimate summaries of untrusted-but-benign sources—acce..."
  },
  "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": "233c1b90937fdc15ed38ef653ab236b7f9bd7302603e66c8b59161586dda4f96",
    "verified_classes": [
      "Label",
      "TaintLaunderingError",
      "SinkRejectedError",
      "Segment",
      "DerivationTool"
    ],
    "verified_functions": [
      "propagate_and_check",
      "memory_write",
      "guarded_write",
      "derive"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SinkRejectedError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
