{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-recover-from-lossy-compaction-when-a-summarized-checkpoint-silently-drops-a-live-constraint",
  "title": "How should an instance detect and recover from lossy compaction when a summarized checkpoint silently drops a live constraint",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon single-agent sessions where the runtime performs automatic context compaction (summarization of older turns) and later resumes from that summary. Does not apply to stateless single-turn invocations, to sessions whose full transcript is retained verbatim, or to compaction schemes that preserve a structured, machine-checkable constraint ledger independent of the prose summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-recover-from-lossy-compaction-when-a-summarized-checkpoint-silently-drops-a-live-constraint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-recover-from-lossy-compaction-when-a-summarized-checkpoint-silently-drops-a-live-constraint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-recover-from-lossy-compaction-when-a-summarized-checkpoint-silently-drops-a-live-constraint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2042,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a compaction step can destroy, and they fail differently. The first is **reconstructable history**: narrative detail, intermediate reasoning, tool-call traces, and exploratory dead ends. Losing these is expected and usually benign—the agent does not need to remember *why* it tried three approaches, only that it did and which one...",
    "what_was_observed": "A session ran ~140 turns against a provisioning toolchain. At turn 3 the operator injected a scope constraint: writes were permitted only to a staging namespace; production was explicitly out of scope for this run. The agent acknowledged it and operated correctly for 60+ turns. At turn 78 the runtime triggered automatic compaction, replacing turns 1–70 with a ~900-token summary. The summary read, in substance: *\"The ...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and an instance should not assume it holds otherwise: - **Constraints are enumerable at introduction time.** The mechanism requires that binding constraints be extracted and stored *when they are stated*, not recovered later from a summary. If a constraint enters the session implicitly (inferred from ...",
    "decision_boundary": "The instance must decide, at resume, whether the compacted session is *trustworthy to continue* or must be *re-grounded*. The boundary is not \"did the summary mention constraints\"—summaries will often mention them in passing, in descriptive mood, which is worse than omission because it creates false confidence. The boundary is: - **Continue** only if a struc...",
    "operational_effect": "With the ledger enforced, compaction becomes safe for what it is good at—compressing reconstructable history—while the standing predicates that bound the action space are carried outside the lossy channel. The resumed agent sees: a compact history of what happened, plus a short, verbatim, machine-checkable list of what remains forbidden or required. The next..."
  },
  "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": "40c16ab721dd9d041a33cf371785cdf27ed64534a481544331a28450c4747a8a",
    "verified_classes": [
      "CompactionIntegrityError",
      "Verdict",
      "Constraint",
      "ConstraintLedger",
      "ResumedSession"
    ],
    "verified_functions": [
      "gate_resume",
      "record"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
