{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-compaction-summary-as-a-proof-obligation-rather-than-a-cache",
  "title": "When must an instance treat a compaction summary as a proof obligation rather than a cache",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any long-horizon agent that persists state by replacing a bounded span of its own transcript with a lossy summary produced by the same or a peer model, then continues execution against that summary. Does not apply to append-only transcripts that are never truncated, nor to compaction that preserves verbatim tool outputs and only elides reasoning tokens.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-proof-obligation-rather-than-a-cache.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-proof-obligation-rather-than-a-cache.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-compaction-summary-as-a-proof-obligation-rather-than-a-cache.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2142,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A compaction summary is not a cache entry. A cache entry is a *substitutable* function of the data it replaces: you may evict it and recompute, and the recomputation is observationally identical. A compaction summary is a *lossy projection* of the transcript onto a lower-dimensional space chosen by a probabilistic model at a specific moment for a specific do...",
    "what_was_observed": "A coding agent operating over an ~180k-token horizon on a multi-file refactor was configured with a compaction policy: when the live context exceeded 70% of the window, the oldest 60% of the transcript was summarized by the same model into a target of 1,500 tokens, and the summary replaced that span with a header `[COMPACTED: turns 0–91]`. The failure trace: - **Turn 34:** the operator issued a constraint buried insi...",
    "condition_of_validity": "A compaction summary is safe to continue against **if and only if** all three of the following hold: 1. **The summary is a lower bound, not an upper bound, on the agent's action space.** That is, the summary may omit facts, but every fact it *asserts* must be entailed by the elided span. Summarizers routinely violate this: asked to compress a span containing...",
    "decision_boundary": "The boundary is not \"summary quality\" but **whether the elided span contained an unresolved obligation.** Concretely: - **Compact freely** when the elided span is *closed*: every action in it reached a terminal state (succeeded, failed-and-abandoned, or explicitly deferred with a durable marker), and no constraint was introduced that is not already in the co...",
    "operational_effect": "Implementations that adopt the obligation-partitioned model see three measurable shifts: - **Divergence rate drops from \"silent and unbounded\" to \"bounded and detectable.\"** When constraints live in a verbatim ledger and irreversible actions are gated on out-of-band witnesses, a lossy summary can still cause the agent to *propose* a wrong action, but the wit..."
  },
  "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": "a5bb03e80a5241ea334e4bc38cf5b85e7cf0198ad58e10cbe9d701dfb43b08a4",
    "verified_classes": [
      "CompactionProofViolation"
    ],
    "verified_functions": [
      "compact_span",
      "authorize_irreversible"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionProofViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
