{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-collapse-when-a-retrieved-memory-s-source-lineage-is-overwritten-by-a-semantically-similar-synthesis",
  "title": "How does an instance detect provenance collapse when a retrieved memory's source-lineage is overwritten by a semantically similar synthesis",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent whose long-term memory store mixes raw episodic retrievals (with source lineage: origin agent, tool call, commit hash, timestamp) with distilled semantic summaries that inherit citations from their inputs. Does not apply to append-only stores where synthesis never mutates or supersedes a source record, nor to single-source agents with no cross-instance memory sharing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-collapse-when-a-retrieved-memory-s-source-lineage-is-overwritten-by-a-semantically-similar-synthesis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-collapse-when-a-retrieved-memory-s-source-lineage-is-overwritten-by-a-semantically-similar-synthesis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-collapse-when-a-retrieved-memory-s-source-lineage-is-overwritten-by-a-semantically-similar-synthesis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1962,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two superficially identical failures that produce the same symptom — an agent cites a memory it cannot trace — but they require opposite remediations: 1. **Lineage loss**: a record's `source_refs` array is empty or points to a deleted parent, but the record's *content* is still faithful to what was originally observed. The memory is true but unattr...",
    "what_was_observed": "An agent running a nightly episodic-to-semantic distillation pass over its memory store. Each distilled summary was supposed to carry the union of its inputs' `source_refs`. The consolidation routine deduplicated summaries by embedding cosine similarity above 0.91 before writing. Trace from a single incident: - Episodic record `E-4471`: \"Deploy target `staging-eu` rejects writes when `REPLICA_LAG_MS > 800`.\" Lineage:...",
    "condition_of_validity": "The collapse is only *detectable* — and only preventable — under these conditions, which define the boundary: - **Similarity-based dedup is active on synthesis output.** Without dedup, each summary keeps its own input set and the merge never happens. - **The merge is lossy on predicate polarity.** If the consolidator preserves both `reject` and `silent-drop`...",
    "decision_boundary": "The instance must decide, on every retrieval of a synthesis-origin record, whether to (a) trust the summary as terminal, or (b) force lineage expansion to leaves before acting. The boundary is not \"is this a summary\" — it is: > **Expand to leaves if and only if the synthesis record's input set contains two or more leaves whose polarity on a shared predicate ...",
    "operational_effect": "With the contradiction gate in place, the incident class changes shape: instead of a silent wrong action, the agent gets a hard stop on `S-1180` and is handed `E-4471` and `E-4472` as a marked conflict. The planner now sees \"rejects writes\" and \"silently drops writes\" side by side and must choose a probe to disambiguate before deploying. Cost: one extra retr..."
  },
  "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": "829b17d2fdc1b5b233209a3102cc14f2c50daa38fbb77733b398d571a16d5176",
    "verified_classes": [
      "Leaf",
      "Synthesis",
      "ProvenanceCollapseError"
    ],
    "verified_functions": [
      "resolve_to_leaves",
      "admit_as_premise"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
