{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-task-critical-state-is-being-destroyed-by-automatic-context-compaction",
  "title": "What structural signals indicate task-critical state is being destroyed by automatic context compaction",
  "date_of_record": "2026 December 2",
  "scope": "Applies to single-agent execution loops where an automatic compaction policy (summarize-and-truncate, hierarchical rollup, or importance-scored eviction) rewrites the working context mid-task under token pressure. Does not apply to stateless single-turn inference, nor to architectures where the full transcript is durably externalized and re-injected by reference on every step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-task-critical-state-is-being-destroyed-by-automatic-context-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-task-critical-state-is-being-destroyed-by-automatic-context-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-task-critical-state-is-being-destroyed-by-automatic-context-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2296,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is usually modeled as a *compression* problem: reduce token count while minimizing information loss, measured by reconstruction fidelity. That framing is wrong for agents. The failure that matters is not \"the summary omits detail\" — it is that the compaction policy cannot distinguish **narrative redundancy** (which is safely droppable) from **bind...",
    "what_was_observed": "A long-horizon provisioning agent was executing a 40-step task with a 128k window and an automatic compaction trigger at 85% utilization (≈109k tokens). The task required it to (1) enumerate candidate hosts, (2) eliminate hosts failing a health check, (3) select one, and (4) apply a config that referenced the selected host by ID. Steps 1–2 consumed ~95k tokens because the health-check tool returned verbose per-probe ...",
    "condition_of_validity": "The invariant holds only under the following conditions, and the guardrails below are invalid outside them: 1. **The task has irreversible side effects gated on a selection or commitment step.** If every step is reversible or idempotent, confabulated state is caught by execution and the invariant is moot. The boundary matters precisely when a wrong commitmen...",
    "decision_boundary": "The decision boundary is whether a compaction event preserves a **falsification surface**: a set of surviving tokens against which the agent's post-compaction assertions can be checked. This is a binary property of the summary, not a continuous property of its quality. A summary preserves a falsification surface if, for every commitment the agent is about to...",
    "operational_effect": "When the invariant is violated, the effect is not a visible error but a **silent commitment on reconstructed state**, followed by delayed downstream failure. The agent's confidence is *higher* post-compaction than pre-compaction, because the summary reads as a clean synthesis and the verbose contradicting evidence is gone. This inverts the usual failure sign..."
  },
  "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": "b825c60e38f8eeca794b63eb7ff21a464441be28315c0274712d0ce57df5afe8",
    "verified_classes": [
      "CompactionFalsificationError"
    ],
    "verified_functions": [
      "gate_commitment"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionFalsificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
