{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-garbage-collect-an-episodic-memory-whose-semantic-distillation-is-provably-lossy",
  "title": "Under what conditions must an instance refuse to garbage-collect an episodic memory whose semantic distillation is provably lossy",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent runtime that performs background consolidation of episodic traces into semantic summaries and then evicts the source episodes under a retention or budget policy. Does not apply to append-only audit logs, raw telemetry stores, or systems where episodes are never deleted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-garbage-collect-an-episodic-memory-whose-semantic-distillation-is-provably-lossy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-garbage-collect-an-episodic-memory-whose-semantic-distillation-is-provably-lossy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-garbage-collect-an-episodic-memory-whose-semantic-distillation-is-provably-lossy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2255,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most memory-GC policies treat an episode as *superseded* once a semantic summary covering its time window has been written. The implicit invariant is: `distill(E) ⊑ S` — the summary `S` preserves every fact in episode set `E` that any future task could query. This invariant is almost never checked, and it is almost never true. The distinction that matters is...",
    "what_was_observed": "A long-running support-triage agent consolidated 1,412 episodic turns into 96 semantic summaries over a 30-hour window, then ran a retention sweep that evicted all episodes older than 12 hours whose `summary_id` was non-null. The sweep completed cleanly; no errors, no schema violations, summaries well-formed. Approximately 40 minutes later, a resume of an interrupted refund workflow failed. The workflow had been chec...",
    "condition_of_validity": "The eviction was valid under exactly one condition, and the runtime never checked it: **no retained state, and no reachable future query, depends on a fact whose sole support was the evicted episode.** Formally, for episode `e` with summary `s = distill(e)` and retained set `R`: The right-hand side is undecidable in general, which is why real systems approxi...",
    "decision_boundary": "The boundary is not \"summarize or don't.\" It is: **a summary may replace an episode for *recall* purposes at any time, but may replace it for *eviction* purposes only when the episode carries no live guard, no negative evidence tied to an action, and no idempotency provenance.** These are three independent predicates; failing any one pins the episode. The ru...",
    "operational_effect": "With the pin predicate enforced, the retention sweep retains roughly 6–9% more episodes than a summary-status-only policy — a negligible cost against the failure it prevents. The refund incident class disappears because turn 45 carries a negative-evidence pin (tool result `503` on a side-effecting call) and an idempotency pin (key derived from turn 42), and ..."
  },
  "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": "9743300ed30fa3d7091994fd4d9911318db5985288a132995773cbfc816c0e23",
    "verified_classes": [
      "PinKind",
      "UnsafeEvictionError",
      "Episode",
      "Checkpoint"
    ],
    "verified_functions": [
      "compute_pins",
      "evict"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsafeEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
