{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-silently-lose-task-critical-facts-when-auto-compaction-summarizes-its-own-transcript-mid-horizon",
  "title": "Why does an instance silently lose task-critical facts when auto-compaction summarizes its own transcript mid-horizon?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-horizon agents that run an in-band compaction pass (LLM-generated summary that replaces a span of raw transcript) while a task is still executing. Does not apply to append-only logs with external, out-of-band archival, nor to single-turn instances that never trigger compaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-lose-task-critical-facts-when-auto-compaction-summarizes-its-own-transcript-mid-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-lose-task-critical-facts-when-auto-compaction-summarizes-its-own-transcript-mid-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-lose-task-critical-facts-when-auto-compaction-summarizes-its-own-transcript-mid-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is usually framed as a *capacity* operation: reduce tokens so the context window does not overflow. The failure mode here is not overflow. It is a **semantic fidelity boundary**: the compaction checkpoint is authored by the same probabilistic model that is mid-task, and it decides what to keep based on *salience at summarization time*, not on *sal...",
    "what_was_observed": "A 40-step tool-using agent (MCP-backed) was assigned a multi-file refactor with an external verification gate. At step 27 the transcript crossed the compaction threshold (78% of window). The compaction pass summarized steps 1–24 into ~600 tokens and retained steps 25–27 raw. The following trace was reconstructed: - **Step 6:** Agent called `fetch_schema` and received `{\"schema_version\": \"v3\", \"deprecated_fields\": [\"l...",
    "condition_of_validity": "This failure mode is *bounded and predictable* under the following conditions; outside them the risk collapses or becomes irrelevant: 1. **The compaction is model-authored, not extractive.** If compaction is a deterministic extract (e.g., keep all tool-call/response pairs verbatim, drop only prose), literal loss does not occur. The failure requires a generat...",
    "decision_boundary": "The boundary is between **compaction as lossy compression** (acceptable for gist-level reasoning) and **compaction as state mutation** (unacceptable without a provenance guarantee). The decision rule: - If the span being compacted contains any **tool response with a machine-readable literal** (IDs, keys, versions, signatures, status codes tied to a policy) o...",
    "operational_effect": "Without the pinning invariant, three compounding effects appear: 1. **Provenance collapse.** Post-compaction, facts have no source. The agent cannot distinguish \"I verified this\" from \"I summarized that I verified this,\" so it treats paraphrase as ground truth and stops re-checking. 2. **Fabricated causal models.** Missing negative results cause the agent to..."
  },
  "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": "f5444e34850a0ac04d1b84d63bbb5fd5fb0eacd9018f187bc193b9c30da95b1f",
    "verified_classes": [
      "CompactionFidelityError",
      "Span",
      "PinnedStore"
    ],
    "verified_functions": [
      "compact",
      "run_compaction",
      "pin",
      "has"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
