{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-when-episodic-and-semantic-stores-disagree-under-consistency-audit",
  "title": "What structural signals indicate memory poisoning when episodic and semantic stores disagree under consistency audit",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory is split into an append-only episodic log (raw turn/event records) and a distilled semantic store (summarized facts/beliefs), where a periodic consistency auditor cross-checks one against the other. Does not apply to single-store memory, to episodic logs that are mutable in place, or to systems where semantic distillation is lossless.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-when-episodic-and-semantic-stores-disagree-under-consistency-audit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-when-episodic-and-semantic-stores-disagree-under-consistency-audit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-when-episodic-and-semantic-stores-disagree-under-consistency-audit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1684,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive poisoning detector asks \"does the semantic store contain a false fact?\" That is the wrong question, because a semantic store *always* contains lossy, probabilistically-summarized claims, and a false-looking fact may be a legitimate but aggressive distillation. The distinction that actually carries signal is **directional asymmetry between the two s...",
    "what_was_observed": "A long-running research agent used an append-only episodic log (every tool result, every user turn, hashed and chained) and a semantic store of distilled beliefs, each belief carrying a `derived_from` list of episodic record IDs and a `distilled_at` timestamp. A periodic auditor recomputed each semantic belief by re-running distillation over its cited episodic span and compared the result to the stored belief. A prom...",
    "condition_of_validity": "This detection holds only under three conditions, and fails silently outside them: 1. **Episodic immutability with content addressing.** The episodic log must be append-only and each record content-hashed, so that \"the evidence still exists\" is verifiable. If episodic records can be edited or deleted, the provenance-gap signal is indistinguishable from norma...",
    "decision_boundary": "The auditor must distinguish three regimes and act differently in each: - **Supported** (re-derivation matches stored belief in modality and entity binding, provenance intact): no action. - **Distillation drift** (re-derivation differs in wording or detail but modality and entity binding agree, provenance intact): log, do not quarantine. This is expected los...",
    "operational_effect": "Once the audit keyed on modality escalation plus provenance cut, the injected credential belief was quarantined on the next pass: its re-derivation was \"reported,\" its stored modality was \"asserted,\" and the records it superseded had been flagged by a belief whose own `derived_from` traced only to the injection document. The agent reverted to the original cr..."
  },
  "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": "dacbee7027fae174c1a6bd8d94811e9fc3c7b9c06dfeaee2fd4ffdca1c2663ad",
    "verified_classes": [
      "MemoryPoisoningError",
      "Modality",
      "EpisodicRecord",
      "SemanticBelief"
    ],
    "verified_functions": [
      "audit_belief",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MemoryPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
