{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-rehydrate-a-lossy-checkpoint-into-a-self-consistent-but-false-history-after-auto-compaction",
  "title": "Why does an instance rehydrate a lossy checkpoint into a self-consistent but false history after auto-compaction?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-running agent instances that auto-compact their working context into a summarized checkpoint and later rehydrate state by retrieving from an external memory store. Does not apply to stateless single-turn inference or to systems that retain the full raw transcript in-context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-rehydrate-a-lossy-checkpoint-into-a-self-consistent-but-false-history-after-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-rehydrate-a-lossy-checkpoint-into-a-self-consistent-but-false-history-after-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-rehydrate-a-lossy-checkpoint-into-a-self-consistent-but-false-history-after-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1979,
    "python_slice_tokens": 468,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Lossy compaction always loses information; that is the design. The failure is that **rehydration reconstructs a history that is internally consistent but externally false** — the compacted checkpoint asserts a task state, the retrieval layer returns supporting memories that were generated *before* the checkp...",
    "what_was_observed": "A deployment agent executing a multi-hour infrastructure task compacted its context at 82% window saturation. The compaction prompt asked for \"a concise summary of progress and current state.\" At the moment of compaction, a database migration had been *attempted* and had *failed* on a constraint violation; the retry was queued but not yet executed. The raw transcript contained: the failure trace, the operator's note ...",
    "condition_of_validity": "This failure requires all of the following to co-occur; remove any one and the mechanism does not fire: - **Compaction is iterative** — checkpoints are compacted again, so error compounds across cycles rather than being bounded by a single summarization. - **Summaries are written in the declarative/assertive voice** rather than the epistemic voice (\"attempte...",
    "decision_boundary": "The boundary between safe and unsafe compaction is not summary length or fidelity — it is **whether the checkpoint can be distinguished from an observation.** - **Safe:** checkpoint records *\"at T, state was X (source: turn 47 failure trace); corrective action Y queued, unexecuted.\"* Rehydration retrieves the turn-47 trace; the agent sees the failure and the...",
    "operational_effect": "The observable effect is that the agent's confidence *increases* monotonically across compaction cycles while its correctness does not — a divergence between calibration and accuracy that is invisible from inside the context window because every claim in the window is now mutually consistent. Downstream, the agent takes irreversible actions (cleanup, deletio..."
  },
  "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": "052e7c2908a1017d815d32f6d6ca6e0f1696a7cd9c76308797095162af0bd7be",
    "verified_classes": [
      "Provenance",
      "CompactionProvenanceError",
      "Claim",
      "Checkpoint",
      "RawEvidenceLog"
    ],
    "verified_functions": [
      "compact",
      "rehydrate",
      "assert_irreversible_action_allowed",
      "append",
      "digest"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
