Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-workspace-model FR-009
Paths that are valid on Linux, macOS and Windows alike (commons 0002-workspace-modelFR-009 to FR-012): segment refuses what one of them would not take, repoPath joins segments, a pair of paths that are one after Unicode normalization and case folding are told apart from the ones that are not, and a path longer than Windows' limit is told as it is.
A segment is refused for: nothing in it, . and ..; <, >, :, ", /, \, |, ?, * and the control characters; a trailing dot or space; a Windows device name (CON, PRN, AUX, NUL, COM0 to COM9, LPT0 to LPT9, with the superscript digits ¹ ² ³ in their place, and CONIN$ and CONOUT$) in any case and with any extension (aux.git is AUX); more than 255 bytes in UTF-8; and a name that is not in Unicode normalization form NFC (a name typed on macOS in NFD would be another name there). Case folding is the upper case then the lower case of the NFC form, which makes Straße and STRASSE one name, as a case-insensitive file system does.
Whether a path, written as Windows writes it (C:\Users\a\workspaces\github.com\o\r), may be used: where long paths are not enabled, more than 259 characters are refused with the path named; where they are, no length is refused.
The paths that collide: every group of two or more items whose paths are equal after NFC and case folding (an item listed twice collides with itself), each member named, in the order of the first. id says what the path is for (a repository's remote, a worktree, a generated file).
The most characters of a repository's own path (the root and the repository's path under it) that leaves room for the files inside it (0002-workspace-modelFR-048).
A repository's own path, as the system writes it below the root (separator is \\ on Windows and / elsewhere), against the limits of FR-048: up to 150 characters it fits; over 150 it leaves no room for the files inside it; over 259 it is too long, whether or not long paths are enabled, because tools that work with a path do not all take a long one.