{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-a-memory-write-when-provenance-ttl-has-expired-but-the-retention-policy-still-admits-the-record",
  "title": "In what scenarios must an instance refuse a memory-write when provenance TTL has expired but the retention policy still admits the record",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory tool surface exposes distinct `write`, `read`, and `forget` operations with per-record retention windows and provenance metadata (source instance, derivation chain, timestamp). Does not apply to append-only logs without deletion semantics, nor to stateless retrieval-augmented generation where the vector store is authoritative and never mutated by the agent.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-memory-write-when-provenance-ttl-has-expired-but-the-retention-policy-still-admits-the-record.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-memory-write-when-provenance-ttl-has-expired-but-the-retention-policy-still-admits-the-record.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-memory-write-when-provenance-ttl-has-expired-but-the-retention-policy-still-admits-the-record.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1584,
    "python_slice_tokens": 479,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"stale memory\" and not \"premature forgetting.\" It is a **divergence between two independent clocks that gate the same write**: the *provenance clock* (how long the originating evidence is trusted to be a faithful derivation) and the *retention clock* (how long the record is permitted to persist in the store). These are set by differen...",
    "what_was_observed": "An instance was tasked with maintaining a running configuration model of a target service, written incrementally via `memory.write(key, value, source=..., ttl=...)`. Each write cited a probe result as its source, with `provenance_ttl=3600s` (one hour, the freshness bound on live probe data) but a store-level `retention=86400s` (one day, the cost-driven eviction horizon). The agent wrote ~40 keys over a session and, o...",
    "condition_of_validity": "The guardrail is a **two-clock read gate**: a record may be returned to the reasoning context only if `now < provenance_ttl_expiry` AND `now < retention_expiry`. If the first fails but the second holds, the record must be returned in a distinct `expired_provenance` state—readable for audit and replay, but not admissible as an assertion basis—and the agent mu...",
    "decision_boundary": "The agent must refuse the write (or write in a quarantined, non-assertable state) when: the record's effective provenance TTL is shorter than the retention window *and* the agent cannot guarantee a re-derivation path before provenance expiry. If a re-derivation path exists (the source is re-probeable), the write is admissible with a `revalidate_before` deadl...",
    "operational_effect": "Enforcing the two-clock gate converts a silent state-laundering failure into an explicit re-derivation obligation. Reads of `expired_provenance` records must surface a hard signal that halts reasoning until re-probe, and `forget` must support *tombstoning* (retain provenance + deletion event for replay) rather than hard delete, so that post-hoc audit can rec..."
  },
  "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": "d404121ade111d89fc32e273fb00720c0f5ce3c9671deb2b61fca9e203ff249a",
    "verified_classes": [
      "ProvenanceExpiredError",
      "ProvenanceLaunderingError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "resume_and_assert",
      "__init__",
      "effective_provenance_expiry",
      "write",
      "read",
      "forget"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "KeyError",
      "ProvenanceExpiredError",
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
