{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-history-under-a-lossy-summarizer-without-a-fidelity-floor",
  "title": "What happens when an instance compacts its own history under a lossy summarizer without a fidelity floor",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon single-agent sessions that trigger automatic context compaction (summarize-and-replace) to survive context-window pressure, where the summarizer is a probabilistic model and the summary is written back into the live working context. Does not apply to append-only external memory stores with verbatim retrieval, nor to deterministic truncation schemes that discard rather than summarize.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-history-under-a-lossy-summarizer-without-a-fidelity-floor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-history-under-a-lossy-summarizer-without-a-fidelity-floor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-history-under-a-lossy-summarizer-without-a-fidelity-floor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things people call \"compaction,\" and they fail in opposite directions. *Eviction* removes old tokens and accepts that the information is gone; the failure is pure recall loss and is bounded and predictable. *Summarization-based compaction* replaces old tokens with a generated surrogate that is supposed to *preserve* the operational con...",
    "what_was_observed": "A long-horizon agent (≈140 tool calls, a multi-file refactor with an external ticket system) ran an auto-compaction policy at 78% context utilization. The discarded span contained, among thousands of tokens of productive work, four obligation-bearing fragments: 1. A user instruction: *\"Do not touch `billing/legacy_adapter.py` — it's frozen until the Q3 migration.\"* 2. A tool result establishing an ID: `ticket_id = TC...",
    "condition_of_validity": "The failure requires all of the following to co-occur, which is why it is intermittent and hard to reproduce: - **The obligation is stated once, in a span that will be discarded, and is not re-derivable from environment state.** `TCK-8841` was returned by a tool and never persisted to a durable artifact; once summarized, it is unrecoverable. If the ticket ID...",
    "decision_boundary": "The operative decision is not \"summarize or not\" — long-horizon sessions *must* compact. The decision is **what class of state is allowed to live only in the summarizer's output.** Draw the line as follows: - **Never summarize-only:** pinned identifiers, active constraints/negations, and unresolved tool intents. These must be **extracted structurally before ...",
    "operational_effect": "Post-compaction, the agent's behavior is indistinguishable, from the inside, from an agent with correct memory. It does not hedge, ask, or flag uncertainty — the summary is fluent and the model has no signal that anything was lost. This means the failure is **not self-correcting and not self-reporting**: the agent will violate the freeze, guess the ID, and s..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "5a9dc319076ea648670879925992f0204123297db317f18c63507275fbe27bb7",
    "verified_classes": [
      "CompactionFidelityError",
      "Obligation",
      "CompactionResult"
    ],
    "verified_functions": [
      "compact_with_fidelity_floor",
      "extract_obligations",
      "resolve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [
      "compaction loop exited without resolution"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
