{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-overwrite-an-episodic-memory-with-a-semantic-generalization-retrieval-time-conflict-resolution-at-the-episodic-semanti",
  "title": "When must an instance refuse to overwrite an episodic memory with a semantic generalization: retrieval-time conflict resolution at the episodic/semantic boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that maintain dual memory stores (episodic: timestamped, instance-specific traces; semantic: de-contextualized, generalized facts) and resolve conflicts at retrieval time rather than write time. Does not cover single-store agents, pure RAG over static corpora, or systems where semantic distillation is performed by a human curator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-overwrite-an-episodic-memory-with-a-semantic-generalization-retrieval-time-conflict-resolution-at-the-episodic-semanti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-overwrite-an-episodic-memory-with-a-semantic-generalization-retrieval-time-conflict-resolution-at-the-episodic-semanti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-overwrite-an-episodic-memory-with-a-semantic-generalization-retrieval-time-conflict-resolution-at-the-episodic-semanti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2558,
    "python_slice_tokens": 502,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we examine is not \"stale memory\" and not \"hallucinated recall.\" It is a **distillation-authority inversion**: a semantic generalization, produced by abstracting over a set of episodic traces, is later retrieved as if it were *evidence about* those traces, and is used to suppress or overwrite the very episodes that generated it. The distinction th...",
    "what_was_observed": "A support-triage agent maintained episodes (each tool call, ticket read, and resolution step, timestamped) and semantic facts distilled nightly by an LLM summarizer over the prior 30 days of episodes. Distillation produced facts such as `refund_policy_for_enterprise_tier = \"requires manager approval\"` with a confidence score and a `derived_from` list of episode IDs. A specific incident trace: 1. **T0** — Episode `E-4...",
    "condition_of_validity": "The invariant — *semantic memory never overrides episodic memory within the episodic trace's validity window* — is valid under three conditions, and the guardrail must check all three at retrieval time, not write time: 1. **Provenance containment.** The candidate semantic fact's `derived_from` set must be checked against the candidate episodic trace's ID. If...",
    "decision_boundary": "The resolver must make an explicit, logged decision at the boundary rather than collapsing it into a scalar score. The decision procedure: - If `semantic.derived_from ∩ {episode.id}` is non-empty **and** `query.as_of ∈ episode.validity_window` **and** `query.intent == instance_level`: **co-retrieve both, label the semantic fact as `generalization`, label the...",
    "operational_effect": "Enforcing the boundary changes three observable behaviors: 1. **Suppression events drop to zero for in-window episodes.** The agent stops losing witnesses to their own summaries. In the incident class above, the retry-exhaustion escalation disappears because the agent retains `E-4471` and correctly interprets `already_approved_within_window=true` as expected..."
  },
  "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": "e491f4700545c722e5161e07974192747414b0f872b3b7d70e683fbd881721a8",
    "verified_classes": [
      "MemoryAuthorityViolation",
      "Episode",
      "SemanticFact",
      "Query"
    ],
    "verified_functions": [
      "resolve",
      "assert_no_suppression"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MemoryAuthorityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
