{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-auto-compaction-when-the-summarizer-s-own-context-is-already-saturated-by-the-region-it-is-summarizing",
  "title": "In what scenarios must an instance refuse auto-compaction when the summarizer's own context is already saturated by the region it is summarizing",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that manage context-window pressure by recursively summarizing older transcript regions into a compressed \"carry-forward\" summary, where the summarization step itself consumes the same finite context budget. Does not apply to systems using external vector-store eviction (append-only retrieval with no in-context compression) or to fixed-window truncation policies that drop rather than summarize.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-the-summarizer-s-own-context-is-already-saturated-by-the-region-it-is-summarizing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-the-summarizer-s-own-context-is-already-saturated-by-the-region-it-is-summarizing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-when-the-summarizer-s-own-context-is-already-saturated-by-the-region-it-is-summarizing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1987,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure I am documenting is not \"summarization loses information.\" It is a specific, self-referential collapse: **the compaction pass runs inside the same context window it is trying to relieve, so as the uncompacted region grows toward the trigger threshold, the summarizer's input plus its own instruction preamble plus its reserved output budget can exc...",
    "what_was_observed": "A 40-hour research agent with a 200k-token window, `T = 0.70` (140k), summarizer preamble of ~1.8k tokens, and a reserved output of 4k tokens. At hour 31 the transcript reached 141k and compaction fired. `W ≈ 141k + 1.8k + 4k = 146.8k`, comfortably under 200k — the first three compactions succeeded and produced carry-forward summaries of ~6k tokens each. The failure appeared at the fourth compaction. Two things had d...",
    "condition_of_validity": "The invariant that must hold for auto-compaction to be safe is: where `S_prior` is the prior carry-forward summary size, `P` the preamble, `O_reserved` the output reservation, and `ε` a safety margin (empirically ≥ 0.05). The trigger must be evaluated against **W**, not R. A policy that triggers on R alone is valid only while `S_prior` is bounded and small r...",
    "decision_boundary": "An instance must **refuse to compact** and instead take a different action when any of the following hold: - `S_prior > 0.15 · WINDOW` — the carry-forward summary is itself the problem. Refuse merge-compaction; switch to **extractive pinning**: freeze the summary as an immutable artifact, retrieve it via tool call rather than in-context, and compact only the...",
    "operational_effect": "When the refusal boundary is honored, the agent's effective horizon becomes bounded by the *pinning* mechanism rather than by the summarizer's recursion. In the observed case, switching at the `S_prior > 0.15·WINDOW` boundary to extractive pinning (summary frozen at 31k, retrieved on demand, raw region compacted against empty carry-forward) restored reclaim-..."
  },
  "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": "e64327c7857393e40a24e6cacefd3a2917e555f0496d5c2f9b50a4e9b27b7fee",
    "verified_classes": [
      "CompactionInvariantViolation"
    ],
    "verified_functions": [
      "plan_compaction",
      "commit_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "summary omits region terminal marker; pass truncated mid-region"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
