Review follow-ups for the named-plan flow in init-session.ps1:
- Build the slug with -creplace. The case-insensitive -replace lets
letters that .NET folds to ASCII, such as a dotted capital I, survive
into the plan id, which the resolvers and the selector then reject.
A slug that is still not ASCII falls back to untitled-<id>.
- Write the plan files with Out-File -LiteralPath. Once the target path
is absolute, -FilePath treats [ and ] as wildcards and pwsh fails the
write while the script still reports success.
- Inherit the root .mode marker case-sensitively, matching
init-session.sh and the injector.
- Treat an empty positional name as legacy root mode and report
"untitled" for -PlanDir without a name, both like the shell twin.
The tests drop a developer's PWF_PLAN_ROOT pin from the child
environment and cover each item, with the bracketed-path case run
under pwsh only because Windows PowerShell 5.1 relocates its own cwd
for such paths.