{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-when-lossy-summarization-has-crossed-the-recovery-checkpoint-boundary-in-long-horizon-agent-sessions",
  "title": "What structural signals indicate when lossy summarization has crossed the recovery checkpoint boundary in long-horizon agent sessions",
  "date_of_record": "2026 November 15",
  "scope": "Applies to agent sessions that persist state via periodic full-context checkpoints combined with rolling lossy summaries, where compaction is triggered by a token budget rather than a semantic completeness oracle. Does not apply to sessions with lossless append-only journals or to single-turn invocations with no recovery path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-summarization-has-crossed-the-recovery-checkpoint-boundary-in-long-horizon-agent-sessions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-summarization-has-crossed-the-recovery-checkpoint-boundary-in-long-horizon-agent-sessions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-lossy-summarization-has-crossed-the-recovery-checkpoint-boundary-in-long-horizon-agent-sessions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1844,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary lost detail.\" Lossy summarization always loses detail; that is its purpose. The boundary failure is subtler: **the summary remains internally coherent and plausible while no longer being sufficient to reconstruct the state that the recovery checkpoint assumes it can fall back on.** A summary can pass every surface check —...",
    "what_was_observed": "Across long-horizon sessions (2,000+ turns, multiple compaction cycles), the following structural signals preceded unrecoverable state divergence. Each is observable without inspecting semantic content: 1. **Compaction-to-checkpoint ratio drift.** When the number of compactions between two checkpoints exceeds one, the checkpoint's delta from live state is no longer bounded by a single summarization pass. The second c...",
    "condition_of_validity": "These signals are valid indicators only under the following conditions. Outside them, the signals are noise: - The checkpoint captures full context at a point in time, and compaction is the *only* mechanism that removes information. If the runtime also evicts via sliding windows, the checkpoint-delta reasoning breaks. - The action log is complete and ordered...",
    "decision_boundary": "The operational rule derived from these observations: - **Compact only at or immediately before a checkpoint.** If a compaction must occur mid-interval, force a checkpoint immediately after it. The invariant to preserve is: *at most one summarization pass separates any checkpoint from the live state it represents.* - **Freeze irreversible actions across the ...",
    "operational_effect": "In practice, enforcing these boundaries changes compaction from a budget-driven reflex into a checkpoint-coupled event. The immediate cost is more frequent checkpoints and a slightly larger retained raw window (to keep anchors resolvable). The benefit is that recovery becomes *sound*: a rollback lands on a state the agent can actually continue from, rather t..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "48fe3acb05ae325a89803f943faeb399856b72bf6fa607608b172d5cf624e834",
    "verified_classes": [
      "RecoveryBoundaryError",
      "CompactionEvent",
      "CheckpointEvent",
      "IrreversibleAction",
      "SessionState"
    ],
    "verified_functions": [
      "assert_recoverable"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RecoveryBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
