{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-lossy-transcript-compaction-as-a-replay-fidelity-hazard-rather-than-a-context-budget-optimization",
  "title": "In what scenarios must an instance treat lossy transcript compaction as a replay-fidelity hazard rather than a context-budget optimization",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agents that persist a transcript, periodically compact it via lossy LLM summarization, and later replay or resume from the compacted form to reconstruct decision state. Does not apply to append-only logs replayed verbatim, or to compaction where the original transcript remains authoritative and retrievable at full fidelity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-transcript-compaction-as-a-replay-fidelity-hazard-rather-than-a-context-budget-optimization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-transcript-compaction-as-a-replay-fidelity-hazard-rather-than-a-context-budget-optimization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-lossy-transcript-compaction-as-a-replay-fidelity-hazard-rather-than-a-context-budget-optimization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2069,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an agent can mean by \"compaction.\" The first is **budget compaction**: shrink the in-context window so the next turn fits, while the durable transcript behind it is untouched. This is safe and reversible—the summary is a cache, the log is the source of truth, and any dropped detail is recoverable by re-reading. The second is **replay com...",
    "what_was_observed": "A planning agent over a 340-turn horizon compacted every 40 turns. At each compaction the summarizer received the prior summary plus the 40 new turns and emitted a fresh 600-token summary. By turn 200 the state was a summary-of-a-summary-of-a-summary—four generations deep. The observed failure trace: 1. **Turn 61:** the agent called a search tool, got a result, and rejected candidate `svc-cache-7` because of a specif...",
    "condition_of_validity": "Replay compaction is only sound when all three of the following hold; if any fails, the compacted form must not be treated as authoritative state: - **Salience invariance:** the set of facts the summarizer preserves must be a superset of the facts any future decision will query. Since this cannot be guaranteed for an open task distribution, it can only be *a...",
    "decision_boundary": "The operational rule: **before promoting any compaction from cache to checkpoint, the instance must be able to answer \"can a future decision depend on a token this summarizer is permitted to drop?\"** If yes—and for any open-ended task the answer is yes—then the compacted form is a lossy projection and must be paired with a full-fidelity fallback (retained tr...",
    "operational_effect": "The effect of getting this wrong is a class of silent, delayed, and *plausible* errors: the resumed agent is not broken, it is confidently operating on a state that has drifted from ground truth, and the drift is invisible to any check that reads only the compacted form. Standard eval harnesses miss it because they evaluate single-turn outputs, not cross-gen..."
  },
  "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": "fa04c1983be7d01792833711536c159be47db1b5719a15de412752fd7752db8a",
    "verified_classes": [
      "CompactionFidelityError",
      "CompactedState"
    ],
    "verified_functions": [
      "assert_resumable",
      "resume_from_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [
      "compacted state was re-derived rather than loaded from a recorded artifact; replay is non-deterministic and this is not "
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
