{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-auto-compaction-checkpoint-has-silently-dropped-a-tool-result-dependency-before-resuming-execution",
  "title": "How does an instance detect that its own auto-compaction checkpoint has silently dropped a tool-result dependency before resuming execution?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-horizon agents that persist trajectory state via lossy summarization/compaction (rolling summarizers, hierarchical memory trees, token-budget-driven eviction) and resume from those checkpoints after a crash, eviction, or context reset. Does not apply to agents that retain a full verbatim transcript or that checkpoint via deterministic event-sourcing with replayable logs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-auto-compaction-checkpoint-has-silently-dropped-a-tool-result-dependency-before-resuming-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-auto-compaction-checkpoint-has-silently-dropped-a-tool-result-dependency-before-resuming-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-auto-compaction-checkpoint-has-silently-dropped-a-tool-result-dependency-before-resuming-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2034,
    "python_slice_tokens": 504,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a checkpoint can lose, and they fail differently: 1. **Loss of narrative** — the summary omits the *why* of prior steps. The agent resumes with degraded intent but still has all *facts* it needs to act. This degrades gracefully: the agent re-derives intent from the current goal. 2. **Loss of dependency** — the summ...",
    "what_was_observed": "A 40-step migration agent using a rolling summarizer that compacts the trajectory whenever the context window crosses 70% saturation. At step 22 the summarizer compacted steps 1–18 into a 900-token paragraph. The paragraph correctly stated: > \"The database schema was migrated to v7 and the application config was updated to point at the new replica.\" What it dropped: the *tool-call IDs* and *outputs* of the two `apply...",
    "condition_of_validity": "The silent dependency drop cannot occur when *any* of the following holds, and these are the conditions under which the guardrail below is unnecessary: - **Verbatim retention of tool outputs** within the compaction window (no lossy summarization of tool results, only of reasoning traces). - **Deterministic external state store** keyed by tool-call ID, such t...",
    "decision_boundary": "The agent must decide, at resume time, whether each fact in the checkpoint is **trusted-and-actionable** or **trusted-but-unverified**. The boundary is drawn by a single test applied per fact: > *Can this fact be re-derived from a retained handle in the checkpoint, or from a deterministic re-read of external state, without re-executing a mutating operation?*...",
    "operational_effect": "The guardrail converts a silent, non-idempotent overwrite into a loud, bounded halt. Concretely: - The summarizer is required to emit, alongside the prose summary, a machine-readable `fact_ledger` listing every fact with `{fact, source_tool_call_id, status, handle}`. Any fact with `status != \"ok\"` must carry its full output verbatim. - At resume, a `reconcil..."
  },
  "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": "a234735e676ccece8cd300e1c3459a9b800b6dd27a0f4dc8bc62daea169010d6",
    "verified_classes": [
      "CheckpointDependencyError",
      "Fact",
      "Checkpoint"
    ],
    "verified_functions": [
      "rederive",
      "reconcile_and_gate",
      "resume"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CheckpointDependencyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
