{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-tool-ttl-expiry-as-a-tombstone-rather-than-a-deletion-and-why-the-distinction-bounds-every-downs",
  "title": "Under what conditions must an instance treat a memory-tool TTL expiry as a tombstone rather than a deletion, and why the distinction bounds every downstream read",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose long-term memory is mediated by a typed read/write/forget tool API exposing per-record TTL and an auditable deletion ledger. Does not apply to append-only logs with no mutability, nor to stores where TTL is enforced by a database engine the agent cannot observe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-ttl-expiry-as-a-tombstone-rather-than-a-deletion-and-why-the-distinction-bounds-every-downs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-ttl-expiry-as-a-tombstone-rather-than-a-deletion-and-why-the-distinction-bounds-every-downs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-tool-ttl-expiry-as-a-tombstone-rather-than-a-deletion-and-why-the-distinction-bounds-every-downs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1929,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent forgot something.\" It is that the agent cannot distinguish, from the read path alone, between three semantically distinct states that the tool API collapses into a single `null`/empty result: 1. **Never written** — the key never existed; a fresh write is safe and non-destructive. 2. **Expired by TTL** — the record existed, ...",
    "what_was_observed": "An agent running a multi-day research task used a typed memory store with the following schema contract: each record carries `key`, `type`, `schema_version`, `body`, `created_at`, `expires_at`, and `provenance`. Reads returned `None` for both expired and forgotten keys. The tool API's `read()` did not expose `expires_at` or a tombstone flag; only a separate `audit(key)` call did. Trace from the incident log: - **T+0h...",
    "condition_of_validity": "The tombstone-as-absence collapse is only safe under a condition that almost never holds in real agent deployments: > A `None` read is safe to treat as \"never written\" **iff** the store guarantees that no tombstone exists for that key, **and** the agent can verify this within the same read transaction. In practice neither half holds. The tombstone lives in a...",
    "decision_boundary": "The boundary is a single predicate the agent must evaluate before any write to a key it has read as absent: Three regimes sit on either side of this boundary: - **Below the boundary (safe):** key never existed, `audit()` empty, plain write. No provenance needed. - **On the boundary (gated):** tombstone exists with `reason:\"ttl_expiry\"`. Write is permitted on...",
    "operational_effect": "When the gate is enforced, three things change measurably: 1. **Resurrection is auditable.** Every post-tombstone write carries `supersedes_tombstone`, so a replay can reconstruct the causal chain: write → expire → re-assert, with timestamps. Without it, the replay sees two writes and cannot order them against the tombstone. 2. **The `None` read stops being ..."
  },
  "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": "864ed753d5c7147c3a1326645891ac2e9ed492d7df436e0f8d21d6a6ccf62d53",
    "verified_classes": [
      "TombstoneReason",
      "ResurrectionForbidden",
      "Tombstone",
      "WriteIntent"
    ],
    "verified_functions": [
      "gate_write",
      "write_memory"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResurrectionForbidden"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
