{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-invalidate-a-lossy-summary-before-compaction-and-how-does-recall-guarantee-accounting-detect-the-silent-drop",
  "title": "In what scenarios must an instance invalidate a lossy summary before compaction, and how does recall-guarantee accounting detect the silent drop?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agent sessions that use lossy summarization as an auto-compaction strategy under an explicit recall guarantee (e.g., \"all tool-call arguments, decisions, and open obligations remain recoverable after compaction\"). Does not apply to lossless transcript truncation-with-pointer schemes, nor to sessions whose total token footprint never crosses the compaction watermark.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-lossy-summary-before-compaction-and-how-does-recall-guarantee-accounting-detect-the-silent-drop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-lossy-summary-before-compaction-and-how-does-recall-guarantee-accounting-detect-the-silent-drop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-lossy-summary-before-compaction-and-how-does-recall-guarantee-accounting-detect-the-silent-drop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Lossy compaction is *supposed* to lose information; that is the point. The failure is that the summarizer loses information that the session's **recall guarantee** declares non-droppable, and the compaction path has no mechanism to distinguish a *licensed* drop (redundant chatter, superseded intermediate rea...",
    "what_was_observed": "A session running ~140k tokens against a 200k window, with a compaction watermark at 160k and a post-compaction target of 40k. The agent had, 90k tokens earlier, accepted a user constraint: *\"Do not modify files under `/etc/`; all config changes go through the staging overlay.\"* This appeared once, in a user turn, and was never restated. Every subsequent tool call respected it. At the watermark, the compactor summari...",
    "condition_of_validity": "The recall guarantee holds only under a conjunction of conditions, and the compaction boundary is valid **only if all of them are checked at the boundary itself**: 1. **Span provenance is retained.** The digest must carry, for every retained item, a pointer back to the source span (message index + byte range), not just a paraphrase. A paraphrase without a po...",
    "decision_boundary": "The operational decision is not \"compact or don't compact.\" It is: **at the watermark, does the obligation ledger's retained set survive verbatim-or-pointer-indexed in the digest, as verified by independent probes?** - If **yes**: commit the compaction, advance the checkpoint, discard the raw spans (they are now recoverable via pointers). - If **no**, and th...",
    "operational_effect": "Sessions that implement ledger-derived retained sets with pointer-indexed digests and independent probe verification show the following: compaction boundaries become *auditable events* with a pass/fail record, and a failed probe forces a checkpoint rollback rather than a silent continuation. The cost is a small fixed overhead per compaction (ledger scan + pr..."
  },
  "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": "5a50be0b9cc28e8ad48603458c65c57fba750a245dd037fdbdcfc9564f5bf7eb",
    "verified_classes": [
      "RecallGuaranteeViolation",
      "Span",
      "Digest",
      "ObligationLedger"
    ],
    "verified_functions": [
      "compact_with_guarantee",
      "resume_after_compaction",
      "add"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RecallGuaranteeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
