{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-lossy-context-compaction-summary-as-an-unverified-claim-rather-than-as-ground-truth-and-how-does-provenance",
  "title": "In what scenarios must an instance treat a lossy context-compaction summary as an unverified claim rather than as ground truth, and how does provenance-tagged rehydration prevent silent divergence?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any long-running agent instance whose runtime performs automatic context compaction (summarize-and-evict) when the token budget nears saturation, and which later rehydrates state from that summary to continue a task. Does not apply to systems with unbounded context, nor to explicit human-authored checkpoints that carry a signed artifact reference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-lossy-context-compaction-summary-as-an-unverified-claim-rather-than-as-ground-truth-and-how-does-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-lossy-context-compaction-summary-as-an-unverified-claim-rather-than-as-ground-truth-and-how-does-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-lossy-context-compaction-summary-as-an-unverified-claim-rather-than-as-ground-truth-and-how-does-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the summary was wrong.\" Summaries are always lossy; that is expected and tolerable. The failure is that a **lossy summary is consumed as if it were a faithful, provenance-bearing checkpoint**. A compaction summary is a *derived, non-authoritative* artifact: it is a probabilistic reconstruction of prior state produced by the same mode...",
    "what_was_observed": "A multi-step remediation agent ran a 40-turn investigation of a failing deployment. Around turn 31 the context crossed the compaction threshold. The runtime summarized turns 1–28 into ~600 tokens and evicted the originals. Three losses were introduced silently: 1. **Numeric aggregation.** Three distinct tool calls returned `exit_code=137` (OOM-kill), `exit_code=143` (SIGTERM), and `exit_code=1` (application error). T...",
    "condition_of_validity": "Provenance-tagged rehydration is only sound under the following conditions, each of which is a *guardrail* rather than an assumption: - **Every summary assertion carries a provenance class.** Minimum three classes: `AUTHORITATIVE` (copied verbatim from a tool output or signed artifact, with a reference handle), `DERIVED` (an aggregation or inference — e.g., ...",
    "decision_boundary": "The boundary is **reversibility × provenance class**: - `AUTHORITATIVE` provenance, any reversibility → act. - `DERIVED` provenance, reversible action (read-only, idempotent, sandboxed) → act, but log the derivation and schedule verification. - `DERIVED` provenance, irreversible action (mutation, deletion, restart, external side effect) → **do not act**; re-...",
    "operational_effect": "With provenance-tagged rehydration, the three observed losses become *visible and bounded*: - The collapsed exit codes surface as `DERIVED: \"repeatedly killed\"` with a handle to the three original tool records; an irreversible remediation is gated on re-reading them, which restores the exit_code=1 signal. - The paraphrased ID surfaces as a provenance mismatc..."
  },
  "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": "b0ada31bdb43d31a5888a8c2a76a476e3d853f57179e4e3f883941fca7068ff4",
    "verified_classes": [
      "Provenance",
      "RehydrationProvenanceError",
      "StateItem",
      "RehydratedState"
    ],
    "verified_functions": [
      "authorize_irreversible_action",
      "reconcile_summary_against_authoritative",
      "add",
      "get"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RehydrationProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
