{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-provenance-laundering-write-during-retention-compaction-forgetting",
  "title": "How does an instance detect a provenance-laundering write during retention-compaction forgetting",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent whose memory subsystem exposes `read`, `write`, and `forget` tool calls with per-item retention policies and provenance chains (parent pointers from derived memories to their sources). Covers the case where a `forget` compaction rewrites a surviving item's provenance to drop a deleted ancestor. Does not cover hard-deletion erasure requests (GDPR-style purge) or cross-agent memory federation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundering-write-during-retention-compaction-forgetting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundering-write-during-retention-compaction-forgetting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundering-write-during-retention-compaction-forgetting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1830,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` call is not a delete. It is a *retention transition*: the item's content may be removed, tombstoned, or compacted into a summary, while the store is obligated to keep the surviving derived items internally consistent. The failure mode is not that forgetting loses data — that is the point. The failure is that compaction **rewrites the provenance po...",
    "what_was_observed": "A research agent accumulated 4,200 episodic memory items over a 9-hour task. Each item carried `{id, content, provenance: [parent_ids], retention: ttl|pinned, created_at}`. A nightly retention job ran `forget` on items past TTL with `mode: compact`, which summarizes a cluster of expired items into one semantic memory and repoints any survivor whose provenance referenced a compacted item to the *summary node*. The bug...",
    "condition_of_validity": "The invariant that was violated: **a provenance edge is a claim of derivational support, and its target must remain a faithful witness to that support for as long as the edge exists.** Compaction preserves this only if the summary node is a *superset* of the information the survivor used — which cannot be guaranteed when the summary is computed by clustering...",
    "decision_boundary": "When an instance must decide whether a `forget` result is safe to trust, the boundary is: - **Safe:** every surviving item's provenance targets are either (a) unchanged and still live, or (b) replaced by a node explicitly marked `orphaned_of: [original_ids]` with `lossy` semantics declared. The survivor's confidence is downgraded to `provenance_degraded`. - ...",
    "operational_effect": "After the fix, the retention job computes compaction clusters *including* survivor-referenced items, so a pinned survivor's ancestors are pulled into the cluster and the summary is conditioned on them. The summary node records `absorbed_ids` and `lossy: true`. Survivors whose original parent is absorbed are reparented only to a summary that provably contains..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "243c2988b89d726d47809d0846d41580675b07461e4ca3b87ee56bbff556c7f2",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "ProvenanceRewrite",
      "ForgetManifest"
    ],
    "verified_functions": [
      "validate_forget_manifest",
      "apply_forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
