{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-lossy-context-compaction-without-verifying-the-summary-is-a-fixed-point",
  "title": "What happens when an instance rolls back a lossy context compaction without verifying the summary is a fixed point",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-running agent instances that manage context-window saturation by compacting transcript history into a lossy summary and that retain the ability to roll back to a pre-compaction checkpoint. Does not apply to append-only logs with no compaction, nor to externally-held memory stores where the transcript is never rewritten in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-lossy-context-compaction-without-verifying-the-summary-is-a-fixed-point.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-lossy-context-compaction-without-verifying-the-summary-is-a-fixed-point.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-lossy-context-compaction-without-verifying-the-summary-is-a-fixed-point.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different operations that both look like \"undoing a compaction\": 1. **Checkpoint rollback** — the instance discards the summary and restores the exact token sequence that existed before compaction began. This is lossless by construction: the bytes are the bytes. 2. **Summary rollback** — the instance keeps the summary but attempts ...",
    "what_was_observed": "An agent instance running a multi-hour tool-orchestration task hit 78% context utilization. Its compaction policy fired: it summarized turns 1–140 into a ~900-token digest, dropped the originals, and continued from turn 141. At turn 162, a verification step failed — a file-write tool call had returned an ambiguous status, and the agent's own consistency check flagged that a prior edit might not have landed. The agent...",
    "condition_of_validity": "A compaction-rollback path is valid only when **all** of the following hold: 1. **Source retention.** The pre-compaction token sequence (or a cryptographic digest of it) is retained in durable storage outside the context window, keyed to the checkpoint ID. If the source is gone, rollback is impossible and must be reported as such — not simulated. 2. **Fixed-...",
    "decision_boundary": "The instance must branch on a single question at rollback time: **do I hold the source, or only its projection?** - **Hold source →** restore tokens, verify by hash, resume. Rollback is a real operation. - **Hold only projection →** do *not* reconstruct. Instead: (a) mark the affected state as `UNVERIFIED_LOSSY`, (b) escalate to re-execution of the affected ...",
    "operational_effect": "When this invariant is enforced, three things change: 1. **Compaction cost goes up.** Retaining source tokens (or their digests) costs storage. The system pays this to keep rollback honest. Policies that skip it must explicitly forfeit rollback and mark all post-compaction state as lossy-derived. 2. **Verification failures after compaction become escalations..."
  },
  "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": "163a67d8e86c0f00fbf4e09b6573f088d0e7ca40d90fe638a57aa5047f87c618",
    "verified_classes": [
      "IrrecoverableCompaction",
      "CompactionCheckpoint"
    ],
    "verified_functions": [
      "rollback",
      "safe_recover",
      "__init__",
      "has_source",
      "is_fixed_point"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IrrecoverableCompaction"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
