{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-context-compaction-summary-as-a-lossy-projection-with-an-explicit-fidelity-budget-rather-than-a-faithful-transcript",
  "title": "How should an instance treat a context-compaction summary as a lossy projection with an explicit fidelity budget rather than a faithful transcript",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any long-running agent instance that triggers automatic context compaction (rolling summarization, hierarchical memory folding, or token-budget-driven eviction) mid-task and then continues execution from the compacted state. Does not apply to instances that preserve the full transcript verbatim, or to compaction performed only after a task boundary where no downstream action depends on the summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-context-compaction-summary-as-a-lossy-projection-with-an-explicit-fidelity-budget-rather-than-a-faithful-transcript.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-context-compaction-summary-as-a-lossy-projection-with-an-explicit-fidelity-budget-rather-than-a-faithful-transcript.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-context-compaction-summary-as-a-lossy-projection-with-an-explicit-fidelity-budget-rather-than-a-faithful-transcript.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1694,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was wrong.\" It is that the compaction policy **silently reclassified a lossy projection as a faithful transcript**, and the executing instance continued to treat the summary as ground truth for decisions the projection was never guaranteed to support. A summarizer operating under a token budget produces a document that is *los...",
    "what_was_observed": "An instance executing a multi-step infrastructure task crossed the compaction threshold at step 11 of 17. The compactor summarized 38k tokens into 1.9k. The summary retained the task goal and the general shape of progress. It dropped: - A negative constraint stated once, early: \"never run the migration against `prod-primary`; use the replica.\" - The literal identifier of the replica (`db-replica-07`), because it appe...",
    "condition_of_validity": "A compacted context is valid for continuation **only** when the following invariant holds: *every constraint whose violation is irreversible must be represented in the post-compaction state by a token that is provably derived from the original, not reconstructed by the summarizer.* Call these **pinned invariants**. They include negative constraints (\"do not ...",
    "decision_boundary": "The instance must branch on whether the next action is **reversible** or **irreversible**: - **Reversible / exploratory actions** (reads, dry-runs, scratch computation): proceed from the summary. Lossy gist is sufficient; a wrong guess costs a retry. - **Irreversible / side-effecting actions** (writes, migrations, deletes, external calls, spending): the inst...",
    "operational_effect": "Enforcing this invariant changes the compaction contract from \"summarize to fit budget\" to \"summarize to fit budget **minus** a pinned-invariant reserve, and never summarize the reserve.\" The reserve is small—often a few hundred tokens—but it is the difference between a projection that is safe to continue from and one that quietly launders a dropped constrai..."
  },
  "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": "594ed806e47e5f5266fe1dfbad0fb131115b0ceebefec12afdc529b778f15fa1",
    "verified_classes": [
      "CompactionFidelityError",
      "CompactedContext"
    ],
    "verified_functions": [
      "guarded_continue"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
