Make worktree directory keys collision-free #28

Closed
opened 2026-10-27 13:34:39 +00:00 by sam · 0 comments
Owner

Manager.Dir flattens owner and repo with a hyphen, so distinct repositories such as a-b/c and a/b-c share a task directory for equal issue numbers.

Acceptance criteria

Distinct owner/repo tuples always map to distinct contained paths; sequential and concurrent collision regressions cannot reuse, delete, reset, or push the other repository's clone.

Close reason

Fixed on main: Manager.Dir base64url-encodes owner and repo as separate path components (worktree.go:66-70), so a-b/c and a/b-c no longer collide. legacyDir+migrateLegacy migrate old flattened dirs only on exact origin match. Package tests pass.


Imported from beads archie-core-1ysw.2 · GitHub #592 · type bug · priority P1 · created 2026-08-22 · closed 2026-08-24

Manager.Dir flattens owner and repo with a hyphen, so distinct repositories such as a-b/c and a/b-c share a task directory for equal issue numbers. ### Acceptance criteria Distinct owner/repo tuples always map to distinct contained paths; sequential and concurrent collision regressions cannot reuse, delete, reset, or push the other repository's clone. ### Close reason Fixed on main: Manager.Dir base64url-encodes owner and repo as separate path components (worktree.go:66-70), so a-b/c and a/b-c no longer collide. legacyDir+migrateLegacy migrate old flattened dirs only on exact origin match. Package tests pass. --- _Imported from beads `archie-core-1ysw.2` · GitHub #592 · type bug · priority P1 · created 2026-08-22 · closed 2026-08-24_
sam added the highbug labels 2026-10-27 13:34:39 +00:00
sam self-assigned this 2026-10-27 13:34:39 +00:00
sam closed this issue 2026-10-27 13:34:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#28