On Windows the shell is Git for Windows' bash, never WSL's launcher; no command Troupe starts has the release's own runtime on its PATH; grep searches a file its path names; and a glob that matched nothing says so¶
Decision 776 · accepted · 2026-10-04
- The shell ran in Linux.
windows_shell/0took the firstbashthe VM found, and on a WindowsPATHthat isC:\Windows\System32\bash.exewherever WSL is installed: the launcher of a Linux distribution. Every command ran there, in another operating system, while the tool's description told the model "the host is Windows"; there the Windowselixiris a shell script that finds noerl, so no run could execute a test.Troupe.Tools.Shell.windows_bash/2now looks for Git for Windows' bash beside thegiton thePATH, then where its installer puts it (the program files directories, and%LOCALAPPDATA%\Programs\Gitfor a per-user install), then for anybash.exeon thePATHoutside the Windows directory and theWindowsAppsaliases; with none it is PowerShell, as before. A person who wants WSL runs Troupe in WSL, where the host and the shell agree. - And then
elixirdied at boot. With Git's bash, the next layer showed: the VM puts its own runtime'sbinfirst on thePATHits children inherit, and in a release (the installedtroupeandtroupe-daemon) that runtime'serlhas no boot file, so theelixirormixa command ran found it first and stopped withcannot get bootfile ... start.boot. Decision 773 found this for the bench's outcome commands and fixed it there alone.Troupe.Reaper.child_env/0now gives every command started through reaper (the shell tool,grep's ripgrep, git, MCP servers) aPATHwithout the release's runtime, and the bench's outcome uses the same; a caller's own variables still win. grepon one file. Itspathwas taken for a directory: ripgrep ran in it and the built-in scan globbed under it, so a file found nothing, and the answer was "No matches." for a search of the very file that held them. Now a file is searched alone: ripgrep beside it with--with-filename, the built-in scan on that file, both answeringpath:line: textrelative to the workspace as before; the schema says a directory or one file.- A glob that matched nothing. The tool's description gave
**/*.exas its example, and all threerename_symbolruns narrowed with exactly that in a project of.exsfiles, were told "No matches.", and concluded the function had no callers. The example is gone, the description says to check what the files are called before narrowing by extension, and an empty search with a glob answersNo matches in files matching **/*.ex., so a glob that missed is not taken for an absent name. - Not changed: the
buildagent's "calltodo_writefirst" for more than two steps, which took about a third ofqwen3-235b's calls on these small tasks and onefollow_stepsrun's last call; a bench of real work should say whether that is too much before it moves.
Governs: apps/troupe_core/lib/troupe/bench/scenario.ex, apps/troupe_core/lib/troupe/reaper.ex, apps/troupe_core/lib/troupe/tools/grep.ex, apps/troupe_core/lib/troupe/tools/shell.ex