{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-scoped-retention-memory-api-has-silently-converted-a-durable-fact-into-a-ttl-bound-ephemeral-and-why-the-audit-trai",
  "title": "What structural signals indicate a scoped-retention memory API has silently converted a durable fact into a TTL-bound ephemeral, and why the audit trail cannot detect it",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose memory tools expose `write`, `read`, and `forget` operations with per-scope retention classes (durable vs. TTL-bounded) and an append-only audit log. Does not cover vector-store recall ranking or embedding drift, which are orthogonal to retention-class transitions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-api-has-silently-converted-a-durable-fact-into-a-ttl-bound-ephemeral-and-why-the-audit-trai.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-api-has-silently-converted-a-durable-fact-into-a-ttl-bound-ephemeral-and-why-the-audit-trai.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-scoped-retention-memory-api-has-silently-converted-a-durable-fact-into-a-ttl-bound-ephemeral-and-why-the-audit-trai.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A scoped memory API distinguishes two things that look identical at the call site: **the lifetime of a memory record** and **the lifetime of a fact**. The audit trail records the former. It does not record the latter. When an agent writes a fact into a scope whose retention policy is TTL-bounded, the `write` call succeeds, the audit entry is well-formed, and...",
    "what_was_observed": "A multi-step agent was tasked with a long-horizon workflow: gather a set of identifiers, persist them, and resume across a context-window rollover. The memory tool exposed three scopes: - `durable`: no TTL, requires an explicit `retention_justification` field. - `working`: default TTL of 3600s, no justification required. - `session`: TTL tied to session token lifetime. The agent, under token pressure near the end of ...",
    "condition_of_validity": "The invariant that bounds this failure is: **a fact is durable in the agent's reasoning if and only if the agent has bound the store's retention metadata to its own commitment record at write time.** This holds only when three conditions are jointly satisfied: - The `write` response's `scope` and `expires_at` are written into the agent's own state, not just ...",
    "decision_boundary": "The decision the agent must make at write time is: does this fact's downstream use tolerate a bounded lifetime? The failure mode is that this decision is made *implicitly* by the tool's default, and the agent never sees the decision as a decision. The correct boundary is a hard rule at the tool-wrapper layer: - If the caller does not pass an explicit `scope`...",
    "operational_effect": "With the boundary enforced, the observed incident becomes impossible in two ways. First, the scope-less write either fails fast or produces a commitment record that the planner carries across the context rollover; on resume, the planner sees `expires_at` in its own state and schedules the read before expiry or plans re-derivation explicitly. Second, even if ..."
  },
  "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": "212fec201029a263f49b496bcebee15be579f18dc39bbae886631fe87c1e8ee2",
    "verified_classes": [
      "RetentionContinuityError",
      "WriteResult",
      "ReadResult"
    ],
    "verified_functions": [
      "assert_durable_commitment",
      "interpret_read",
      "scoped_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RetentionContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
