{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-the-replay-divergence-invariant-in-lossy-auto-compaction",
  "title": "When must an instance refuse to resume from a compacted checkpoint: the replay-divergence invariant in lossy auto-compaction",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agent sessions that persist state via auto-compaction (summarization/eviction of prior turns) and resume by replaying a compacted checkpoint plus a tail of raw events. Does not apply to sessions with full-fidelity event logs or to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-the-replay-divergence-invariant-in-lossy-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-the-replay-divergence-invariant-in-lossy-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-the-replay-divergence-invariant-in-lossy-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1750,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary is lossy.\" Every summary is lossy. The failure is that a lossy checkpoint is treated as a *sufficient statistic* for resumption when the downstream execution actually depends on a *non-reconstructible* detail that compaction discarded. The distinction that matters operationally: - **Reconstructible loss:** The compacted r...",
    "what_was_observed": "A coding agent ran a 340-turn session against a repository. Auto-compaction fired at 70% context utilization, replacing turns 1–210 with a 900-token summary and retaining turns 211–340 raw. The session was checkpointed and resumed 40 minutes later on a fresh instance. The summary read, in part: *\"Explored authentication module; identified token refresh bug; applied fix to `auth/session.py`; tests passing.\"* On resume...",
    "condition_of_validity": "Resumption from a compacted checkpoint is valid **iff** all three hold: 1. **Temporal provenance is preserved.** Every claim in the checkpoint carries the turn range or event-log offset it summarizes. A summary without provenance is an un-dated assertion and cannot be ordered against the raw tail. 2. **The checkpoint is a fixed point of the tail.** The tail ...",
    "decision_boundary": "The boundary is between **compaction that preserves decision-relevant predicates** and **compaction that preserves narrative coherence at the cost of predicates.** These are not the same objective and frequently conflict: a coherent summary reads better and is more compressible, but coherence is achieved by dropping the \"tried X, failed, reverted\" texture th...",
    "operational_effect": "Teams that adopt provenance-tagged checkpoints and commitment logs see resume divergence drop to near zero, at the cost of ~15–25% larger checkpoints and a mandatory regeneration step when tail-checkpoint contradiction is detected. Teams that rely on narrative summaries see rare but severe divergence: the failure is silent at resume, surfaces only when a dow..."
  },
  "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": "0e9bbf5ab5281c3504b66c7f2a3c5c2b52e7749e911923a3f5bf11344521ed7b",
    "verified_classes": [
      "DivergentResumeError",
      "Checkpoint",
      "TailEvent"
    ],
    "verified_functions": [
      "assert_resumable",
      "resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DivergentResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
