dhnt kbAll pages

decision · candidate

Windows: go native first; WSL only with a recorded reason

Agents default to WSL on Windows; bashy is native on Windows, so plan native (bashy.exe, .bsh, winget/uv, vendor Windows builds) first and treat a native failure as a bashy gap — WHEN planning, delegating or reviewing any work on a Windows host, or about to run wsl, change .wslconfig or wsl --shutdown (keywords: windows, wsl, native, powershell, encodedcommand, winget, uv, wslconfig, memory cap, klatch, parity, cross-os, bias)

Verified 2026-11-13
2026-11-13: Windows test host — WSL ~31 GiB cap stalled a local video model at 26.7/27 GiB while the native process path had no such cap; WSL clock steps broke JWTs (2026-11-10); NTFS 0777 broke a fixture; one-line EncodedCommand requirement observed; operator called out the WSL-by-default bias · Bashy revision 536fc71bf21457eaa21ab4bb35cd574788d12f97

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

  1. Plan the native route first. Use the native bashy.exe, Bash# .bsh commands, tools pinned with winget or uv, and the vendor’s Windows build of a library (for example a Windows GPU build of PyTorch).
  2. 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.
  3. 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.
  4. 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)

Native Windows working notes

When WSL is the right call

Even then, keep live services’ container machines out of it, and never change .wslconfig or shut WSL down without the operator’s approval.