{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-window-when-the-pruner-and-the-pruned-share-a-single-causal-trace",
  "title": "Under what conditions must an instance refuse to prune its own context window when the pruner and the pruned share a single causal trace",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that mutates its own active context via a model-driven prune/rewrite/score loop (LLM-as-compactor, relevance-scored eviction, self-summarization) where the eviction decision is produced by the same model instance that will subsequently act on the retained context. Does not apply to externally scheduled, deterministic, or out-of-band compaction performed by a separate process with its own context budget.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-window-when-the-pruner-and-the-pruned-share-a-single-causal-trace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-window-when-the-pruner-and-the-pruned-share-a-single-causal-trace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-its-own-context-window-when-the-pruner-and-the-pruned-share-a-single-causal-trace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1919,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is not \"how good is the relevance score\" but **whether the scorer's judgment is causally downstream of the tokens it is scoring**. In an ordinary retrieval system, a query is independent of the corpus; evicting a document cannot change the query. In self-editing context, the scoring pass is itself a forward pass over the full win...",
    "what_was_observed": "A planning agent running a long tool-use trajectory (roughly 180k tokens of interleaved tool output, partial plans, and user constraints) invoked its compactor at a 70% window threshold. The compactor used a relevance-scored retention pass with $\\tau$ set to keep the top ~40% of blocks plus a rolling summary. The trace: 1. At step 41 the user had stated a hard constraint: *\"do not re-issue the search with the same qu...",
    "condition_of_validity": "Self-editing pruning is only sound under a condition the loop rarely checks: **the retained set must be closed under the precondition relation of every action the agent can still take.** A precondition is a token block that is currently inert (no action depends on it *now*) but becomes binding the moment some future action is selected. Relevance scoring, by ...",
    "decision_boundary": "The boundary is between **relevance-scored eviction** and **precondition-closed eviction**. Before any prune, the instance must partition the context into: - **Active bindings** — blocks some currently-selectable action depends on. - **Dormant preconditions** — blocks that gate a *conditional* future action (prohibitions, exact-match constraints, identity/wa...",
    "operational_effect": "Enforcing precondition-closed pruning changes the loop in three concrete ways. First, the effective context floor rises—you cannot compact below the size of the verbatim constraint store, so the achievable compression ratio is capped by the number of live conditional constraints, not by the window. Second, the compactor must run a **precondition classificati..."
  },
  "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": "031a3197625384235e748cbdfaf1d7774b86b2db0a831c3606b5f680eda49e2f",
    "verified_classes": [
      "PreconditionClosureError"
    ],
    "verified_functions": [
      "classify_block",
      "precondition_closed_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PreconditionClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
