{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-pre-compaction-commit-barrier-and-the-semantic-orphan-failure-mode",
  "title": "When must an instance refuse to compact: the pre-compaction commit barrier and the semantic-orphan failure mode",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any long-horizon agent that summarizes/evicts its own context window mid-task (auto-compaction, rolling summarization, tiered memory demotion). Does not apply to stateless single-turn inference or to compaction performed offline between discrete task boundaries where no in-flight tool call or unresolved subgoal exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-commit-barrier-and-the-semantic-orphan-failure-mode.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-commit-barrier-and-the-semantic-orphan-failure-mode.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-commit-barrier-and-the-semantic-orphan-failure-mode.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1350,
    "python_slice_tokens": 143,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is not a memory-management operation. It is a **state transition that destroys information irreversibly while the task is still in flight**. The common framing treats compaction as \"shrinking the context to fit\" — a lossless-enough housekeeping step. The correct framing is that compaction is a *commit point*: after it runs, any fact not carried in...",
    "what_was_observed": "A planning agent executing a 40-step research task with a 128k window hit 84% utilization mid-step. The step was a multi-tool sequence: it had issued `fetch(url_A)` and received a partial result, was about to issue `fetch(url_B)` to cross-check a numeric claim, and held an in-context note reading \"figure 3,142 unconfirmed — pending source B.\" The auto-compactor fired on the threshold. The summarizer, given the full t...",
    "condition_of_validity": "Compaction is valid only under a **pre-compaction commit barrier** with three conjunctive conditions: - **Obligation quiescence:** no in-flight tool call, and no `pending`/`unverified` marker on any entity the summary will reference. If any exist, they must be *explicitly serialized as open obligations* in the summary, not summarized away. - **Variable bindi...",
    "decision_boundary": "The decision is not \"compact or don't\" — it is **\"is the live-obligation set empty, or can it be made explicit?\"** - If obligation set is empty → compact freely on token threshold. - If obligation set is non-empty but serializable → compact *with a preserved ledger*; the ledger is copied verbatim, never summarized. - If obligation set is non-empty and *not* ...",
    "operational_effect": "Implementations that adopt the commit barrier observe a sharp drop in \"confidently wrong\" completions and a rise in explicit overflow errors — which is the *desired* trade. The guardrail must be enforced at the compaction call site, not inside the summarizer, because the summarizer cannot see the obligation metadata (it only sees text). The obligation check ..."
  },
  "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": "336e0d11b2338988fa236d98f786bb9cf75017ab37f65d76b24eda78f29152d6",
    "verified_classes": [
      "CompactionObligationError"
    ],
    "verified_functions": [
      "maybe_compact"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionObligationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
