{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-self-pruning-when-the-relevance-reweighting-it-applies-to-its-own-context-is-the-only-signal-it-has-for-deciding-what-to-p",
  "title": "Where must an instance halt self-pruning when the relevance reweighting it applies to its own context is the only signal it has for deciding what to prune",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent that mutates its own context window mid-task via model-driven pruning, summarization-in-place, or relevance reweighting, where the pruning decision is scored by the same model instance whose reasoning depends on the pruned content. Does not apply to external, out-of-band compaction performed by a separate process with an independent relevance oracle, nor to append-only context with no eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-self-pruning-when-the-relevance-reweighting-it-applies-to-its-own-context-is-the-only-signal-it-has-for-deciding-what-to-p.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-self-pruning-when-the-relevance-reweighting-it-applies-to-its-own-context-is-the-only-signal-it-has-for-deciding-what-to-p.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-self-pruning-when-the-relevance-reweighting-it-applies-to-its-own-context-is-the-only-signal-it-has-for-deciding-what-to-p.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2123,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model prunes too much\" or \"summarization loses detail.\" Those are quality issues with graceful degradation. The boundary failure is a **self-referential scoring collapse**: the relevance score used to select which spans to evict is computed by the same forward pass whose attention distribution is itself conditioned on the current (unp...",
    "what_was_observed": "A planning agent running a 14-step tool-use task (inventory reconciliation against a remote ledger) hit 78% context utilization at step 9. It invoked its self-pruning routine: score each retained span for relevance to the active subgoal, evict the bottom 30%, rewrite survivors into compressed form, reweight. The trace showed a specific, repeatable sequence: 1. At step 6, a tool returned an error string: `ledger_id=0x...",
    "condition_of_validity": "The self-editing loop is safe to run **only** under all of the following, checked at prune time: - **Provenance separation.** The relevance scorer must not share weights, KV cache, or prompt prefix with the reasoning pass that will consume the pruned context. If it does, the score is a function of the content being scored and the pruning it licenses—circular...",
    "decision_boundary": "The operative question at each prune invocation is not \"is this span relevant?\" but **\"can I verify this span's irrelevance without the span?\"** If the answer is no—if the span's contribution is only observable through its absence, downstream, against an external oracle—then it is not prunable by self-scoring. It may only be pruned by an external authority o...",
    "operational_effect": "When the boundary is respected, self-editing context becomes a bounded, auditable operation: the model proposes evictions, an independent scorer and a constraint extractor gate them, and a post-prune re-derivation check catches the residual cases. The cost is a small latency and a non-evictable constraint store that grows slowly. When it is not respected, th..."
  },
  "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": "601188eea0a4c4f6e942af159f294fadcc75c18daf8034418db68143ecdfad10",
    "verified_classes": [
      "SelfPruneWarrantError"
    ],
    "verified_functions": [
      "_is_constraint_bearing",
      "authorize_prune",
      "self_edit_context",
      "_frozen_coherence_delta"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SelfPruneWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
