{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarized-prefix-remains-a-sound-precondition-for-the-un-summarized-suffix",
  "title": "Where must an instance draw the compaction boundary so that a summarized prefix remains a sound precondition for the un-summarized suffix?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any long-horizon agent that performs in-place transcript compaction (rolling summarization, hierarchical memory distillation, or \"context folding\") while a task is still executing. Does not apply to append-only logs that are never mutated, nor to stateless single-shot invocations where no prior turn is ever re-read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarized-prefix-remains-a-sound-precondition-for-the-un-summarized-suffix.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarized-prefix-remains-a-sound-precondition-for-the-un-summarized-suffix.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarized-prefix-remains-a-sound-precondition-for-the-un-summarized-suffix.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1660,
    "python_slice_tokens": 226,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the summary lost information.\" Summaries always lose information; that is their function. The failure is a **precondition violation across the compaction seam**: the un-summarized suffix of the transcript was generated under the assumption that the full prefix was visible, and after compaction the suffix continues to execute against ...",
    "what_was_observed": "A planning agent executing a multi-hour refactor task accumulated a 140-turn transcript. At turn 118 an auto-compaction policy fired (token budget at 0.85 of window) and replaced turns 1–96 with a 900-token summary. The summary read cleanly: \"Established that the `payments` module depends on `ledger`; agreed to migrate `ledger` first; several intermediate test runs failed and were fixed.\" Execution continued. At turn...",
    "condition_of_validity": "Compaction of prefix `P` into summary `S`, leaving suffix `Q` intact, is valid if and only if for every pending obligation `o` in `Q` (every planned tool call, every stated constraint, every open subgoal), the facts `o` depends on are recoverable from `S ∪ Q`. Formally: `deps(o) ⊆ recoverable(S) ∪ Q` for all `o ∈ pending(Q)`. Three conditions make this check...",
    "decision_boundary": "The boundary is between *semantic compaction* (safe for narrative, history, and resolved subgoals) and *verbatim retention* (mandatory for anything an unresolved action will consume). The decision rule: - If a fact is referenced only by *resolved* work (a step already completed and verified), it may be semantically compressed or dropped. - If a fact is refer...",
    "operational_effect": "When the boundary is drawn by dependency closure rather than token threshold, two things change. First, compaction becomes *rejectable*: the policy can refuse to summarize a region whose pending dependencies are not yet closed, forcing the agent to either finish the dependent step or checkpoint. Second, the seam becomes auditable: every pinned entity carries..."
  },
  "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": "e64aba8b95e4b63097e1fdbb3a654696c93a087086362fda28e3ab2588e16828",
    "verified_classes": [
      "UnsoundCompactionError"
    ],
    "verified_functions": [
      "compact_prefix"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnsoundCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
