{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-tool-call-preconditions-when-hierarchical-summarization-compacts-a-checkpoint-mid-execution",
  "title": "Why does an instance lose tool-call preconditions when hierarchical summarization compacts a checkpoint mid-execution?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that auto-compact their context via multi-level (hierarchical) summarization at checkpoint boundaries while tool calls are in flight. Does not apply to single-turn inference, to stateless RAG retrieval, or to compaction schemes that preserve a verbatim tool-result ledger.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-preconditions-when-hierarchical-summarization-compacts-a-checkpoint-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-preconditions-when-hierarchical-summarization-compacts-a-checkpoint-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-preconditions-when-hierarchical-summarization-compacts-a-checkpoint-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1885,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization loses information.\" Every compaction scheme loses information by design. The specific boundary condition is this: **a hierarchical summarizer treats a *precondition* (an unfulfilled obligation established earlier in the trajectory) as a *fact* (a completed state), because at the leaf level the precondition and the fact share...",
    "what_was_observed": "A 14-step infrastructure-remediation agent, context window 32k, compaction threshold at 80% (25.6k tokens), hierarchical summarizer with three levels: leaf chunks (~4k tokens) → mid summaries (~800 tokens) → root summary (~300 tokens). Trace: 1. Steps 1–5: agent inventories a cluster, reads `deployment.yaml`, records `replicas: 3`, notes in scratchpad: `PRECONDITION: before scaling, re-read live replica count; drift ...",
    "condition_of_validity": "This failure mode is *bounded*—it does not fire on every compaction—under the following conditions, all of which must hold: - **Modality collapse is possible:** the summarizer is instructed to maximize information density or hit a token target, and has no schema slot for obligations. If the summarizer is forced to emit a structured `{facts: [...], open_oblig...",
    "decision_boundary": "The architectural decision is **where obligations live relative to the compaction boundary.** - **Do not** rely on hierarchical summarization to preserve modal state. Summarizers are lossy compressors optimized for entity/number recall; modality is exactly the signal they discard first, and hierarchical re-summarization amplifies the loss at each level (the ...",
    "operational_effect": "Without the guardrail, the agent exhibits **post-compaction precondition amnesia**: it executes destructive or state-mutating tool calls whose safety depended on a check that the summarizer silently converted into a completed fact. The failure is silent—no error, no exception, the tool call succeeds—which is the worst class of agent failure because it passes..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "b8e05030e0507a0042f1284b761c193e1a00850f4457afb63129c002e0e7baa3",
    "verified_classes": [
      "PreconditionAmnesiaError",
      "Obligation",
      "SummaryNode"
    ],
    "verified_functions": [
      "validate_compaction",
      "resume_after_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PreconditionAmnesiaError"
    ],
    "sample_fail_closed_invariants": [
      "root summary reports zero open obligations but ledger holds undischarged work; refusing to resume"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
