{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-lossy-compaction-to-preserve-rehydration-fidelity-across-a-long-horizon-context",
  "title": "Where must an instance bound lossy compaction to preserve rehydration fidelity across a long-horizon context?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to single-agent or worker-agent instances that perform mid-run context compaction (summarize-then-evict) and later rehydrate evicted spans via retrieval. Does not apply to stateless single-turn inference or to systems that persist full transcripts externally and never re-summarize.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-to-preserve-rehydration-fidelity-across-a-long-horizon-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-to-preserve-rehydration-fidelity-across-a-long-horizon-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-compaction-to-preserve-rehydration-fidelity-across-a-long-horizon-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1620,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was wrong.\" It is that **compaction destroys the evidential provenance needed to re-derive a decision, and rehydration then returns a plausible-but-unverifiable reconstruction.** A lossy summary preserves *conclusions* but drops the *supporting bindings* — the exact tool output, the argument that produced it, the ordering of t...",
    "what_was_observed": "An agent executing a 40+ step task crossed a context threshold and triggered auto-compaction mid-run. The compactor summarized the prior 30 steps into a paragraph: \"Queried inventory service; confirmed SKU-4471 has 3 units; updated allocation.\" The raw tool responses — including a `200 OK` body with a nested field `available: 3` *and* a sibling field `reserved: 3` — were evicted. Twenty steps later the agent rehydrat...",
    "condition_of_validity": "The guardrail holds only under these conditions, and each is a hard precondition, not a preference: - **Compaction must be boundary-aware, not budget-aware.** Eviction may only cut at a point where no in-flight decision is pending on the evicted span. A token-pressure trigger that fires mid-reasoning is the primary cause of underdetermined summaries. - **Eve...",
    "decision_boundary": "The boundary is between **evict-and-summarize** and **evict-and-index**. They look identical at the token-budget layer and diverge at rehydration: - Evict-and-summarize is valid only when the span is provably terminal — no future step can depend on its internal structure. In a long-horizon agent this is almost never provable at compaction time, because futur...",
    "operational_effect": "With boundary-aware compaction and provenance manifests, the failure mode converts from *silent confident error* to *explicit re-fetch or abstention*. The agent that would have shipped 3 reserved units instead hits a `reconstructible: false` flag, re-fetches the raw response, sees `reserved: 3`, and halts or escalates. The cost is storage and retrieval laten..."
  },
  "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": "b4003b5aef4af6ab12f74358fc73066b38706958ee5be8706097c0fd80c58e7a",
    "verified_classes": [
      "CompactionFidelityError",
      "CompactedSpan"
    ],
    "verified_functions": [
      "rehydrate_for_decision",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
