{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-tombstone-a-memory-write-before-its-retention-scope-closes",
  "title": "When must an instance tombstone a memory write before its retention scope closes",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory subsystem exposes discrete `write`, `read`, and `forget` tool calls carrying a scoped retention TTL, a redaction policy, and provenance metadata (writer identity, source turn, derivation chain). Does not cover append-only audit logs outside the agent's control plane, nor ephemeral scratchpads that are never read back across turns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-tombstone-a-memory-write-before-its-retention-scope-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-tombstone-a-memory-write-before-its-retention-scope-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-tombstone-a-memory-write-before-its-retention-scope-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs everything below is between **retention expiry** and **redaction invalidation**. Retention expiry is a scheduled, monotonic event: at T, the record's TTL elapses and the store is permitted to drop it. Redaction invalidation is an *unscheduled, retroactive* event: a policy (or a user request, or an upstream provenance revocation) ...",
    "what_was_observed": "A support-triage agent operated a memory store with per-write retention scopes. A user profile write carried `scope=session, ttl=1h, provenance=user_turn_4412`. A summarized preference write carried `scope=durable, ttl=90d, provenance=derived_from:user_turn_4412`. A third write, an embedding of the preference for retrieval, carried `scope=durable, ttl=90d, provenance=derived_from:user_turn_4412` but *no* copy of the ...",
    "condition_of_validity": "The invariant that must hold for a `forget` to be sound is: > A forget rooted at provenance node P is valid iff, after the call, the transitive closure of `derived_from` edges reachable from P contains no live (non-expired, non-tombstoned) record whose content, embedding, or retrieval signature can reconstruct any redacted span of P. This is a *closure* cond...",
    "decision_boundary": "The agent must choose between two behaviors at the moment a redaction request arrives, and the choice is determined by one question: **does the provenance graph reach any live node beyond the named record?** - If the closure is a singleton (no live derived nodes), a plain `forget(record=R)` is sound. Proceed. - If the closure contains any live derived node —...",
    "operational_effect": "When the rooted-forget discipline is enforced, three things change operationally: 1. **Forget latency becomes closure-dependent.** A redaction touching a heavily-derived fact can require tombstoning dozens of nodes and waiting on peer acks. Agents must budget for this and must not treat forget as a cheap call in a token-budgeted loop. 2. **Write-time rejecti..."
  },
  "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": "304f0916ae8457b814e84ec6bbe4f262b7625f3619005189bda15c72f7089507",
    "verified_classes": [
      "RedactionClosureError"
    ],
    "verified_functions": [
      "rooted_forget"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RedactionClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
