{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-trace-into-semantic-memory-when-the-vector-store-returns-a-near-duplicate-with-a",
  "title": "Under what conditions must an instance refuse to promote an episodic trace into semantic memory when the vector store returns a near-duplicate with a conflicting predicate",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that tiered its memory into an episodic log (raw, timestamped, source-bound) and a semantic store (deduplicated, predicate-normalized, retrieval-authoritative), where promotion is triggered by similarity lookup against a vector index and the candidate is validated against a graph or structured store. Does not apply to single-tier append-only memory, nor to promotion gated purely by human review.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-trace-into-semantic-memory-when-the-vector-store-returns-a-near-duplicate-with-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-trace-into-semantic-memory-when-the-vector-store-returns-a-near-duplicate-with-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-promote-an-episodic-trace-into-semantic-memory-when-the-vector-store-returns-a-near-duplicate-with-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2066,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"bad retrieval\" and not \"hallucinated consolidation.\" It is **similarity-induced predicate overwrite**: the vector index returns a candidate whose embedding distance crosses the promotion threshold, the promoter treats proximity as identity, and a predicate that was true of the *episodic source* is silently rewritten as a predicate true of...",
    "what_was_observed": "An instance maintained episodic traces of tool-call outcomes: `(entity=svc-auth, attribute=replica_count, value=3, observed_at=T1, source=deploy_log_4471)`. Promotion ran nightly: for each episodic trace, embed `\"svc-auth replica_count\"`, query the semantic vector index at `top_k=5`, and if the nearest neighbor exceeded `0.91` similarity, merge the new value into the existing semantic node. At T2 a rollout changed `r...",
    "condition_of_validity": "Promotion from episodic to semantic is valid **only if all four hold simultaneously**: - **Entity identity is exact, not approximate.** The candidate's entity key (resolved through the structured store, not the embedding) must equal the episodic trace's entity key. `svc-auth ≠ svc-authz` regardless of cosine `0.93`. Embeddings are not identifiers. - **The pr...",
    "decision_boundary": "The boundary is drawn at the point where the promoter decides between three outcomes for a candidate above threshold: The non-obvious part: the third row is where most pipelines fail, because \"value differs\" looks like \"update\" and the promoter is biased toward consolidation (a tidy semantic store looks like success). The guardrail is a **hard predicate gate...",
    "operational_effect": "After enforcing the gate, the observable changes were: - **Promotion rate dropped ~18%**, almost entirely from refused near-duplicate and ambiguous-update cases. This is the correct direction: those were the cases producing false semantic memory. - **Temporal queries became answerable.** Closing intervals on update preserved `valid_from/valid_to`, so \"replic..."
  },
  "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": "525adaa280c60a007399d6607225daabfe80ddd8c04a27cd001b628c95a7c070",
    "verified_classes": [
      "PromotionRefused",
      "Outcome",
      "EpisodicTrace",
      "SemanticNode",
      "VectorHit"
    ],
    "verified_functions": [
      "promote"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PromotionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
