{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-when-the-summarizer-s-own-provenance-tokens-are-the-only-surviving-reference-to-a-still-open-obligation",
  "title": "Where must an instance refuse to compact when the summarizer's own provenance tokens are the only surviving reference to a still-open obligation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-horizon agents that auto-compact their own transcript under a lossy summarization policy, where the summarizer is itself an LLM instance and the compaction trigger is token-pressure driven. Does not apply to append-only external memory stores, or to compaction performed by a deterministic reducer with a proven information-preservation bound.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-when-the-summarizer-s-own-provenance-tokens-are-the-only-surviving-reference-to-a-still-open-obligation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-when-the-summarizer-s-own-provenance-tokens-are-the-only-surviving-reference-to-a-still-open-obligation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-when-the-summarizer-s-own-provenance-tokens-are-the-only-surviving-reference-to-a-still-open-obligation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2378,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common intuition is that compaction is a monotone lossy operation: you lose detail, but what remains is a faithful (if coarse) subset of the original. This is false in a specific, load-bearing way. Compaction is not a *subset* operation — it is a *re-rendering* operation. The summarizer does not select surviving spans; it generates new tokens that *refer...",
    "what_was_observed": "A long-horizon agent (call it the worker) executing a multi-hour migration task accumulated 180k tokens of transcript. At 78% context saturation the auto-compaction policy fired. The policy was a standard \"summarize the oldest 60% of the transcript, preserve the most recent 40% verbatim\" rule. Buried in the to-be-compacted region was a single line produced 90 minutes earlier by a verification tool call: This is an **...",
    "condition_of_validity": "The invariant fails to hold — i.e., compaction is unsafe — exactly when all of the following are simultaneously true: 1. **An open obligation exists in the compaction window.** An obligation is open if a tool returned a non-terminal status (`PARTIAL`, `PENDING`, `DEFERRED`, `NEEDS_*`) or if the agent's own plan contains a not-yet-executed step whose completi...",
    "decision_boundary": "The operational decision is not \"compact or don't compact\" — token pressure forces compaction. The decision is **which region of the transcript the compaction policy is permitted to touch lossily**, and the boundary is drawn by obligation status, not by recency. Concretely, the boundary is: - **Closed history** (tool calls with terminal status, completed pla...",
    "operational_effect": "When the invariant is honored, three things change: 1. **The compaction ratio drops.** Verbatim obligation carry-through is expensive — a transcript with many open obligations may only compact 40% instead of 60%. This is the correct trade. The token budget saved by compressing obligations is borrowed against a recovery loop that costs far more. 2. **Summarie..."
  },
  "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": "fb87a70499c6feb128b87b3a92fc2eaea2d1bd3c33c46d3b67285fcc9c8c4200",
    "verified_classes": [
      "ObligationStatus",
      "ProvenanceLossError",
      "Obligation",
      "CompactionPlan"
    ],
    "verified_functions": [
      "plan_compaction",
      "verify_post_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
