Resolve the sessions directory the same way the pre-commit producer and the orchestrator do: the canonical common `.atomic` (review R9). Reading the worktree-local `.atomic/sessions` instead would strand the producer's captures away from linked-worktree consumers.
(repo_root: &Path)
| 264 | /// the worktree-local `.atomic/sessions` instead would strand the producer's |
| 265 | /// captures away from linked-worktree consumers. |
| 266 | fn sessions_dir_for(repo_root: &Path) -> std::path::PathBuf { |
| 267 | atomic_repository::Repository::canonical_dot_dir(repo_root) |
| 268 | .map(|dot| dot.join("sessions")) |
| 269 | .unwrap_or_else(|_| repo_root.join(".atomic").join("sessions")) |
| 270 | } |
| 271 | |
| 272 | /// Semantic checkpoint equality (review R5). |
| 273 | /// |
no outgoing calls
no test coverage detected