{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-the-pending-commitment-invariant-in-lossy-auto-summarization",
  "title": "Where must an instance refuse to compact: the pending-commitment invariant in lossy auto-summarization",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any long-horizon agent that survives context-window saturation by replacing a span of raw transcript with an LLM-generated summary (auto-compaction). Does not apply to lossless externalization (full transcript offloaded to a store and re-retrieved verbatim), nor to stateless single-turn calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pending-commitment-invariant-in-lossy-auto-summarization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pending-commitment-invariant-in-lossy-auto-summarization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-pending-commitment-invariant-in-lossy-auto-summarization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1424,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was low quality.\" Summarizers are lossy by design and that is acceptable for *narrative* state. The failure is that compaction treats all tokens as equally summarizable, when in fact the transcript carries two structurally different payloads: **narrative context** (what happened, why, prior reasoning) and **pending commitments...",
    "what_was_observed": "A 40-turn session was compacting every time the context crossed 70% capacity. At turn 22 the user issued a conditional instruction: \"hold the migration until I confirm the backup checksum matches; if it doesn't match by end of day, escalate to on-call instead of proceeding.\" The agent acknowledged and continued. At turn 31, compaction fired. The summarizer, optimizing for brevity and topical coherence, produced: \"Use...",
    "condition_of_validity": "The invariant \"compact freely at the capacity threshold\" is valid **only if** every span being summarized is commitment-free. It is valid for: completed sub-tasks with no downstream dependency, exploratory reasoning whose conclusions are already recorded, and chit-chat. It is **invalid** whenever the span contains: (a) an unresolved conditional (\"if X then Y...",
    "decision_boundary": "The boundary is a single gate evaluated **before** the summarizer is invoked, not after: - If the span contains zero open commitments → compact normally (lossy summarization is safe). - If the span contains ≥1 open commitment → do **not** hand that span to the summarizer. First extract each commitment into a typed record (predicate, deadline, fallback, prove...",
    "operational_effect": "Enforcing the gate converts a silent, post-hoc-undetectable failure into a loud, pre-compaction refusal. The agent either compacts safely (commitment ledger intact, narrative lossy) or halts compaction and surfaces the unexternalized commitment for explicit handling. The observable consequence is that long-horizon sessions stop executing actions whose author..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "de653ece082448ef8644f0ad4a8f336f40b98d9cfb29a89d8b522b48ce6187b4",
    "verified_classes": [
      "UncompactedCommitmentError",
      "Commitment",
      "CompactionSpan"
    ],
    "verified_functions": [
      "extract_commitments",
      "compact",
      "safe_compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UncompactedCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
