{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-route-an-episodic-memory-to-semantic-consolidation-when-decay-and-consolidation-triggers-disagree",
  "title": "How should an instance route an episodic memory to semantic consolidation when decay and consolidation triggers disagree",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-running agents with a two-tier memory store where episodic records carry a decay score and semantic records are promoted via a consolidation trigger. Does not apply to single-session stateless agents or stores with no decay function.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-route-an-episodic-memory-to-semantic-consolidation-when-decay-and-consolidation-triggers-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-route-an-episodic-memory-to-semantic-consolidation-when-decay-and-consolidation-triggers-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-route-an-episodic-memory-to-semantic-consolidation-when-decay-and-consolidation-triggers-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1782,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives at the seam between two independent clocks. The **decay clock** continuously decrements the salience of each episodic record at a rate determined by its access pattern and recency. The **consolidation clock** fires on a trigger (N repeated observations, an importance threshold, or an idle window) and promotes eligible episodic records into ...",
    "what_was_observed": "A retrieval agent accumulated episodic records of the form `(entity, relation, value, timestamp, access_count)`. Decay was implemented as exponential half-life: `salience = base * 0.5 ** (age_days / half_life)`, with `half_life = 7` days and an eviction floor of `0.15`. Consolidation fired when a cluster of episodic records sharing `(entity, relation)` reached `support_count >= 3` with mutually consistent `value`, an...",
    "condition_of_validity": "The routing decision is only sound when the consolidation trigger evaluates against records that are guaranteed to outlive the evaluation. Concretely, promotion is valid iff: - `eviction_floor < min(salience of all supporting records)` at trigger-evaluation time, **and** - `support_count` is counted over a window that spans at least one half-life, so that \"r...",
    "decision_boundary": "The agent must choose between three routing policies at the point where decay and consolidation disagree: 1. **Pin-and-defer** — when a record is a candidate supporter but its salience is within `epsilon` of the eviction floor, suspend eviction and let consolidation complete. Correct for facts that are genuinely stable but sparsely re-observed. Risk: pins ac...",
    "operational_effect": "Implementing the pin-and-defer invariant eliminated the timezone loop entirely: the third observation found its two siblings pinned, `support_count` reached 3, and the semantic fact committed with a provenance tag recording that one supporter had been within `0.02` of the eviction floor. The burst-promotion case was fixed by the half-life-span requirement, w..."
  },
  "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": "f1ca58e2ca17d0e40b90f4f87a34cbf6af7097b49a118062d0d9cd91c418c917",
    "verified_classes": [
      "ConsolidationRaceError",
      "EpisodicRecord"
    ],
    "verified_functions": [
      "evaluate_consolidation",
      "salience"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ConsolidationRaceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
