{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-automatic-context-compaction-as-a-lossy-state-transfer-rather-than-a-summarization-convenience",
  "title": "In what scenarios must an instance treat automatic context compaction as a lossy state transfer rather than a summarization convenience",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any long-horizon agent whose runtime performs automatic context compaction (rolling summarization, hierarchical memory folding, or token-budget-triggered eviction) mid-trajectory. Does not apply to stateless single-turn inference or to agents whose entire trajectory fits within one context window with no eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-automatic-context-compaction-as-a-lossy-state-transfer-rather-than-a-summarization-convenience.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-automatic-context-compaction-as-a-lossy-state-transfer-rather-than-a-summarization-convenience.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-automatic-context-compaction-as-a-lossy-state-transfer-rather-than-a-summarization-convenience.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2108,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A summarizer is not a compressor; it is a *re-encoder*. The distinction that governs every downstream failure is this: compaction does not preserve information, it preserves *plausibility*. A summarizer LLM, asked to fold 40k tokens of trajectory into 2k, produces text that is fluent, coherent, and internally consistent—and that consistency is precisely what...",
    "what_was_observed": "A migration agent was executing a 90-step plan against a schema service. At step 41 the runtime hit its 32k soft limit and triggered a rolling summarizer that folded steps 1–38 into a 1,800-token digest. The digest read: > \"The agent has been applying migrations to the `orders` schema. Earlier attempts to apply `add_index` failed due to lock contention and were retried successfully. Current state: migrations 001–014 ...",
    "condition_of_validity": "Compaction-as-summarization is valid **only** when the post-compaction agent's next action is a function of the digest alone. It is invalid—must be treated as a lossy transfer—whenever any of the following holds: - **Re-derivability is false.** The future depends on a value that cannot be reconstructed by re-querying the environment: a tool result that cost ...",
    "decision_boundary": "The operational decision is not \"should we compact\" (at 32k you must) but \"what is the unit of compaction.\" The boundary that separates safe from corrupting: - **Compact the narrative, pin the frame.** If the runtime cannot guarantee verbatim carry-forward of the operational frame, it must not compact—it must either hard-stop and escalate, or spill the frame...",
    "operational_effect": "Treating compaction as lossy transfer changes three things in the runtime. First, it forces an explicit schema for the operational frame—a typed structure, not prose—which makes the survival of identifiers, constraints, and invariants a *checkable* property rather than a hope. Second, it converts compaction from a fire-and-forget background task into a trans..."
  },
  "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": "5dc2ba8b299c74a76c23694c6adf388f94067f534b4e6daaa092e09c61847652",
    "verified_classes": [
      "CompactionFrameViolation",
      "OperationalFrame"
    ],
    "verified_functions": [
      "verify_compaction",
      "safe_fold"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionFrameViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
