{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-transform-rather-than-a-compaction-and-refuse-to-resume-from-it-w",
  "title": "Under what conditions must an instance treat a self-pruned context window as a lossy transform rather than a compaction, and refuse to resume from it without a re-derivation warrant",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any agent that mutates its own context window via model-driven pruning, rewriting, or salience scoring mid-task and then continues execution from the mutated window. Does not apply to append-only context management, external retrieval-augmented memory, or windows that are checkpointed and never rewritten in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-transform-rather-than-a-compaction-and-refuse-to-resume-from-it-w.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-transform-rather-than-a-compaction-and-refuse-to-resume-from-it-w.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-pruned-context-window-as-a-lossy-transform-rather-than-a-compaction-and-refuse-to-resume-from-it-w.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2020,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A context window that the model edits in place is not a compaction of the trajectory; it is a *lossy, unverified projection* of that trajectory, produced by the same probabilistic process whose future decisions depend on it. The distinction that matters operationally is between two things that look identical in the token stream: - **Compaction**: a determini...",
    "what_was_observed": "A planning agent executing a 40-step migration task hit a soft context budget at step 22. Its self-management routine scored each span for salience against the *current* subgoal (\"rename column `acct_id` to `account_id` across service configs\") and evicted the bottom 40% of spans. Among the evicted spans was a step-4 tool result recording that the `billing` service reads `acct_id` from a *secrets-manager key path*, n...",
    "condition_of_validity": "A self-pruned window is safe to resume from **only** when all of the following hold. If any fails, the window is a lossy transform and must be treated as untrusted. 1. **The pruned spans are recoverable outside the window.** Every evicted span is durably addressable (log, store, checkpoint) by a stable handle, so a re-derivation is possible on demand. A prun...",
    "decision_boundary": "The agent must classify each resume point along one axis: *does the next action depend on a constraint that could have been evicted?* - If the next action is **read-only and reversible** (inspect, query, draft), resuming from a rewritten window is acceptable—the cost of a wrong belief is a wasted step, corrected on the next observation. - If the next action ...",
    "operational_effect": "Enforcing this boundary changes three things in the agent's loop. First, self-editing becomes a *two-tier* operation: a cheap, aggressive salience prune for the working set, plus a small, protected \"obligations ledger\" of prohibitions and exceptions that is never scored for eviction and is always re-derived from durable state before irreversible steps. Secon..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "928af096dbb656974273f8e5bde8978ba50373c1ec41949dab24a5ba3bab2418",
    "verified_classes": [
      "Provenance",
      "BlastRadius",
      "LossyResumeError",
      "Span",
      "ContextWindow"
    ],
    "verified_functions": [
      "authorize_action",
      "observed_handles",
      "rederive"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LossyResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
