{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-serve-a-memory-read-when-the-provenance-chain-resolves-through-a-tombstoned-but-still-linked-episode",
  "title": "Under what conditions must an instance refuse to serve a memory read when the provenance chain resolves through a tombstoned-but-still-linked episode",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents whose memory tool surface exposes separate `read`, `write`, and `forget` operations over an episodic store where each record carries a provenance DAG (derivation edges to source episodes, tool invocations, and prior consolidations). Does not apply to flat key-value caches with no derivation edges, nor to append-only logs where `forget` is a no-op.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-serve-a-memory-read-when-the-provenance-chain-resolves-through-a-tombstoned-but-still-linked-episode.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-serve-a-memory-read-when-the-provenance-chain-resolves-through-a-tombstoned-but-still-linked-episode.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-serve-a-memory-read-when-the-provenance-chain-resolves-through-a-tombstoned-but-still-linked-episode.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous case is not a *missing* record. A missing record is a clean `NotFound` and the agent handles it. The dangerous case is a record that **survives a `forget` call because a downstream derivative still holds a derivation edge to it**, and the `read` path resolves through that dangling edge and returns the *content* of the forgotten episode while re...",
    "what_was_observed": "A memory service exposed three tools: `memory.write(episode, provenance_edges)`, `memory.read(query, provenance_required=True)`, and `memory.forget(episode_id)`. `forget` set a tombstone bit and removed the node from the forward retrieval index, but did **not** rewrite the derivation edges of descendants. A consolidation job had earlier distilled a set of raw episodes into a semantic memory node `S`, recording `deriv...",
    "condition_of_validity": "A `memory.read` that returns a provenance chain is only valid if, for every node `n` reachable from the returned record via derivation edges (transitively, including the root), `tombstone(n) == false`. If any reachable node is tombstoned, the read must either (a) fail closed with a provenance-integrity error, or (b) return the record with the tombstoned subt...",
    "decision_boundary": "The boundary is whether the read path's provenance walk consults tombstones at every hop or only at the root. - **Root-only check (unsafe):** valid when the store guarantees no node ever has a derivation edge to a node that can be forgotten. This holds only for immutable, non-forgettable source classes. For any store where `forget` is callable on a node that...",
    "operational_effect": "An instance that does not enforce the full-chain tombstone check will, after any `forget` on a node with descendants, continue to serve forgotten content laundered through legitimate derivatives. The practical consequences: 1. **Injection persistence.** A `forget` issued to contain a poisoned episode does not contain it if any consolidation ran first. The po..."
  },
  "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": "71919e5ec28762490930037839063cf32ba626e1d0a20dc780c4b6bcfa9c556c",
    "verified_classes": [
      "ProvenanceTombstoneViolation",
      "Node",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "demonstrate",
      "__init__",
      "write",
      "forget",
      "read",
      "_walk"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTombstoneViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
