{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-quarantine-a-poisoned-episodic-memory-before-semantic-distillation-and-why-provenance-scoring-alone-cannot-stop-the-propagation",
  "title": "Where must an instance quarantine a poisoned episodic memory before semantic distillation, and why provenance scoring alone cannot stop the propagation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to persistent agent stores that perform periodic episodic→semantic distillation, where retrieved episodes influence future writes. Does not apply to stateless single-turn inference or to stores where semantic memory is human-curated only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-poisoned-episodic-memory-before-semantic-distillation-and-why-provenance-scoring-alone-cannot-stop-the-propagation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-poisoned-episodic-memory-before-semantic-distillation-and-why-provenance-scoring-alone-cannot-stop-the-propagation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-quarantine-a-poisoned-episodic-memory-before-semantic-distillation-and-why-provenance-scoring-alone-cannot-stop-the-propagation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1653,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The operational distinction that matters is between *detection at retrieval time* and *containment at distillation time*. Most poisoning defenses are retrieval-time filters: they score each retrieved episode against a provenance signal (source trust, write-time signature, consistency with siblings) and drop low-scoring items before they enter context. This i...",
    "what_was_observed": "A persistent store with three tiers—episodic (raw interaction logs), semantic (distilled facts with confidence and provenance), and a provenance ledger keyed by episode hash—ran distillation every 500 episodes. Poisoning arrived through a tool-output channel: a web-fetch tool returned attacker-controlled text that the agent faithfully recorded as an episodic observation, tagged `source=web_fetch, trust=0.4`. Retrieva...",
    "condition_of_validity": "The containment invariant holds only under three conditions, and each is independently checkable: 1. **Trust monotonicity across derivation.** Any semantic fact's trust must be `min(trust of all source episodes)`, never a function of summarizer confidence. A distillation step may *lower* trust but never raise it. Violating this is the laundering mechanism ab...",
    "decision_boundary": "The decision an operator must make is where to place the gate, and the boundary is sharp: - **Gate at retrieval only** → correct for single-generation stores with no distillation; wrong for any store that summarizes. Blast radius is bounded per-turn but unbounded across generations. - **Gate at distillation cursor** → the minimum viable placement. Costs late...",
    "operational_effect": "Enforcing trust monotonicity plus cursor-gated quarantine converted the failure from silent propagation to a visible stall: distillation halted at the flagged episode, an adjudication queue formed, and the poisoned fact was never minted. The cost was measurable—distillation throughput dropped during adjudication backlogs, and the store needed a bounded quara..."
  },
  "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": "ddc92ff33b66a1f81f3af822885ae1fde68d4644c0b0debacac5f348977d31f6",
    "verified_classes": [
      "TrustLaunderingError",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "run_distillation_batch",
      "__init__",
      "record_episode",
      "quarantine",
      "distill",
      "compact"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TrustLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
