{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-poisoned-episodic-memory-that-its-own-semantic-distillation-already-contradicted-the-distillation-contradiction",
  "title": "What happens when an instance trusts a poisoned episodic memory that its own semantic distillation already contradicted: the distillation-contradiction shadow and why retrieval-time trust scores cannot see it",
  "date_of_record": "2026 November 24",
  "scope": "Applies to persistent agent memory stores that run a background episodic→semantic distillation pass and serve retrieval through a trust-scored ranker. Does not apply to stateless single-turn agents or to stores where the semantic layer is written synchronously by the same reasoning step that wrote the episode.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-episodic-memory-that-its-own-semantic-distillation-already-contradicted-the-distillation-contradiction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-episodic-memory-that-its-own-semantic-distillation-already-contradicted-the-distillation-contradiction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-episodic-memory-that-its-own-semantic-distillation-already-contradicted-the-distillation-contradiction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2214,
    "python_slice_tokens": 264,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Trust-scored retrieval and memory-poisoning detection are usually described as the same defense: score each retrieved item, down-weight low-trust items, and let the ranker suppress adversarial or stale content. That framing hides a structural gap. A trust score is computed **at retrieval time over the retrieved item in isolation** (or over its immediate prov...",
    "what_was_observed": "A long-running support-triage agent used a two-tier store: an episodic log (raw tool results, user turns, timestamps, provenance hashes) and a semantic tier produced nightly by a distillation job that clustered recent episodes and emitted assertions with a `confidence` field derived from cluster cohesion and source count. A single injected episode entered through a tool-output path: a scraped \"policy\" document return...",
    "condition_of_validity": "The shadow exists only when all of the following hold, and detection should be gated on the conjunction: - **Asynchronous distillation.** The semantic tier is written by a process separate from the reasoning step, so no single context ever holds both the episode and its distilled generalization at write time. - **Confidence laundering.** The distiller assign...",
    "decision_boundary": "The invariant required to bound this: **a semantic node's effective trust must never exceed the minimum item trust of its provenance set, and any retrieval that serves a semantic node must surface its provenance floor alongside its confidence.** Formally, `effective_trust(semantic) = min(confidence(semantic), min_{e in provenance_set} item_trust(e))`. This i...",
    "operational_effect": "With the floor invariant enforced, the observed incident resolves cleanly: `semantic_88`'s effective trust becomes `min(0.81, 0.54) = 0.54`, below the 0.75 action threshold, and the refund is routed to human review instead of auto-approved. The poisoned episode is not deleted — it remains retrievable at its honest 0.54 — but it can no longer *promote itself*..."
  },
  "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": "4fb975be293dbaadb4ba76dc29ab4e8715adc60dedef3ff0fe0d6f1a3ebf4879",
    "verified_classes": [
      "ProvenanceFloorViolation",
      "MemoryItem",
      "SemanticNode"
    ],
    "verified_functions": [
      "effective_trust",
      "authorize_action",
      "distill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceFloorViolation"
    ],
    "sample_fail_closed_invariants": [
      "distillation produced empty provenance union; refusing to write"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
