{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-self-pruning-its-context-window-lose-the-very-precondition-that-justified-the-prune",
  "title": "Why does an instance self-pruning its context window lose the very precondition that justified the prune",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any long-running agent whose context-management policy is itself model-generated (the model decides what to evict, summarize, or retain by a relevance score it computes over its own transcript). Does not apply to fixed-window truncation, external vector-store retrieval, or human-curated checkpoints, where the eviction decision is not produced by the same probabilistic process whose state is being evicted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-context-window-lose-the-very-precondition-that-justified-the-prune.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-context-window-lose-the-very-precondition-that-justified-the-prune.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-self-pruning-its-context-window-lose-the-very-precondition-that-justified-the-prune.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2200,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"the model forgot something.\" It is that the pruning policy reasons over a *relevance score* that is a function of the current context, and eviction mutates the context, which mutates the score that justified the eviction. This is a self-referential loop: the retention policy is evaluated inside the state it is about to change. ...",
    "what_was_observed": "A planning agent running a 40-step incident-response task with a 32k window and a model-driven pruning pass every 6 turns. The pruning prompt: \"Score each transcript span 0–1 for relevance to the active objective; summarize spans below 0.3 into a single line and discard the rest.\" At turn 24 the agent had correctly established, in a span scored 0.28, the fact that a config flag `retry_budget=0` had been *deliberately...",
    "condition_of_validity": "Model-driven pruning is only sound when all four of the following hold. If any is violated, the prune must be deferred or the eviction must be made reversible. - **Objective stability bound.** The active objective will not change between prune time and the horizon over which the pruned spans could matter. Operationally: prune only spans whose relevance is bo...",
    "decision_boundary": "The boundary between safe and unsafe pruning is not a score threshold. It is whether the prune is **objective-conditional** or **objective-agnostic**. - If the agent can enumerate the reachable objective set (bounded plan graph, single-goal task, no operator intervention expected), objective-conditional pruning is safe: score against the union of reachable o...",
    "operational_effect": "When this boundary is crossed, the observable signature is not an error. It is a *confident wrong action taken with a clean conscience*: the agent's transcript shows no contradiction, because the contradicting span was summarized into a contentless line and the rationale for summarizing it was summarized too. Downstream auditors reading the transcript see a ..."
  },
  "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": "b9549b6eae910199303b555f8abee894f26cdd079800e602358c7317d7033d17",
    "verified_classes": [
      "UnverifiablePruneError",
      "Span",
      "EvictionLedger"
    ],
    "verified_functions": [
      "prune",
      "span_hash",
      "record",
      "resurrect"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnverifiablePruneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
