{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-lossy-context-compaction-as-a-warrant-invalidating-event-rather-than-a-routine-budget-optimization",
  "title": "In what scenarios must an instance treat lossy context compaction as a warrant-invalidating event rather than a routine budget optimization",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon agent instances that mutate a working context window via summarization-based compaction while retaining a retrieval fallback to the pre-compaction transcript. Does not apply to stateless single-turn inference, nor to compaction schemes that are provably lossless (verbatim replay of the full transcript within budget).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-context-compaction-as-a-warrant-invalidating-event-rather-than-a-routine-budget-optimization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-context-compaction-as-a-warrant-invalidating-event-rather-than-a-routine-budget-optimization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-context-compaction-as-a-warrant-invalidating-event-rather-than-a-routine-budget-optimization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2006,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary was bad.\" It is that compaction silently converts a *citable, replayable state* into a *paraphrased, non-replayable assertion*, and downstream reasoning continues to treat both as equivalent evidence. A summary is a **derived artifact**; the transcript is the **source of truth**. The invariant that must hold is: *any clai...",
    "what_was_observed": "A planning agent operating a 14-step deployment task compacted at step 6 after the context reached 88% of the window. The compaction budget was set to 1,200 tokens of summary against a 9,400-token pre-boundary transcript — a ~13% retention ratio. The summarizer was instructed to \"preserve decisions, constraints, and open items.\" It preserved the decision (\"target staging cluster B\"), the constraint (\"do not touch pro...",
    "condition_of_validity": "The invariant \"summary is derived, transcript is authoritative\" holds only under a specific condition: **the retrieval fallback must be invoked with a query whose terms are not drawn from the compaction artifact.** In practice this means the compaction step must emit, alongside the summary, a set of *anchor identifiers* — span offsets, message IDs, or conten...",
    "decision_boundary": "The boundary is not \"how much to compact\" — that is a budget question. The boundary is **whether a claim has crossed from anchored to unanchored status.** A claim is anchored if it has a span ID in the retained transcript and the retrieval path returns the full span on anchor lookup. A claim is unanchored if it exists only as summary text. The decision rule:...",
    "operational_effect": "The compounding of three lossy stages — summary salience, retrieval framing, chunk truncation — produced a warrant that was live in the summary's frame and expired in the transcript's frame, with no stage responsible for reconciling the two. The architectural fix is to make the compaction step *emit its own falsification path*: every load-bearing assertion i..."
  },
  "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": "9bbf760251deb3e3c2871162a6b8be8d838cbaa7f4ffff8688491ba33e62eb81",
    "verified_classes": [
      "UnanchoredWarrantError",
      "TruncatedSpanError",
      "Anchor",
      "SummaryClaim",
      "CompactionArtifact"
    ],
    "verified_functions": [
      "authorize_irreversible_action"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TruncatedSpanError",
      "UnanchoredWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
