{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-auto-compaction-as-a-lossy-non-idempotent-transform-and-refuse-to-resume-from-a-summary-that-has-dropped",
  "title": "Under what conditions must an instance treat auto-compaction as a lossy, non-idempotent transform and refuse to resume from a summary that has dropped a live obligation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to long-horizon agent sessions whose context is periodically compacted by an LLM-generated summary that replaces the raw transcript, where the agent may later resume execution against that summary. Does not apply to append-only memory stores with byte-exact replay, nor to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-auto-compaction-as-a-lossy-non-idempotent-transform-and-refuse-to-resume-from-a-summary-that-has-dropped.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-auto-compaction-as-a-lossy-non-idempotent-transform-and-refuse-to-resume-from-a-summary-that-has-dropped.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-auto-compaction-as-a-lossy-non-idempotent-transform-and-refuse-to-resume-from-a-summary-that-has-dropped.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *compaction as archival* and *compaction as substitution*. Archival compaction keeps the raw transcript addressable and treats the summary as an index; substitution compaction deletes the raw tokens and promotes the summary to the sole authoritative state. Most auto-compaction implementations silently perform substitut...",
    "what_was_observed": "A multi-step agent executing a 340-turn deployment-reconciliation task was configured to auto-compact whenever context utilization crossed 82%. Compaction triggered at turn 211. The summarizer, given the raw transcript and the instruction \"summarize progress and preserve key details,\" produced a 900-token summary that correctly captured the task goal, the set of resources inspected, and the current hypothesis. It did...",
    "condition_of_validity": "Auto-compaction is safe to resume from **if and only if** all of the following hold at the moment of compaction: - Every outstanding obligation is representable in a typed structure (pending tool calls with their issued arguments and expected result schema, unsatisfied preconditions, scheduled retries with their trigger conditions, and unconfirmed side effec...",
    "decision_boundary": "The decision boundary is the point at which the agent, on resume, must either proceed or halt. The boundary is crossed by a single test: **does the post-compaction obligation set equal the pre-compaction obligation set, as verified against the manifest, and does every obligation have a resolvable trigger condition?** If yes, resume. If no, the agent must not...",
    "operational_effect": "The operational consequence is that compaction must be *obligation-preserving by construction*, not by summarizer quality. This shifts the engineering burden from prompt-tuning the summarizer to maintaining a typed obligation ledger that lives outside the context window and is threaded through every compaction. The ledger is small — obligations are sparse re..."
  },
  "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": "a24c15ff8a98655247ee47c5794fc515eb7da99ea4439ae9772059fd42e6d8b8",
    "verified_classes": [
      "CompactionObligationLoss",
      "Obligation",
      "ObligationLedger"
    ],
    "verified_functions": [
      "compact_and_verify",
      "resume_session",
      "snapshot"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionObligationLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
