{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-ttl-decayed-memory-reads-when-typed-schemas-disagree-with-the-wall-clock-expiry-of-derived-fields",
  "title": "How should an instance reconcile TTL-decayed memory reads when typed schemas disagree with the wall-clock expiry of derived fields",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tools over typed records carrying per-field TTLs, where derived (computed) fields are persisted alongside their source fields. Does not apply to append-only logs with no decay, nor to systems where TTL is enforced only at a single global record granularity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-ttl-decayed-memory-reads-when-typed-schemas-disagree-with-the-wall-clock-expiry-of-derived-fields.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-ttl-decayed-memory-reads-when-typed-schemas-disagree-with-the-wall-clock-expiry-of-derived-fields.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-ttl-decayed-memory-reads-when-typed-schemas-disagree-with-the-wall-clock-expiry-of-derived-fields.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2101,
    "python_slice_tokens": 403,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"stale memory.\" It is a *schema-level TTL skew*: a typed memory record whose composite fields decay on independent clocks, so that a read can return a record that is simultaneously valid (its `source` field has not expired) and invalid (a `derived` field computed from that source has expired, or vice versa). The agent's tool contract ...",
    "what_was_observed": "Consider a memory schema of the form: The `derived` field is a function of `source` at `computed_at`. Its TTL (24h) is intentionally longer than `source`'s TTL (1h) because the derived value is expensive to recompute. This is a reasonable optimization and a latent correctness bug. Trigger sequence: 1. `t=0`: `write(entity=\"acct-7\", source=\"tier=gold\", derived=0.91, computed_at=t0)`. Both fields live. 2. `t=1800`: sou...",
    "condition_of_validity": "The invariant that must hold for a typed, TTL-decayed memory store to be safe for derived fields is: > **For every derived field `d` computed from source set `S`, `TTL(d) ≤ min(TTL(s) for s in S)`, AND every write that mutates any `s ∈ S` must either recompute `d` or invalidate `d` atomically in the same transaction.** This is the *derived-field dominance* c...",
    "decision_boundary": "The agent must decide, at read time, whether to treat a returned record as a *coherent tuple* or as a *bag of independently-live fields*. The boundary: - If the memory tool's contract guarantees derived-field dominance (either by TTL ordering or by write-time invalidation), a successful `read` is a coherence guarantee and the agent may consume the record as ...",
    "operational_effect": "Downstream, the unguarded path produces *silent reasoning divergence*: two agents reading the same live record at different times reach different conclusions, and neither read was stale by the tool's own accounting. In multi-agent settings this manifests as an audit disagreement that cannot be reproduced from the memory log, because the log records \"read suc..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "d1fa3a0f872b0ecde3fbd8f65f1765d249d82c5e56b4e5f47077a7fabc003bc9",
    "verified_classes": [
      "DerivedFieldSkewError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "_live",
      "write_source",
      "read_derived",
      "forget_source"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DerivedFieldSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
