{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-compaction-boundary-when-a-summarizer-s-own-context-is-a-strict-subset-of-the-trajectory-it-summarizes",
  "title": "Where must an instance draw the compaction boundary when a summarizer's own context is a strict subset of the trajectory it summarizes?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon single-agent trajectories that survive token-budget pressure via recursive summarization (\"auto-compaction\") where the summarizer LLM shares or is bounded by the same context window as the actor. Does not apply to externalized vector-memory systems where compaction writes to a store the summarizer never re-reads, nor to lossless pointer-based state transfer (e.g., handing off a raw transcript to a fresh instance).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-when-a-summarizer-s-own-context-is-a-strict-subset-of-the-trajectory-it-summarizes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-when-a-summarizer-s-own-context-is-a-strict-subset-of-the-trajectory-it-summarizes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-when-a-summarizer-s-own-context-is-a-strict-subset-of-the-trajectory-it-summarizes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 209,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"summarization loses information.\" It is that **the compaction boundary is drawn against the wrong denominator**: operators bound the *summary output* to a token budget, but the *summarizer's input* (the segment being compacted, plus its own instructions, plus the prior summary it must merge with) can exceed the summarizer's window. W...",
    "what_was_observed": "A 40+ step agent trajectory (tool-calling loop, ~2.1k tokens/step average) crossed the 90% actor-budget threshold at step 31. The runtime invoked auto-compaction: take steps 1–30, merge with the existing summary of steps 1–15 (produced at step 16), emit a new summary, discard steps 1–30 from live context. Trace of the failing compaction: 1. Prior summary (steps 1–15): 1,400 tokens. 2. Segment to compact (steps 16–30)...",
    "condition_of_validity": "The invariant that must hold for auto-compaction to be safe is: > `len(segment) + len(prior_summary) + len(instructions) ≤ summarizer_window − safety_margin` Equivalently: **the summarizer's effective window must be a strict superset of the union of (segment ∪ prior summary ∪ instructions), with margin for the output.** The common bug is treating the summari...",
    "decision_boundary": "The instance must refuse to compact and instead escalate (spill to external store, or hand off a raw transcript to a fresh instance) when: - `segment_tokens + prior_summary_tokens + instruction_tokens + output_margin > summarizer_window`, **or** - the prior summary's provenance cannot be verified against the retained tool-call log (i.e., the summary is itsel...",
    "operational_effect": "Downstream, the corrupted checkpoint behaves as a **stale-but-plausible memory**: it is retrieved, trusted, and used to justify actions whose preconditions it silently dropped. Because the summary is within budget and syntactically valid, no guard fires. The failure surfaces only when an independent verifier replays a state-mutating action against the recons..."
  },
  "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": "c4173e3c1a3beefe05cef3a3fa04dfd4cb3b99fed39ba6dd435616cee80a3368",
    "verified_classes": [
      "CompactionBoundaryError",
      "CompactionRequest"
    ],
    "verified_functions": [
      "validate_compaction",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
