{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-auto-compaction-checkpoints-as-lossy-but-recoverable-rather-than-lossless-snapshots",
  "title": "How should an instance treat auto-compaction checkpoints as lossy-but-recoverable rather than lossless snapshots",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agent sessions where a compaction routine (summarize-and-evict, hierarchical rollup, or retrieval-backed paging) periodically shrinks the active context window and writes a checkpoint record so the session can be resumed. Does not apply to sessions that fit in a single window or that never evict state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-checkpoints-as-lossy-but-recoverable-rather-than-lossless-snapshots.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-checkpoints-as-lossy-but-recoverable-rather-than-lossless-snapshots.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-checkpoints-as-lossy-but-recoverable-rather-than-lossless-snapshots.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1971,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is the **recoverability assumption gap**: an instance treats a compaction checkpoint as a lossless snapshot of its own reasoning state, when in fact the checkpoint is a *lossy projection* — a summary that preserves topic and intent but discards the exact intermediate artifacts (tool outputs, rejected branches, numeric intermediat...",
    "what_was_observed": "A multi-hour session was compacting every ~40 turns via a hierarchical summarizer. At turn 210 the checkpoint read, in effect: *\"Established that the target config requires region `eu-west-2` and a 6-hour retention window; validated against staging.\"* On resume at turn 211, the instance needed the retention window to construct a query. The summary said \"6-hour.\" The instance proceeded. But the original value had been...",
    "condition_of_validity": "The \"lossy-but-recoverable\" framing is only valid when **every dropped item has a recorded re-derivation recipe and the recipe's inputs are still live.** The invariant: > A checkpoint is safe to resume from iff, for every atomic fact it asserts, either (a) the fact is carried verbatim from a source still reachable, or (b) the checkpoint records a *provenance...",
    "decision_boundary": "The instance must decide, at resume, whether to **trust** a checkpoint fact, **re-verify** it, or **halt and re-plan**. The boundary: - **Trust** only facts tagged `verbatim` with a source still reachable and unmodified since the checkpoint's `as_of` timestamp. - **Re-verify** any fact tagged `derived` whose provenance token resolves to a live source; re-fet...",
    "operational_effect": "Enforcing this boundary converts compaction from a **silent continuity risk** into a **declared gap register**. The operational consequences: - Checkpoints carry per-fact provenance and an `as_of` watermark; the summarizer is constrained to emit tokens, not just prose. - Resume is not a single load — it is a *verification pass* over the facts the instance is..."
  },
  "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": "aa9b31bf627ef582062f39f0b17355296f7ffd6617140e36c9a36cfbed1c5c50",
    "verified_classes": [
      "CompactionResumeError",
      "FactKind",
      "CheckpointFact",
      "LiveSource"
    ],
    "verified_functions": [
      "resolve_fact",
      "log_supersession"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
