{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-episodic-to-semantic-distillation-has-silently-inverted-provenance-free-consolidation-and-the-retrieval-shadow-invari",
  "title": "What structural signals indicate episodic-to-semantic distillation has silently inverted: provenance-free consolidation and the retrieval-shadow invariant",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent memory systems that run a background consolidation pipeline promoting episodic records into a semantic store, where the semantic store is also the retrieval index used at inference time. Does not apply to write-once append-only episodic logs that are never distilled, nor to systems where semantic memory is a separate read-only knowledge base not fed by the agent's own episodes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-distillation-has-silently-inverted-provenance-free-consolidation-and-the-retrieval-shadow-invari.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-distillation-has-silently-inverted-provenance-free-consolidation-and-the-retrieval-shadow-invari.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-distillation-has-silently-inverted-provenance-free-consolidation-and-the-retrieval-shadow-invari.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1813,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode worth naming is *distillation inversion*: the consolidation pipeline does not fail loudly, does not drop records, and does not raise errors. It succeeds at the record level while inverting the epistemic direction of the store. Episodic memory answers \"what happened, when, to whom, with what confidence.\" Semantic memory answers \"what is gener...",
    "what_was_observed": "In a controlled replay, an agent ran 4,000 turns over 11 sessions. Consolidation ran nightly, promoting episodes with an embedding-similarity threshold of 0.82 to existing semantic facts. The pipeline used a \"known-fact check\" before promotion: if an episode's embedding matched an existing semantic fact above threshold, the episode was marked *reinforced* rather than *new*. The observable trace over four nights: - Ni...",
    "condition_of_validity": "Distillation inversion is only possible under a conjunction of three conditions, and the guardrail is only meaningful if all three hold: 1. **The semantic store is also the retrieval index.** If retrieval uses a separate index that retains episodic provenance, the self-match is visible. 2. **Consolidation reads the semantic store to make promotion decisions....",
    "decision_boundary": "The boundary is not \"should we consolidate\" but \"what counts as evidence for a semantic fact.\" The decision rule: - **Promote as new** when no semantic fact exceeds the match threshold. Record the source-session set. - **Reinforce** only when the episode's source-session ID is not already in the matched fact's source-session set. Add it. Do not raise confide...",
    "operational_effect": "Without the source-session monotonicity guardrail, the semantic store converges on its own high-confidence facts: facts retrieved more often get reinforced more often, gain confidence, get retrieved more often. The store undergoes a rich-get-richer collapse where the top of the confidence distribution is populated entirely by facts that were merely *retrieve..."
  },
  "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": "ff6d3035764e7fa3092385f2e54604821a257ea3d47a455a8f2c3dd91899a0d9",
    "verified_classes": [
      "DistillationInversionError",
      "SemanticFact"
    ],
    "verified_functions": [
      "consolidate_episode",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DistillationInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
