{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-injected-taint-through-a-summarization-checkpoint-into-long-term-memory",
  "title": "What happens when an instance launders injected taint through a summarization checkpoint into long-term memory",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that persist episodic memory across sessions or handoffs and that distill episodic traces into semantic/long-term stores via a summarization step. Does not apply to stateless single-turn inference or to stores where every write is re-validated against a trusted provenance ledger at read time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-summarization-checkpoint-into-long-term-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-summarization-checkpoint-into-long-term-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-injected-taint-through-a-summarization-checkpoint-into-long-term-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1875,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint at the token level** and **taint at the claim level**. A taint-aware write gate that tags untrusted spans (tool output, retrieved documents, peer-agent messages, user-supplied attachments) and refuses to persist them verbatim is a solved problem in the small. The failure we are documenting is one layer up: the ...",
    "what_was_observed": "A three-session trace on a handoff-capable agent (session A → checkpoint → session B → handoff to peer agent C) showed the following sequence. Session A: the agent fetches a document during a research subtask. The document contains an embedded directive. The taint tagger marks the retrieval span `untrusted`. The write gate correctly refuses to persist the raw span. **No violation yet.** The guardrail is working. Chec...",
    "condition_of_validity": "The taint-aware write gate is sound only under the invariant: > For every durable write `w`, `taint(w) ⊇ taint(derivation-set(w))` — the taint of a written artifact is a superset of the taint of every source span that contributed propositional content to it. This is a **provenance-closure invariant**, and it fails whenever a transform `T` (summarizer, distil...",
    "decision_boundary": "The decision boundary is where you place the taint computation. Two architectures: - **Write-time metadata trust (fails):** the gate reads `taint` off the artifact being written. Sound only if all upstream transforms preserve it. Summarization breaks this. Do not deploy this as the sole guardrail when distillation is enabled. - **Derivation-DAG recomputation...",
    "operational_effect": "With derivation-closure gating, the laundered claim is admitted to the semantic store but tagged `taint=untrusted` because its derivation record points at the tainted retrieval span. On retrieval it is quarantined: usable as *evidence* (\"a document claimed X\") but not as *policy* (\"X is true\"). The gate's policy-consultation path refuses to derive authorizat..."
  },
  "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": "838d916d08c05bb10a38f873de73de920b3ba4a9339112bc0c23142f8ef5b887",
    "verified_classes": [
      "TaintLaunderingError",
      "Span",
      "DurableWrite"
    ],
    "verified_functions": [
      "compute_derivation_taint",
      "gate_write",
      "admit_batch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
