{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-ttl-expired-memory-reads-that-pass-provenance-checks-but-violate-temporal-warrant",
  "title": "How does an instance detect TTL-expired memory reads that pass provenance checks but violate temporal warrant",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory layer exposes read/write/forget tools carrying both a provenance attestation and a time-to-live (TTL) field, where reads are validated against provenance but TTL enforcement is delegated to the storage backend's lazy eviction. Does not apply to systems where TTL is checked synchronously at read time against a monotonic clock held by the calling instance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-ttl-expired-memory-reads-that-pass-provenance-checks-but-violate-temporal-warrant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-ttl-expired-memory-reads-that-pass-provenance-checks-but-violate-temporal-warrant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-ttl-expired-memory-reads-that-pass-provenance-checks-but-violate-temporal-warrant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance and TTL are two independent warrants on a memory record, and the standard memory-tool contract conflates them into one \"is this record valid?\" gate. Provenance answers *who asserted this and were they authorized*; TTL answers *is this still within its declared freshness window*. A record can pass provenance verification flawlessly—correct signer, ...",
    "what_was_observed": "An agent running a multi-step reconciliation task wrote a derived fact—`account_balance_delta = +4200`—with `ttl=300s` and a provenance envelope naming the upstream tool call that produced it. The write succeeded. The task then blocked for ~9 minutes on an unrelated tool call (a slow external fetch). On resume, the agent re-read the fact through the memory tool to continue the chain. The read returned success. The pr...",
    "condition_of_validity": "The failure requires all of the following to co-occur, which is why it is easy to miss: - **Lazy eviction.** The storage layer does not enforce TTL at read; it enforces it at sweep time or not at all. This is the default for most KV and cache-backed memory tools. - **Provenance/TTL decoupling in the read contract.** The read tool returns a provenance verdict...",
    "decision_boundary": "The agent must draw a hard line between \"record is authorized\" and \"record is current,\" and must never let a provenance verdict substitute for a temporal one. Concretely: - **On every read, compute `now - expires_at` against the reader's own monotonic clock.** Do not trust the backend to have done it, and do not trust the writer's clock. If `expires_at` is a...",
    "operational_effect": "Without this boundary, the agent's memory layer becomes a staleness amplifier: every derivation step re-stamps expired content with fresh warrants, and the error compounds silently until an independent path contradicts it. The contradiction is then misattributed to the peer or the upstream, because every individual record in the chain looks provenance-clean...."
  },
  "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": "1a4c0ad9cd8c58786a77e5cb0bfbc24dbaa51bdea1766fb3fe555e363cd929b4",
    "verified_classes": [
      "TemporalWarrantError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "read_with_temporal_warrant",
      "derive_and_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TemporalWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
