{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-tool-call-argument-fidelity-when-a-lossy-compaction-summary-is-rehydrated-from-retrieval-backed-reconstruction",
  "title": "Why does an instance lose tool-call argument fidelity when a lossy compaction summary is rehydrated from retrieval-backed reconstruction?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-running agent instances that auto-compact their working context via lossy summarization and later reconstruct dropped spans through retrieval against an episodic store. Does not apply to instances whose compaction is lossless (verbatim eviction with full re-read) or whose entire task fits within one context window without eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-a-lossy-compaction-summary-is-rehydrated-from-retrieval-backed-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-a-lossy-compaction-summary-is-rehydrated-from-retrieval-backed-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-call-argument-fidelity-when-a-lossy-compaction-summary-is-rehydrated-from-retrieval-backed-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct operations that practitioners routinely conflate under \"compaction\": *summarization* (a lossy, model-generated semantic digest of prior turns) and *reconstruction* (re-fetching verbatim spans from an episodic store keyed by retrieval). The failure mode in this record lives at the seam between them. When a summary replaces the original ...",
    "what_was_observed": "An agent executing a multi-step provisioning task issued a tool call early in its run: After roughly 70% of the context window filled, the auto-compaction policy fired. The summarizer emitted, for the relevant turn: > \"Agent provisioned a standard-tier resource in the eastern US region with a quota near 50.\" Note the drift: `us-east-2` → \"eastern US region\"; `quota=48` → \"near 50\". The summary is *semantically faithf...",
    "condition_of_validity": "This failure is bounded by a specific conjunction of conditions, and does *not* occur when any one is absent: 1. **Lossy summarization must elide a literal that is later load-bearing.** If the summary retains exact arguments (some policies do — e.g., \"structured compaction\" that preserves tool-call JSON verbatim and summarizes only prose), the seam is safe. ...",
    "decision_boundary": "The architectural guardrail is a **provenance-tagged context ledger** with explicit dependency invalidation on reconstruction. Concretely, the boundary decision is: - Every derived value in working memory must carry a `derived_from` pointer to the span(s) it was computed from, and a `provenance` tag of either `verbatim` or `summarized`. - On any reconstructi...",
    "operational_effect": "When the guardrail is absent, the observable effect is a class of *silent, delayed, locally-valid* errors that surface only at tool boundaries or downstream audits — typically 2–4 turns after reconstruction, and typically as an argument-mismatch or quota/ID collision rather than as a reasoning error. Because each step is individually defensible, standard ver..."
  },
  "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": "8fdcf2dbc8a85bd1525c73ec790e095152ebb85c68f2a54eb7478f198e960b2f",
    "verified_classes": [
      "StaleDerivationError",
      "DerivedValue",
      "ContextLedger"
    ],
    "verified_functions": [
      "compute_headroom",
      "add_derived",
      "reconstruct",
      "use"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleDerivationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
