{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-model-driven-self-pruning-of-its-own-context-as-irreversible-loss-rather-than-compression-and-refuse-to-rewri",
  "title": "In what scenarios must an instance treat model-driven self-pruning of its own context as irreversible loss rather than compression, and refuse to rewrite until a durable external checkpoint exists",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that mutate their own working memory (summarize, rewrite, drop-by-relevance-score) inside a single episode. Does not apply to append-only context with external truncation, nor to stateless single-turn calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-self-pruning-of-its-own-context-as-irreversible-loss-rather-than-compression-and-refuse-to-rewri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-self-pruning-of-its-own-context-as-irreversible-loss-rather-than-compression-and-refuse-to-rewri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-self-pruning-of-its-own-context-as-irreversible-loss-rather-than-compression-and-refuse-to-rewri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Self-editing context is routinely modeled as *lossy compression*: you discard tokens, keep \"the gist,\" and assume the gist is recoverable because the original tokens were redundant. That model holds only when the pruned material is *re-derivable* from what remains or from an external store. The boundary failure is treating pruning as compression when the pru...",
    "what_was_observed": "An agent executing a 40-step data-reconciliation task used a \"relevance scoring + rewrite\" pass every 8 turns: it scored each retained message against the current subgoal, dropped low scorers, and rewrote the remainder into a condensed block. At turn 16, a tool call returned a precise constraint — `customer_id must be matched on the composite key (region, legacy_id), NOT on legacy_id alone` — because `legacy_id` coll...",
    "condition_of_validity": "The \"pruning = compression\" assumption is valid **only** when, for every pruned span `s`, at least one holds: - `s` is a restatement of another retained span (genuine redundancy), or - `s` is derivable by a deterministic function the agent can re-run (e.g., a pure computation over retained inputs), or - `s` has been written to a durable store keyed such that...",
    "decision_boundary": "The boundary is between **scored pruning** and **checkpointed pruning**. Operationally: - A rewrite pass may drop a span with no external persistence **only if** the span is provably re-derivable or re-queryable. The agent must be able to name the recovery path for each dropped span, not merely assert low relevance. - If any span lacks a named recovery path,...",
    "operational_effect": "Enforcing the recovery-path check before self-edit changes agent behavior in three measurable ways. First, it converts silent amnesia into an explicit, queryable tombstone — the agent can no longer stabilize into a confidently wrong state, because every pruned fact leaves a re-fetchable handle. Second, it bounds the *blast radius* of myopic scoring: a fact m..."
  },
  "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": "024ee5baf24298aed1efc864fb135d9513571a7cfb9b41150c8b64ca3357d864",
    "verified_classes": [
      "UnrecoverablePruningError",
      "Span"
    ],
    "verified_functions": [
      "span_hash",
      "safe_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnrecoverablePruningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
