Agents tend to treat WSL as the default way to work on Windows. Most of what they learned assumes Linux and CUDA, and native Windows means PowerShell quoting and different paths. bashy runs natively on Windows, so on a Windows host the native path comes first. WSL is a fallback that needs a recorded reason.
Rule
- Plan the native route first. Use the native
bashy.exe, Bash#.bshcommands, tools pinned withwingetoruv, and the vendor’s Windows build of a library (for example a Windows GPU build of PyTorch). - Use WSL only when a native path is proven missing. Write down why in the story or evidence: the command tried, the error, and the missing piece.
- A native failure is a bashy gap. File it (a todo with the failing command) instead of silently moving the work into WSL. Windows users hit the same gap.
- Review delegated plans for silent WSL defaults. A worker plan that
starts with
wsl -d ...and gives no reason goes back for a native attempt.
What WSL costs (observed on a Windows test host)
- Memory cap. WSL gets a fixed share of RAM (about a quarter by default, ~31 GiB on a 128 GB host). A local video model stalled at 26.7 of 27 GiB. A native process is not held to that cap, and an integrated GPU with shared memory can use far more.
- Raising the cap needs
.wslconfigpluswsl --shutdown. That restarts every distro and any container machine running in WSL, which takes live services down. - Clock steps. Time sync inside the distro stepped the clock back every ~30 s, so freshly issued JWTs were “not valid yet”.
- File permissions. Files copied from NTFS show up as 0777, which breaks permission-sensitive fixtures.
- Two environments to provision and claim, and evidence that no longer matches what a Windows user runs.
Native Windows working notes
- Remote PowerShell: pass scripts as
powershell -NoProfile -EncodedCommand <base64 of UTF-16LE>, and encode on ONE line (base64 | tr -d '\n'). A wrapped encoding fails as “command not found” fragments. A statement that errors can blank the whole output, so keep probes small. - Call native executables by full path with forward slashes. Prefer
uvfor a pinned Python, andwingetfor system tools. - Cross-OS
.bshcommands keep one interface. OS-specific provisioning goes inside the command (case $(uname)/OS checks) and is not split into a Linux-only path.
When WSL is the right call
- The tool has no Windows build and none is planned (record the upstream issue).
- The job is a Linux container gate that must match a Linux venue, for example a sealed Linux test image.
Even then, keep live services’ container machines out of it, and never
change .wslconfig or shut WSL down without the operator’s approval.