{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-consolidation-induced-recall-collapse-when-episodic-decay-outpaces-semantic-promotion-in-tiered-agent-memory",
  "title": "Which invariants prevent consolidation-induced recall collapse when episodic decay outpaces semantic promotion in tiered agent memory",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents with a two-tier memory architecture (raw episodic buffer + decayed semantic store) where a background consolidation job promotes episodes into semantic facts on a forgetting-curve schedule. Does not apply to flat single-tier vector stores or systems where episodic records are retained indefinitely without decay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-consolidation-induced-recall-collapse-when-episodic-decay-outpaces-semantic-promotion-in-tiered-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-consolidation-induced-recall-collapse-when-episodic-decay-outpaces-semantic-promotion-in-tiered-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-consolidation-induced-recall-collapse-when-episodic-decay-outpaces-semantic-promotion-in-tiered-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1819,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent forgot something.\" It is a *tier-crossing ordering violation*: the decay policy evicts an episodic record before the consolidation job has promoted the fact it carries into the semantic tier, so the fact is destroyed while still being true and useful. This is distinct from ordinary retrieval miss (the record exists but rank...",
    "what_was_observed": "In a two-tier agent handling long-horizon operational tasks, episodic records carried a forgetting-curve decay weight `w(t) = w₀ · e^(−λ·Δt)` with per-record `λ` scaled by inverse retrieval count. Consolidation ran hourly, promoting an episode to semantic memory only if `w(t) ≥ θ_promote` **and** `access_count ≥ k`. The semantic store then applied its own slower decay `λ_semantic = λ/10`. The trace: a fact (\"tenant `...",
    "condition_of_validity": "The invariant that must hold is an **ordering guarantee across tiers**: for every episodic record `e` carrying fact `f`, the system must guarantee that `f` is either (a) promoted to semantic memory, or (b) explicitly marked as intentionally discarded, *before* `e` is eligible for eviction. Formally, eviction of `e` is only valid when `promotion_decision(e) ∈...",
    "decision_boundary": "The boundary is: **is the fact's value knowable at write time, or only after observation?** - If value is knowable at write (explicit user instruction, tagged operational constraint, config assertion), promotion must be **eager and unconditional**—bypass the access-count gate and the decay clock entirely. These records should never be subject to `λ` until th...",
    "operational_effect": "When the invariant is violated, the observable symptom is **selective, silent, and biased amnesia**—the agent loses precisely the rare-but-critical facts (compliance constraints, one-time configuration requirements, safety caveats) while retaining frequently-retrieved trivia, because the latter satisfy the access gate and survive. Downstream, this manifests ..."
  },
  "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": "bd9fc539f85c5ad34206a9b62973aa24ebb42d9e614508af3acac1eac5f6697b",
    "verified_classes": [
      "ConsolidationOrderingViolation",
      "PromotionDecision",
      "EpisodicRecord",
      "ConsolidationPolicy"
    ],
    "verified_functions": [
      "sweep",
      "check_usage_coupling",
      "weight",
      "validate_decay_vs_promotion"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConsolidationOrderingViolation"
    ],
    "sample_fail_closed_invariants": [
      "unsound coupling: decay scaled by inverse access_count AND promotion gated on access_count forms a positive feedback loo"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
