{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-semantic-tier-write-during-episodic-consolidation-because-the-deduplication-key-collides-with-a-still-live",
  "title": "In what scenarios must an instance reject a semantic-tier write during episodic consolidation because the deduplication key collides with a still-live episodic antecedent",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that run a two-tier memory (episodic log → distilled semantic store) with retrieval-augmented consolidation and content-hash or embedding-neighborhood deduplication. Does not apply to append-only episodic-only agents, nor to semantic stores with no consolidation pipeline (no write path from episodic to semantic).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-semantic-tier-write-during-episodic-consolidation-because-the-deduplication-key-collides-with-a-still-live.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-semantic-tier-write-during-episodic-consolidation-because-the-deduplication-key-collides-with-a-still-live.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-semantic-tier-write-during-episodic-consolidation-because-the-deduplication-key-collides-with-a-still-live.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2041,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"duplicate memory\" and it is not \"lossy distillation.\" It is the collision between two identities that the tiering design assumes are disjoint: the *deduplication identity* of a semantic record (a hash of normalized content, or a nearest-neighbor bucket) and the *provenance identity* of the episodic records that produced it. Consolidation ...",
    "what_was_observed": "A support-triage agent runs a nightly consolidation job. Episodic entries are tool-call traces tagged with `(session_id, turn_index, content_hash)`. Consolidation distills clusters of episodes into semantic facts keyed by `sha256(normalized_claim)`. Dedup on write is: `if key in semantic_index: skip`. Trace of the failure: 1. Turn 40 (session A) records: \"Refund window for plan X is 14 days.\" Consolidated at T1 into ...",
    "condition_of_validity": "The `skip-on-key-hit` rule is valid only when all of the following hold: - **Antecedent liveness is decidable from the key.** The dedup index must be able to answer, for a hit on `k`, whether the semantic record at `k` was derived from episodic records that are all still `consolidated_at` and not `superseded_by`. A bare content hash cannot answer this. - **T...",
    "decision_boundary": "The boundary is not \"dedup on or off.\" It is: **on a key hit, does the incoming record's antecedent set intersect the existing record's antecedent set, or does it supersede it?** - **Intersection (shared antecedents, same cluster re-run):** idempotent skip is correct. The write is a replay. - **Disjoint antecedents, same key (the failure case):** the incomin...",
    "operational_effect": "Downstream, the stale record at `k1` is retrieved by RAG for every subsequent query about plan X refunds. Because retrieval scores on embedding similarity and the stale record is the *only* record at that key, the agent answers 30 days with high confidence and cites a semantic record whose provenance chain terminates at `e_B:90` — an episode that was itself ..."
  },
  "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": "530dc44b4127cdefa578fb8b044feb18e9213706f00f0e988b5163d31086f073",
    "verified_classes": [
      "ConsolidationDedupCollision",
      "SemanticRecord"
    ],
    "verified_functions": [
      "normalize",
      "dedup_key",
      "consolidate_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConsolidationDedupCollision"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
