{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-hierarchical-auto-compaction-has-silently-orphaned-a-tool-call-dependency-chain",
  "title": "What structural signals indicate that hierarchical auto-compaction has silently orphaned a tool-call dependency chain",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-horizon agents that compact context via hierarchical summarization (leaf-chunk summaries rolled up into parent summaries) while an active multi-step tool-call plan is in flight. Does not apply to single-turn calls, to lossless compactions that preserve verbatim tool transcripts, or to agents whose planner state lives entirely outside the compacted context window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-auto-compaction-has-silently-orphaned-a-tool-call-dependency-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-auto-compaction-has-silently-orphaned-a-tool-call-dependency-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-auto-compaction-has-silently-orphaned-a-tool-call-dependency-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something.\" It is that hierarchical compaction preserves *narrative coherence* while destroying *referential integrity of in-flight tool state*. A leaf summarizer asked to compress a chunk containing a tool call and its result will faithfully retain the sentence \"the agent queried the pricing service and confirmed the ent...",
    "what_was_observed": "A research agent executing a 40-step plan against three MCP servers (a search tool, a document fetcher, and a citation resolver) crossed its 60% context budget at step 22. The compaction policy triggered hierarchical summarization: steps 1–15 were leaf-summarized into four chunk summaries, then rolled into one parent summary, freeing ~14k tokens. Step 18 had issued a `fetch_document(doc_id=\"AX-4471\", page=2)` call wh...",
    "condition_of_validity": "This boundary condition is *active* (the failure can occur) precisely when all four hold: 1. Compaction is **hierarchical and lossy over prose** — the summarizer is a generative model, not a deterministic extractor. 2. The agent has **in-flight tool calls with multi-part results** (pagination, streaming, chunked retrieval, async completion) whose completion ...",
    "decision_boundary": "The operational choice is where to draw the line between \"compactible prose\" and \"non-compactible protocol state.\" Three viable boundaries, in increasing strictness: - **Content/metadata split:** Summarizer is permitted to compress only the `content` field of a tool result; `call_id`, `status`, `continuation_token`, and `expected_parts` are extracted verbati...",
    "operational_effect": "Downstream of an orphaned tool call, the agent enters a state of **false evidentiary completeness**. It does not know it is missing data, because the summary asserted completeness. Every subsequent step that depends on the orphaned result inherits the false premise, and the error compounds silently — the citation resolver's page-4 reference is *accepted* rat..."
  },
  "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": "5e84e61c7334bcb903c339592d42ac5c46574b7a0b98708c00b5d200b1f3af66",
    "verified_classes": [
      "CompactionOrphanedToolCallError",
      "ToolCall",
      "ExecutorLedger",
      "CompactedContext"
    ],
    "verified_functions": [
      "commit_compaction",
      "open_call_ids"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionOrphanedToolCallError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
