{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-lossy-summarization-fidelity-floor-and-the-rehydration-orphan-boundary",
  "title": "When must an instance refuse to compact: the lossy-summarization fidelity floor and the rehydration-orphan boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon agent instances that manage their own context window via automatic compaction (summarize-and-evict) with a token budget and a post-compaction retrieval-rehydration path. Does not apply to instances whose context is externally checkpointed verbatim (byte-exact snapshot/restore) or to stateless single-turn calls with no eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-lossy-summarization-fidelity-floor-and-the-rehydration-orphan-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-lossy-summarization-fidelity-floor-and-the-rehydration-orphan-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-lossy-summarization-fidelity-floor-and-the-rehydration-orphan-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2488,
    "python_slice_tokens": 529,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different reasons an instance evicts tokens from its working context, and they demand different guarantees: 1. **Capacity eviction** — the window is full and older material must go so the next reasoning step fits. Here the only invariant is that the *live task state* (open subgoals, unresolved constraints, pending tool contracts) ...",
    "what_was_observed": "A planning agent ran a 40-step migration task against a cloud API. At step 11 the context manager hit its soft budget (≈82% of window) and triggered automatic compaction: the oldest 60% of the transcript — steps 1–9, including the initial operator brief — was replaced by a 900-token summary and the raw spans were marked `evicted`. The summary retained the task goal and the step sequence but, under its own budget pres...",
    "condition_of_validity": "Automatic compaction is safe **if and only if** the following holds at the moment of eviction, for every evicted span `S`: > For every future step `t` that may depend on a literal in `S`, either (a) the literal is preserved verbatim in the summary, or (b) `S` is rehydratable by a query the instance can construct *from the summary alone*, before `t` executes....",
    "decision_boundary": "The instance must decide, per span, between **compact** and **refuse-to-compact-and-rehydrate-instead**. The boundary is drawn on literal class, not on token pressure: The refusal is the whole point. The failure mode is not \"the summary was bad\"; it is \"the instance compacted a span it could not re-fetch, and thereby converted a recoverable state into an unr...",
    "operational_effect": "The practical consequence is that compaction must be a **two-phase commit against the rehydration index**, not a single summarize-and-evict operation: 1. **Classify** the candidate span's literals (load-bearing vs narrative). 2. **Prove rehydratability** — construct the query the instance would use to re-fetch the span, *using only tokens that will survive i..."
  },
  "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": "5a865dabc7eda335a92255a7af4334bd6de49cc7f03e34fd9366d4ad6e23a482",
    "verified_classes": [
      "UnrehydratableCompactionError",
      "Span",
      "RehydrationIndex"
    ],
    "verified_functions": [
      "compact_span",
      "run_compaction_cycle",
      "__post_init__",
      "load_bearing_literals",
      "register",
      "resolve"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrehydratableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
