Pruning could delete unlocked intermediate nodes between locked snapshots and the root, creating orphan branches. Now ancestors of all locked snapshots are added to the protected set in both regular and node capture paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>