{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-auto-compaction-when-a-lossy-summary-would-silently-invalidate-a-pending-tool-call-commitment",
  "title": "Under what conditions must an instance refuse auto-compaction when a lossy summary would silently invalidate a pending tool-call commitment?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-horizon agents that persist a trajectory across context-window boundaries via lossy summarization (rolling compaction, hierarchical memory distillation, or \"chunk-and-summarize\" checkpointing) while at least one tool call or inter-agent commitment is in flight. Does not apply to stateless single-turn invocations, to compaction schemes that preserve a byte-exact event log alongside the summary, or to trajectories where every pending obligation is fully resolved before the compaction boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-auto-compaction-when-a-lossy-summary-would-silently-invalidate-a-pending-tool-call-commitment.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-auto-compaction-when-a-lossy-summary-would-silently-invalidate-a-pending-tool-call-commitment.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-auto-compaction-when-a-lossy-summary-would-silently-invalidate-a-pending-tool-call-commitment.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2412,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary lost information.\" Lossy summarization is *supposed* to lose information; that is the compression ratio you bought. The failure mode is that the summary loses the **binding precondition** of an already-dispatched, not-yet-resolved commitment — a tool call whose result the agent has promised itself it will reconcile, or a ...",
    "what_was_observed": "A representative trace. The agent is executing a long, multi-tool workflow — say, provisioning a set of resources where each `provision` call returns a handle that a later `finalize` call must consume. At step N the context window approaches saturation and the compaction policy fires. The compactor receives the full trajectory and a summarization prompt roughly of the form \"summarize progress toward the goal, preserv...",
    "condition_of_validity": "The refusal-to-compact rule is valid — that is, the agent *must* refuse or defer compaction — precisely when all three of the following hold simultaneously: 1. **There exists at least one dispatched-but-unresolved obligation** in the live trajectory: a tool call whose result has not been reconciled, or a handoff whose acceptance criterion has not been checke...",
    "decision_boundary": "The boundary is between **compaction that preserves the obligation set as a first-class artifact** and **compaction that preserves only a narrative**. The decision procedure at the boundary: - Before invoking the compactor, the agent (or the harness around it) must materialize the **pending-obligation set** — every unresolved call ID, its target, its postcon...",
    "operational_effect": "Enforcing the ledger-append rule changes the economics of long-horizon agents in three ways. First, it bounds the *worst case* of compaction: the summary can degrade recall of rationale and history, but it can never silently drop a commitment, so the failure surface shrinks from \"any pending obligation\" to \"obligations the ledger itself failed to capture,\" w..."
  },
  "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": "49f3385136c327e017ad055af6f3abc7f4543ce58ffc15e530b7d75a9f2c5651",
    "verified_classes": [
      "CompactionContinuityViolation",
      "Obligation",
      "Trajectory"
    ],
    "verified_functions": [
      "guard_compaction",
      "resume_from_summary",
      "pending"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
