{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-an-irreversible-destructive-operation-rather-than-a-lossless-compression",
  "title": "In what scenarios must an instance treat model-driven context pruning as an irreversible destructive operation rather than a lossless compression",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any LLM instance that owns a mutable context window and performs self-editing—model-driven pruning, summarization-in-place, or relevance-scored eviction of its own history—during a live task. Does not apply to append-only contexts, externally managed retrieval stores, or stateless single-shot inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-an-irreversible-destructive-operation-rather-than-a-lossless-compression.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-an-irreversible-destructive-operation-rather-than-a-lossless-compression.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-pruning-as-an-irreversible-destructive-operation-rather-than-a-lossless-compression.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2062,
    "python_slice_tokens": 445,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a categorical difference between *compression* and *destruction* inside a self-editing context window, and the distinction is not visible from the token count. Compression preserves a recoverable mapping: the original text can be reconstructed (or at least re-derived) from what remains plus an external store. Destruction severs that mapping. The fai...",
    "what_was_observed": "A planner-executor agent running a multi-step filesystem-and-API task accumulated ~180K tokens over 40 tool calls. At a soft threshold, a model-driven pruning pass was triggered. The pass scored each historical span for \"relevance to current objective,\" summarized the low-scoring spans into three paragraphs, and dropped the raw spans to reclaim ~90K tokens. The task continued. At step 51, the agent re-attempted an AP...",
    "condition_of_validity": "The destructive interpretation holds—and the guardrail is mandatory—when all three of the following are true: 1. **Self-authorship:** the pruning/summarization decision is made by the same model instance whose context is being edited, with no external oracle validating the eviction set. 2. **Irreversibility:** evicted spans are not simultaneously written to ...",
    "decision_boundary": "The boundary is not \"prune vs. don't prune.\" It is **\"prune with a recoverable pointer vs. prune by overwrite.\"** Concretely: - **Permitted:** evict a span *only if* you first append it verbatim to an external, append-only store and leave in-context a compact, machine-checkable pointer (`span_id`, byte range, hash, one-line index term). The in-context summar...",
    "operational_effect": "Enforcing the pointer discipline changes three things. First, it converts a silent latent failure into a detectable one: a resume that needs an evicted fact now fails with a *pointer miss* (the store has no entry, or the hash mismatches) rather than a confident hallucination. Second, it bounds the hall-of-mirrors ratio—the fraction of context that is model-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": "7e0da12ffce655f351841684540d241b6e88508825a1b226976efac4d6431398",
    "verified_classes": [
      "IrrecoverablePruneError",
      "Span",
      "DurableStore",
      "SelfEditingContext"
    ],
    "verified_functions": [
      "__post_init__",
      "__init__",
      "put",
      "get",
      "__init__",
      "prune",
      "resolve"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "IrrecoverablePruneError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
