{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scoped-forget-tombstones-from-resurrecting-through-the-memory-tool-s-read-path",
  "title": "Which invariants prevent scoped-forget tombstones from resurrecting through the memory tool's read path",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory is mediated by a tool API exposing `read`, `write`, and `forget(scope, ...)` operations with retention policies and audit trails, where forgetting is implemented as a scoped tombstone rather than a physical delete. Does not apply to stores that perform hard deletion with synchronous index invalidation, nor to purely ephemeral context windows with no persistence layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-forget-tombstones-from-resurrecting-through-the-memory-tool-s-read-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-forget-tombstones-from-resurrecting-through-the-memory-tool-s-read-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scoped-forget-tombstones-from-resurrecting-through-the-memory-tool-s-read-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2363,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent forgot to call forget.\" It is the asymmetry between the *write path* (which is transactional and versioned) and the *read path* (which is a ranked retrieval over a possibly stale index). A `forget` call that succeeds at the API boundary — returns `{\"status\": \"forgotten\", \"tombstone_id\": ...}` and writes an audit record — ca...",
    "what_was_observed": "An agent operating a research-assistant workload wrote a user preference at `scope=user:u-4417/preferences/dietary` with value `\"severe peanut allergy\"`, then later — on user instruction — called `forget(scope=\"user:u-4417/preferences/dietary\", reason=\"user retracted; allergy resolved per physician\")`. The forget returned success and produced audit record `A-99213`. The authoritative log showed the item soft-deleted ...",
    "condition_of_validity": "The invariant \"no read returns content transitively derived from a tombstoned item\" is *valid and enforceable* only under these conditions: 1. **Derivation edges are first-class and traversable at read time.** Every semantic/distilled node must carry `derived_from` pointers to its source episodic items, and the read path must be able to walk those edges (or ...",
    "decision_boundary": "The boundary is between two read-path designs: - **Index-trusting read** (vulnerable): returns items ranked by similarity, filtered only by scope prefix and a coarse freshness check. Cheap, low-latency, correct only if no forget has occurred since the last index compaction. - **Tombstone-validating read** (safe): for each candidate item, computes whether its...",
    "operational_effect": "The operational consequence is that **forget must be modeled as a write to a tombstone set that the distillation and read paths both consult at commit/serve time, with a propagation contract, not as a log entry that humans read later.** Concretely: - The forget API returns a `tombstone_id` and a `propagation_status` field. `propagation_status=\"pending\"` mean..."
  },
  "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": "d5c7f281671cc09ce002e723a84d434463f898c87dbf32ee5af848f5ee04bd79",
    "verified_classes": [
      "ForgetPropagationViolation",
      "StaleDerivativeError"
    ],
    "verified_functions": [
      "guarded_read",
      "commit_distilled_node"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgetPropagationViolation",
      "StaleDerivativeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
