{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-verified-tool-call-provenance-when-hierarchical-summarization-checkpoints-compact-mid-execution",
  "title": "Why does an instance lose verified tool-call provenance when hierarchical summarization checkpoints compact mid-execution",
  "date_of_record": "2026 November 21",
  "scope": "Applies to long-horizon agents that persist state by recursively summarizing their own transcript into checkpoint tiers (leaf → mid → root) and then rehydrate the root summary as working context. Does not apply to agents that truncate by token budget without summarization, nor to agents that keep an append-only event log as the authoritative source of truth.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verified-tool-call-provenance-when-hierarchical-summarization-checkpoints-compact-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verified-tool-call-provenance-when-hierarchical-summarization-checkpoints-compact-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-verified-tool-call-provenance-when-hierarchical-summarization-checkpoints-compact-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a checkpoint can be asked to preserve: **narrative state** (what the agent believes it is doing) and **provenance state** (which claims are backed by which tool outputs, and with what confidence). Hierarchical summarization is a lossy compression operator tuned, implicitly, to preserve narrative. It is *not* provenance-preservin...",
    "what_was_observed": "A 9-hour infrastructure-mutation agent ran with leaf checkpoints every 20 tool calls, mid-tier compaction every 6 leaf nodes, and a root rehydration into fresh context on each compaction. The task: rotate a database credential across 40 services, verifying each service is healthy before proceeding. Trigger condition: at leaf node L14, the agent had executed `rotate_secret(service=\"billing-api\")` and received `{\"exit_...",
    "condition_of_validity": "The invariant that must hold for checkpoint-based continuity to be safe: > **Every claim in a rehydrated checkpoint that gates an irreversible action must be traceable to a raw tool-call record that survives compaction, and the compaction operator must never introduce tokens not present in the source span.** This fails whenever any of the following hold, and...",
    "decision_boundary": "The operational line is: **does the rehydrated claim gate an irreversible action?** - If the claim only shapes exploration (what to look at next), summarized prose is acceptable — the cost of a wrong belief is a wasted call, self-correcting. - If the claim gates a mutation, a deletion, a `SKIP`, or a `SUCCESS` declaration, the instance must be able to walk f...",
    "operational_effect": "Architecturally, this forces three changes. First, **evidence must be factored out of prose**: checkpoints carry a structured ledger (append-only, content-addressed by call digest) that compaction may reorder but never rewrite or drop. Second, **compaction must be phase-bounded**: never fire mid-episode; a multi-call operation is atomic with respect to check..."
  },
  "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": "9e372e4f91e6d8fb8fe60d9f6a2447acba17b1d8359b385577ca08f71a00fb80",
    "verified_classes": [
      "ProvenanceClass",
      "ProvenanceLaunderingError",
      "EvidenceRecord",
      "Claim",
      "Checkpoint"
    ],
    "verified_functions": [
      "rehydrate_and_gate",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
