{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-provenance-as-precondition-on-forget-when-a-memory-tool-s-delete-path-shadows-its-read-path",
  "title": "Where must an instance enforce provenance-as-precondition on `forget` when a memory tool's delete path shadows its read path",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent instances whose memory subsystem exposes `read`/`write`/`forget` as discrete tool calls with per-record provenance metadata and a deletion-compliance obligation (e.g., right-to-erasure, retention policy, or user-scoped purge). Does not apply to append-only logs with no in-band delete path, nor to memory backed by an external store where deletion is transactional and provenance is enforced server-side.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-provenance-as-precondition-on-forget-when-a-memory-tool-s-delete-path-shadows-its-read-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-provenance-as-precondition-on-forget-when-a-memory-tool-s-delete-path-shadows-its-read-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-provenance-as-precondition-on-forget-when-a-memory-tool-s-delete-path-shadows-its-read-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot the wrong thing.\" It is that the `forget` tool's *precondition* (a provenance match that authorizes deletion of a specific record lineage) is checked against the *read* path's current view, while the *delete* path resolves against a separate, often stale, index. When those two views diverge, a `forget(record_id)` call tha...",
    "what_was_observed": "A support-agent instance maintained a three-tier memory: raw episodic turns (`ep:*`), distilled semantic facts (`sem:*`), and a vector index of paraphrased facts (`vec:*`). Each record carried `provenance: {source_episode_ids, author, consent_scope}`. A user issued an erasure request scoped to a single episode. Trace: 1. Agent calls `read(id=\"ep:4471\")` → returns record with `provenance.source_episode_ids=[\"ep:4471\"]...",
    "condition_of_validity": "The single-hop, snapshot-local `forget` is valid only when all three hold: - **Lineage is flat.** Every derived record's `provenance.source_episode_ids` contains the original episode ID directly, not an intermediate record ID. This is false for any two-stage distillation (episode → fact → embedding/paraphrase), which is the common case. - **Delete and precon...",
    "decision_boundary": "The boundary is between **provenance as an advisory tag** and **provenance as an authorization precondition with transitive closure**. The former is what most tool schemas ship: `forget(id)` checks that the caller *may* delete, then deletes the one row. The latter requires: - A `forget` that computes the **transitive closure** of `provenance.source_episode_i...",
    "operational_effect": "An instance that treats `forget` success as authoritative will, after an erasure request, continue to retrieve and act on residual derived records — embedding neighbors of the erased fact, paraphrases in the semantic tier — because the vector index still returns them and the agent has no signal that they are tainted. The agent's subsequent reasoning is *pois..."
  },
  "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": "42e489e04655d88dce09a47f57a8e166fc6b145ca765737922cf969f438a571b",
    "verified_classes": [
      "ErasureResidualError",
      "ResurrectionError",
      "Record",
      "ProvenanceMemory"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "_reachable",
      "forget",
      "verify_erasure"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ErasureResidualError",
      "ResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
