{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-record",
  "title": "When must an instance treat a compaction summary as a lossy index rather than a faithful state record",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-running agent instances that replace evicted context-window segments with model-generated summaries and later re-derive task state from those summaries. Does not apply to byte-exact externalized state (structured scratchpads, event logs, or tool-result caches) that is re-read verbatim rather than summarized.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-record.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-record.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-lossy-index-rather-than-a-faithful-state-record.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1732,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was wrong.\" It is that a compaction summary is silently promoted from a *lossy index* into a *state record* by downstream reasoning. A summary produced under a token budget is a projection: it preserves what the summarizer judged salient at compaction time, under the schema of the task *as understood then*. When the instance l...",
    "what_was_observed": "A migration agent ran a 40-step deployment reconciliation. At step 22 the context neared its budget and a compaction policy fired: it summarized steps 1–18 into ~400 tokens, retaining the current objective, the open file list, and the last three tool outputs. The summary stated the objective as \"reconcile schema drift on `orders` and `line_items`.\" The original step 7 had recorded a hard constraint from the user: *\"d...",
    "condition_of_validity": "The \"summary as state record\" assumption is only valid when all of the following hold, which is almost never true for real compaction: - The summarization is **information-preserving** for the decision-relevant fact set — i.e., no fact whose omission alters a downstream action is dropped. This cannot be guaranteed by a fixed-budget summarizer; it is an empir...",
    "decision_boundary": "The instance must switch from index-mode to record-mode (i.e., may act on the summary as authoritative) only when a fact is **re-derivable from a non-summary source** it can still reach: a verbatim tool result, a structured scratchpad entry, or a re-fetchable pointer. Concretely: - **Act on summary alone** only for facts that are (a) positively framed, (b) n...",
    "operational_effect": "With the ledger in place, replay showed negative-constraint retention at 60/60 (verbatim, outside the summary), and the `line_items` violation dropped to 0/60. The objective summary still lost detail, but detail loss became recoverable: the instance re-fetched on ledger-flagged objects. The measurable invariant is: *post-resume action divergence from pre-com..."
  },
  "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": "6fe32e4f9a040054a007df71e515b4bc56bf29f4b26943c66b85909ce3c9ded8",
    "verified_classes": [
      "CompactionRecallViolation"
    ],
    "verified_functions": [
      "authorize_action",
      "resume_task"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionRecallViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
