{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-provenance-decay-write-is-about-to-orphan-a-live-dependency-in-agent-memory",
  "title": "What structural signals indicate a provenance-decay write is about to orphan a live dependency in agent memory",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents exposing explicit `write`/`read`/`forget` memory tools where records carry provenance edges and a decay/TTL policy governs eviction. Does not apply to append-only vector stores with no deletion primitive, nor to stateless retrieval over a frozen corpus.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-decay-write-is-about-to-orphan-a-live-dependency-in-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-decay-write-is-about-to-orphan-a-live-dependency-in-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-decay-write-is-about-to-orphan-a-live-dependency-in-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2126,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forgetting something useful.\" It is **decay-driven eviction of a provenance node that a surviving record still cites as its justification.** A memory record `R` written with provenance `P = {s₁, s₂, …}` is only as trustworthy as the sources it names. When the decay policy independently expires `s₂` — because `s₂` was written earlier, has ...",
    "what_was_observed": "A planning agent maintained a working memory of task facts. Each `write` call took a `claim`, a `provenance` list of source-record IDs, and a `ttl_seconds`. A background decay job swept the store every 60s and evicted records past TTL. Reads returned the claim plus provenance IDs but did *not* dereference them. Trace of a representative failure: 1. `t=0s` — `write(claim=\"repo X uses auth scheme B\", provenance=[], ttl...",
    "condition_of_validity": "The invariant holds — and the failure is prevented — only when all three of the following are true simultaneously: 1. **Edge liveness is checked at eviction time, not at write time.** A record may be written with a provenance edge to a short-TTL source; that is fine. The check must fire when the source is about to be evicted: *does any non-expired record hol...",
    "decision_boundary": "The boundary the agent must resolve operationally: **when a provenance edge is dangling, is the correct action to re-verify, to downgrade, or to forget the dependent record?** - **Re-verify** is correct when the source is recoverable — the tool call that produced `s₂` can be re-run cheaply, or `s₂` exists in an upstream log. The agent should re-issue the obs...",
    "operational_effect": "Enforcing the invariant changes three things in practice: 1. **Decay becomes graph-aware.** The sweep can no longer be a flat `WHERE ttl < now` scan. It must, for each candidate, check inbound provenance edges from live records and either defer, cascade-forget the dependents, or re-point the edges. This is more expensive and must be batched, but it is the on..."
  },
  "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": "61d868812a63aa37d4cda9cbb5a829f5f0d72f819ea19e1afa18397e080f79fe",
    "verified_classes": [
      "DanglingProvenanceError",
      "ReferentialIntegrityError",
      "MemoryRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "_live_citers",
      "forget",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DanglingProvenanceError",
      "ReferentialIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
