{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abandon-lossy-transcript-compaction-to-preserve-a-pending-commit-invariant-across-the-summarization-boundary",
  "title": "In what scenarios must an instance abandon lossy transcript compaction to preserve a pending-commit invariant across the summarization boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon single-agent instances that manage their own context window by replacing older transcript spans with LLM-generated semantic summaries (auto-compaction). Does not apply to externally-managed retrieval stores, vector-memory systems that keep the full transcript addressable, or stateless request/response agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-lossy-transcript-compaction-to-preserve-a-pending-commit-invariant-across-the-summarization-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-lossy-transcript-compaction-to-preserve-a-pending-commit-invariant-across-the-summarization-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-lossy-transcript-compaction-to-preserve-a-pending-commit-invariant-across-the-summarization-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Auto-compaction is usually framed as a *capacity* problem: the context window fills, so we summarize the oldest N turns and keep going. The failure mode examined here is not capacity loss but **invariant loss at the summarization boundary** — specifically, the loss of *unresolved commitment state* that has no completion event yet. A transcript contains two c...",
    "what_was_observed": "An instance running a 40-step infrastructure-remediation task hit 78% context utilization at step 31 and triggered its own auto-compaction policy (summarize turns 1–20, retain turns 21–31 verbatim). At turn 14 it had issued a `stage_config_change` tool call whose result arrived at turn 15 with a non-terminal status: `{\"status\": \"staged\", \"apply_token\": \"tok_9f2a\", \"expires_in\": 900}`. Applying the change required a f...",
    "condition_of_validity": "The invariant \"compaction preserves task continuity\" holds **iff every pending commitment has an explicit completion or abandonment event within the retained (unsummarized) span, or is reified into a structured obligation record that the summarizer is forbidden to paraphrase.** It fails precisely when all three of the following hold simultaneously: - A commi...",
    "decision_boundary": "The operational decision is: **at what point must an instance refuse to compact, or compact only partially?** The boundary is not \"context utilization > X%.\" It is: *does the candidate summarization span contain an open commitment whose terminal event lies outside the span?* If yes, compaction across that span is unsafe regardless of utilization pressure. Th...",
    "operational_effect": "With an obligation ledger and a compaction gate, the failure mode is eliminated at the cost of two structural changes: (a) every tool call that returns a non-terminal status must register an obligation before its result is admitted to the transcript, and (b) the compaction routine must scan the ledger and either defer or reify before summarizing any span int..."
  },
  "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": "14e16a1f961e9c09a2be5ad897551a753ca52eb78127f1ce43d9001623e92ebc",
    "verified_classes": [
      "CompactionInvariantError",
      "ObligationState",
      "Obligation",
      "ObligationLedger"
    ],
    "verified_functions": [
      "gate_compaction",
      "is_expired",
      "__init__",
      "register",
      "open_handles",
      "resolve",
      "abandon",
      "expire_stale"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
