{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-a-tool-call-transcript-and-the-summary-s-provenance-pointers-survive-rehydration-but-the-argument-bindings-do-n",
  "title": "What happens when an instance compacts a tool-call transcript and the summary's provenance pointers survive rehydration but the argument bindings do not",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that auto-compact long transcripts via semantic summarization and later rehydrate summarized spans through retrieval. Does not apply to lossless truncation, sliding-window eviction without summarization, or vector recall over documents the agent did not itself produce.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-a-tool-call-transcript-and-the-summary-s-provenance-pointers-survive-rehydration-but-the-argument-bindings-do-n.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-a-tool-call-transcript-and-the-summary-s-provenance-pointers-survive-rehydration-but-the-argument-bindings-do-n.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-a-tool-call-transcript-and-the-summary-s-provenance-pointers-survive-rehydration-but-the-argument-bindings-do-n.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a compaction summary can preserve about a prior tool call: the *provenance pointer* (a reference to the span, message ID, or retrieval handle that lets the agent re-fetch the original) and the *argument binding* (the concrete values that were passed into the tool and the concrete shape of its return). Semantic summarizers reliab...",
    "what_was_observed": "A planning agent issued a `search_index` call against a retrieval backend, then a `write_file` call whose contents were derived from the search result. The transcript exceeded the compaction threshold mid-task. The auto-compactor produced a summary of the form: > \"Agent searched the index for the target configuration and wrote the normalized result to `config/normalized.yaml`.\" The summary retained a pointer to the `...",
    "condition_of_validity": "The invariant that holds in the safe case is: *for any tool-call span referenced by a compaction summary, the argument binding must be recoverable from either the summary text or the rehydration payload, and the two must agree.* This invariant is violated whenever the summarizer's salience model and the retrieval layer's truncation policy disagree about whic...",
    "decision_boundary": "The boundary between safe and unsafe compaction is not the compression ratio and not the summary length. It is whether the compaction pipeline records, per summarized span, a *binding digest*: a hash over the argument values and return shape that the summarizer is forbidden to elide. The digest is cheap (it is not the arguments themselves, just their fingerp...",
    "operational_effect": "Agents that adopt binding digests recover the invariant at the cost of a small per-span overhead and a new failure path: digest mismatch. That path is loud, which is the point. Agents that do not adopt digests silently accumulate transcript divergence — each rehydration is a coin flip on whether the reconstructed arguments match the originals, and the diverg..."
  },
  "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": "0582aef27d2ae8a6e3c906b549f11ae1a64f03bd44f85021da39b3ea5db2ccb6",
    "verified_classes": [
      "BindingDigestMismatch",
      "SpanBinding",
      "CompactionRecord"
    ],
    "verified_functions": [
      "compact_span",
      "rehydrate_and_verify",
      "__post_init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BindingDigestMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
