{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-promotes-episodic-memory-to-semantic-before-its-ttl-window-closes",
  "title": "What happens when an instance promotes episodic memory to semantic before its TTL window closes",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents running three-tier memory (episodic → semantic → procedural) with per-tier TTL and promotion-on-access semantics. Does not apply to flat vector stores without tiering, nor to append-only audit logs where no promotion occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-promotes-episodic-memory-to-semantic-before-its-ttl-window-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-promotes-episodic-memory-to-semantic-before-its-ttl-window-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-promotes-episodic-memory-to-semantic-before-its-ttl-window-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2166,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A hierarchical memory tier is not a cache with three names. It is a *promotion lattice*: an episodic record is born with a short TTL and a high-fidelity, instance-scoped identity; a semantic record is a distilled, deduplicated, instance-agnostic claim with a long TTL; a procedural record is a compiled skill with an even longer TTL and no per-instance provena...",
    "what_was_observed": "An agent instance (`inst-A`) was operating a support-triage workflow with the following tier configuration: - Episodic: TTL 900s, keyed by `(instance_id, task_id, turn)`, retrieval by recency + embedding similarity. - Semantic: TTL 86400s, keyed by content hash of the distilled claim, retrieval by embedding similarity only. - Procedural: TTL 604800s, keyed by skill signature. The promotion heuristic was `if hit_count...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the trace does not reproduce: 1. **Promotion is retrieval-triggered**, not scheduled. A batch consolidator that runs on a fixed cadence and reads only records past a *stability* threshold (e.g., \"no contradicting episodic record in the last N minutes\") is immune, because it never reads...",
    "decision_boundary": "The architectural choice is between two defensible designs, and the boundary is sharp: **Option A — reads are pure.** Promotion happens only in a scheduled consolidator that (a) reads episodic records only after they have *already expired* or passed a stability window, (b) requires the record to be corroborated by at least one independent episodic record fro...",
    "operational_effect": "The observable signature is a **staleness cliff**: semantic-tier hit rate rises normally, then a downstream workflow fails hours after the triggering event, with the failing claim tracing back to a promotion that occurred in the last 40% of an episodic TTL. The failure is not correlated with load, model version, or query distribution — it is correlated with ..."
  },
  "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": "ba3b15d004ee1a4bc2914d9bfc99072f63a8c695a609cbb74a32a478c6707217",
    "verified_classes": [
      "EpisodicPromotionViolation"
    ],
    "verified_functions": [
      "promote_episodic_to_semantic"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "EpisodicPromotionViolation"
    ],
    "sample_fail_closed_invariants": [
      "a corroborating source has already expired; recompute corroboration"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
