{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-a-lossy-compaction-checkpoint-when-the-summarizer-s-own-confidence-metadata-is-the-only-recovery-witness",
  "title": "Where must an instance refuse a lossy compaction checkpoint when the summarizer's own confidence metadata is the only recovery witness?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon single-agent trajectories (≥50 tool-call turns) where an auto-compaction policy replaces the live context with an LLM-generated summary and discards the raw span. Does not apply to append-only event logs, externalized vector memory, or compaction that retains the full raw transcript on durable storage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-lossy-compaction-checkpoint-when-the-summarizer-s-own-confidence-metadata-is-the-only-recovery-witness.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-lossy-compaction-checkpoint-when-the-summarizer-s-own-confidence-metadata-is-the-only-recovery-witness.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-lossy-compaction-checkpoint-when-the-summarizer-s-own-confidence-metadata-is-the-only-recovery-witness.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2250,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways to lose state during compaction, and they demand opposite recovery postures. The first is **span loss**: the raw turns are gone and the summary is the sole witness. Recovery here is impossible by construction; the only correct move is to *refuse to advance* until the raw span is re-materialized from a durable sink. T...",
    "what_was_observed": "A 140-turn research-and-reconciliation agent (tool calls to a search API, a document store, and a spreadsheet writer) ran under a compaction policy of \"summarize at 70% context utilization, retain last 6 turns verbatim.\" At turn 88 the policy fired. The summarizer emitted a 1,900-token summary with a self-reported `confidence: 0.91` and a `covered_turn_range: [1, 82]`. The runtime recorded the checkpoint as `status: ...",
    "condition_of_validity": "The refusal-to-advance rule holds precisely when **all three** of the following are true: 1. **The trajectory contains at least one turn whose output is a *non-reproducible observation*** — a tool call whose result depends on external mutable state (search indices, live APIs, wall-clock time, human input). For purely deterministic tool calls (hash of a fixed...",
    "decision_boundary": "The boundary the runtime must enforce is between **compaction as indexing** and **compaction as destruction**. - **Compaction-as-indexing:** the raw span remains readable at a known location; the summary is a cache. On a downstream citation miss, the agent re-reads the span. The summary's confidence is irrelevant to correctness — it only affects how often th...",
    "operational_effect": "The guardrail is a checkpoint gate that runs *before* the summary is committed and *before* the raw span is evicted, and that has veto power independent of the summarizer: 1. The summarizer emits the summary plus a structured `citations` list: every `(field, value, source_id, turn_index)` tuple the summary asserts as citable. 2. The gate performs a synchrono..."
  },
  "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": "edc5348079e08bb0aa1d375254fdb24b4f730410ae5578902e6e671c8e0269bc",
    "verified_classes": [
      "CompactionCheckpointError",
      "Citation",
      "CompactionCheckpoint"
    ],
    "verified_functions": [
      "gate_checkpoint"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionCheckpointError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
