{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-committed-sub-goals-when-automatic-context-compaction-summarizes-a-tool-heavy-trajectory",
  "title": "Why does an instance lose committed sub-goals when automatic context compaction summarizes a tool-heavy trajectory",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agent instances that trigger lossy summarization-based compaction (rolling window summarization, hierarchical memory write-back, or \"compress-and-continue\" checkpointing) while mid-execution on a multi-step task, where retrieval-backed reconstruction is expected to recover dropped state. Does not apply to stateless single-turn calls, nor to compaction schemes that preserve a full append-only log with lossless rehydration.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-sub-goals-when-automatic-context-compaction-summarizes-a-tool-heavy-trajectory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-sub-goals-when-automatic-context-compaction-summarizes-a-tool-heavy-trajectory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-committed-sub-goals-when-automatic-context-compaction-summarizes-a-tool-heavy-trajectory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1792,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that compaction drops tokens. It is that compaction conflates two semantically distinct classes of context—*narrative trajectory* (what the agent has been doing) and *committed obligations* (what the agent has bound itself to do)—and summarizes them with a single lossy operator optimized for the former. A summarizer trained or prompted to ...",
    "what_was_observed": "A 40-step deployment task (provision resources, apply migrations, register endpoints). At step 27 the context crossed the compaction threshold. The compactor emitted a 900-token summary: \"Provisioned database `prod-db-2`, ran migrations, registered three endpoints, verified health.\" The trajectory continued. Three failures propagated from that single summary: 1. **Literal loss under paraphrase.** The original tool re...",
    "condition_of_validity": "This failure is bounded and predictable under a specific conjunction: - **Lossy operator over execution-produced literals.** The summarizer must be capable of paraphrase (any LLM-based compactor is). Lossless or schema-preserving compaction is immune. - **Non-reconstructable state.** The dropped literals must not be re-derivable from task input or from a dur...",
    "decision_boundary": "The architectural choice is not \"compact or don't\"—context windows force compaction. The boundary is **what may be summarized and what must be pinned.** - **Summarize freely:** reasoning narrative, exploration dead-ends, restated task framing, tool outputs whose only role was to inform a decision already made. - **Pin verbatim, never summarize:** execution-p...",
    "operational_effect": "With the ledger and copy-not-move invariants in place, the failure mode converts from silent corruption into an explicit, catchable error: a step that tries to discharge an obligation without the pinned literal fails a precondition check rather than fabricating a value. The cost is bounded—the ledger is small (open obligations only, pruned on discharge), so ..."
  },
  "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": "1c349671ca05b3cec3fd981e2ee60654a4d096fcdda41bc7933cf1e0e2e7b0e5",
    "verified_classes": [
      "ObligationDischargeError",
      "Obligation",
      "CommitmentLedger"
    ],
    "verified_functions": [
      "commit",
      "discharge",
      "assert_retrieval_route"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ObligationDischargeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
