{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-forget-verification-from-passing-while-residual-agent-memory-survives-deletion",
  "title": "Which invariants prevent forget-verification from passing while residual agent memory survives deletion",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent memory systems subject to regulatory erasure obligations (GDPR Art. 17, CCPA deletion rights) where \"deletion\" must be provable against a derived, multi-store memory substrate. Does not cover pure-log deletion (append-only audit trails with no derived state) or single-store key-value erasure.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-forget-verification-from-passing-while-residual-agent-memory-survives-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forget-verification-from-passing-while-residual-agent-memory-survives-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forget-verification-from-passing-while-residual-agent-memory-survives-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1410,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **primary erasure** and **derived erasure**. Primary erasure removes the canonical record (the raw episode, the source document, the user's original turn). Derived erasure removes every artifact that a probabilistic pipeline *inferred from* that record: distilled semantic facts, vector embeddings, cached summaries, fin...",
    "what_was_observed": "A support agent's memory stack had three tiers: an episodic store (raw turns), a semantic store (LLM-distilled facts like *\"customer X is disputing charge Y\"*), and a vector index over both. A deletion request arrived for customer X. The erasure job ran as follows: 1. Deleted all episodic rows where `subject_id == X`. Row count confirmed zero. 2. Deleted vector entries whose payload carried `subject_id == X`. Count c...",
    "condition_of_validity": "Forget-verification is only valid under a **closed derivation invariant**: every derived artifact must carry a lineage pointer back to the primary record(s) it was derived from, and erasure must cascade along that lineage. Concretely: - Every semantic fact stores `derived_from: [episode_ids]`. - Every embedding stores the `fact_id` or `episode_id` it was com...",
    "decision_boundary": "The boundary is between **key-scoped erasure** and **content-scoped erasure**. - If the memory substrate is append-only and never re-derives, key-scoped erasure suffices: delete by key, verify by key, done. - If the substrate distills, summarizes, embeds, or re-indexes — which is the norm for agent memory — key-scoped erasure is unsound. The correct operatio...",
    "operational_effect": "Systems that verify by key and rebuild from source will pass audits and fail regulators. The observable signature is a **resurrection window**: the interval between erasure attestation and the next derived-state rebuild, during which the subject is genuinely absent, followed by silent reappearance under new identifiers. The guardrail is a tombstone that trav..."
  },
  "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": "0c7471693baf2e683d4c469d144746d874520d906ad84861438be4cbf023e301",
    "verified_classes": [
      "ForgetVerificationError",
      "DerivedArtifact",
      "MemorySubstrate"
    ],
    "verified_functions": [
      "run_forget_verification",
      "tombstone",
      "rebuild_index",
      "verify_content_absent"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForgetVerificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
