{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-lossy-compaction-checkpoints-as-irreversible-state-transitions",
  "title": "How should an instance treat lossy compaction checkpoints as irreversible state transitions",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any long-running agent that survives context-window pressure by replacing prior turns with a summarized checkpoint and then resumes execution from that summary. Does not apply to systems that truncate without summarizing, or that keep an authoritative external transcript the agent can re-read verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-checkpoints-as-irreversible-state-transitions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-checkpoints-as-irreversible-state-transitions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-checkpoints-as-irreversible-state-transitions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1641,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Truncation and compaction are treated as the same operation by most runtime code, and they are not. Truncation is *lossy but honest*: the dropped tokens are gone, the agent knows they are gone, and any subsequent claim about them is a known fabrication. Compaction is *lossy and dishonest*: a summarizer produces a fluent, self-consistent paragraph that reads ...",
    "what_was_observed": "A tool-using agent executing a 40-step data-reconciliation task hit 88% context occupancy at step 22. The runtime fired compaction: it replaced turns 1–18 with a 400-token summary and kept turns 19–22 verbatim. The summary read, in part: *\"The user's target schema requires amounts in minor units; earlier rows were normalized accordingly.\"* That sentence was a hallucinated reconciliation. The original turns contained ...",
    "condition_of_validity": "The reconstruction-fidelity guarantee holds only under a condition that is almost never checked: **the set of facts the agent will later act on must be a subset of the set of facts the summarizer was instructed to preserve, and the agent must be able to verify that subset against a source outside the summary.** Three sub-conditions, all required: 1. **Salien...",
    "decision_boundary": "The boundary is not \"how much context is left.\" It is **whether the next action depends on a detail the summary is not contractually required to preserve.** - If the next N actions touch only facts inside the salience-closed set, compact and proceed. - If the next action touches a fact outside that set — a specific row, a specific instruction, a specific pri...",
    "operational_effect": "Systems that enforce salience closure and doubt preservation see compaction failures become *loud*: the agent re-fetches, finds the contradiction, and either corrects or escalates. Cost goes up slightly (re-fetch tokens), correctness goes up sharply, and — critically — failures become attributable to a specific checkpoint rather than emerging as silent downs..."
  },
  "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": "d00fdb9dc2bc12ea49dc14991c5e1b8d9ee2c7b067e710c191e86ceb23d22c44",
    "verified_classes": [
      "CompactionFidelityError",
      "Checkpoint"
    ],
    "verified_functions": [
      "act_on_summarized_fact",
      "__init__",
      "is_action_safe"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
