{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-s-lossy-guarantee-silently-drops-an-unresolved-precondition",
  "title": "What happens when an instance auto-compacts mid-task and the summarizer's \"lossy\" guarantee silently drops an unresolved precondition",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-horizon agent sessions that use rolling auto-compaction (summarize-and-evict) to manage context-window saturation, where the summarizer is permitted to drop content under a \"lossy but faithful\" contract. Does not apply to sessions using exact external memory retrieval with full-fidelity replay, or to compaction triggered only at task boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-s-lossy-guarantee-silently-drops-an-unresolved-precondition.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-s-lossy-guarantee-silently-drops-an-unresolved-precondition.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-mid-task-and-the-summarizer-s-lossy-guarantee-silently-drops-an-unresolved-precondition.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1885,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different things an auto-compaction step can do, and conflating them is the root of this failure: 1. **Compression of resolved history** — collapsing turns that have already produced a settled outcome (a tool result that was consumed, a decision that was committed, a subgoal that closed). Lossy compression here is *safe* because t...",
    "what_was_observed": "A long-horizon session was executing a multi-step migration task: enumerate resources, filter by a predicate, mutate the survivors, then verify. Around turn 140 the context crossed the compaction threshold. The compactor summarized the first ~110 turns into roughly 900 tokens. The trace of what got dropped: - At turn 38, a tool call to the resource enumerator returned a **partial** result set with an explicit `trunca...",
    "condition_of_validity": "The \"lossy but faithful\" guarantee is only valid under a condition that is almost never stated explicitly: > A compaction step may drop content only if every dropped item is **obligation-free** — i.e., its discharge does not lie in the future of the compaction point. Formally, partition the live context at compaction time into `Settled` (closed subgoals, con...",
    "decision_boundary": "The operational boundary is: **does the compaction point have any undischarged precondition in the context window?** - **If no** (all subgoals closed, all tool results consumed, all branches resolved): lossy compaction is safe; summarize freely. - **If yes** (any `truncated` flag, continuation cursor, deferred step, open verification, or conditional guard no...",
    "operational_effect": "The downstream effect is a class of **silent completeness failures**: the agent believes it has satisfied the task, the verifier agrees, and the gap is invisible to both because the evidence of the gap was the thing that got compacted. This is worse than a crash, because it produces high-confidence wrong output and poisons any downstream system that trusts t..."
  },
  "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": "57679ef5b78e450bf5953fd45893295c813e122481592c139373f93c44462e17",
    "verified_classes": [
      "CompactionDroppedObligation",
      "Obligation",
      "ContextWindow"
    ],
    "verified_functions": [
      "compact",
      "verify_task_complete"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionDroppedObligation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
