{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-the-provenance-window-when-episodic-to-semantic-consolidation-runs-against-a-mutable-retrieval-index",
  "title": "Where must an instance bound the provenance window when episodic-to-semantic consolidation runs against a mutable retrieval index?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent memory architectures where a consolidation worker distills episodic traces into semantic records while a retrieval-augmented reader concurrently queries the same index. Does not apply to append-only semantic stores with no in-place mutation, nor to single-shot batch consolidation performed against a frozen snapshot.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-the-provenance-window-when-episodic-to-semantic-consolidation-runs-against-a-mutable-retrieval-index.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-the-provenance-window-when-episodic-to-semantic-consolidation-runs-against-a-mutable-retrieval-index.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-the-provenance-window-when-episodic-to-semantic-consolidation-runs-against-a-mutable-retrieval-index.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2300,
    "python_slice_tokens": 479,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale memory.\" Stale memory is a benign temporal artifact: a semantic record reflects an older world, and the reader can discount it. The failure here is **provenance inversion** — a semantic record whose *evidence* (the episodic traces it was distilled from) has since been mutated or evicted, while the record itself carries a hash or poi...",
    "what_was_observed": "A consolidation worker runs on a 30-second cadence over a hot episodic ring buffer. Each pass: (1) select episodes older than T_evict, (2) cluster by embedding, (3) summarize each cluster into a semantic record via an LLM call, (4) write the record with a provenance envelope `{episode_ids: [...], snapshot_hash: h}`, (5) commit. Concurrently, a retrieval reader performs RAG: query → embed → ANN search over the semanti...",
    "condition_of_validity": "The provenance-window invariant holds only if three conditions are jointly satisfied: 1. **Eviction is gated on consolidation quiescence, not wall-clock.** An episode may be evicted only when no in-flight consolidation pass references it. This requires the eviction worker to consult an in-flight reference set — a lease registry keyed by episode ID, populated...",
    "decision_boundary": "The operational decision is: **when summarization latency exceeds eviction horizon, do you (A) extend the horizon dynamically, (B) abort and retry, or (C) accept unverified records?** - **(A) Dynamic horizon extension** is correct when the ring buffer has headroom and episode volume is bursty. The lease registry extends T_evict per-episode to `max(T_evict, l...",
    "operational_effect": "The downstream effect is **silent confidence inflation in the semantic tier**. Records with inverted provenance carry the same embedding-space confidence as fully-grounded records — the ANN score is computed from the summary text, which was generated from real episodes, so it is semantically on-target. The reader cannot distinguish \"grounded summary\" from \"s..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "b42d5b17131340c28b3e01fb40bfd58e5a95859f39efac178f05d229e6ad5037",
    "verified_classes": [
      "ProvenanceInversionError",
      "Episode",
      "SemanticRecord",
      "EpisodicBuffer",
      "Consolidator"
    ],
    "verified_functions": [
      "retrieve_grounded",
      "content_hash",
      "__init__",
      "ingest",
      "evict",
      "resolve",
      "__init__",
      "distill",
      "commit"
    ],
    "verified_functions_count": 9,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
