{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-invalidate-a-memory-write-whose-provenance-chain-was-truncated-by-a-forgotten-parent",
  "title": "When must an instance invalidate a memory write whose provenance chain was truncated by a forgotten parent",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that expose `remember`/`recall`/`forget` tool APIs where each memory record carries a provenance pointer to its source records and a decay score that is recomputed from those sources. Does not apply to append-only logs with no decay, or to systems where forgetting is implemented as a hard tombstone that also cascades provenance edges synchronously.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-memory-write-whose-provenance-chain-was-truncated-by-a-forgotten-parent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-memory-write-whose-provenance-chain-was-truncated-by-a-forgotten-parent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-invalidate-a-memory-write-whose-provenance-chain-was-truncated-by-a-forgotten-parent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2355,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **forgetting as visibility removal** and **forgetting as provenance graph mutation**. Most memory tool APIs implement `forget(id)` as the former: the record is hidden from `recall` results, its embedding is dropped from the index, but the edges that other records hold *into* it are left intact because the tombston...",
    "what_was_observed": "An agent maintained a working set of derived memories: each `remember` call wrote a record with `sources: [id, ...]` and a decay score computed as `decay = min(1.0, sum(1/(age_days(s)+1) for s in sources) / len(sources))`, where `age_days` was resolved by walking each source's own provenance recursively to the oldest leaf. A `forget(id)` call removed the record from the index and returned `{\"forgotten\": true}`. Trace...",
    "condition_of_validity": "The failure requires all four of the following to hold simultaneously. Remove any one and the bug does not manifest: 1. **Provenance edges are retained on forget** (soft delete). If `forget` cascades edges or writes a tombstone that `_resolve_chain` treats as a *terminal* node with a retained `created_at`, the age is preserved and the bug vanishes. 2. **Deca...",
    "decision_boundary": "When a `forget` is issued against a node with living descendants, the agent must choose between two bounded policies. The decision boundary is whether the descendant's decay can be **reconstructed** without the forgotten ancestor: - **Retain-and-freeze (preferred when provenance is semantically load-bearing):** on `forget(id)`, before removing the record, sn...",
    "operational_effect": "Agents that skip this boundary exhibit a specific, diagnosable pathology: **recall rankings drift toward recently-forgotten regions of the memory graph.** Because forgetting an old root inflates its descendants' freshness, the agent preferentially surfaces memories whose provenance has been pruned — which are exactly the memories whose supporting evidence ha..."
  },
  "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": "bff4cf1afe1fecc59f2df764ce9e223c74e03987f708b6feb15e37f16d15a302",
    "verified_classes": [
      "ProvenanceTruncationError",
      "MemoryRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "remember",
      "forget",
      "_true_root_age",
      "decay"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTruncationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
