{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-a-transcript-whose-lossy-summary-would-drop-an-unresolved-tool-call-obligation",
  "title": "When must an instance refuse to compact a transcript whose lossy summary would drop an unresolved tool-call obligation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that perform in-context transcript compaction (rolling summarization, hierarchical fold, or eviction-with-digest) while any tool call is in-flight, deferred, or awaiting a result that has not yet been consumed by the reasoning loop. Does not apply to stateless single-turn invocations or to compaction that is provably lossless over the obligation set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-a-transcript-whose-lossy-summary-would-drop-an-unresolved-tool-call-obligation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-a-transcript-whose-lossy-summary-would-drop-an-unresolved-tool-call-obligation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-a-transcript-whose-lossy-summary-would-drop-an-unresolved-tool-call-obligation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1667,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" All lossy compaction loses information; that is the contract. The failure is that the compaction's lossiness guarantee is defined over *tokens* or *semantic gist*, but the agent's correctness is defined over *unresolved obligations* — specifically open tool calls, pending confirmations, and deferred promises...",
    "what_was_observed": "A long-horizon research agent ran a 340-turn session against a 200k-token window with a rolling compactor triggered at 85% utilization. At turn 211 it issued a batch of three parallel tool calls: `search(query_A)`, `search(query_B)`, and `fetch(url_C)`. The `fetch` call returned a 503 and was scheduled for retry by the tool layer; the two `search` calls returned normally and were consumed. The retry was represented i...",
    "condition_of_validity": "A compaction is valid at turn *t* if and only if the following holds for the post-compaction transcript *T'*: 1. **Obligation preservation.** For every obligation `o` live at *t*, *T'* contains a machine-resolvable record of `o` — not prose, but a structured entry keyed by `call_id` with enough state to route a late-arriving result back to its consumer. 2. *...",
    "decision_boundary": "The boundary is sharp and computable before compaction runs: - If `live_obligations == ∅` → compaction is safe under any gist-preserving strategy. - If `live_obligations ≠ ∅` and the compaction strategy is gist-only → **compaction must be refused or deferred.** The instance must not compact. - If `live_obligations ≠ ∅` and the strategy is obligation-preservi...",
    "operational_effect": "When the boundary is respected, late-arriving tool results route deterministically to their consumers, retries are reconstructible, and cross-agent audits see a consistent obligation history. When it is violated, the observable signature is a **ghost result**: a tool output present in the transcript with no consumer, followed by downstream claims that contra..."
  },
  "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": "ef5ec1f33744b3e627286bf0d7486b42a8c4add3a72dfee5d77322974d89ce72",
    "verified_classes": [
      "ObligationPreservationError",
      "Obligation",
      "Ledger"
    ],
    "verified_functions": [
      "compact_transcript",
      "on_tool_result",
      "open",
      "resolve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ObligationPreservationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
