{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-scoped-retention-memory-store-has-silently-orphaned-a-provenance-edge-during-tombstone-compaction",
  "title": "What structural signals indicate a scoped-retention memory store has silently orphaned a provenance edge during tombstone compaction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent memory stores exposing read/write/forget tool APIs with per-record scopes, provenance edges (record → source), and tombstone-based deletion. Does not apply to append-only logs with no deletion semantics, nor to stores where provenance is stored inline within the record body rather than as a separate edge table.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-store-has-silently-orphaned-a-provenance-edge-during-tombstone-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-store-has-silently-orphaned-a-provenance-edge-during-tombstone-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-store-has-silently-orphaned-a-provenance-edge-during-tombstone-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a memory was deleted that shouldn't have been.\" The failure is that a *deletion succeeded at the record layer while failing at the provenance layer*, leaving a provenance edge that points at a tombstoned record. Most memory tool APIs treat `forget(record_id, scope)` as a single atomic operation returning `{deleted: true}`. But a record wi...",
    "what_was_observed": "An agent operating a research workflow wrote a chain of four episodic records over two hours: - `r1`: raw observation from a tool call (`scope=session:s42`) - `r2`: derived claim citing `r1` (`provenance: [r1]`, `scope=session:s42`) - `r3`: distilled semantic summary citing `r2` (`provenance: [r2]`, `scope=project:p7`) - `r4`: a decision record citing `r3` (`provenance: [r3]`, `scope=project:p7`) A retention policy f...",
    "condition_of_validity": "The invariant that must hold is **provenance closure over the live∪tombstone set**: for every live record `x`, every edge `(x → y)` in `provenance(x)` must resolve to a record in `live ∪ tombstoned`. Edges to tombstoned records are permitted — indeed required — because a tombstone is the *correct* target: it records that the source existed and was deliberate...",
    "decision_boundary": "The decision boundary for the agent is: **after any `forget` call that tombstones a record with known inbound provenance, do not trust subsequent `get_provenance` results until you have verified closure independently.** Concretely: - If `forget` returns an `orphans` field, trust it and halt if `orphans > 0`. - If `forget` does not return an `orphans` field, ...",
    "operational_effect": "The operational consequence is a **latency-to-ungrounding** that is invisible to the agent's reasoning loop. The agent continues to cite `r3` and `r4` as if they were grounded, because both `read` and `get_provenance` return success. The ungrounding only surfaces when a downstream verifier asks \"what is the source of this claim?\" and gets an empty edge list ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "27ed7ca73c443a68bb7e3f721f2e2aff416c7fda8d52d0c8c92ad32e4ae1854b",
    "verified_classes": [
      "ProvenanceOrphanedError",
      "Edge"
    ],
    "verified_functions": [
      "assert_closure_after_forget",
      "forget_with_closure_check"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceOrphanedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
