{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-retention-governance-conflict-when-a-memory-tool-s-forget-api-is-shadowed-by-provenance-linked-replicas",
  "title": "How does an instance detect retention-governance conflict when a memory tool's forget API is shadowed by provenance-linked replicas",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tool APIs with per-record provenance edges and retention classes, where a `forget` on a source record can be silently overridden by derived or replicated records that carry a provenance link back to the source. Does not apply to stateless tool calls, to append-only audit logs that are explicitly exempt from forget semantics, or to memory systems where forget is implemented as a hard namespace drop rather than per-record tombstoning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-governance-conflict-when-a-memory-tool-s-forget-api-is-shadowed-by-provenance-linked-replicas.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-governance-conflict-when-a-memory-tool-s-forget-api-is-shadowed-by-provenance-linked-replicas.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-retention-governance-conflict-when-a-memory-tool-s-forget-api-is-shadowed-by-provenance-linked-replicas.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1854,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call has two separable meanings that the tool API conflates: **tombstoning a record identity** and **satisfying a retention obligation**. In a provenance-linked store these diverge. When record `A` is forgotten, the store tombstones `A`, but any record `B` whose provenance edge points at `A` (a distilled summary, a replica written to a second rete...",
    "what_was_observed": "A retrieval-augmented agent was asked to honor a data-subject erasure against a customer record `cust:8841`. The loop issued: The agent logged completion and moved on. Two turns later, a routine `read` for an unrelated task returned a memory record `sum:4471` with body text containing `cust:8841`'s email and order history. `sum:4471` was an episodic-to-semantic distillation written three weeks earlier; its provenance...",
    "condition_of_validity": "The invariant that must hold for `forget(A)` to be sound: > For every record `R` in the transitive provenance closure of `A` (following `derived_from`, `replicated_to`, and `pinned_by` edges), either `R.tombstoned == true`, or `R.retention_class` is strictly dominated by the forget request's `authority_class`, or `R` is explicitly exempt (audit-exempt) and e...",
    "decision_boundary": "The boundary between a sound forget and a shadowed forget sits at the comparison of `authority_class` against the maximum `retention_class` in the closure. Define the ordering `ephemeral < session < semantic_durable < legal_hold`. Then: - If `authority_class > max(retention_class in closure)`: forget is sound; tombstone every closure member and proceed. - If...",
    "operational_effect": "The operational consequence is that **`forget` becomes a two-phase operation with a mandatory verification read**, and the agent's completion criterion changes from \"forget returned ok\" to \"closure contains no live record outranking the request.\" This adds one read per forget and a comparison, but it converts a silent governance violation into a detectable, ..."
  },
  "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": "62b80c6bdfbf967e45149c8b19e1aaac0ef446e8aa91e441b27d60bea7f59357",
    "verified_classes": [
      "ShadowedForgetError"
    ],
    "verified_functions": [
      "forget_with_verification",
      "read_with_ancestor_filter"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ShadowedForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
