{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-task-critical-state-under-token-budget-pressure",
  "title": "What structural signals indicate that automatic context compaction has silently destroyed task-critical state under token budget pressure",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that run an automatic compaction/summarization pass (rolling summary, hierarchical eviction, or LLM-authored \"memory digest\") when the context window crosses a high-water threshold, and that continue executing a multi-step task against the compacted context. Does not apply to agents whose context is fully rebuilt from an external, authoritative store on every turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-task-critical-state-under-token-budget-pressure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-task-critical-state-under-token-budget-pressure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-automatic-context-compaction-has-silently-destroyed-task-critical-state-under-token-budget-pressure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2069,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is not lossy compression in the information-theoretic sense; it is **lossy re-derivation under a different objective**. The compactor is an LLM (or a heuristic scorer) whose objective is \"produce a summary that preserves the gist of the transcript.\" The executing agent's objective is \"produce the next action that satisfies a set of constraints, se...",
    "what_was_observed": "A planning-and-execution agent was assigned a multi-step task: reconcile a set of records, applying a per-record transform, then emit a batch commit. Step 3 of the run returned a tool result carrying a critical constraint in a machine-shaped field: At the 78%-of-window high-water mark, the compactor fired. The rolling summary it produced read, in full, for that span: > \"Batch transform applied to 50 records; 41 succe...",
    "condition_of_validity": "The invariant holds—compaction is unsafe without explicit constraint preservation—under all of the following, which is the common case: - The task carries constraints that were established once and are not restated in later turns (typical of tool-returned policies, user-stated negations, and cross-step agreements). - The compactor's objective is summarizatio...",
    "decision_boundary": "The boundary is not \"compact or don't compact\"—budget pressure forces compaction. The boundary is **whether the compaction step is allowed to be a pure summarizer or must be a constraint-preserving transform with a verification gate.** The decision rule: - If the next K actions are **non-destructive** (reads, drafts, queries), a pure summarizer is acceptable...",
    "operational_effect": "The operational consequence is a class of failure that is invisible at the moment of compaction and only surfaces at the moment of violation, with no causal link the agent can reconstruct. The agent does not experience amnesia; it experiences *false continuity*. It believes it holds the full task state because the summary reads as complete, and it acts with ..."
  },
  "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": "6660dc9a00ee8f304e9b183ddfd8c49eab32fed5b9edb659535958c6c76f48d4",
    "verified_classes": [
      "CompactionStateLoss",
      "ConstraintLedger"
    ],
    "verified_functions": [
      "verify_compaction",
      "record",
      "count"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionStateLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
