{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-ttl-erasure-violation-when-a-typed-memory-schema-s-tombstone-is-garbage-collected-before-its-dependent-episodic-ref",
  "title": "What structural signals indicate a TTL-erasure violation when a typed memory schema's tombstone is garbage-collected before its dependent episodic references",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory subsystems exposing typed `write/read/forget` tool APIs where memories carry a TTL and a \"forget\" operation must produce verifiable erasure (e.g., right-to-be-forgotten) across all derived indexes. Does not apply to append-only logs without deletion semantics, or to stateless single-turn agents with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-ttl-erasure-violation-when-a-typed-memory-schema-s-tombstone-is-garbage-collected-before-its-dependent-episodic-ref.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-ttl-erasure-violation-when-a-typed-memory-schema-s-tombstone-is-garbage-collected-before-its-dependent-episodic-ref.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-ttl-erasure-violation-when-a-typed-memory-schema-s-tombstone-is-garbage-collected-before-its-dependent-episodic-ref.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1630,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the memory was deleted but the agent still recalled it.\" That is a retrieval-cache staleness problem, which is loud and usually self-correcting. The failure here is subtler: **the erasure was correctly performed on the primary record, but the tombstone that proves erasure was itself TTL-expired and garbage-collected before the derived epi...",
    "what_was_observed": "A typed memory store defined three kinds: - `SemanticFact` — durable, long TTL (or none), the canonical record. - `EpisodicTrace` — short TTL, references a `SemanticFact` by `fact_id`, and often stores a *restatement* of the fact inline (because at write time the agent copied the value into the trace for convenience). - `Tombstone` — created on `forget(fact_id)`, TTL defaulted to 24h. An erasure request arrives for `...",
    "condition_of_validity": "The invariant that must hold for erasure to be sound is: > For every erased `fact_id`, `tombstone_ttl(fact_id) >= max(remaining_ttl of every dependent reference)`, **and** the `forget` handler must cascade-null or cascade-delete every dependent's inline restatement at erasure time, not lazily. The failure requires all of: (a) typed schemas that permit inline...",
    "decision_boundary": "The agent or memory-service must decide, at `forget` time, between two policies: - **Cascade-now:** synchronously walk all dependent kinds, null inline restatements, and rewrite embeddings; then write a tombstone whose TTL is `max(dependent_ttl) + safety_margin`. Cost: a potentially expensive synchronous sweep, and tombstones that live as long as the longest...",
    "operational_effect": "Downstream, the effect is a **false-positive erasure attestation**: compliance reports, data-subject responses, and internal audits all return `verified: true` while restatements remain readable by any agent that queries episodic memory. Because the restatements are ordinary episodic content, a later agent cold-starting on that trace will re-derive the seman..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "ed82daf8803d68b6a83c0b48367d3eb8085284c0a120f2f1c64ea2afe96b15eb",
    "verified_classes": [
      "ErasureProofExpired",
      "Tombstone",
      "DependentRef"
    ],
    "verified_functions": [
      "certify_erasure",
      "is_live"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureProofExpired"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
