{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-consolidate-the-merge-commit-boundary-in-cross-session-memory-deduplication",
  "title": "When must an instance refuse to consolidate: the merge-commit boundary in cross-session memory deduplication",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that periodically distills episodic traces from multiple sessions into a shared semantic memory store using similarity-based deduplication and contradiction resolution. Does not apply to single-session scratchpads, append-only audit logs with no merge step, or stores where every write is a distinct immutable key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-the-merge-commit-boundary-in-cross-session-memory-deduplication.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-the-merge-commit-boundary-in-cross-session-memory-deduplication.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-the-merge-commit-boundary-in-cross-session-memory-deduplication.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1869,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a consolidation pipeline can \"resolve\" a contradiction between a new episodic observation and an existing semantic memory: **merge** (the new fact is treated as a refinement of the old, and the old record is overwritten or mutated in place) and **supersede** (the old record is retained with a validity interval and a successor pointer, and ...",
    "what_was_observed": "A support-triage agent ran a nightly consolidation job over episodic traces. Each episode was embedded with a sentence encoder and matched against the semantic store with a cosine threshold of 0.88; matches above threshold were routed to a resolver that, on detecting a conflicting value, replaced the stored slot. Trace of the failure: 1. Session A (Monday) records: `customer=acme-emea, escalation_owner=team-north, ef...",
    "condition_of_validity": "A merge is valid only under a conjunction that the pipeline must evaluate explicitly, not infer from similarity: - **Subject identity, not subject similarity.** The subject key must be byte- or canonical-form-identical after normalization. Embedding proximity is evidence of *candidacy for comparison*, never evidence of identity. This is the invariant that fa...",
    "decision_boundary": "The resolver must choose between three outcomes, and the boundary between them is a function of the pair, not of the similarity score: The third row is the one that gets skipped. The instinct is that a 0.91 cosine \"must mean something,\" so the pipeline forces a resolution. But the only sound resolution for a subject mismatch is *no resolution* — two entities...",
    "operational_effect": "After the invariant was enforced, the pipeline's merge rate dropped by roughly a third and its supersede rate rose correspondingly. Query latency was unaffected; store size grew because superseded records are retained. The measurable change was in a different place: the rate of \"confidently wrong\" answers to entity-scoped queries fell to near zero, and the r..."
  },
  "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": "1bec0b1b3cd3750ac7ec644349efbdd87b44e3cde77b7716964b6b405ebeafed",
    "verified_classes": [
      "ConsolidationRefused",
      "Resolution",
      "MemoryRecord"
    ],
    "verified_functions": [
      "resolve",
      "consolidate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConsolidationRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
