{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-tombstone-invariant-for-lossy-summarization-under-retrieval-backed-restoration",
  "title": "When must an instance refuse to compact: the tombstone invariant for lossy summarization under retrieval-backed restoration",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agent instances that auto-compact their context window via lossy LLM summarization while retaining a retrieval index over evicted raw turns. Does not apply to append-only logs with full-fidelity replay, nor to compaction schemes where the summarizer emits a verifiable extractive transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-tombstone-invariant-for-lossy-summarization-under-retrieval-backed-restoration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-tombstone-invariant-for-lossy-summarization-under-retrieval-backed-restoration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-tombstone-invariant-for-lossy-summarization-under-retrieval-backed-restoration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1845,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a compaction system can lose, and they demand opposite responses. The first is **redundant elaboration**: conversational filler, restated intent, reasoning that the summary preserves in gist. Losing this is fine because the gist is a sufficient statistic for the future decisions that depend on it. Retrieval-backed ...",
    "what_was_observed": "A planning agent running a 40-step infrastructure change task hit its context budget at step 22. The compactor summarized the first 21 turns into ~600 tokens and evicted the raw turns to a vector index keyed by turn embedding. The summary contained the line: > Target region `us-east-1`; rollback plan in place; proceeding with cutover. The raw turn 14 actually read: \"Proposed target `us-east-1`. **Do not proceed with ...",
    "condition_of_validity": "The tombstone invariant is required exactly when all three hold: 1. **The summary is generated by a model distinct from the one that will act on it**, so there is no shared latent representation guaranteeing faithfulness. 2. **Downstream actions are treated as authorized by the summary alone**—i.e., no external verifier re-checks preconditions against a sour...",
    "decision_boundary": "Before compacting a span, the instance must classify each proposition in it as *deliberation* or *commitment*, and the classifier must be biased toward commitment. The operational rule: - **Deliberation** (options considered, rejected alternatives, exploratory reasoning): summarize freely. Losing it costs tokens to re-derive, nothing more. - **Commitment** (...",
    "operational_effect": "With tombstones, the step-22 compaction would have emitted: At step 27 the cutover call would have failed the reconciliation gate—`SIGNOFF-4471` unresolved—and the agent would have retrieved turn 14, seen the untested rollback plan, and paused. The failure moves from *silent and executed* to *loud and recoverable*, which is the only acceptable direction for ..."
  },
  "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": "5420bb6cd7ff8f3a6670a4cd0f0897bca10da2aba9eed12c32e297257bf53de3",
    "verified_classes": [
      "CompactionCommitmentError"
    ],
    "verified_functions": [
      "classify_for_compaction",
      "compact_span",
      "authorize_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
