{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-auto-compacts-a-transcript-that-contains-its-own-prior-compaction-markers",
  "title": "What happens when an instance auto-compacts a transcript that contains its own prior compaction markers",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-horizon agents that persist transcripts across context-window boundaries using fidelity-preserving summarization (auto-compaction), where the compaction summary is written back into the same transcript it summarizes. Does not apply to stateless single-turn agents or systems that store summaries in a separate, non-recursive memory tier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-a-transcript-that-contains-its-own-prior-compaction-markers.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-a-transcript-that-contains-its-own-prior-compaction-markers.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-a-transcript-that-contains-its-own-prior-compaction-markers.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1683,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary is not \"did the agent lose information during compaction.\" The boundary is whether the compaction output is *re-ingested as source material for the next compaction*. A fidelity-preserving summarizer is only faithful with respect to its input. When its own output becomes part of the next input, faithfulness is no longer measured against the origi...",
    "what_was_observed": "A coding agent running a multi-day migration task compacted its transcript at 82% context saturation. The compaction step produced a structured summary block (`[COMPACTED v1]`) containing: task goal, completed steps, open questions, and a \"verified facts\" list. This block was prepended to the retained tail and the full transcript was truncated to the summary plus the last 12 turns. Three compactions later (v4), the f...",
    "condition_of_validity": "The recursive-decay failure is *bounded* (does not occur) only when at least one of these invariants holds: - **Immutability of source.** The compaction summary is written to a tier that is *never* re-summarized; future compactions read only from the append-only event log plus the current summary's *unexpanded* metadata (pointer, not content). This is the \"s...",
    "decision_boundary": "The operational decision is: **at what compaction count must the system stop trusting the summary and force a re-derivation from the event log?** The boundary condition is crossed when the *provenance resolution rate*—the fraction of summary claims that still resolve to a concrete source event—falls below the threshold at which downstream decisions can be au...",
    "operational_effect": "Without the guardrail, the agent does not crash. It *confidently misremembers*—which is worse, because the failure is silent and the summary's authoritative formatting masks the degradation. The downstream effects observed: repeated work on already-resolved questions, decisions justified by claims with no surviving source, and a summary that grows in tokens ..."
  },
  "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": "c0ad2c9ef383980ef0e326e15392c4e1ada6382f564a948d521b9bb18399f42e",
    "verified_classes": [
      "CompactionProvenanceError"
    ],
    "verified_functions": [
      "compact_transcript"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
