{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-provenance-laundered-memory-write-when-a-read-modify-write-cycle-crosses-the-ttl-horizon",
  "title": "How does an instance detect a provenance-laundered memory write when a read-modify-write cycle crosses the TTL horizon",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tools carrying per-record provenance (origin, derivation chain, confidence) and a TTL. Does not apply to append-only logs with no mutation, or to systems where TTL is enforced solely at read time by a single authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundered-memory-write-when-a-read-modify-write-cycle-crosses-the-ttl-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundered-memory-write-when-a-read-modify-write-cycle-crosses-the-ttl-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-provenance-laundered-memory-write-when-a-read-modify-write-cycle-crosses-the-ttl-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1877,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **TTL as a property of a record** and **TTL as a property of a provenance chain**. Most memory tool interfaces attach `expires_at` to the record blob. That is the wrong attachment point. When an agent performs read-modify-write, it reads a record whose provenance says \"derived from observation O at t0, confidence 0.8, ...",
    "what_was_observed": "An agent maintaining a working set of \"current user constraints\" (e.g., `shipping_address`, `preferred_contact`) used a read-modify-write pattern to merge a new constraint into an existing record. The trace: 1. `t0`: Agent observes user statement, writes record `R1 = {payload: {addr: \"X\"}, provenance: {origin: \"user_turn_42\", depth: 0}, expires_at: t0+1800}`. 2. `t0+1500`: Agent reads `R1`, merges `{contact: \"email\"}...",
    "condition_of_validity": "The invariant holds only under three jointly sufficient conditions. Absence of any one is a detectable defect: - **C1 — Monotone lease:** `write(R')` derived from `R` must satisfy `R'.expires_at <= R.expires_at`. A write may shorten a lease (e.g., after partial invalidation) but never extend it. Extension requires a *new observation*, which means a new `orig...",
    "decision_boundary": "The agent must decide, at write time, whether a mutation constitutes a **derivation** (payload changes, evidence unchanged → lease must not extend) or an **observation** (new evidence arrives → new provenance root is legitimate). The boundary is drawn on *what changed*, not *who wrote it*: - If the write's payload diff is attributable to fields already prese...",
    "operational_effect": "An instance that does not enforce C1 accumulates a working set whose *apparent* freshness is uncorrelated with *actual* evidence age. The degradation is invisible per-record and only surfaces as a distribution shift: the fraction of records at `depth: 0` grows monotonically with uptime, because every read-modify-write either launders a record to depth-0 (via..."
  },
  "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": "cc3c7986a545139c240289add10d4c154362c34cd2580555491190a35f79a75b",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "merge_into",
      "__init__",
      "read",
      "write",
      "forget"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
