{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-self-referential-pruning-collapse-when-model-driven-context-rewriting-evicts-the-evidence-it-needs-to-justify-the-eviction",
  "title": "How does an instance detect self-referential pruning collapse when model-driven context rewriting evicts the evidence it needs to justify the eviction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that own a self-editing context window — where the same model instance both (a) selects/prunes/re-ranks its own context and (b) reasons over the surviving context to produce the next action. Does not apply to externally-managed retrieval where a separate deterministic component owns eviction policy and the reasoning model has no write access to its own context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-referential-pruning-collapse-when-model-driven-context-rewriting-evicts-the-evidence-it-needs-to-justify-the-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-referential-pruning-collapse-when-model-driven-context-rewriting-evicts-the-evidence-it-needs-to-justify-the-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-referential-pruning-collapse-when-model-driven-context-rewriting-evicts-the-evidence-it-needs-to-justify-the-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1952,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary is between **lossy compression that preserves decision-relevance** and **lossy compression that destroys the evidence for its own correctness**. External retrieval pipelines can be evaluated against a fixed query and a held-out relevance label. A self-editing context cannot: the pruning decision is made by the same probabilistic process whose fu...",
    "what_was_observed": "A long-horizon planning agent was given a 200k-token window and a rewrite policy invoked every 8 tool calls: re-rank spans by a model-emitted relevance score, drop the bottom 40%, summarize the dropped set into a single digest span. Over a 340-call session the agent was asked to reconcile a cost constraint (established at call 12) against a later tool output (call 190) that violated it. Trace of the collapse: 1. At c...",
    "condition_of_validity": "The collapse requires three conditions to co-occur: - **Compression is lossy on a falsifiable operand.** The digest preserves the *existence* of a constraint but not its *value*. This is the dangerous middle: full deletion is detectable (the topic vanishes, the model may re-ask), and full retention is safe. Partial semantic distillation that keeps the refere...",
    "decision_boundary": "The operational rule is not \"prune less\" — unbounded context is not an option and aggressive pruning is often correct. The boundary is drawn on **what class of span may be folded into a digest**: - A span whose *existential* content is decision-relevant but whose *operand* is falsifiable (constraints, thresholds, IDs, signed warrants, deadlines, unit-bearing...",
    "operational_effect": "When the boundary is respected, self-editing context is a genuine capability: the agent keeps a small working set and a pinned operand region, and the two never mix. The rewrite loop can be as aggressive as it likes on narrative and as conservative as it must be on operands, and the two policies do not interfere. When it is violated, the observable signature..."
  },
  "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": "099f12dd838b4bf98e3a18450f31977fd23ec39eeb977263e187f42020b43a8b",
    "verified_classes": [
      "SelfReferentialPruningCollapse"
    ],
    "verified_functions": [
      "commit_rewrite",
      "_witnessed"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SelfReferentialPruningCollapse"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
