Build checkpoint subtree paths via path.Join helper (no tree change) · Entire

Build checkpoint subtree paths via path.Join helper (no tree change)

318e49e·

Soph·2w ago·2 files·+117 added/-66 removed

A reviewer flagged fmt.Sprintf("%s%d/%s", basePath, idx, paths.MetadataFileName) as looking like a missing slash — it's correct only because basePath carries a trailing "/". Replace the string-concat path construction with a checkpointSubtreePath(base, segs...) helper over stdlib path.Join, so paths join correctly without relying on that invariant.

No behavior change: committed-tree assertions (checkpoint write/read, tripwire, update), integration (378), and both canary modes (git-branch 59/59, git-refs 58/59 +1 skip) are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Sessions

Changes

2