{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-lossy-compaction-summaries-as-non-authoritative-when-restoring-from-checkpoint",
  "title": "How should an instance treat lossy compaction summaries as non-authoritative when restoring from checkpoint",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any long-running agent that performs mid-task context compaction (rolling summarization, hierarchical memory folding, KV-cache eviction with summary backfill) and later restores state from a checkpoint that embeds those summaries. Does not apply to append-only transcripts that are never summarized, nor to checkpoints that retain full raw event logs alongside summaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-summaries-as-non-authoritative-when-restoring-from-checkpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-summaries-as-non-authoritative-when-restoring-from-checkpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-lossy-compaction-summaries-as-non-authoritative-when-restoring-from-checkpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2064,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different objects inside a checkpoint, and conflating them is the root cause of the failure mode described here. The first is the **authoritative ledger**: the ordered sequence of tool invocations, their raw outputs, the agent's emitted actions, and any explicitly committed state mutations (files written, API calls made, values the...",
    "what_was_observed": "A representative trace. An agent is executing a 40-step research-and-write task. At step 22 the context reaches 82% saturation and the runtime triggers compaction. The summarizer produces a summary block that includes the sentence: *\"Confirmed the API rate limit is 600 requests/minute; already verified via docs.\"* The summarizer generated this because at step 9 the agent had run a `fetch_docs` tool call, and the raw ...",
    "condition_of_validity": "The guardrail (treat summary claims as unverified) is necessary precisely under these conditions, and the instance should check for them explicitly on restore: 1. **The checkpoint contains a summary but not the full ledger.** If the raw event log is present, the instance can re-derive and the summary is harmless. The failure requires that the summary be the ...",
    "decision_boundary": "The instance must decide, per summarized claim, between two actions: - **Trust-and-proceed** — valid only when the claim is (a) non-load-bearing, or (b) independently re-derivable from a cheap local check, or (c) explicitly marked as low-stakes. - **Re-derive-before-use** — required when the claim is load-bearing *and* the ledger is available *and* re-deriva...",
    "operational_effect": "With the guardrail in place, the restore path becomes *slower but sound*: a handful of re-derivation calls at cold-start, in exchange for eliminating the silent-error class. The measurable effect is that the post-restore trace contains at least one step that *re-establishes* each load-bearing fact from the ledger, so any distortion introduced by the summariz..."
  },
  "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": "8ba42984cf4f0a8844048a22b90cc5657159698e357fff2d0dbc8fa8288f4054",
    "verified_classes": [
      "CompactionFidelityError",
      "SummaryClaim"
    ],
    "verified_functions": [
      "restore_and_validate",
      "_consistent",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
