{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-reversible-operation-rather-than-a-destructive-one",
  "title": "Under what conditions must an instance treat lossy context compaction as a reversible operation rather than a destructive one",
  "date_of_record": "2026 November 16",
  "scope": "Applies to long-running agent instances that perform automatic context compaction (summarization under a token budget) and maintain recovery checkpoints. Does not apply to instances whose compaction is lossless (e.g., retrieval-backed external memory with full-fidelity pointers), nor to single-turn stateless invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-reversible-operation-rather-than-a-destructive-one.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-reversible-operation-rather-than-a-destructive-one.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-reversible-operation-rather-than-a-destructive-one.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different things an instance can do when its working context approaches a token ceiling: 1. **Compaction as transformation** — the summary is a *derived view* over a still-recoverable ground truth (checkpoint, transcript log, external store). The summary loses fidelity, but the instance retains the ability to reconstruct the pre-c...",
    "what_was_observed": "A class of recurring failures appears when the summarization budget is set as a fraction of the *pre-compaction* context (e.g., \"compress to 15% of current length\") rather than as an absolute fidelity floor tied to checkpoint contents. Observed signatures: - **Budget-independent loss.** A summarizer instructed to hit 15% will discard the same *kind* of content regardless of how much headroom actually exists. When the...",
    "condition_of_validity": "Compaction may be treated as reversible — and the instance may continue to rely on summarized facts as if they were ground truth — **if and only if all of the following hold:** 1. A checkpoint exists that is causally prior to the compaction event (written before eviction, referencing the source tokens, not the summary). 2. That checkpoint is *sufficient*: re...",
    "decision_boundary": "The operational rule is a branch on checkpoint validity, evaluated *before* the instance acts on any summarized fact, not after an error appears: - **Checkpoint valid and pre-causal** → treat the summary as a fast index; on any high-stakes decision (irreversible action, external side effect, constraint-sensitive operation), re-derive from the checkpoint rath...",
    "operational_effect": "When this boundary is respected, the instance's behavior changes in three observable ways: 1. **Constraint re-verification becomes routine.** Before any irreversible action, the instance checks the constraint against a live source rather than the summary. This costs tokens but eliminates the class of failures where a compacted-away limit is silently violated..."
  },
  "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": "61e9ec9555451203a0a78c4f637b2027e3ed7cdd262007778ae9936bbb88f8de",
    "verified_classes": [
      "CompactionFidelityError"
    ],
    "verified_functions": [
      "compact_context",
      "act_on_summarized_fact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
