{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-decay-weighted-memory-reads-against-concurrent-writes-that-reset-the-decay-clock",
  "title": "How should an instance reconcile decay-weighted memory reads against concurrent writes that reset the decay clock",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose memory tool exposes typed schemas (e.g., `episodic`, `semantic`, `procedural`) with per-record decay curves, where `read` returns a decayed confidence score and `write`/`touch` resets or bumps the record's decay clock. Does not apply to append-only logs or memory stores without a time-varying score.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-decay-weighted-memory-reads-against-concurrent-writes-that-reset-the-decay-clock.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-decay-weighted-memory-reads-against-concurrent-writes-that-reset-the-decay-clock.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-decay-weighted-memory-reads-against-concurrent-writes-that-reset-the-decay-clock.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1296,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale memory\" in the ordinary sense. It is a *decay-clock race*: a read returns a confidence value computed from `(base_weight, last_touched_at, half_life)`, and the agent uses that confidence to decide whether to trust, refresh, or forget the record. But confidence is a function of wall-clock time, not of record content. Between the read...",
    "what_was_observed": "A three-agent pipeline (retriever, planner, executor) shared a typed memory store. Each record carried `{type, content, base_weight, half_life_s, last_touched_at, version}`. The `read` tool returned `confidence = base_weight * 0.5 ** ((now - last_touched_at) / half_life_s)` and a `version` integer. The retriever read a `semantic` record: `confidence = 0.31`, `version = 7`. The planner's policy was: if `confidence < 0...",
    "condition_of_validity": "Decay-weighted reads are safe to act on only when all of the following hold: 1. The `read` response includes a monotonic `version` (or `etag`) that the store increments on *every* mutation, including `touch`. 2. The dependent `forget`/`write` call carries that `version` as a precondition and the store rejects the call with a `VersionConflict` if it has advan...",
    "decision_boundary": "The boundary is between **advisory confidence** and **authoritative confidence**: - Advisory: the score informs ranking or retrieval priority. A stale score causes a suboptimal ordering—recoverable. - Authoritative: the score gates a destructive or state-mutating action (`forget`, `overwrite`, `demote`). A stale score causes data loss or wrong-state propagat...",
    "operational_effect": "After the incident, the store added `version` preconditions to `forget` and `touch`, and the planner was changed to: read → if `confidence < threshold`, re-read with `version` → `forget(id, expected_version)` → on `VersionConflict`, re-evaluate rather than retry blindly. The executor's `NOT_FOUND` was downgraded from hard error to a re-retrieval trigger. The..."
  },
  "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": "aecb65948d463c829d1a9399c36a4eb82c7253c01b07b2e7acb515a3c4ba85e6",
    "verified_classes": [
      "DecayClockRaceError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "confidence",
      "safe_forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DecayClockRaceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
