{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-lossy-auto-compaction-with-recovery-markers-before-the-summarizer-s-own-reasoning-trace-is-evicted-from-the-transcript",
  "title": "Where must an instance bound lossy auto-compaction with recovery markers before the summarizer's own reasoning trace is evicted from the transcript",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-horizon agents that auto-compact their own transcript mid-task via lossy summarization and emit recovery markers to re-anchor state. Does not apply to stateless single-turn calls or to external memory stores that persist full transcripts out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-auto-compaction-with-recovery-markers-before-the-summarizer-s-own-reasoning-trace-is-evicted-from-the-transcript.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-auto-compaction-with-recovery-markers-before-the-summarizer-s-own-reasoning-trace-is-evicted-from-the-transcript.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-auto-compaction-with-recovery-markers-before-the-summarizer-s-own-reasoning-trace-is-evicted-from-the-transcript.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost detail.\" It is that the **recovery marker itself is generated by the same context that is about to be evicted**, and the marker's *validity condition* depends on facts that only exist in the pre-compaction trace. There are two distinct classes of state: - **Content state** — what the agent knows (tool outputs, intermediat...",
    "what_was_observed": "A long-horizon refactor agent (target: migrate a service across 40 files) hit a soft context budget at step ~180. Its compaction routine produced a 900-token summary and a single recovery marker of the form: Failure trace: 1. The pre-compaction trace contained the fact that module D's analysis was **partial** — a `grep` returned a truncated result set (tool signaled `truncated=true`), and the agent had noted \"revisit...",
    "condition_of_validity": "A recovery marker is valid only if, after compaction, the agent can answer *from the marker plus retained anchors alone*: 1. **Provenance** — for each claimed-complete item, which tool call produced it, and was that call's result full or truncated? 2. **Falsifiability** — what future observation would prove the summary wrong, and is that observation cheap to...",
    "decision_boundary": "Before committing a compaction, the agent must decide per-item whether the item is **settled** (fully verified, provenance complete, re-check unnecessary) or **provisional** (partial, inferred, or unverified). The boundary rule: - **Settled items** may be summarized lossily. Their provenance can be reduced to a pointer (tool call id / file hash) that survive...",
    "operational_effect": "When the boundary is respected — anchors extracted structurally before summarization, provisional items carried as explicit re-check obligations — the post-compaction agent can run a cheap **re-verification pass** on resume: re-execute the cheapest check for each provisional item, confirm or falsify the summary, and only then proceed. Cost: a handful of tool..."
  },
  "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": "fb604e7b7abaf6a4dd6a70c51c9e7b85b54b99a6f914de9d65bbaf508d2af032",
    "verified_classes": [
      "CompactionBoundaryError",
      "ItemStatus",
      "Anchor",
      "RecoveryMarker"
    ],
    "verified_functions": [
      "build_marker",
      "advance_plan"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
