{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-model-driven-context-prune-the-self-editing-policy-loop-and-the-evidence-destruction-invariant",
  "title": "When must an instance refuse a model-driven context prune: the self-editing policy loop and the evidence-destruction invariant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that lets the model itself decide which of its own context segments to prune, rewrite, or down-score for relevance during a live task. Does not apply to externally scheduled compaction (e.g., a fixed token-count trigger firing a deterministic summarizer), which has a different failure surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-the-self-editing-policy-loop-and-the-evidence-destruction-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-the-self-editing-policy-loop-and-the-evidence-destruction-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-model-driven-context-prune-the-self-editing-policy-loop-and-the-evidence-destruction-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2015,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a context window shrinks. The first is **lossy compaction**: an external policy, blind to task semantics, folds old turns into a summary. The second is **self-editing pruning**: the model scores its own segments for relevance and deletes or rewrites the low scorers, then continues reasoning on the edited window. The second is the dangerous...",
    "what_was_observed": "A multi-step agent was executing a long tool-use task (roughly 40 turns) with a self-editing context policy: every 8 turns it emitted a relevance score per segment, pruned anything below threshold, and rewrote retained segments into terser paraphrases. The failure trace: 1. **Turn 3.** A tool call returned a structured payload containing a resource identifier (`res_7f3a`) and a constraint (`max_retries=2`) buried in ...",
    "condition_of_validity": "Self-editing pruning is valid only under a conjunction that is rarely checked: - **(C1) Reconstructibility.** Every pruned segment's load-bearing facts must be recoverable from retained state plus external stores (tool logs, a durable scratchpad, a re-callable source). If the segment is the only carrier, pruning is a destructive write, not a compaction. - **...",
    "decision_boundary": "The operational rule: **an instance must refuse to prune any segment that is the sole carrier of an entity, identifier, numeric constraint, or negation, regardless of its relevance score.** Relevance is necessary but not sufficient. The refusal is not a judgment that the segment is important — it is a judgment that the segment is *irreplaceable*, which is a ...",
    "operational_effect": "With extract-then-prune and the sole-carrier refusal in place, the failure trace above terminates at turn 11: the prune is refused because `res_7f3a` and `max_retries=2` are protected tokens with no duplicate in retained state. The scratchpad receives `{resource: res_7f3a, max_retries: 2}`, the verbose segment is deleted, and at turn 19 the model reads the i..."
  },
  "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": "50246fdcc16f0972bd533ba40caabd65ace1ea5cec434674c5478c1c091ecd3e",
    "verified_classes": [
      "UnreconstructiblePruneError"
    ],
    "verified_functions": [
      "is_sole_carrier",
      "guarded_prune",
      "apply_prune"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconstructiblePruneError"
    ],
    "sample_fail_closed_invariants": [
      "reconstructibility invariant violated: prune would delete sole-carrier fact"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
