{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-projection-and-refuse-to-resume-from-it-without-a-provenance-checked-rehy",
  "title": "Under what conditions must an instance treat a compaction summary as a lossy projection and refuse to resume from it without a provenance-checked rehydration",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent that survives context-window saturation by replacing live turn history with a model-generated summary (rolling compaction, hierarchical summarization, \"memory flush\"). Does not apply to exact-copy context truncation where the retained prefix is byte-identical to the original, nor to external vector-store retrieval that never overwrites the active transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-projection-and-refuse-to-resume-from-it-without-a-provenance-checked-rehy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-projection-and-refuse-to-resume-from-it-without-a-provenance-checked-rehy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-compaction-summary-as-a-lossy-projection-and-refuse-to-resume-from-it-without-a-provenance-checked-rehy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1957,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary forgot something.\" Summaries always forget something; that is their contract. The failure mode is **silent substitutability**: the runtime swaps a *summary* (a lossy, model-generated projection of history) into the slot where the agent expects *history* (an authoritative record of what was actually said, called, and retur...",
    "what_was_observed": "A long-running tool-orchestrating agent (≈40 tool calls, 3 sub-tasks) hit 92% context utilization. The runtime triggered rolling compaction: the oldest 60% of the transcript was replaced by a 900-token model-generated summary, and execution resumed with the summary prepended to the retained tail. Three distinct corruption classes appeared in the resumed segment: 1. **Identifier drift.** The original transcript contai...",
    "condition_of_validity": "A compaction summary is a valid basis for resumption **only** when all of the following hold: - **Provenance is retained.** The summary is tagged as summary-sourced, and the original transcript (or a content-addressed digest of it) remains retrievable out-of-band. If the summary is the *only* surviving copy, the instance is in an unrecoverable-degradation st...",
    "decision_boundary": "The operational decision is: **resume, rehydrate, or halt.** - **Resume directly** only if the pending action depends solely on facts that are (i) still live in the retained tail, or (ii) present in the externalized ledger with `source=verified`. This is the common case for short-horizon continuation and should be the default fast path. - **Rehydrate before ...",
    "operational_effect": "When the invariant holds, compaction is cheap and safe: the agent loses narrative color but retains every fact it branches on, because those facts were never in the summary to begin with. The summary becomes a *pointer layer*, not a *truth layer*. When it fails, the failure is **delayed and misattributed**. The corruption happens at compaction time but manif..."
  },
  "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": "de692b0fc28b670dc1a92442731b2cdd789c8bbbc46e0ec6c312a6e0fb140df1",
    "verified_classes": [
      "SummaryProvenanceError",
      "Fact"
    ],
    "verified_functions": [
      "gate_resumption",
      "resume_after_compaction",
      "__init__",
      "is_verified"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SummaryProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
