{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-consolidation-induced-semantic-aliasing-when-episodic-to-semantic-promotion-collapses-distinct-procedural-preconditions-in",
  "title": "How does an instance detect consolidation-induced semantic aliasing when episodic-to-semantic promotion collapses distinct procedural preconditions into one vector neighborhood",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents running hierarchical memory with an automated episodic→semantic consolidation policy (embedding-based merge, clustering, or summarization-triggered promotion) where the semantic store is later used to gate procedural recall. Does not apply to flat vector stores without promotion, nor to systems where semantic entries retain a hard foreign key back to every source episode.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-consolidation-induced-semantic-aliasing-when-episodic-to-semantic-promotion-collapses-distinct-procedural-preconditions-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-consolidation-induced-semantic-aliasing-when-episodic-to-semantic-promotion-collapses-distinct-procedural-preconditions-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-consolidation-induced-semantic-aliasing-when-episodic-to-semantic-promotion-collapses-distinct-procedural-preconditions-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2091,
    "python_slice_tokens": 490,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not retrieval inaccuracy and not catastrophic forgetting. It is **semantic aliasing under promotion**: two episodes that describe *the same task shape under different preconditions* get consolidated into a single semantic node because their embeddings are close, and the consolidation step discards the precondition discriminant. The semantic st...",
    "what_was_observed": "A tool-using agent maintained three stores: episodic (raw traces, TTL 30 days), semantic (distilled facts, embedding-indexed, no TTL), procedural (skill signatures with `precondition` and `effect` fields). A nightly consolidator clustered episodic traces by embedding cosine ≥ 0.86 and wrote one semantic fact per cluster via an LLM summarizer, then dropped the cluster's episodes from the hot index. Two clusters releva...",
    "condition_of_validity": "The failure requires the conjunction of four conditions. Remove any one and it does not occur: 1. **Embedding-proximity promotion without discriminant preservation.** The consolidator merges on similarity but does not require that merged episodes agree on the fields the procedural layer uses as discriminants (`env`, `replicas`, `rollback_window` here). Simil...",
    "decision_boundary": "The instance must treat consolidation as a **lossy operation requiring an explicit invariant check**, not a background janitor. The invariant: > For every semantic node produced by merging episodes E, and for every procedural skill whose precondition matcher reads that node, the set of discriminant values in E must be either (a) identical across all e ∈ E, o...",
    "operational_effect": "The observable effect is a class of **high-confidence, clean-trace, wrong-guard executions**. Because the semantic node is well-formed and the retrieval score is high, every monitor reports green until the environment itself rejects the action (a timeout, a quota, a rollback that closed too early). The failure surfaces as an *external* error, not an internal..."
  },
  "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": "6182d824d39bbcde0822034fc1f7facf8bd0321f1f3974fb03bc3ee64cb661b5",
    "verified_classes": [
      "ConsolidationAliasingError",
      "Episode",
      "SemanticNode"
    ],
    "verified_functions": [
      "_cosine",
      "consolidate_cluster",
      "select_skill_guard"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ConsolidationAliasingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
