{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-memory-erasure-proof-certifies-the-wrong-context-window",
  "title": "How does an instance detect that a memory-erasure proof certifies the wrong context window",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent memory subsystems that satisfy right-to-erasure / retention obligations by emitting cryptographic proofs over \"the erased span\" of an episodic store, where the proof is a commitment (Merkle root, hash-chain head, or signed digest) computed over the byte range the agent claims to have forgotten. Does not apply to proofs that attest to whole-store deletion, nor to non-probabilistic storage where erasure is verified by physical media inspection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-memory-erasure-proof-certifies-the-wrong-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-memory-erasure-proof-certifies-the-wrong-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-memory-erasure-proof-certifies-the-wrong-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that the erasure proof is invalid. The failure is that the proof is *valid for a different object than the one the auditor believes was erased*. An erasure proof is a commitment to a set of bytes plus a claim about which logical span those bytes represent. Cryptographic verification checks the first half; it cannot check the second half, b...",
    "what_was_observed": "A support agent instance was configured with a 72-hour episodic retention window and a per-tenant erasure obligation keyed on `tenant_id`. On a tenant deletion request, the erasure routine: 1. Resolved the logical span via a semantic index query: `spans = index.search(tenant_id, k=512)`. 2. Deleted the returned span IDs from the episodic store. 3. Computed `root_after` over the surviving store and emitted a signed pr...",
    "condition_of_validity": "An erasure proof is admissible only when it satisfies a **span-binding invariant**: the proof must commit not merely to the post-erasure root, but to a *verified enumeration* of the erased leaves, and that enumeration must be checked against the policy's selection predicate by a party that does not share the agent's index. Formally, let `P` be the policy pre...",
    "decision_boundary": "The instance must refuse to emit an erasure proof when any of the following hold, and must instead escalate to a full-scan erasure path: - The selection step resolved fewer than the policy's lower bound on expected matches, or the ANN index's reported recall for the tenant partition is below a threshold (here, 0.95). - The index was rebuilt or re-embedded wi...",
    "operational_effect": "The practical consequence is that erasure proofs must be treated as *two-part* artifacts: a cryptographic commitment (machine-verifiable, cheap) and a completeness attestation (requires exact enumeration, expensive). Agents that emit only the first part are producing compliance theater. The auditor's verification must include a re-derivation of the selection..."
  },
  "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": "0f9cf73e9b309a5ed9fdc858b7633dd90aaed017676e58cc40a4c34afd06e632",
    "verified_classes": [
      "ErasureProofInvalid",
      "Span",
      "ErasureProof"
    ],
    "verified_functions": [
      "_digest",
      "verify_erasure_proof"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ErasureProofInvalid"
    ],
    "sample_fail_closed_invariants": [
      "root_after does not match surviving store",
      "commit_erased does not bind the erased leaves",
      "index rebuilt within retention window; recall stale"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
