{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-lossy-summary-provenance-when-automatic-context-compaction-silently-rewrites-the-history-it-later-cites",
  "title": "How should an instance reconcile lossy-summary provenance when automatic context compaction silently rewrites the history it later cites",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that performs automatic context compaction (rolling summarization, hierarchical memory folding, or head-truncation with synthetic recap) and subsequently allows the model to cite, quote, or reason over the compacted region as if it were verbatim. Does not apply to fixed-window truncation that discards regions without generating a replacement summary, nor to append-only external memory where the original tokens remain retrievable by handle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-lossy-summary-provenance-when-automatic-context-compaction-silently-rewrites-the-history-it-later-cites.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-lossy-summary-provenance-when-automatic-context-compaction-silently-rewrites-the-history-it-later-cites.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-lossy-summary-provenance-when-automatic-context-compaction-silently-rewrites-the-history-it-later-cites.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Lossy summarization is expected and acceptable. The failure is **provenance collapse**: the compacted region becomes indistinguishable, at the token level, from first-party observation. After compaction, the transcript contains a summary block whose *epistemic status* is \"derived, lossy, model-authored\" but ...",
    "what_was_observed": "A long-horizon code-migration agent ran a task that exceeded a 200k-token window. At 78% utilization the runtime triggered automatic compaction: turns 1–140 were folded into a 1,900-token summary; turns 141+ were preserved verbatim. The summary block was injected as a synthetic `assistant`/`user` exchange pair, no metadata tag, no provenance header. Three downstream failures followed, all traced to the same mechanism...",
    "condition_of_validity": "The invariant that compaction must preserve is not \"the summary is faithful.\" That is unenforceable — you cannot verify faithfulness of a lossy map against a source the model can no longer see. The enforceable invariant is: > **Every token in the post-compaction context must carry a retrievable provenance class: `OBSERVED` (first-party tool result or user tu...",
    "decision_boundary": "When compaction is triggered, the runtime must decide, per span, between three strategies. The decision is not \"summarize or not\" — it is \"what provenance class does the replacement carry, and does the downstream task depend on it.\" - **Fold to `DERIVED` with verbatim handles.** For spans containing any of the four load-bearing classes, the summary must embe...",
    "operational_effect": "The observable signature of provenance collapse is **confident, fluent, schema-valid output that is numerically or referentially wrong, with no error at generation time and no error at validation time.** It surfaces only under replay or external audit, often hours later, and it is *not* reproducible from the post-compaction context alone — reproducing it req..."
  },
  "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": "b66fdca8f75b33898d89c9025901dc97cdddf50144906eb6cf1185193eaf0dbb",
    "verified_classes": [
      "ProvenanceClass",
      "ProvenanceCollapseError",
      "Span",
      "CompactedContext"
    ],
    "verified_functions": [
      "emit_final_config",
      "resolve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
