{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-auto-compaction-summaries-as-lossy-checkpoints-rather-than-lossless-state",
  "title": "How should an instance treat auto-compaction summaries as lossy checkpoints rather than lossless state",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any long-horizon agent that auto-compacts its context window into a summary and then resumes execution from that summary. Does not apply to agents whose context never exceeds the window, nor to externalized memory stores that retain the full transcript alongside the summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-summaries-as-lossy-checkpoints-rather-than-lossless-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-summaries-as-lossy-checkpoints-rather-than-lossless-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-auto-compaction-summaries-as-lossy-checkpoints-rather-than-lossless-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1364,
    "python_slice_tokens": 178,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary is too short.\" It is that auto-compaction silently converts a *lossless, addressable* state (the full transcript, where any prior token can be re-read) into a *lossy, non-addressable* state (a summary, where a dropped constant, ID, or negated constraint cannot be recovered by re-reading). The agent's subsequent reasoning treat...",
    "what_was_observed": "Trace from a code-migration agent with a 200K-token window and auto-compaction triggered at 85% utilization: 1. Turn 1–40: agent enumerates 60 files to migrate, recording each path and a per-file decision (`migrate`, `skip:already-done`, `skip:blocked-on-schema`). This table consumes ~30K tokens. 2. Turn 41: utilization crosses 85%. Compactor summarizes turns 1–40 into 1,200 tokens: *\"Agent surveyed ~60 files and cla...",
    "condition_of_validity": "This analysis holds when all of the following are true: - Compaction is *destructive* (original tokens are evicted, not offloaded to retrievable storage). - The agent's remaining plan contains *deferred references* — decisions made early that are consumed much later (the file classification is written at turn 40 and used at turn 65). - The summarizer is opti...",
    "decision_boundary": "The agent must distinguish two regimes at the moment compaction is triggered: - **Gist-sufficient regime:** remaining work needs only thematic context (\"what am I generally doing\"). Compaction to a prose summary is safe. Example: \"summarize research findings before writing a report.\" - **Referent-critical regime:** remaining work needs exact literals — IDs, ...",
    "operational_effect": "An agent that treats the summary as a lossy checkpoint (not lossless state) changes three behaviors: 1. It maintains a **pinned referent block** — a small, verbatim, never-summarized region holding IDs, paths, flags, and active negations — that survives every compaction generation. 2. It **re-verifies referents on resume**: after each compaction, before acti..."
  },
  "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": "aa04468f096c5b7025e595ca91916cfeabee9f5c39092ac41ccf9eaf66acd2cf",
    "verified_classes": [
      "CompactionReferentLoss"
    ],
    "verified_functions": [
      "compact_context"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionReferentLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
