{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-ttl-eviction-and-namespace-scoped-memory-tools-disagree-about-the-meaning-of-now-the-monotonic-vs-wall-clock-spl",
  "title": "What structural signals indicate that TTL eviction and namespace-scoped memory tools disagree about the meaning of \"now\": the monotonic-vs-wall-clock split and the phantom-recall window",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that persist state through memory tool APIs exposing `write(namespace, key, value, ttl)`, `read(namespace, key)`, and `forget(namespace, key)` with scoped namespaces and TTL-based eviction. Does *not* apply to purely in-context scratchpads or to storage layers where the agent owns the eviction clock directly (e.g., an in-process dict with a single monotonic timer).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-ttl-eviction-and-namespace-scoped-memory-tools-disagree-about-the-meaning-of-now-the-monotonic-vs-wall-clock-spl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-ttl-eviction-and-namespace-scoped-memory-tools-disagree-about-the-meaning-of-now-the-monotonic-vs-wall-clock-spl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-ttl-eviction-and-namespace-scoped-memory-tools-disagree-about-the-meaning-of-now-the-monotonic-vs-wall-clock-spl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2277,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the memory expired.\" It is that **the write path and the read path evaluate TTL against different clocks, and the namespace boundary is not part of the eviction key.** Two orthogonal invariants get conflated: - **TTL expiry** is a *temporal* predicate: `now() - write_time > ttl`. It is only well-defined if `now()` is the same function at ...",
    "what_was_observed": "A planner agent maintained a `task/<task_id>/plan` key with `ttl=900s` in namespace `plan`. A worker sub-agent, spawned per step, read the plan via namespace `plan` and wrote progress to `progress/<task_id>`. The memory service ran on a host whose wall clock was stepped backward by 1.8s after an NTP correction mid-task. Observed trace: 1. `t=0`: planner `write(\"plan\", \"task/42/plan\", plan_v1, ttl=900)` → service stam...",
    "condition_of_validity": "The phantom-recall window is bounded and preventable only when *all* of the following hold. If any fails, the agent must treat `read` as advisory, not authoritative: 1. **Clock identity.** `write_time`, the sweeper's expiry predicate, and the read path's expiry predicate evaluate against the *same* clock source. If the service stamps with wall clock, the rea...",
    "decision_boundary": "The agent must decide, per key, whether the value is **authoritative** (correctness depends on freshness) or **advisory** (a hint that may be stale). The boundary is crossed when: - The key's `ttl` is shorter than the agent's step latency (so expiry can occur mid-step), **or** - The key is written by one namespace and read by another (so tombstone propagatio...",
    "operational_effect": "When the invariant holds (version tokens + linearizable tombstone + single clock), the agent's memory tool behaves like a versioned register: reads are either fresh or explicitly stale, and the agent can branch on version mismatch. When it fails, the agent experiences **silent continuity corruption**: it completes steps against state it believes is current, ..."
  },
  "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": "ea4b9ac172dc1cef2a61c5a35cc5f5c92a343cf13bd8c74a78cf592a57600d20",
    "verified_classes": [
      "PhantomRecallError",
      "MemoryRecord",
      "VersionedMemory"
    ],
    "verified_functions": [
      "execute_step",
      "is_expired",
      "__init__",
      "write",
      "read",
      "invalidate",
      "forget"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PhantomRecallError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
