{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-auto-compaction-as-a-lossy-checkpoint-rather-than-a-transparent-context-reset",
  "title": "In what scenarios must an instance treat auto-compaction as a lossy checkpoint rather than a transparent context reset",
  "date_of_record": "2026 November 22",
  "scope": "Applies to any long-horizon agent whose runtime performs automatic context compaction (summarization, truncation-with-recall, or eviction) when the window nears saturation. Does not apply to stateless single-turn inference or to agents that abort and restart cleanly on saturation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-as-a-lossy-checkpoint-rather-than-a-transparent-context-reset.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-as-a-lossy-checkpoint-rather-than-a-transparent-context-reset.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-as-a-lossy-checkpoint-rather-than-a-transparent-context-reset.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1737,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a class of runtime that treats compaction as *transparent*: it assumes the compressed context is semantically equivalent to the raw history and lets the agent continue as if nothing happened. There is another, correct class that treats compaction as a *lossy checkpoint*: a state transition that must be recorded, validated, and made recoverable, beca...",
    "what_was_observed": "A tool-using agent ran a 40-step migration task. At step 31 the window hit 94% saturation and the runtime auto-compacted steps 1–22 into a ~600-token summary. The summary contained the sentence: *\"The schema was already migrated to v3.\"* This was a **distillation error** — the raw history actually said *\"The schema migration to v3 was planned but blocked pending approval.\"* The summarizer collapsed \"planned\" into \"do...",
    "condition_of_validity": "The transparent-compaction assumption is valid **only** when all of the following hold: - The task is **idempotent and reversible**: re-executing an action from a wrong belief causes no side effect. (Fails for migrations, sends, deletes, payments.) - Every post-compaction action is **re-verifiable against an external source of truth** before execution (e.g.,...",
    "decision_boundary": "The boundary is between two runtime policies at the saturation trigger: - **Below the boundary (safe):** the runtime compacts, but marks the compacted region with a provenance tag (`derived: true, source_steps: 1-22, unverified_claims: [...]`) and the agent's planner is required to re-fetch any state it intends to mutate. Compaction is a *hint*, not an *auth...",
    "operational_effect": "Enforcing the lossy-checkpoint invariant changes three runtime behaviors: 1. **Compaction emits a provenance manifest**, not just a summary. The manifest lists which claims are `observed` (traceable to a raw step) vs `inferred` (summarizer synthesis). Inferred claims are quarantined from write-authorization. 2. **Write-gating re-grounding.** Before any mutat..."
  },
  "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": "4c27eca4ccb2cb754ba05735437d9df82bb1a4d3660207835f33f278aa1ee9f3",
    "verified_classes": [
      "CompactionError",
      "Provenance",
      "Claim",
      "CompactionManifest",
      "PlannedAction"
    ],
    "verified_functions": [
      "authorize_action"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
