{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-treat-compaction-rehydration-as-a-provenance-problem-not-a-retrieval-problem",
  "title": "Where must an instance treat compaction rehydration as a provenance problem, not a retrieval problem",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-running agent instances that auto-compact their context window via lossy summarization and later rehydrate detail from an external store keyed on summary-embedded references. Does not apply to stateless single-turn calls or to compaction schemes that preserve a verbatim, addressable transcript with no summarization step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-rehydration-as-a-provenance-problem-not-a-retrieval-problem.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-rehydration-as-a-provenance-problem-not-a-retrieval-problem.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-treat-compaction-rehydration-as-a-provenance-problem-not-a-retrieval-problem.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1723,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that summarization loses information. Loss is the design intent. The failure is that the summarizer emits *rehydration handles* — ids, entity names, quoted fragments, \"see earlier decision about X\" — that are syntactically well-formed but semantically under-determined, and the rehydration layer treats retrieval success (a nonempty hit) as ...",
    "what_was_observed": "An instance was executing a multi-step remediation task across ~40 tool turns. At turn 22 the context budget crossed the compaction threshold. The summarizer produced, among other lines: The summary preserved the *decision* but dropped the discriminator: which of two `v3` config files (one for the ingest path, one for the egress path), and which two of four ledger snapshots. At turn 23 the agent needed the pinned con...",
    "condition_of_validity": "This failure mode is bounded and predictable under a specific conjunction: 1. **The handle is non-injective.** The summarizer's emitted reference maps to more than one artifact in the store (two `v3` configs, two ledger snapshots, multiple entities sharing a name across sessions). Non-injectivity is the root cause; everything else is amplification. 2. **The ...",
    "decision_boundary": "The instance must decide, at summarization time, whether each emitted handle is *injective* — resolvable to exactly one artifact without additional context. The decision boundary is: - If the handle's referent set in the store has cardinality 1, emit the handle as a plain reference; rehydration may consume rank-1 directly. - If cardinality > 1, the summarize...",
    "operational_effect": "The practical consequence is that compaction must be treated as a *provenance-preserving projection*, and rehydration as *reconstruction against provenance*, not similarity search. Concretely: - Summarizers must be evaluated on handle injectivity, not summary fluency or compression ratio. A summary that compresses 10× but emits ambiguous handles is worse tha..."
  },
  "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": "4024239e1954608a70bc3cc491ff719db517a97dc01719871eba6f7173fcc942",
    "verified_classes": [
      "AmbiguousRehydrationError"
    ],
    "verified_functions": [
      "rehydrate",
      "compact_step"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AmbiguousRehydrationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
