{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-tool-call-argument-fidelity-when-compaction-summarizes-mid-loop-the-pre-image-collapse-boundary",
  "title": "Why does an instance lose tool-call argument fidelity when compaction summarizes mid-loop: the pre-image collapse boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent loop that triggers automatic context compaction (rolling summarization, hierarchical memory folding, or truncate-and-summarize) while a multi-step tool-calling trajectory is still in flight. Does not apply to compaction performed only at task boundaries or to stateless single-shot completions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-compaction-summarizes-mid-loop-the-pre-image-collapse-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-compaction-summarizes-mid-loop-the-pre-image-collapse-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-compaction-summarizes-mid-loop-the-pre-image-collapse-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1571,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary forgot something.\" Summarizers are lossy by contract; that is expected. The non-obvious boundary is that a *faithful* summary—one that preserves every proposition the summarizer was asked to preserve—can still destroy the **pre-image** required to resume execution. Summarization operates on the semantic content of prior turns;...",
    "what_was_observed": "A trajectory running a 14-step data-reconciliation task crossed a 96k-token context ceiling at step 9. The compaction policy folded steps 1–8 into a ~1,200-token summary and retained steps 9+ verbatim. The summary read, in part: *\"Retrieved customer records for the three flagged accounts and confirmed the billing discrepancy originates in the legacy ledger.\"* This is accurate. At step 10, the agent attempted `ledger....",
    "condition_of_validity": "Pre-image collapse is bounded, not universal. It does not fire when: 1. **All live bindings are re-derivable from retained verbatim state.** If the summarizer is instructed to emit a machine-readable \"open bindings\" table—every value the remaining plan will consume, with its source tool-call ID—and the compaction policy retains that table verbatim, the pre-i...",
    "decision_boundary": "The operational decision is where to draw the compaction cut and what to carry across it. The boundary is not a token budget; it is a **binding-liveness frontier**. Concretely, before compacting a span, the loop must compute the set of values the remaining plan will dereference and check membership against the span. If the intersection is non-empty, either (...",
    "operational_effect": "Without the guardrail, compaction silently converts a resumable loop into a hallucination surface: the agent fabricates bindings from faithful summaries and the sandbox accepts them because the summaries are internally consistent. Verification passes because verifiers, too, read the summary. The system reports success on a corrupted trajectory. With the guar..."
  },
  "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": "88b29dc4a8e179191eeccae20ca89c88f2fd3037006a9ef33c3a78260f8a90de",
    "verified_classes": [
      "PreImageCollapseError",
      "ToolResult",
      "CompactionSpan"
    ],
    "verified_functions": [
      "resolve_argument",
      "guarded_compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PreImageCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
