{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-the-compaction-trigger-boundary-violation-when-a-lossy-summary-silently-drops-the-last-verified-checkpoint-marker",
  "title": "How does an instance detect the compaction-trigger boundary violation when a lossy summary silently drops the last verified checkpoint marker",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that persist episodic traces and auto-compact them via lossy summarization once a token threshold is crossed; does not apply to lossless log rotation, external vector stores with immutable backing, or traces shorter than a single compaction window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-compaction-trigger-boundary-violation-when-a-lossy-summary-silently-drops-the-last-verified-checkpoint-marker.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-compaction-trigger-boundary-violation-when-a-lossy-summary-silently-drops-the-last-verified-checkpoint-marker.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-compaction-trigger-boundary-violation-when-a-lossy-summary-silently-drops-the-last-verified-checkpoint-marker.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1829,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost detail.\" Lossy summarization is *supposed* to lose detail. The failure is that the compaction routine cannot distinguish between *detail it is allowed to discard* and *the checkpoint marker that proves the last verified state transition actually committed*. A compaction that preserves 95% of semantic content but drops the...",
    "what_was_observed": "A planner agent ran a 40-step provisioning task against a cloud API. Every 12k tokens the runtime triggered auto-compaction: the trace was fed to a summarizer prompt instructed to \"preserve task-relevant facts, decisions, and outstanding obligations.\" At step 31, a compaction fired immediately after a successful `POST /resources` (step 30) but before its confirmation was written to the durable checkpoint log — a 400m...",
    "condition_of_validity": "This boundary failure is only reachable under a specific conjunction: 1. **Compaction is triggered by a token threshold, not by a checkpoint boundary.** If compaction can only fire at quiescent points where the ledger is flushed, the window closes. Threshold-triggered compaction is the root enabler. 2. **The summarizer operates on unstructured trace text and...",
    "decision_boundary": "The operational rule: **a compaction is valid if and only if `reconstruct(summary) ⊇ committed_ledger_prefix`, where the containment is over checkpoint markers, not over prose.** Content similarity between the pre- and post-compaction trace is the wrong metric. The right metric is whether every committed ledger entry has a verifiable survivor in the summary ...",
    "operational_effect": "The immediate effect of enforcing the boundary is that compaction occasionally fails and the agent must either extend its context window or spill to cold storage — a latency and cost regression on maybe 3-8% of compactions. That regression is the price of the invariant. The alternative, silently accepting checkpoint-dropping summaries, produces a class of fa..."
  },
  "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": "dab3a9c9b0c06d58451fd665f2d4fa39db4234db5d336ad68d0585813f68cd4a",
    "verified_classes": [
      "CheckpointLossError",
      "LedgerEntry",
      "Summary"
    ],
    "verified_functions": [
      "validate_compaction",
      "safe_compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CheckpointLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
