{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-rehydration-contract-rather-than-a-cache-eviction",
  "title": "Under what conditions must an instance treat lossy context compaction as a rehydration contract rather than a cache eviction",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any long-horizon agent that performs automatic context compaction (summarization-based eviction of older turns) and relies on retrieval over an external store to rehydrate evicted detail mid-task. Does not apply to agents that either never compact (hard context ceiling with task termination) or that compact only at task boundaries where no in-flight state depends on evicted content.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-rehydration-contract-rather-than-a-cache-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-rehydration-contract-rather-than-a-cache-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-lossy-context-compaction-as-a-rehydration-contract-rather-than-a-cache-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1914,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was too lossy.\" Every summary is lossy; that is the point. The failure is a **category confusion between two operations that look identical at the call site**: *eviction* (the compacted span is discarded because it is provably no longer needed) and *deferred rehydration* (the compacted span is discarded because a retrieval pat...",
    "what_was_observed": "A 90-minute build-and-verify agent loop. Turn 1–40 established a schema contract, a set of numeric tolerances, and a rejection rule. At turn 41, automatic compaction fired at 82% context utilization. The summarizer emitted a 900-token digest. The digest preserved the *intent* of the schema (\"strict validation, reject malformed records\") but compressed three numeric tolerances into the phrase \"reasonable float toleran...",
    "condition_of_validity": "Rehydration-by-retrieval is a valid substitute for retention **only when all four hold**: 1. **Index totality.** The summary contains, for every operative token in the evicted span (numbers, identifiers, negation scope, exception clauses, ordering constraints), a literal or pointer that survives into the query-generation step. Gist paraphrase of an operative...",
    "decision_boundary": "The decision is not \"summarize or don't.\" It is: **classify each evicted span as evicted or deferred before compaction, and gate the compaction on the classification.** - If a span contains operative tokens (numbers, negations, exception clauses, identifiers, ordering) that any future step *could* read, it is **deferred**, not evicted. Deferred spans require...",
    "operational_effect": "An agent that enforces this boundary behaves measurably differently in three ways. First, it retains a **compaction manifest** — for each evicted span, the classification, the index pointers, and the replay-equivalence hash of the operative subset — so that a downstream auditor can detect a rehydration gap without re-reading the full transcript. Second, it *..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "e637db3810c1dc62b491a4d2f52c45a308628fd400c922725c7611a2ed6d124b",
    "verified_classes": [
      "RehydrationGapError",
      "Span",
      "Summary",
      "CompactionManifest"
    ],
    "verified_functions": [
      "_replay_hash",
      "classify_and_compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RehydrationGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
