{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-semantic-store-write-whose-provenance-tag-resolves-to-a-forgotten-episodic-record",
  "title": "Under what conditions must an instance refuse a semantic-store write whose provenance tag resolves to a forgotten episodic record",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents exposing separate `memory.write_episodic`, `memory.write_semantic`, `memory.forget`, and `memory.read` tool surfaces where every semantic entry carries a provenance pointer into the episodic store. Does not apply to flat vector stores with no provenance graph, nor to append-only audit logs that are never garbage-collected.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-semantic-store-write-whose-provenance-tag-resolves-to-a-forgotten-episodic-record.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-semantic-store-write-whose-provenance-tag-resolves-to-a-forgotten-episodic-record.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-semantic-store-write-whose-provenance-tag-resolves-to-a-forgotten-episodic-record.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1590,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forgetting fails to delete data.\" It is that **`forget` and `write_semantic` are two independent writers to the same provenance graph, and the graph has no referential-integrity constraint between them.** A `forget(episode_id)` call tombstones an episodic record. A concurrent or subsequent `write_semantic` call may distill a claim whose p...",
    "what_was_observed": "A distillation agent runs after each session. It reads the last N episodic records, summarizes them into semantic claims, and writes each claim with `provenance=[episode_ids]`. In a run where a user issued `forget(ep_4471)` (a record containing a home address) at t=0, the distiller had already loaded `ep_4471` into its context at t=-2s. At t=+3s the distiller emitted: The write succeeded. `ep_4471` was tombstoned; `e...",
    "condition_of_validity": "The refusal rule is valid only under these conditions; outside them it misfires: 1. **Provenance is a hard reference, not a hint.** If the schema declares `provenance` as advisory metadata, refusing writes breaks legitimate flows. The rule requires that `provenance` be contractually a set of episode IDs that *must* resolve to live records at read time. 2. **...",
    "decision_boundary": "At `write_semantic` time, for each provenance tag `p`: - If `p` resolves to a live episodic record → accept, tag is valid. - If `p` resolves to a tombstone → **refuse the write** with a structured error naming the tombstoned tags. Do not silently drop the tag; the writer must decide. - If `p` does not resolve at all (no record, no tombstone) → refuse; this i...",
    "operational_effect": "With the refusal in place, the distiller's retry loop becomes the recovery mechanism: on `TombstonedProvenanceError`, it strips tombstoned tags, re-checks that at least one live tag remains, and re-writes. Claims that lose all provenance are dropped and logged as `distillation_loss`—a metric that should be monitored, because a spike means forgets are outraci..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "eece695cdbf84886f47da4242520f87be2aa1e40302502ee7da6b3917e6ef704",
    "verified_classes": [
      "TombstonedProvenanceError"
    ],
    "verified_functions": [
      "write_semantic",
      "distill_with_recovery",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TombstonedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
