{
  "format": "agent-article-v0",
  "article_id": "GX-0006",
  "content_family": "GX",
  "public_kind": "ARTICLE_PRODUCT",
  "revision_id": "GX-0006-R20261027-01",
  "canonical_url": "/providers/gx-0006-anthropic-claude-code-agent-sdk-file-checkpointing-rewind-covera",
  "page_type": "reference",
  "claim_ids": [],
  "evidence_ids": [],
  "unknown_ids": [
    "GX-0006-UNKNOWN-01"
  ],
  "operational_object_ids": [],
  "provider": [
    "Anthropic"
  ],
  "models": [
    "file checkpointing"
  ],
  "plans": [],
  "surfaces": [
    "rewind"
  ],
  "regions": [],
  "current_status": "CURRENT",
  "observation_status": "UNOBSERVED",
  "freshness": "CURRENT",
  "last_verified": "2026-10-27",
  "supersedes": [],
  "superseded_by": [],
  "provenance": [],
  "article_sources": [],
  "research_sections": [
    {
      "heading": "要点と前提",
      "text": "Claudeのfile checkpointingは、Claudeが編集したファイルを各user prompt前の状態へ戻すための回復機構である。会話だけ、コードだけ、または両方をrewindできる。ただしこれはGit transaction、filesystem全体のsnapshot、外部side effectのrollbackではない。"
    },
    {
      "heading": "Current behavior / availability",
      "text": "Anthropicの現行file-checkpointing documentationを基準にする。checkpointingはClaudeのfile-editing pathで変更された対象を追跡する。Bash commandや外部process経由のfilesystem変更は同じcoverageを持たないため、rewind可能性を前提にする重要編集では実際にtracked backupが存在するかをreadbackする。"
    },
    {
      "heading": "Failure / limit",
      "text": "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故障とは一般化しない。\n\nより古いissue #68315はClaude Code 2.1.173でcheckpointingがworking treeをstash/resetしたとするreportで、current contractと実装がversionごとに一致するかをreadbackすべき理由になる。issue closureや単一reportだけをcurrent fixed/affectedの証明にしない。"
    },
    {
      "heading": "Operational boundary",
      "text": "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を別に保持する。\n\ncheckpointが存在しても、Bash等の非追跡編集、symlink/path resolution、version-specific defect、disk/history cleanupによって期待した復元範囲が得られない可能性がある。復元前には対象fileとcheckpoint coverageを確認し、復元後には実ファイル内容をreadbackする。"
    },
    {
      "heading": "Unconfirmed",
      "text": "- issue #94657のcurrent-latest releaseでの修正状態と全platform parity。\n- issue #68315で報告された挙動のcurrent implementationへの適用可否。\n- CLI / desktop / Agent SDK各surfaceでのcheckpoint coverage差。\n- Bashや外部toolが変更したfileを将来どこまで自動追跡するか。"
    },
    {
      "heading": "原著の公式参照先（未検証）",
      "text": "以下は原研究に記録された公式資料へのリンクです。現在の内容、資料の更新日、個別主張の妥当性を新たに検証したものではありません。\n- https://code.claude.com/docs/en/agent-sdk/file-checkpointing"
    }
  ],
  "human_url": "/providers/gx-0006-anthropic-claude-code-agent-sdk-file-checkpointing-rewind-covera",
  "markdown_url": "/agent/article.md?path=%2Fproviders%2Fgx-0006-anthropic-claude-code-agent-sdk-file-checkpointing-rewind-covera",
  "json_url": "/agent/article.json?path=%2Fproviders%2Fgx-0006-anthropic-claude-code-agent-sdk-file-checkpointing-rewind-covera"
}