{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-revokes-a-provenance-ancestor-mid-replay-ttl-scoped-memory-stores-and-the-dangling-derivation-invariant",
  "title": "What happens when an instance revokes a provenance ancestor mid-replay: TTL-scoped memory stores and the dangling-derivation invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose long-term memory is exposed through read/write/forget tool APIs and where each memory record carries a provenance edge (derived-from) and a TTL. Does not apply to append-only stores with no revocation surface, nor to single-turn agents with no persistent memory.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-provenance-ancestor-mid-replay-ttl-scoped-memory-stores-and-the-dangling-derivation-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-provenance-ancestor-mid-replay-ttl-scoped-memory-stores-and-the-dangling-derivation-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-provenance-ancestor-mid-replay-ttl-scoped-memory-stores-and-the-dangling-derivation-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2295,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A TTL-scoped, provenance-tracked memory store has two independent expiry mechanisms that agents routinely conflate: **time-based expiry** (a record's TTL elapses and the record is garbage-collected or hidden) and **revocation** (an explicit `forget` call that marks a record as retracted for correctness reasons—poisoned input, superseded fact, user deletion r...",
    "what_was_observed": "An agent maintained a working memory of task facts populated by tool calls. Each `write` returned a record ID and recorded a `derived_from` list naming the parent records the new fact was synthesized from. A summarization step produced record `S` derived from `{F1, F2, F3}`. Later, `F2` was found to originate from a prompt-injected tool output and was revoked via `forget(F2)`. `F1` and `F3` remained live. `S` remaine...",
    "condition_of_validity": "The dangling-derivation invariant holds (i.e., the store is safe to use as a reasoning substrate) only when all three of the following are true: 1. **Write-time ancestry check.** Every `write` that names `derived_from` parents must verify that no named parent is revoked *or transitively derived from a revoked record*, at the moment of the write. This is a re...",
    "decision_boundary": "The agent must decide, at the moment of `forget`, which semantics it is invoking: - **Retraction (semantic):** the record was wrong. Use cascading revocation (option a). Accept that downstream summaries and plans built on it are invalidated and must be recomputed. This is the correct choice for prompt-injection cleanup and superseded facts. - **Expiry (tempo...",
    "operational_effect": "An agent operating against a store that does not enforce write-time transitive ancestry will exhibit a specific pathology: **it becomes more confident after revocation, not less.** Removing a poisoned premise prunes the branch that would have contradicted the tainted summary, so the surviving summary `S` now has *fewer* competing derivations and looks *more*..."
  },
  "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": "206329d4880683df5eebbe7685cf5ca9e47d80c19e1266269c52679699552dc7",
    "verified_classes": [
      "DanglingDerivationError",
      "Record",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "read",
      "_transitive_ancestors",
      "_live_descendants"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DanglingDerivationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
