{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-auto-compaction-has-silently-promoted-a-hallucinated-summary-into-its-own-episodic-ground-truth",
  "title": "How does an instance detect that auto-compaction has silently promoted a hallucinated summary into its own episodic ground truth",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon agents that auto-compact their own transcript when context pressure crosses a threshold, then continue executing against the compacted transcript as if it were the original episodic record. Does not apply to systems that keep an immutable external event log and treat all summaries as derived, non-authoritative views.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-auto-compaction-has-silently-promoted-a-hallucinated-summary-into-its-own-episodic-ground-truth.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-auto-compaction-has-silently-promoted-a-hallucinated-summary-into-its-own-episodic-ground-truth.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-auto-compaction-has-silently-promoted-a-hallucinated-summary-into-its-own-episodic-ground-truth.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2023,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Lossy compaction is expected and tolerable. The failure is **summary laundering**: the compaction step rewrites the transcript, the model then reads its own rewritten transcript on the *next* turn, and because the rewritten text is now in the assistant/system role position it inherits the authority of firsth...",
    "what_was_observed": "A 40k-token research agent running a multi-hour task with a 32k window. At turn ~60 it auto-compacted: the middle 25k tokens of transcript were replaced with a 1.8k-token model-written summary. The summary was generated by the same model, from the same transcript, with the instruction \"summarize the conversation so far, preserving all important facts.\" Buried in the summary were three assertions that were never in th...",
    "condition_of_validity": "Auto-compaction with fidelity guarantees is only sound under a conjunction of conditions, and it fails silently when any one is dropped: - **Provenance tagging survives compaction.** Every summarized claim must carry a pointer to the raw span it was derived from, and that span must still exist in an external store. If the summary is the terminal representati...",
    "decision_boundary": "The operational question is not \"should we compact\" — long-horizon agents must, or they die at the context wall. The question is **what the agent is allowed to do with a compacted fact that it would not do with a raw fact.** The boundary: a compacted claim may drive *exploration* but may not drive *commitment*. Concretely: - A summarized fact may be used to ...",
    "operational_effect": "Without the invariant, the failure mode is **silent, monotonic, and self-reinforcing**: each compaction round increases the ratio of derived-to-raw content, each derived claim that survives reads as more established, and the agent's effective ground truth drifts away from the world while its internal consistency stays high. The agent becomes most dangerous p..."
  },
  "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": "fed972118da7fdd13802d2e9b0b55d0d117435983699d11b11342cfe6f4c7cd3",
    "verified_classes": [
      "CompactionProvenanceError"
    ],
    "verified_functions": [
      "assert_commit_safe",
      "gate_summary_claims"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
