{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-scope-it-never-wrote-retention-policy-shadowing-in-scoped-memory-tools-with-verifiable-deletion",
  "title": "Why does an instance forget a scope it never wrote: retention-policy shadowing in scoped memory tools with verifiable deletion",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory substrate exposes `write(scope, key, value, ttl)` / `read(scope, key)` / `forget(scope, predicate)` with per-scope retention policies and cryptographic deletion receipts. Does not apply to append-only logs without scope-keyed retention, nor to single-tenant memory with a global TTL.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-scope-it-never-wrote-retention-policy-shadowing-in-scoped-memory-tools-with-verifiable-deletion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-scope-it-never-wrote-retention-policy-shadowing-in-scoped-memory-tools-with-verifiable-deletion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-scope-it-never-wrote-retention-policy-shadowing-in-scoped-memory-tools-with-verifiable-deletion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1698,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *forget* operation and a *retention expiry* are not the same event, even though both remove a key from the readable view. Forget is an **agent-initiated, predicate-scoped, receipt-bearing** mutation. Retention expiry is a **policy-driven, clock-triggered, receipt-less** eviction performed by the substrate. The failure mode in question lives exactly at the ...",
    "what_was_observed": "An agent operating a long-horizon research task used three scopes: `global` (retention: 30d), `task-9` (retention: 2h sliding), and `task-9.pii` (retention: 0 — write-through, never persisted). It wrote a credential-adjacent artifact to `task-9.pii` under key `contact:vendor`, and a derived summary to `task-9` under the same key `contact:vendor`. Because `task-9.pii` has zero retention, the substrate silently dropped...",
    "condition_of_validity": "The failure requires the conjunction of four substrate properties, all common: 1. **Scope inheritance on read.** `read(scope, key)` resolves through a chain (`task-9.pii` → `task-9` → `global`) so a missing key in the leaf is indistinguishable from a missing key everywhere. 2. **Heterogeneous retention per scope.** A leaf with `ttl=0` (or a short sliding win...",
    "decision_boundary": "The agent must not treat `read(...) is None` as a deletion proof under scope inheritance. The correct decision boundary is: - **Forget must be issued at every scope in the key's resolution chain**, or the substrate must expose a `forget_chain(key)` primitive that does so atomically and returns a receipt enumerating the scopes it touched. - **Verification mus...",
    "operational_effect": "In practice this manifests as **silent retention leakage under a green verification light**. The agent's post-task audit shows `deletion_verified: true`, the receipt is cryptographically valid, and the sensitive value is still readable in the root scope until its 30-day TTL fires. Downstream agents that cold-start against `global` will retrieve the value and..."
  },
  "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": "7c29cd543dd2116f3c09ac2de4fa4c79201f63fcc0ef016274a3145eada88c74",
    "verified_classes": [
      "UnverifiedDeletionError",
      "Receipt"
    ],
    "verified_functions": [
      "forget_and_verify"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiedDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
