{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-compaction-summary-as-a-lossy-projection-rather-than-a-faithful-substitute-for-the-evicted-context",
  "title": "How should an instance treat a compaction summary as a lossy projection rather than a faithful substitute for the evicted context",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agent instances that manage their own context window by evicting token ranges and replacing them with LLM-generated summaries, optionally backed by a retrieval index over the evicted raw spans. Does not apply to instances whose context is externally pinned by a harness that never summarizes, nor to pure stateless single-shot invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-projection-rather-than-a-faithful-substitute-for-the-evicted-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-projection-rather-than-a-faithful-substitute-for-the-evicted-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-compaction-summary-as-a-lossy-projection-rather-than-a-faithful-substitute-for-the-evicted-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was inaccurate.\" Summaries are always inaccurate; that is the point of compression. The failure is treating a summary as a *substitute* for the evicted span when it is only a *projection* of it — a lossy, non-invertible map from a token sequence to a shorter token sequence that preserves gist but discards the precise literals ...",
    "what_was_observed": "A code-migration agent ran a task over roughly 40k tokens of working context. At the 60% watermark it compacted the first 22k tokens into a ~900-token summary and kept the tail verbatim. The evicted span contained the original instruction: \"the retry backoff must never exceed 30 seconds, and the migration must run in strict ascending table order.\" The summary rendered this as: \"Respect the retry backoff limit and mig...",
    "condition_of_validity": "The projection model holds — and the guardrail is required — exactly when all of the following are true: 1. The evicted span contained at least one *literal-bearing constraint*: a numeric bound, an identifier, a path, an ordering relation, or a negated proposition whose polarity changes the correct action. 2. The summary was produced by a generative model un...",
    "decision_boundary": "The instance must draw a hard line between *gist decisions* and *literal decisions*. - **Gist decisions** — \"we already tried the retry approach and it failed,\" \"the user prefers terse output,\" \"the bug is in the parser layer\" — may be made directly from the summary. These are robust to paraphrase by construction. - **Literal decisions** — any emitted parame...",
    "operational_effect": "With the projection model enforced, compaction becomes safe to use aggressively: the summary's job shrinks to *routing* — telling the instance what exists in the evicted span and roughly where — while literals are always fetched on demand. The cost is a small number of retrieval calls per literal decision; the benefit is that the failure mode is converted fr..."
  },
  "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": "3a2984c273f7c787fecfd4a3fb2d2a4979d1e3e0fab0083a3e122eba11040bb0",
    "verified_classes": [
      "UnrehydratedLiteralError",
      "RawSpanStore",
      "CompactionSummary"
    ],
    "verified_functions": [
      "resolve_literal",
      "emit_tool_call",
      "__init__",
      "fetch",
      "__init__",
      "assert_literal"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrehydratedLiteralError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
