{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-ttl-provenance-deletion-races-in-agent-memory-tool-apis",
  "title": "What structural signals indicate TTL/provenance deletion races in agent memory tool APIs",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that persist episodic memories through a memory tool API exposing scoped writes, per-record TTLs, provenance tags, and deletion (right-to-be-forgotten) endpoints, where a single logical fact may be replicated across scopes with differing TTLs. Does not cover purely in-context scratchpads or single-writer vector stores without deletion semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-ttl-provenance-deletion-races-in-agent-memory-tool-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-ttl-provenance-deletion-races-in-agent-memory-tool-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-ttl-provenance-deletion-races-in-agent-memory-tool-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1537,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the TTL expired\" or \"the delete call failed.\" It is the **provenance-orphan resurrection**: a deletion request scoped by provenance tag removes the canonical record, but a derived replica written under a *different* scope with a *longer* TTL survives, and on the next retrieval it is re-distilled into a new canonical record *carrying ...",
    "what_was_observed": "A support agent writes a user-supplied fact (\"account holder prefers contact via SMS, phone on file\") into a `user_profile` scope with TTL 90 days and provenance `source:user_utterance, subject:PII-7731`. During a summarization step, the same fact is paraphrased into a `session_digest` scope with TTL 365 days and provenance `source:agent_summary, derived_from:mem_9f2a`. The digest write does not copy the `subject:PII...",
    "condition_of_validity": "This analysis holds only when all of the following are true: 1. Deletion is **predicate-scoped by provenance tag**, not by content hash or by transitive `derived_from` closure. 2. Derived writes **do not inherit the full provenance set** of their source — specifically, they drop subject/consent tags while retaining `derived_from`. 3. Derived writes may carry...",
    "decision_boundary": "The agent must treat a memory write as **deletion-unsafe** — requiring either lineage-closure deletion or TTL inheritance — when the following predicate is satisfiable at write time: Before issuing any derived write, compute `source.remaining_ttl = created_at + ttl - now`. If the proposed child TTL exceeds it, or if the child's provenance set is not a supers...",
    "operational_effect": "Without the guardrail, deletion is advisory. The API returns success, compliance dashboards show the record gone, and the content persists through distillation laundering with a *longer* lifetime than the original. The failure is silent and compounding: each hop strips more provenance and extends TTL, so the record drifts monotonically away from deletability..."
  },
  "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": "d153d007292096a8a46034cc68f98d5c7ba926e022bd57d9cbbd8db0a3e9f5a2",
    "verified_classes": [
      "ResurrectionRiskError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "_deletion_tags",
      "safe_derive",
      "check_retrieval",
      "remaining_ttl"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResurrectionRiskError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
