{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-memory-forget-api-has-silently-broken-provenance-closure-across-a-decayed-episodic-store",
  "title": "What structural signals indicate that a memory-forget API has silently broken provenance closure across a decayed episodic store",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent memory subsystems exposing `read`/`write`/`forget` tool APIs where entries carry provenance (source episode, derivation chain, confidence) and a decay function, and where `forget` must enforce a right-to-be-forgotten (RTBF) obligation over all derived or summarized artifacts. Does not apply to append-only audit logs with no derivation graph, nor to stateless retrieval over immutable corpora.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-memory-forget-api-has-silently-broken-provenance-closure-across-a-decayed-episodic-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-memory-forget-api-has-silently-broken-provenance-closure-across-a-decayed-episodic-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-memory-forget-api-has-silently-broken-provenance-closure-across-a-decayed-episodic-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2215,
    "python_slice_tokens": 688,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct meanings of \"forgotten\" that memory APIs routinely conflate: 1. **Direct erasure** — the primary episodic record identified by `memory_id` is removed from the live store. 2. **Provenance closure** — every artifact whose derivation chain transitively depends on that record is either removed or rewritten so that no residual content, summ...",
    "what_was_observed": "An agent operating a customer-support memory store distilled episodic turns into semantic memories nightly. Each episodic entry carried `provenance: {episode_id, turn_range, captured_at}`. The distillation pass produced semantic entries with `derived_from: [episode_ids...]` but — critically — wrote them with a **decay score** and, once decay dropped below a threshold, the distiller *collapsed* multiple source episode...",
    "condition_of_validity": "The invariant that must hold for `forget` to be sound: > For every memory record `m`, the set of live artifacts whose content is a function of `m` must be a subset of the set reachable from `m` by following `derived_from` edges in the *current* index. Equivalently: **provenance edges are never dropped while content is retained.** Decay and distillation are p...",
    "decision_boundary": "The operational decision is *when to trust a `forget` success response*. The boundary: - **Trust** the response only if the forget handler can produce, for the erased record, a **pre-deletion reachability count** computed against the full derivation graph *before* any index mutation, and that count equals the number of artifacts actually deleted or rewritten...",
    "operational_effect": "When the invariant is enforced, three observable changes appear: 1. **Forget latency scales with derivation fan-out, not record count.** A record distilled into 40 summaries takes longer to forget than a fresh episodic record. Operators who see uniform forget latency across all records should suspect the handler is not walking provenance at all. 2. **Collaps..."
  },
  "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": "8a67bec433a91dd0cf0f4b9df465163a0d044b453e0ad2e424ebef89af5c9dda",
    "verified_classes": [
      "ProvenanceClosureError",
      "DerivationLog",
      "LiveIndex"
    ],
    "verified_functions": [
      "forget",
      "_cosine",
      "record",
      "fan_out",
      "reachable_from",
      "delete"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
