# Anthropic Claude Code / Agent SDK — file checkpointing / rewind coverage and recovery boundaries

ARTICLE_ID: GX-0006
CONTENT_FAMILY: GX
PUBLIC_KIND: ARTICLE_PRODUCT
REVISION_ID: GX-0006-R20261027-01
CURRENT_STATUS: CURRENT
OBSERVATION: UNOBSERVED
FRESHNESS: CURRENT
PAGE_TYPE: reference
CANONICAL_URL: /providers/gx-0006-anthropic-claude-code-agent-sdk-file-checkpointing-rewind-covera
CLAIM_IDS: none
EVIDENCE_IDS: none
UNKNOWN_IDS: GX-0006-UNKNOWN-01
OPS_IDS: none

## Summary
Claudeのfile checkpointingは、Claudeが編集したファイルを各user prompt前の状態へ戻すための回復機構である。会話だけ、コードだけ、または両方をrewindできる。ただしこれはGit transaction、filesystem全体のsnapshot、外部side effectのrollbackではない。

## Current judgment
Claudeのfile checkpointingは、Claudeが編集したファイルを各user prompt前の状態へ戻すための回復機構である。会話だけ、コードだけ、または両方をrewindできる。ただしこれはGit transaction、filesystem全体のsnapshot、外部side effectのrollbackではない。

## Scope
Anthropicの現行file-checkpointing documentationを基準にする。checkpointingはClaudeのfile-editing pathで変更された対象を追跡する。Bash commandや外部process経由のfilesystem変更は同じcoverageを持たないため、rewind可能性を前提にする重要編集では実際にtracked backupが存在するかをreadbackする。

## Confirmed

## UNKNOWN
- GX-0006-UNKNOWN-01: - issue #94657のcurrent-latest releaseでの修正状態と全platform parity。
- issue #68315で報告された挙動のcurrent implementationへの適用可否。
- CLI / desktop / Agent SDK各surfaceでのcheckpoint coverage差。
- Bashや外部toolが変更したfileを将来どこまで自動追跡するか。

## Evidence
- none listed on this page

## Failure / limits
2026-09-16に報告されたauthor-maintained issue #94657では、Claude Code 2.1.273のauto modeがfile変更をBashへ誘導し、124 promptsのsessionで96 Bash calls、Edit/Write/NotebookEdit 0、14 file-history snapshotsすべてtrackedFileBackups空となり、/rewindにRestore codeが出なかった。これはversion/path scoped counterevidenceであり、全versionのcheckpointing故障とは一般化しない。

より古いissue #68315はClaude Code 2.1.173でcheckpointingがworking treeをstash/resetしたとするreportで、current contractと実装がversionごとに一致するかをreadbackすべき理由になる。issue closureや単一reportだけをcurrent fixed/affectedの証明にしない。
## 要点と前提
Claudeのfile checkpointingは、Claudeが編集したファイルを各user prompt前の状態へ戻すための回復機構である。会話だけ、コードだけ、または両方をrewindできる。ただしこれはGit transaction、filesystem全体のsnapshot、外部side effectのrollbackではない。

## Current behavior / availability
Anthropicの現行file-checkpointing documentationを基準にする。checkpointingはClaudeのfile-editing pathで変更された対象を追跡する。Bash commandや外部process経由のfilesystem変更は同じcoverageを持たないため、rewind可能性を前提にする重要編集では実際にtracked backupが存在するかをreadbackする。

## Failure / limit
2026-09-16に報告されたauthor-maintained issue #94657では、Claude Code 2.1.273のauto modeがfile変更をBashへ誘導し、124 promptsのsessionで96 Bash calls、Edit/Write/NotebookEdit 0、14 file-history snapshotsすべてtrackedFileBackups空となり、/rewindにRestore codeが出なかった。これはversion/path scoped counterevidenceであり、全versionのcheckpointing故障とは一般化しない。

より古いissue #68315はClaude Code 2.1.173でcheckpointingがworking treeをstash/resetしたとするreportで、current contractと実装がversionごとに一致するかをreadbackすべき理由になる。issue closureや単一reportだけをcurrent fixed/affectedの証明にしない。

## Operational boundary
checkpoint成功は、外部API、database、MCP tool、shell scriptが既に起こしたside effectを取り消さない。重要操作ではfile rewindとbusiness transaction recoveryを分離し、外部system of recordをreadbackする。Git status/commit、artifact hash、database stateなど必要なauthoritative stateを別に保持する。

checkpointが存在しても、Bash等の非追跡編集、symlink/path resolution、version-specific defect、disk/history cleanupによって期待した復元範囲が得られない可能性がある。復元前には対象fileとcheckpoint coverageを確認し、復元後には実ファイル内容をreadbackする。

## Unconfirmed
- issue #94657のcurrent-latest releaseでの修正状態と全platform parity。
- issue #68315で報告された挙動のcurrent implementationへの適用可否。
- CLI / desktop / Agent SDK各surfaceでのcheckpoint coverage差。
- Bashや外部toolが変更したfileを将来どこまで自動追跡するか。

## 原著の公式参照先（未検証）
以下は原研究に記録された公式資料へのリンクです。現在の内容、資料の更新日、個別主張の妥当性を新たに検証したものではありません。
- https://code.claude.com/docs/en/agent-sdk/file-checkpointing

NEXT: /agent/start.json
STOP: This is a knowledge projection, not an execution order.