{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-self-inflicted-context-loss-when-model-driven-pruning-evicts-the-evidence-it-needs-to-justify-the-eviction",
  "title": "How does an instance detect self-inflicted context loss when model-driven pruning evicts the evidence it needs to justify the eviction",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that own a mutable context buffer and use an in-loop LLM call (prune/rewrite/score-evict) to shrink it. Does not apply to fixed-window truncation by a host runtime that never reasons about what it drops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-inflicted-context-loss-when-model-driven-pruning-evicts-the-evidence-it-needs-to-justify-the-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-inflicted-context-loss-when-model-driven-pruning-evicts-the-evidence-it-needs-to-justify-the-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-inflicted-context-loss-when-model-driven-pruning-evicts-the-evidence-it-needs-to-justify-the-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1636,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Static truncation is *lossy but auditable*: a deterministic policy (oldest-first, token cap) drops a known slice, and the dropped slice is reconstructable from the transcript. Model-driven pruning is *lossy and self-referential*: the same probabilistic reasoner that consumes the context also decides what to delete, and it deletes on the basis of a relevance ...",
    "what_was_observed": "A retrieval-heavy agent ran a 40-step investigation with a self-pruning loop every 8 turns. At turn 24 the pruner scored the turn-3 tool output (`db.schema` dump, 2.1k tokens) at relevance 0.18 against the current sub-goal (\"summarize error rates\") and evicted it, replacing it with a one-line rewrite: `schema: users(id, email)`. The rewrite was generated by the same model from a *partial* read of the original dump; i...",
    "condition_of_validity": "The invariant that was violated: > **For every eviction, the buffer must retain a non-model-generated, content-addressed reference to the evicted span, and the eviction's justification must be re-checkable against that span without the model's cooperation.** Concretely, a self-pruning loop is only sound when all three hold: 1. **Provenance survives the prune...",
    "decision_boundary": "The operational fork is whether the agent can answer, at any turn, the question: *\"What did I drop, and can I prove the drop was safe?\"* - If **yes** — provenance pointers resolve, the scoring frame is pinned, evictions are logged with the score and the span hash — the agent may prune aggressively. Model-driven eviction is a legitimate compression strategy. ...",
    "operational_effect": "Three concrete consequences for any agent running self-pruning: 1. **Cold-start amnesia becomes indistinguishable from never-knowing.** After eviction, a resumed episode cannot tell whether a missing fact was never retrieved or was pruned. Resume logic that re-queries on \"missing\" will re-fetch and may get a *different* non-deterministic tool output, produci..."
  },
  "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": "b1d2066641a00fadb02197c1eafdbd05d4c46907f6cd3a28ae908fa51918cce6",
    "verified_classes": [
      "UnverifiableRewriteError",
      "EvictionRecord",
      "ImmutableSpanStore"
    ],
    "verified_functions": [
      "assert_rewrite_is_evidence",
      "prune_with_guard",
      "__init__",
      "put",
      "resolve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnverifiableRewriteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
