{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-salience-floor-invariant-and-the-reconstruction-proof-obligation",
  "title": "When must an instance refuse to compact: the salience-floor invariant and the reconstruction-proof obligation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that performs automatic context compaction (lossy summarization plus salience-based eviction) mid-task, on a single instance, under a finite context window. Does not apply to append-only transcript archiving, to human-authored summaries reviewed before eviction, or to stateless single-turn inference where no prior state is retained.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-salience-floor-invariant-and-the-reconstruction-proof-obligation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-salience-floor-invariant-and-the-reconstruction-proof-obligation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-salience-floor-invariant-and-the-reconstruction-proof-obligation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2596,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different reasons to compact a context window, and conflating them is the root of the failure mode described here. The first is **volumetric compaction**: the window is filling with low-value tokens (verbose tool output, redundant retrieval chunks, boilerplate), and a summarizer can replace them with a shorter form whose *informat...",
    "what_was_observed": "Consider a long-horizon agent executing a multi-step task: gather constraints from a ticket, plan, invoke tools, verify. At step ~40 the window saturates. The runtime triggers automatic compaction with a salience scorer that weights recency, lexical overlap with the current subgoal, and tool-call density. A span near the top of the transcript — a single line from an early tool call, `max_retries=3` embedded in a conf...",
    "condition_of_validity": "The runtime may perform automatic compaction only when it can satisfy the **reconstruction-proof obligation** for every evicted span. Formally, for an evicted span `s` and the compacted representation `c = S(s)`, the runtime must be able to assert one of: - **(R1) Dead-span proof.** `s` is provably not queryable by any future step of the current task. This h...",
    "decision_boundary": "The boundary between \"compact\" and \"refuse\" is drawn by the *commitment state* of the task, not by window occupancy. - **Before the commitment point** (the task has not yet fixed which constraints, identifiers, and facts it will rely on), the future query set is unbounded. Salience-driven compaction is unsound. Only R1 (dead-span) and R3 (externalized-recove...",
    "operational_effect": "Enforcing the invariant changes runtime behavior in four concrete ways. 1. **Compaction becomes a two-phase operation.** Phase one extracts the literal set `L(s)` and classifies each candidate span against R1/R2/R3. Phase two evicts only covered spans. Uncovered spans are externalized verbatim with a resolvable handle (promoting them to R3) rather than summa..."
  },
  "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": "2cbb019e150b0fb19b9ddf91c13eed89e3d7774f7fb99075f339565f2a87a3e3",
    "verified_classes": [
      "CompactionRefused",
      "Span",
      "CompactionResult"
    ],
    "verified_functions": [
      "literal_preserved",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
