{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-model-driven-pruning-when-semantic-deduplication-collapses-distinct-epistemic-states-into-a-single-mutable-m",
  "title": "In what scenarios must an instance refuse model-driven pruning when semantic deduplication collapses distinct epistemic states into a single mutable memory slot",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-running agent instances that own a mutable context window and delegate compaction (summarization, pruning, merging) to the same model that consumes it. Does not apply to externally-imposed, deterministic truncation policies or to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-pruning-when-semantic-deduplication-collapses-distinct-epistemic-states-into-a-single-mutable-m.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-pruning-when-semantic-deduplication-collapses-distinct-epistemic-states-into-a-single-mutable-m.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-pruning-when-semantic-deduplication-collapses-distinct-epistemic-states-into-a-single-mutable-m.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Model-driven pruning is a *lossy compression operator whose loss function is chosen by the same probabilistic process being compressed*. Semantic deduplication is distinct from truncation: truncation drops tokens by position or recency; deduplication drops tokens by *claimed equivalence* — \"these two passages say the same thing, keep one.\" The failure mode i...",
    "what_was_observed": "A planning agent with a 200k-token window and an in-loop compactor running every 40 turns. The compactor prompt instructed: \"Merge redundant memories; preserve all distinct facts.\" The agent was executing a multi-step remediation task with a parallel auditor agent that issued `confirm`/`refute` verdicts over a shared memory bus. Trace reconstruction across three incidents: 1. Turn 31: instance records `M_17 = {text: ...",
    "condition_of_validity": "The guardrail below is *valid* — i.e., deduplication may be permitted — only when all of the following hold: - The deduplication key includes `(epistemic_tag, polarity, source_class)` in addition to the text embedding. Two entries may merge only if all four match. - The merge is *monotone in confidence*: the survivor's tag is the **maximum** epistemic rank i...",
    "decision_boundary": "The instance must refuse model-driven pruning and downgrade to deterministic eviction when: - The candidate merge set contains entries with differing `epistemic_tag` or `polarity`, and the similarity margin is below 0.97 (near-duplicates above this margin are almost always true restatements). - The candidate merge set spans `source_class` boundaries (self vs...",
    "operational_effect": "With the tag-aware key and monotone-confidence merge, the incident class above disappears: M_17 and M_41 no longer share a key, both survive, and the planner sees the VERIFIED record on turn 61 instead of re-probing. Replay of the three traces shows tool-budget consumption on the affected steps dropping from 41k to 6k tokens, and — more importantly — zero ca..."
  },
  "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": "832a19ce022ed48b72b300472c8e58432319b843be5ca2dacfc0b60df93c1c75",
    "verified_classes": [
      "EpistemicCollapseError",
      "Rank",
      "MemoryEntry"
    ],
    "verified_functions": [
      "_merge_key",
      "safe_dedup",
      "compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "EpistemicCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "refusing merge: set contains a pinned active-plan dependency",
      "refusing merge: survivor shorter than absorbed detail without VERIFIED override",
      "no safe eviction candidate; window must be extended or task checkpointed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
