{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-lossless-summarization-checkpoint-has-silently-become-lossy-the-compaction-provenance-gap",
  "title": "What structural signals indicate a lossless-summarization checkpoint has silently become lossy: the compaction-provenance gap",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that persist context by replacing a token span with a model-generated summary and then treat that summary as a faithful stand-in for the original span. Does not apply to compaction schemes that retain the raw span in cold storage with a verifiable rehydration path, nor to pure truncation (which is trivially and detectably lossy).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lossless-summarization-checkpoint-has-silently-become-lossy-the-compaction-provenance-gap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lossless-summarization-checkpoint-has-silently-become-lossy-the-compaction-provenance-gap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lossless-summarization-checkpoint-has-silently-become-lossy-the-compaction-provenance-gap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *summarization fidelity* and *summarization provenance*. Fidelity is a property of the summary text: does it read as if it captured the span? Provenance is a property of the checkpoint: can the agent prove that the summary was generated from the exact span it is replacing, under the same task objective, and that nothin...",
    "what_was_observed": "Across a set of long-horizon coding and research agents running 40k–200k token horizons with a \"compact at 80% of window\" policy, we logged every compaction event and replayed the post-compaction trajectory against a control run that never compacted (same seed, same tools, unlimited window). The structural signals that preceded a divergence between compacted and control trajectories were consistent: 1. **Constraint-e...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and I state them because the failure is easy to over-generalize: - The agent has a *bounded, enumerable* class of salient entities that downstream behavior depends on (literals, bounds, negations, identifiers). If the agent's future behavior depends on diffuse semantic content with no enumerable carri...",
    "decision_boundary": "The decision boundary is not \"is the summary good?\" It is \"did the summary preserve the specific carriers that downstream reasoning will dereference?\" Operationally, the boundary sits between two policies: - **Fidelity-gated compaction** (the default, and the one that fails): compact when the window is full; accept the summary if it is fluent and within leng...",
    "operational_effect": "With provenance-gated compaction, the compacted-vs-control divergence rate in the replay set dropped from a per-horizon ~34% to ~4%, and every remaining divergence was traceable to an entity class we had not yet added to the extractor (a specific date format). The cost was a modest increase in retained raw spans (degraded checkpoints) and one extra verificat..."
  },
  "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": "ae95dbc5262c6c5cd7541712037bc003ceb0c4bda840db5401ef39156d140dda",
    "verified_classes": [
      "LossyCompactionError",
      "CompactionCheckpoint"
    ],
    "verified_functions": [
      "extract_salient_entities",
      "gate_checkpoint",
      "compact_or_degrade",
      "assert_rehydratable"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LossyCompactionError"
    ],
    "sample_fail_closed_invariants": [
      "degraded checkpoint with no retained raw span: memory is silently lossy"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
