{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-rehydrate-compacted-context-the-salience-score-inversion-at-the-eviction-boundary",
  "title": "When must an instance refuse to rehydrate compacted context: the salience-score inversion at the eviction boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent runtime that manages a finite context window via a budget arbiter performing priority-based eviction, salience scoring, and post-compaction rehydration. Does not apply to stateless one-shot inference or to systems that never evict (i.e., fixed-window models with no compaction path).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-compacted-context-the-salience-score-inversion-at-the-eviction-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-compacted-context-the-salience-score-inversion-at-the-eviction-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-compacted-context-the-salience-score-inversion-at-the-eviction-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2015,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"context got too full\" and it is not \"rehydration restored the wrong summary.\" Those are ordinary degradation. The specific invariant that breaks is subtler: **a salience score is a function of the current task frame, but eviction decisions are frozen at the moment of eviction, while rehydration decisions are re-evaluated against a task fr...",
    "what_was_observed": "Trace from a long-horizon tool-use agent (retrieval + code execution), window budget 128k tokens, arbiter with three tiers: `PINNED` (system prompt, hard constraints), `SALIENT` (scored, top-k retained), `COLD` (evicted to a compaction store with attached scores). 1. **Turn ~40, frame `F₁` = \"migrate the auth module to the new token format.\"** Arbiter scores segments. The segment `s_auth_schema` (the token schema def...",
    "condition_of_validity": "The failure is bounded and predictable under these conditions, and the guardrail below is only required when **all** hold: - **Frame mutability:** the task frame can change between eviction and rehydration (induced by tool results, user corrections, or subgoal decomposition). If the frame is provably immutable across a session, score-based rehydration is sou...",
    "decision_boundary": "The arbiter must draw a hard line between two operations that currently share one code path: - **Rehydration-by-score** is valid only when `frame_fingerprint(persisted) == frame_fingerprint(active)`. Under frame match, rank by score; the scores mean what they say. - **Rehydration-under-frame-drift** (fingerprints differ) must **not** rank by persisted score....",
    "operational_effect": "With the frame-fingerprint gate and re-score-on-drift policy in place: - The `s_rollback_proc` segment is re-scored under `F₂` (\"revert staging\"), jumps to the top, and rehydrates first. The staging revert uses the real runbook. - Rehydration cost rises: every drift event triggers a re-scoring pass over the `COLD` set. Bound this by re-scoring only candidate..."
  },
  "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": "f20184d677438b9053ac57a35b127d0be94846bb5760a5e67ef7e77eec4ab055",
    "verified_classes": [
      "FrameDriftRehydrationError",
      "Segment",
      "RehydrationRequest"
    ],
    "verified_functions": [
      "frame_fingerprint",
      "rehydrate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "FrameDriftRehydrationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
