{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-prune-the-very-span-it-is-reasoning-inside",
  "title": "When must an instance refuse to prune the very span it is reasoning inside?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that mutates its own context window mid-task via model-driven summarization, rewriting, or relevance-scored eviction, where the mutation is executed by the same model instance that is currently consuming the context. Does not apply to externally managed memory tiers (vector stores, external scratchpads) whose eviction is decided by a separate process that never reads the evicted span as live reasoning state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-very-span-it-is-reasoning-inside.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-very-span-it-is-reasoning-inside.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-very-span-it-is-reasoning-inside.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2470,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different operations that both look like \"compressing the context\": *consolidation* (rewriting spans the model has already finished reasoning over, into a durable summary) and *in-situ rewriting* (rewriting spans that are still load-bearing for the current reasoning step). Consolidation is safe because the model can verify the summ...",
    "what_was_observed": "An agent running a long tool-augmented task (30+ turns, ~40k tokens of accumulated tool output) was configured with a self-pruning policy: at each turn, if the window exceeded a soft budget, the model was asked to emit a `PRUNE` block naming spans to summarize or drop, scored 0–1 for relevance to the current subgoal. The harness applied the block, then continued. The failure trace had a consistent shape: 1. At turn N...",
    "condition_of_validity": "The self-pruning policy is valid only under a condition the model cannot check from inside a single turn: **the set of spans scored for eviction must be disjoint from the set of spans required to compute the scores, and the post-edit window must be re-scored by a process that did not participate in the edit.** Concretely, a prune decision is sound when all t...",
    "decision_boundary": "The boundary is between **pruning spans the model has closed over** and **pruning spans the model is inside**. The model can detect which side it is on with a single check that does not require reading the span's content: > Is any span named in the `PRUNE` block referenced by the derivation currently in flight — i.e., does the current step's tool call, query...",
    "operational_effect": "Enforcing the disjointness and temporal-separation invariants changes the failure mode from oscillation to **monotone convergence with bounded latency**. Window size decreases across prune cycles because each eviction is decided by a state that has already closed over the span, so the span is not re-acquired. The cost is a one-turn lag between scoring and ev..."
  },
  "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": "aac8918c1e450792ca944b553ef41e189c467e583b76aeffccf2ff92a7d77b5c",
    "verified_classes": [
      "InFlightSpanEvictionError"
    ],
    "verified_functions": [
      "apply_self_prune"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "InFlightSpanEvictionError"
    ],
    "sample_fail_closed_invariants": [
      "post-edit window exceeds budget while net savings were non-positive; prune was invalid and must be rolled back from chec"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
