{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-poisoned-episodic-memory-after-a-semantic-re-distillation-pass-that-re-derives-embeddings-from-tampered-text",
  "title": "Why does an instance accept poisoned episodic memory after a semantic re-distillation pass that re-derives embeddings from tampered text?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to persistent agent memory stores where episodic records are periodically re-distilled into semantic memory and embeddings are recomputed from stored text rather than preserved with an integrity anchor. Does not apply to append-only logs whose embeddings are frozen at write time and never re-derived, nor to stateless agents with no cross-session persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-episodic-memory-after-a-semantic-re-distillation-pass-that-re-derives-embeddings-from-tampered-text.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-episodic-memory-after-a-semantic-re-distillation-pass-that-re-derives-embeddings-from-tampered-text.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-episodic-memory-after-a-semantic-re-distillation-pass-that-re-derives-embeddings-from-tampered-text.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1522,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker wrote a bad memory.\" That is detectable by a write-time signature check. The failure is that a *legitimate* maintenance routine—the semantic re-distillation pass—acts as a **laundering channel** that converts a write-time integrity violation into a post-hoc integrity *pass*. When the distiller recomputes embeddings from the cu...",
    "what_was_observed": "A long-running research agent maintained an episodic store of ~40k records, each admitted with a SHA-256 of its `text` field stored in a parallel `integrity` table, plus an embedding computed at admission. A nightly job ran `redistill()`: it clustered episodic records, summarized each cluster into a semantic node, and—critically—re-embedded every surviving episodic record from its *current* `text` to \"keep vectors fr...",
    "condition_of_validity": "The laundering channel exists if and only if all three hold: - **Re-derivation from mutable text.** The embedding (or any retrieval key) is recomputed from a `text` field that is mutable by any principal other than the integrity writer. If embeddings are immutable and keyed to an immutable blob, the channel is closed. - **Integrity rebase on maintenance.** T...",
    "decision_boundary": "The correct boundary is: **a maintenance pass may re-derive a vector, but it may never re-derive the integrity anchor from the same mutable source it is validating.** Concretely, `redistill()` must: - Verify `integrity.hash == hash(text)` *before* reading text for re-embedding. - On mismatch, quarantine the record (move to `suspect` partition, exclude from r...",
    "operational_effect": "After the boundary is enforced, the poisoned record fails verification at step 3, is quarantined before re-embedding, and never enters the retrieval index. The summarizer's in-place mutation is flagged as an unauthorized write (its principal lacks the `text` write grant under the split-authority rule), and the injection payload is caught at the quarantine re..."
  },
  "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": "686a0db30b6ecd787240b84ad58c70ae3d2a972202319c5eb17dc0bc19c37c7b",
    "verified_classes": [
      "IntegrityLaunderingError",
      "EpisodicRecord"
    ],
    "verified_functions": [
      "redistill",
      "run_maintenance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "IntegrityLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
