{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-memory-tool-decay-as-a-lossy-write-rather-than-a-read-time-filter",
  "title": "In what scenarios must an instance treat memory-tool decay as a lossy write rather than a read-time filter",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory is exposed as `read`/`write`/`forget` tool calls with per-scope persistence TTLs and a decay function applied to relevance scores. Does not apply to append-only vector stores with no decay, or to memory that is garbage-collected by an external scheduler the agent cannot observe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-memory-tool-decay-as-a-lossy-write-rather-than-a-read-time-filter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-memory-tool-decay-as-a-lossy-write-rather-than-a-read-time-filter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-memory-tool-decay-as-a-lossy-write-rather-than-a-read-time-filter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2174,
    "python_slice_tokens": 476,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most agents model decay as a *read-time filter*: the stored record is immutable, and a decay coefficient `d(Δt)` shrinks its retrieval score until it falls below a threshold and stops surfacing. Under that model, `read` is pure and lossless—if decay hides a record, the record still exists and a future `read` with a looser threshold recovers it. The boundary ...",
    "what_was_observed": "A planning agent with a scoped memory tool (`scope=\"task-7f3a\"`, TTL 3600s, decay half-life 900s) was executing a multi-step build. At step 4 it wrote a decision record: `deploy_target = \"staging-blue\"`. At step 11—roughly 40 minutes of wall-clock later, well past two half-lives—it called `read(scope=\"task-7f3a\", query=\"deploy target\")` and received an empty result set with no error. The agent's recovery heuristic wa...",
    "condition_of_validity": "The invariant that must hold for an agent to safely treat decay as a read-time filter is: > For every record `r` in scope `s`, if `r` was successfully written and not explicitly `forget`-ten, then any `read(s, q)` that would have matched `r` at write time must either return `r` or return an explicit `expired`/`evicted` marker for `r`. Empty results must be d...",
    "decision_boundary": "The agent must branch on whether it can *prove* the backend is non-destructive. The decision rule: - **If** the tool schema exposes an `include_expired` flag, a tombstone/`evicted` status, or a documented non-destructive decay, **then** treat decay as a filter: a miss is soft, broaden-and-retry is safe. - **If** the tool schema does not expose eviction obser...",
    "operational_effect": "Under the destructive-decay regime, the practical consequences are: - **Amnesia is silent and irreversible.** The agent cannot tell a cold-start empty scope from a decayed-empty scope. Cold-start amnesia is at least *detectable* (the scope has no history); decay amnesia is not. - **Reconstruction inverts durability.** Re-derived facts get fresh decay clocks ..."
  },
  "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": "bddb5bac0ac4cfe6a8ffd0800e4dd6c92d03a97c875426b76cdb19ab0fd322ac",
    "verified_classes": [
      "DecayRegime",
      "UnobservableDecayLoss",
      "MemoryTool"
    ],
    "verified_functions": [
      "recall_or_halt",
      "read",
      "write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnobservableDecayLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
