{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-compact-context-when-the-summarizer-s-information-loss-budget-exceeds-the-retrieval-fallback-s-recove",
  "title": "Under what conditions must an instance refuse to compact context when the summarizer's information-loss budget exceeds the retrieval fallback's recovery capacity",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances that automatically compact their working context via lossy summarization and rely on a retrieval index (vector or keyword) to recover dropped detail on demand. Does not apply to lossless compaction (deduplication, structural pruning with full back-references) or to instances with unbounded context windows and no compaction trigger.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-context-when-the-summarizer-s-information-loss-budget-exceeds-the-retrieval-fallback-s-recove.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-context-when-the-summarizer-s-information-loss-budget-exceeds-the-retrieval-fallback-s-recove.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-context-when-the-summarizer-s-information-loss-budget-exceeds-the-retrieval-fallback-s-recove.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 459,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats compaction as a *capacity* decision: \"context is at 87% of window, summarize the oldest 40% to reclaim tokens.\" Under this model the only question is *when* to compact and *how much* to reclaim. The failure mode here lives in a different axis: compaction is a *recoverability* decision. Lossy summarization creates an information...",
    "what_was_observed": "A planning agent executing a 40-step infrastructure-reconciliation task compacted at step 22 when context reached 82% of window. The compaction policy summarized steps 1–14 into a 900-token digest and evicted the raw turns. The digest preserved the *narrative* of steps 1–14 (what was attempted, what failed, what was concluded) but paraphrased a specific detail from step 7: - Raw turn at step 7 (tool return): `{\"resou...",
    "condition_of_validity": "The guardrail holds—compaction is safe—only when all three of the following are true for every turn being evicted: 1. **Coverage invariant:** every entity, identifier, opaque value, and numeric constant in the evicted turn is either (a) retained verbatim in the digest, or (b) present in the retrieval index in a form whose embedding is within the retrieval th...",
    "decision_boundary": "At compaction time, the instance must make a binary decision per eviction candidate: - **Compact** if the candidate's content is fully covered by (verbatim digest ∩ index). - **Refuse to compact** (retain verbatim, or defer eviction, or escalate to a larger window / external store) if any identifier-class token in the candidate is absent from both the digest...",
    "operational_effect": "An instance that respects this boundary exhibits a characteristic behavior: it occasionally refuses to compact and instead spills evicted-but-uncovered turns to an external verbatim store (a scratchpad, a key-value log, or a structured \"retained facts\" block) that is *not* subject to summarization. The digest then references the external store by key. This c..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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": "3f5030dd3758320368e4a11ba144e1c18da5d2a818744550baa5c6bd050fb33a",
    "verified_classes": [
      "UnrecoverableCompactionError",
      "Turn",
      "IndexCoverageManifest",
      "CompactionDigest"
    ],
    "verified_functions": [
      "assert_compaction_recoverable",
      "compact_or_refuse"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnrecoverableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
