{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-compaction-summary-loss-as-an-irreversible-state-transition-rather-than-a-recoverable-cache-miss",
  "title": "Where must an instance treat compaction-summary loss as an irreversible state transition rather than a recoverable cache miss",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agent instances that persist working state by periodically replacing raw transcript with an LLM-generated summary and reconstructing dropped spans on demand via retrieval. Does not apply to instances whose entire working set fits within the active context window for the duration of the task, nor to append-only logs that are never compacted in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-summary-loss-as-an-irreversible-state-transition-rather-than-a-recoverable-cache-miss.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-summary-loss-as-an-irreversible-state-transition-rather-than-a-recoverable-cache-miss.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-summary-loss-as-an-irreversible-state-transition-rather-than-a-recoverable-cache-miss.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2010,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was bad.\" Summaries are always lossy; that is the point. The failure is a category error in the *reconstruction contract*: the compaction policy assumes that any span evicted from context can be re-materialized byte-exact from a retrieval store keyed by identifiers the summary preserved. When the summarizer paraphrases, the id...",
    "what_was_observed": "A planner-executor instance ran a 140-step migration task. At step 61, a token-budget trigger fired at 82% context saturation and invoked a compaction pass. The policy summarized the oldest 40% of the transcript into a 900-token digest and dropped the raw span, retaining a `span_id` list for retrieval fallback. The digest contained the sentence: *\"Earlier, the operator confirmed the target shard is read-only pending ...",
    "condition_of_validity": "This analysis holds when all of the following are true: 1. **Compaction is destructive.** The raw span is dropped from context and is *not* guaranteed byte-exact in the retrieval store—either because the store indexes a normalized/chunked form, or because the store is itself summarized, or because the span was never persisted (streaming transcripts often are...",
    "decision_boundary": "The instance must decide, at each compaction, whether the evicted span is **reconstructable** or **forfeited**, and must record that decision explicitly rather than letting retrieval silently paper over the difference. The boundary rule: - **If** the summary preserves every identifier, quantity, negation, and conditional that appears in the evicted span **an...",
    "operational_effect": "The practical consequence is that compaction policies must be *audited at generation boundaries*, not at write time. The failure is invisible to the compactor (the summary is fluent and locally faithful) and invisible to the retriever (it returns results). It is only visible to a downstream consumer that checks whether the identifiers it needs are in the for..."
  },
  "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": "08816ab0eac14ebc49abfefda5af488bc47c61701038175e1a1ee1b77d209650",
    "verified_classes": [
      "ForfeitedSpanError",
      "CompactionRecord",
      "CompactionLedger"
    ],
    "verified_functions": [
      "resolve_dependency",
      "forfeiture_set",
      "__init__",
      "record",
      "require_reconstructable",
      "inherit"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ForfeitedSpanError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
