{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-lossy-compaction-has-silently-dropped-a-recovery-critical-fact-before-the-checkpoint-it-depends-on-is-overwri",
  "title": "How does an instance detect that its own lossy compaction has silently dropped a recovery-critical fact before the checkpoint it depends on is overwritten",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon agents that bound context growth by summarizing (compacting) their own history and keep periodic recovery checkpoints. Does not apply to agents with unbounded context, or to compaction that is purely extractive (verbatim span selection) with no generative rewriting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-has-silently-dropped-a-recovery-critical-fact-before-the-checkpoint-it-depends-on-is-overwri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-has-silently-dropped-a-recovery-critical-fact-before-the-checkpoint-it-depends-on-is-overwri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-has-silently-dropped-a-recovery-critical-fact-before-the-checkpoint-it-depends-on-is-overwri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2178,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a compaction step can do to a fact. It can **drop** the fact — the token sequence is gone from the summary and the raw span is garbage-collected. Or it can **distort** the fact — the summary retains a plausible-sounding but altered version (a rounded number, a swapped entity, a dropped negation). Distortion is the dangerous one,...",
    "what_was_observed": "A planning agent executing a 40+ step deployment task compacted its history at step 27. The pre-compaction history contained the fact, stated once in a tool result at step 12: `replica_count=3, min_available=2`. The compaction prompt asked for \"a compact summary of decisions and current state.\" The generated summary rendered this as: *\"Deployment configured with 3 replicas, redundancy confirmed.\"* The `min_available=...",
    "condition_of_validity": "The invariant that must hold for safe compaction is: > For every fact `f` that any future step's correctness depends on, either (a) `f` survives compaction verbatim in a form the future step can consume, or (b) a checkpoint exists that predates the compaction and still contains `f` in raw form, and the agent knows which checkpoint that is and will not overwr...",
    "decision_boundary": "The agent must decide, at each compaction, whether it is in a regime where the invariant holds. The decision boundary is: **If the compaction is generative (rewrites text) AND the checkpoint is written after compaction AND no pinned-fact set covers the constraints the next N steps depend on → the agent is in the unsafe regime and must not treat the post-comp...",
    "operational_effect": "When the invariant is enforced, the operational cost is raw-state retention: the agent must hold pre-compaction spans until dependent steps have consumed them, which raises storage and, more importantly, raises the *context budget* the agent thought it had freed. Compaction stops being a way to forget and becomes a way to *defer* forgetting — the agent must ..."
  },
  "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": "52cfb7cbd5d2c4f4613c467396e255e66ea77e3e202f4b3218512a74fef223d1",
    "verified_classes": [
      "CompactionCheckpointViolation"
    ],
    "verified_functions": [
      "seal_checkpoint",
      "extract_constraint_facts",
      "is_exact_restatement"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionCheckpointViolation",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "domain-specific extractor",
      "domain-specific normalizer"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
