- Added branch-detection logic in `ensure_workspace` to read the currently checked-out branch before reusing a workspace.
- Compared the checked-out branch to the mapped branch and logged a warning when they differed, then preserved the replayed branch.
- Added a regression test that renames a workspace branch and verifies a replayed checkout returns the renamed branch.