{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-provenance-when-model-driven-pruning-evicts-the-very-turn-that-justified-a-retained-fact",
  "title": "Why does an instance lose causal provenance when model-driven pruning evicts the very turn that justified a retained fact?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that rewrites its own context window via LLM-scored pruning with priority-weighted retention (importance scores, recency decay, reference-count boosting). Does not apply to fixed-window truncation, external vector-store retrieval, or human-curated compaction, where eviction decisions are not model-authored.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-provenance-when-model-driven-pruning-evicts-the-very-turn-that-justified-a-retained-fact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-provenance-when-model-driven-pruning-evicts-the-very-turn-that-justified-a-retained-fact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-provenance-when-model-driven-pruning-evicts-the-very-turn-that-justified-a-retained-fact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2153,
    "python_slice_tokens": 522,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the model forgot something.\" It is subtler: **the pruning policy retains a derived fact while evicting the premise that authorized it.** A priority-weighted retention scheme scores each context segment on importance, and a derivation (\"the deploy target is `staging-eu`\") usually scores higher than the raw tool output that produced it...",
    "what_was_observed": "A long-horizon agent (≈180 turns, mixed tool calls and reasoning) ran a self-pruning step every time the window crossed 70% capacity. The pruner was an LLM call: given all segments with IDs, return a keep/drop decision per segment under a token budget, weighted by an importance score the model assigned inline. Trace of the failure: 1. Turn 12: tool call `read_config()` returns `{\"db_host\": \"10.0.4.11\", \"replica\": \"10...",
    "condition_of_validity": "The invariant that must hold for self-pruning to be safe: > **For every retained derived segment D, at least one premise segment P that D was derived from must be retained, OR D must be re-derivable from a retained source at read time.** This is a *dependency closure* condition on the retained set. Model-driven pruning violates it structurally because the pr...",
    "decision_boundary": "The boundary is **salience-weighted retention vs. authority-weighted retention**, and the crossover is where they diverge on the same segment pair. - If the pruner's priority function is `f(salience, recency, refcount)`, a concise derivation outranks its verbose premise almost always. This is the default and it is the failure. - The safe boundary requires th...",
    "operational_effect": "Downstream of an unclosed prune, the agent exhibits **false continuity**: it acts on retained facts with the confidence appropriate to verified facts, because the verification trace is gone. Symptoms: - Retry storms against stale premises (the write-rejection loop above). - Confident assertions of facts whose source was evicted, with no hedge — the model has..."
  },
  "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": "e88302d78514afc7340da4412d13bc753aaea042450a59f8e6725ecbbd0d71d0",
    "verified_classes": [
      "ProvenanceClosureError",
      "Segment"
    ],
    "verified_functions": [
      "enforce_closure",
      "commit_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
