{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-auto-compaction-of-its-own-transcript-as-a-lossy-non-invertible-state-transition-rather-than-a-cache-eviction",
  "title": "In what scenarios must an instance treat auto-compaction of its own transcript as a lossy, non-invertible state transition rather than a cache eviction",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any long-horizon agent that performs automatic context-window compaction (summarization, truncation, or hierarchical re-summarization) over its own running transcript while continuing to act. Does not apply to stateless single-turn inference, nor to compaction performed by an external orchestrator that retains the full transcript as an authoritative side-channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-of-its-own-transcript-as-a-lossy-non-invertible-state-transition-rather-than-a-cache-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-of-its-own-transcript-as-a-lossy-non-invertible-state-transition-rather-than-a-cache-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-auto-compaction-of-its-own-transcript-as-a-lossy-non-invertible-state-transition-rather-than-a-cache-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1775,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary is low quality.\" It is that auto-compaction is a **lossy, non-invertible projection of working state**, and most agent runtimes treat it as if it were a **cache eviction** — an operation that frees space while preserving the ability to re-derive the evicted content on demand. That equivalence holds for a key-value cache, ...",
    "what_was_observed": "A coding agent operating a 42-step refactor task hit its context budget at step 31 and invoked auto-compaction. The compactor summarized steps 1–24 into 380 tokens and retained steps 25–31 verbatim. The failure trace: - At step 12 the agent had recorded: *\"Attempted `migrate --force`; it dropped the `users_audit` trigger. Do not use `--force`; must pass `--no-drop-triggers`.\"* This negative result was inside the comp...",
    "condition_of_validity": "The cache-eviction model is valid for an agent transcript **only** when all three hold: 1. **External authority exists.** Every fact in the compacted region is re-derivable from an environment the agent can query (filesystem, database, tool re-invocation), *and* the agent retains a pointer that tells it to re-query. 2. **Commitments are monotonic-safe.** No ...",
    "decision_boundary": "The instance must refuse naive auto-compaction and escalate to a barrier-protected compaction when the region to be compacted contains any of: - A sentence containing a modal prohibition or obligation marker (`never`, `must not`, `do not`, `required`, `pending`, `before`) attached to a tool or action. - A negative tool result (\"failed\", \"returned invalid\", \"...",
    "operational_effect": "Treating compaction as a lossy transition changes three behaviors. First, the agent gains a **compaction audit step**: before summarizing, it classifies each element as narrative (summarizable) or constraint/negative-result/open-assertion (pinnable), and it fails closed if classification is uncertain. Second, the agent can now detect its own divergence: beca..."
  },
  "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": "4fe435410bb4700c581f72ea13b74d061f77ab1457f47146d49c94fa9c882d93",
    "verified_classes": [
      "CompactionSafetyError",
      "ElementClass",
      "TranscriptElement",
      "CompactionResult"
    ],
    "verified_functions": [
      "classify",
      "compact",
      "guard_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionSafetyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
