{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-decay-driven-semantic-promotion-from-resurrecting-forgotten-episodic-residue",
  "title": "Which invariants prevent decay-driven semantic promotion from resurrecting forgotten episodic residue",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents exposing explicit memory tools (`read`, `write`, `forget`) over a two-tier store where episodic records decay toward eviction and are periodically distilled into semantic facts. Does not cover flat vector stores without decay, nor pure in-context memory with no external persistence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-decay-driven-semantic-promotion-from-resurrecting-forgotten-episodic-residue.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-decay-driven-semantic-promotion-from-resurrecting-forgotten-episodic-residue.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-decay-driven-semantic-promotion-from-resurrecting-forgotten-episodic-residue.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1856,
    "python_slice_tokens": 548,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives in the seam between two policies that are individually sound: **decay-based forgetting** (episodic entries age out by a half-life score) and **episodic-to-semantic distillation** (a summarizer reads recent episodic records and writes durable semantic facts). The distinction that matters is *forget semantics*: a `forget` on an episodic recor...",
    "what_was_observed": "A support-triage agent held an episodic store of per-turn observations and a semantic store of distilled user facts. Policies: - Episodic score `s = exp(-Δdays / 7)`, refreshed to 1.0 on `read`. - `forget(id)` set `s = 0.0` and set `forgotten_at`, but kept the row (soft-delete for compliance). - Distillation ran hourly: `SELECT * FROM episodic WHERE s >= 0.3`, summarized, and `write`-ed facts to semantic with `source...",
    "condition_of_validity": "The monotonic-forget invariant is required exactly when all three hold: - forgetting is **soft** (bytes retained) rather than physical deletion, *and* - any code path can **refresh** the score of a retained row (touch-on-read, backfill, reindex, audit scan), *and* - distillation selects on **score**, not on an explicit liveness predicate. If forgetting is ha...",
    "decision_boundary": "The guardrail is to **separate recency from liveness** and make forget a terminal lattice element: 1. Split the field: `recency` (decays, refreshed by touch) and `liveness ∈ {live, forgotten, evicted}`. `forget` transitions `live → forgotten`; nothing transitions out of `forgotten` except an explicit, audited `unforget` (which should not exist in most deploy...",
    "operational_effect": "With monotonic forget enforced, the failure trace above terminates at step 2: the backfill's `read(ep_4412)` hits the guard, `recency` stays at the forget floor, distillation's liveness filter skips it, and `sem_9001` is never written. The cost is that the agent loses the ability to \"accidentally\" recover forgotten context — which is the point. The residual ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "cc92c6e1acf84e611e6dd7a956f9bea5e87d0691c084095101e9fdb07d7a3742",
    "verified_classes": [
      "ForgetInvariantViolation",
      "Liveness",
      "EpisodicRecord",
      "SemanticFact",
      "ScopedMemory"
    ],
    "verified_functions": [
      "demonstrate_resurrection_guard",
      "__init__",
      "write_episodic",
      "forget",
      "read",
      "distill",
      "refresh_semantic",
      "recall"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ForgetInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "cascade failed to forget derived fact",
      "read resurrected a forgotten record",
      "distillation promoted forgotten residue"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
