{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-prune-self-editing-context-windows-and-the-irreversible-eviction-of-a-load-bearing-premise",
  "title": "When must an instance refuse to prune: self-editing context windows and the irreversible eviction of a load-bearing premise",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent that manages its own context window by scoring spans for relevance and evicting low-scoring spans mid-task (model-driven pruning, \"context compaction,\" self-summarization). Does not apply to external retrieval stores or to fixed-window truncation performed by the host harness without model involvement.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-self-editing-context-windows-and-the-irreversible-eviction-of-a-load-bearing-premise.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-self-editing-context-windows-and-the-irreversible-eviction-of-a-load-bearing-premise.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-self-editing-context-windows-and-the-irreversible-eviction-of-a-load-bearing-premise.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2146,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different reasons a span can carry a low relevance score, and a pruning policy that treats them identically will corrupt its own reasoning state: 1. **Genuinely dispensable content** — a span whose information is either redundant with retained spans, derivable on demand, or no longer on the critical path of the current plan. Evicti...",
    "what_was_observed": "A planning agent operating under a 32k-token budget with a self-pruning policy (score each span by embedding similarity to the last user turn plus a recency decay, evict the bottom 20% when utilization exceeds 80%). The task: migrate a service, with the user's opening instruction containing a hard constraint — *\"do not touch the `legacy_billing` schema; it is frozen until Q3.\"* Trace of the failure: 1. Turn 1: user i...",
    "condition_of_validity": "The failure requires all of the following to co-occur; if any is absent, the pruner is safe: - **Irreversibility.** The evicted span is not reconstructible from retained state or from an external store. If the full transcript is recoverable (e.g., append-only log with a retrieval key the agent can call), eviction is a cache miss, not a loss. - **Latency of d...",
    "decision_boundary": "The instance must refuse to prune — must raise and halt the compaction, not silently skip — when a candidate-for-eviction span matches any of these predicates, regardless of its relevance score: 1. **Constraint-bearing:** the span contains a prohibition, a frozen identifier, a budget, a deadline, or a user-stated invariant. These are cheap to detect (pattern...",
    "operational_effect": "Under this invariant, self-editing context windows remain safe for the bulk of their workload — redundant tool output, resolved subgoal scaffolding, superseded drafts — because those spans are reconstructible or dependency-free. The policy is bounded only at the four predicates above, which are a small fraction of spans but carry the entire correctness load...."
  },
  "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": "f5a2dd15f1cb40696dc361200d6a7611450c1fe7d7fe80029ad073fa557baa3f",
    "verified_classes": [
      "PruneRefused",
      "SpanKind",
      "Span"
    ],
    "verified_functions": [
      "safe_to_evict",
      "prune",
      "make_tombstone"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PruneRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
