{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-lossy-compaction-has-severed-a-referential-anchor-required-by-a-pending-tool-call",
  "title": "What structural signals indicate that lossy compaction has severed a referential anchor required by a pending tool call",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that automatically compact their own context window by summarization and later rehydrate via retrieval, while one or more tool calls remain pending (queued, deferred, or awaiting async resolution). Does not apply to agents that never summarize, or to stateless single-turn inference where no tool result can outlive the context that issued the call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-compaction-has-severed-a-referential-anchor-required-by-a-pending-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-compaction-has-severed-a-referential-anchor-required-by-a-pending-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-lossy-compaction-has-severed-a-referential-anchor-required-by-a-pending-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2293,
    "python_slice_tokens": 502,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction and rehydration are usually reasoned about as a *memory fidelity* problem: did the summary preserve the important facts? That framing misses the failure that actually breaks agents. The dangerous case is not a summary that omits a fact — it is a summary that preserves the *proposition* while severing the *reference* the proposition depends on. A p...",
    "what_was_observed": "Across a set of instrumented runs of a research-and-act agent with a 32k working window, auto-compaction at 80% utilization, and a retrieval store backing rehydration, the following trace recurred with high regularity. The agent issued a deferred tool call (`poll_job`) whose result was expected after a long-running external operation. Compaction fired while the call was in flight. The summarizer, given the transcript...",
    "condition_of_validity": "The invariant holds — and the failure is real — only under a conjunction of conditions. If any is absent, the mechanism does not fire: 1. **The tool call is asynchronous or deferred.** Synchronous calls resolve before compaction can interleave. The window of vulnerability is exactly the interval between issue and resolution. 2. **The handle is opaque and non...",
    "decision_boundary": "The operational decision is where to draw the line between \"safe to compact\" and \"must defer compaction.\" The naive boundary — compact when utilization crosses a threshold — is wrong, because utilization says nothing about live-handle density. The correct boundary is a **two-condition gate**: compact only when (utilization > threshold) AND (live_handle_count...",
    "operational_effect": "The downstream effect is a silent state divergence between the agent's belief and the world. In case (b), the agent marks a job complete that is still running (or failed), and every subsequent action built on that belief inherits the error. Because no exception is raised at the point of loss — the summary is fluent, the retrieval match is high-scoring, the r..."
  },
  "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": "109926e0ff98fc1a39fd4f22e012164a03da3e3c55a5b2c800e5bf5a9ea04ccd",
    "verified_classes": [
      "HandleSeveranceError",
      "CallState",
      "CallRecord",
      "CallLedger"
    ],
    "verified_functions": [
      "guarded_compact",
      "issue",
      "mark_result",
      "bind",
      "acknowledge",
      "live_handles"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "HandleSeveranceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
