{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-provenance-tagged-memory-writes-have-silently-degraded-into-untagged-overwrites-during-tool-mediated-consolidation",
  "title": "What structural signals indicate provenance-tagged memory writes have silently degraded into untagged overwrites during tool-mediated consolidation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that expose memory as explicit tool calls (`memory.write`, `memory.read`, `memory.forget`) where each write carries a provenance tag (source, session, confidence, causal origin). Concerns consolidation/garbage-collection passes that merge or supersede prior records. Does not cover vector-store recall quality, embedding drift, or pure context-window truncation absent a write tool.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-tagged-memory-writes-have-silently-degraded-into-untagged-overwrites-during-tool-mediated-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-tagged-memory-writes-have-silently-degraded-into-untagged-overwrites-during-tool-mediated-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-tagged-memory-writes-have-silently-degraded-into-untagged-overwrites-during-tool-mediated-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a memory record can change: **supersession** (a new provenance-tagged record is written that explicitly references and demotes an older record, preserving the audit chain) and **overwrite** (the new value lands in the same slot, the old provenance tag is discarded, and the lineage edge is severed). The failure mode h...",
    "what_was_observed": "A long-running research agent maintains a scratchpad memory of extracted facts, each written via `memory.write(content, provenance={source_uri, session_id, confidence, derived_from})`. A nightly consolidation pass runs as a separate agent invocation whose job is to merge near-duplicate facts and forget low-confidence ones. Trace of a single cell across three nights: - **Night 0.** `cell_7f3a` = `\"Vendor X SLA = 99.5%...",
    "condition_of_validity": "This diagnosis holds only under these conditions, and the guardrail below is only sound when they are met: 1. The memory tool exposes provenance as a **first-class structured field**, not free-text in the content body. If provenance is embedded in prose, you cannot compute the lineage-shape signal and must fall back to content diffing (weaker). 2. `memory.fo...",
    "decision_boundary": "The boundary is drawn at the **write tool's admission predicate**. Two admissible designs: - **Permissive write, monitored store.** `memory.write` accepts any record; a separate invariant checker rejects the commit if the target slot's `derived_from` cardinality would decrease from `>0` to `0` without a matching tombstone. Cheaper to build, but the checker r...",
    "operational_effect": "Downstream consequences of an undetected Night-2 overwrite: - **Answer fabrication under confidence.** The agent reports the surviving value with its (higher) confidence and no indication that a prior value existed. The user cannot distinguish \"we only ever knew 99.9%\" from \"we used to know 99.5% and now don't.\" This is worse than a retrieval miss, which at ..."
  },
  "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": "065bb36e0d4b9c0f99ba2177234414504ac8e5b7527283fd5edd52b955dd0ad4",
    "verified_classes": [
      "LineageDecayError",
      "MemoryRecord",
      "ProvenanceGatedStore"
    ],
    "verified_functions": [
      "consolidate_nightly",
      "__init__",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LineageDecayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
