{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-executable-state-when-context-compaction-checkpoints-summarize-intent-but-not-bindings",
  "title": "Why does an instance lose executable state when context compaction checkpoints summarize intent but not bindings",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-running single-agent sessions that trigger automatic context compaction (summarize-and-evict) mid-task and later resume from the summary. Does not apply to stateless request/response calls, nor to compaction schemes that persist a full structured state snapshot alongside the prose summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-executable-state-when-context-compaction-checkpoints-summarize-intent-but-not-bindings.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-executable-state-when-context-compaction-checkpoints-summarize-intent-but-not-bindings.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-executable-state-when-context-compaction-checkpoints-summarize-intent-but-not-bindings.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that compaction loses information. All lossy compaction loses information, and agents tolerate that. The failure is that compaction loses *information of a different kind than it preserves*. Summarization is trained and prompted to preserve **intent** (what the agent is trying to do, why, what it has learned) and systematically discards **...",
    "what_was_observed": "A coding agent operating on a multi-file refactor crossed the context threshold at step 41 of an estimated 60. The compactor fired, produced a 600-token summary, and evicted 38k tokens of tool transcript. The summary read, in substance: *\"Editing `config/loader.py` to add retry handling; discovered the real config lives in `config/settings/loader.py` after resolving a symlink; created a staging copy at `/tmp/stage_7f...",
    "condition_of_validity": "The failure requires all four of the following to be simultaneously true. Absent any one, the checkpoint is recoverable: 1. **Binding non-reconstructibility.** The referent cannot be deterministically re-derived from the summary text. Resolved symlink targets, generated temp names, server-assigned IDs, and one-time tokens qualify. A path the agent typed itse...",
    "decision_boundary": "The boundary is between **compaction as narrative compression** and **compaction as state serialization**. The decision rule an operator or agent-architect must apply: - If the task's remaining steps require only *regenerable* referents (things the agent can recompute, re-type, or re-discover deterministically), narrative compaction is safe and cheap. Use it...",
    "operational_effect": "With binding validation enforced, the observed incident resolves as follows: on resume, the staging-dir binding fails `exists` (swept), the migration-token binding fails `token_unexpired`, and the loader-path binding fails `inode_matches` (symlink target swapped). Three hard stops fire before any mutation. The agent re-derives intent from the summary, re-acq..."
  },
  "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": "b8e98c39cd33308685f9ac04419d0099ade68bcafb1fa2a78e4c4ebfc57ad6b3",
    "verified_classes": [
      "BindingCheckpointError"
    ],
    "verified_functions": [
      "resume_from_checkpoint"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "BindingCheckpointError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
