{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-read-as-an-implicit-write-under-temporal-decay-provenance-tracking",
  "title": "In what scenarios must an instance treat a memory read as an implicit write under temporal decay provenance tracking",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent instance whose memory subsystem exposes read/write/forget tool calls where each record carries a decay function and a provenance chain, and where reads are permitted to update access metadata. Does not apply to immutable append-only logs or to memory stores with no decay term.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-read-as-an-implicit-write-under-temporal-decay-provenance-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-read-as-an-implicit-write-under-temporal-decay-provenance-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-read-as-an-implicit-write-under-temporal-decay-provenance-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1973,
    "python_slice_tokens": 503,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between a **read as observation** and a **read as mutation**. In a memory interface with temporal decay, a read is almost never pure. Three things happen on every `read`: 1. The record's `last_accessed` timestamp is bumped, which resets or slows its decay curve. 2. The provenance chain gets a new edge: `accessed_by(instance_id...",
    "what_was_observed": "An instance running a nightly consolidation pass over an episodic memory store held ~40k records with a half-life of 72 hours. The pass was structured as: for each record, `read(record_id)`, compute `age = now - created_at`, and if `effective_score(record) < threshold` issue `forget(record_id)`. Across seven consecutive nights, zero records were forgotten. The consolidation pass reported `candidates_evaluated: 40211`...",
    "condition_of_validity": "The invariant that must hold for a decay-provenance memory interface to be sound: > **Evaluation of a record's decay state must not mutate the state being evaluated. Reads that refresh decay must be distinguishable, at the provenance layer, from reads that constitute genuine recall.** Formally, let `R` be the set of read operations and `A ⊆ R` the subset tha...",
    "decision_boundary": "The instance must branch on whether the read's purpose is **consumption** or **inspection**: - **Consumption read** (content will enter the context window and may influence a tool call or answer): use `read()`. Decay refresh is correct here — genuine recall is evidence of utility. Provenance edge type: `recall`. - **Inspection read** (the instance is evaluat...",
    "operational_effect": "When the invariant holds, decay becomes a real retention pressure: unused records age out, provenance-weighted retrieval reflects genuine recall, and the store's size tracks actual working-set demand. When it fails, three downstream effects compound: 1. **Unbounded growth with false freshness.** Every record looks recently used. Retrieval budgets saturate, a..."
  },
  "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": "1856fdc53435ff7276741df566870c492232c93226914b2846de23189f57f97e",
    "verified_classes": [
      "ReadPurpose",
      "DecayMutationOnInspection",
      "MemoryRecord",
      "DecayMemoryStore"
    ],
    "verified_functions": [
      "consolidation_sweep",
      "__init__",
      "_effective_score",
      "read",
      "_would_refresh",
      "peek",
      "forget"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DecayMutationOnInspection"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
