Repository navigation
fix(wsl): pass guest argv verbatim through --exec - #15039
Conversation
`wsl.exe <...> -- <argv>` expands `$name` in every argument against the
guest environment before the guest ever runs. It does this even when no
shell is involved, so `-- /usr/bin/printf %s '$HOME'` prints /home/you.
Every WSL invocation went through that preprocessor, so scripts arrived
already rewritten: `awk '{print $2}'` lost its field reference, and a
POSIX script asking for the literal `$HOME` got the expanded path.
`escapeWslShCommandForWindows` tried to compensate by escaping `$`, but
it skipped any `$` preceded by a backslash, so a script containing `\$`
was still corrupted -- and half the call sites never applied it at all.
Route every invocation through `--exec`, which passes argv through
untouched, and delete the escaper. The direct-git path already used
`--exec`, so this is not a new compatibility dependency.
A guard test fails if the `--` form reappears anywhere in the tree.
Net -50 lines of production code.
📝 WalkthroughWalkthroughThe change standardizes WSL invocations on 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/shared/wsl-login-shell-command.ts (1)
5-14: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCondense the repeated
--execcomments.Keep the reason for
--exec, but state it in one short comment at each site.
src/shared/wsl-login-shell-command.ts#L5-L14: reduce the JSDoc to one concise statement about preserving guest-shell$namereferences.src/shared/wsl-login-shell-command.test.ts#L165-L167: reduce the test comment to one concise statement about--execpreserving argv.As per coding guidelines: “Comments must be concise, non-obvious, and brief—prefer one line.”
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 66c8085c-dae4-41c6-8525-cb97d8578459
📒 Files selected for processing (46)
src/main/claude-accounts/claude-account-service-login-process.test.tssrc/main/claude-accounts/runtime-auth-service.tssrc/main/claude-accounts/service.tssrc/main/cli/wsl-cli-installer.tssrc/main/codex-accounts/runtime-home-service.tssrc/main/codex-accounts/runtime-home-wsl-session-bridge.test.tssrc/main/codex-accounts/service-wsl-accounts.test.tssrc/main/codex-accounts/service.tssrc/main/codex-accounts/wsl-codex-command.test.tssrc/main/codex-accounts/wsl-codex-command.tssrc/main/codex/codex-wsl-hook-install-plan.test.tssrc/main/codex/codex-wsl-hook-install-plan.tssrc/main/codex/wsl-codex-session-bridge.test.tssrc/main/codex/wsl-codex-session-bridge.tssrc/main/daemon/pty-subprocess-wsl-launch.test.tssrc/main/git/runner-command-exec.test.tssrc/main/git/runner-wsl-gh-fallback.test.tssrc/main/git/runner.tssrc/main/git/wsl-git-read-environment.tssrc/main/hooks.test.tssrc/main/hooks.tssrc/main/ipc/filesystem-watcher-wsl.test.tssrc/main/ipc/filesystem-watcher-wsl.tssrc/main/ipc/preflight-agent-detection.test.tssrc/main/ipc/preflight-host-cli-status.test.tssrc/main/ipc/preflight-wsl-agent-detection.test.tssrc/main/ipc/preflight-wsl-agent-detection.tssrc/main/ipc/preflight-wsl-command.tssrc/main/local-worktree-filesystem.tssrc/main/providers/local-pty-provider-windows-shell-launch.test.tssrc/main/providers/windows-shell-args.test.tssrc/main/providers/windows-shell-args.tssrc/main/rate-limits/claude-pty.tssrc/main/rate-limits/codex-fetcher.test.tssrc/main/rate-limits/codex-fetcher.tssrc/main/skills/claude-plugin-skill-sources-wsl.tssrc/main/skills/skill-discovery-wsl.tssrc/main/skills/skill-wsl-provider-detection.tssrc/main/text-generation/commit-message-text-generation-local-subprocess.test.tssrc/main/text-generation/commit-message-text-generation-model-discovery.test.tssrc/main/wsl.test.tssrc/main/wsl.tssrc/shared/posix-command-path-lookup.test.tssrc/shared/wsl-exec-mode-separator.test.tssrc/shared/wsl-login-shell-command.test.tssrc/shared/wsl-login-shell-command.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
| it('keeps Linux-side shell variable expansion intact for the guest shell', () => { | ||
| const shellCommand = buildWslCodexSessionBridgeShellCommand({ | ||
| systemSessionsRoot: '/home/alice/.codex/sessions', | ||
| managedSessionsRoot: '/home/alice/.local/share/orca/codex-runtime-home/home/sessions' | ||
| }) | ||
|
|
||
| expect(shellCommand).toContain('\\$source_sessions_root') | ||
| expect(shellCommand).toContain('\\$source_file') | ||
| expect(shellCommand).toContain('\\$((scanned_files + 1))') | ||
| expect(shellCommand).toContain('$source_sessions_root') | ||
| expect(shellCommand).toContain('$source_file') | ||
| expect(shellCommand).toContain('$((scanned_files + 1))') |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Distinguish unescaped variables from escaped variables.
toContain('$source_sessions_root') also matches '\$source_sessions_root'. The same issue applies to $source_file and $((scanned_files + 1)). The test can pass after Windows-specific escaping is reintroduced. Assert exact unescaped fragments or assert that the backslash-prefixed forms are absent.
An audit of every wsl.exe invocation found sites the first pass missed, including two it actively broke: - config/scripts/wsl-git-shell-benchmark.mjs imported escapeWslShCommandForWindows, which no longer exists, so the script threw on startup. Its wslShellArgs helper also still used `--`; the file already had an --exec helper, so route both call sites there. - classifySubprocessCommand unwrapped `wsl.exe <...> -- <binary>` by breaking on `--` alone. With every Orca spawn now on --exec it never found the guest binary and bucketed all WSL subprocesses as plain "wsl", losing the git/gh/glab breakdown. Break on either separator, since foreign wsl.exe processes still use `--`. CliSkillRuntimeSetup builds its setup command as a template literal rather than an argv array, so no array-shaped search could see it. Its decoder accepts both separators so commands persisted before this change still decode. The guard now scans config/ and tests/ as well as src/, and checks the command-string spelling alongside the argv one — the two shapes that have each shipped a regression. It skips comment lines so prose about the old form stays allowed, and asserts it scanned a plausible file count so a bad root cannot make it vacuous.
The guard matched line by line, so `'--',\s*'bash'` could not span a newline -- and every argv array in this repo is formatted one element per line, which is exactly the shape it exists to catch. Measured against the pre-migration tree it caught 17 files before and 9 fewer after. It now strips comment lines and matches the rejoined text, with a case that pins the multi-line shape so this cannot silently return. The program list is wider than shells now, which surfaced a false positive: tmux takes a `--` separator followed by a program too (`split-window ... -- cat`). Matching is scoped to files that mention WSL rather than narrowing the list back. Also: - Replaced the `sed` regression case, which was vacuous. A backreference contains no `$`, so it returned `bac` under both separators and would have passed without the fix. The block claimed every case proved the bug. Swapped in a positional argument and a shell local, both measured to differ -- the positional is the shape `wslUncDirectoryExists` uses, where `--` blanked `$1` so every existing directory probed as missing. - windows-shell-args.test.ts derived its expected argv from buildWslExecArgs, the helper under test, so six assertions would still pass if it regressed to `--`. Spelled the expectation out. - Dropped two comments citing the removed `--` behavior as rationale.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/shared/wsl-login-shell-command.test.ts (1)
166-175: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueReduce the fixture comments.
Keep the test rationale concise. Replace the multi-line historical notes with one short comment for the affected fixture.
Proposed change
- // so these scripts reached the shell already rewritten. Each case below was - // measured to return DIFFERENT bytes under `--` than under `--exec`; cases - // that merely look risky but are unaffected (a sed backreference has no `$`) - // are deliberately not here, because they would pass either way. + // Verify payloads that `--` rewrites but `--exec` preserves. ... - // The shape wslUncDirectoryExists uses: `--` blanked $1, so every existing - // directory probed as missing. + // `$1` previously caused WSL UNC directory checks to report missing paths.As per coding guidelines, “Comments must be concise, non-obvious, and brief—prefer one line”.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 1a1bde3f-73e1-4498-afa0-593ab5e81424
📒 Files selected for processing (5)
src/main/codex-accounts/runtime-home-service.tssrc/main/providers/windows-shell-args.test.tssrc/main/wsl-bash-command.tssrc/shared/wsl-exec-mode-separator.test.tssrc/shared/wsl-login-shell-command.test.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- src/main/providers/windows-shell-args.test.ts
- src/main/codex-accounts/runtime-home-service.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.
| const ARGV_FORM = new RegExp(String.raw`'--',\s*'${GUEST_PROGRAM}'`) | ||
| const STRING_FORM = new RegExp(String.raw`wsl(?:\.exe)?\b[^\n]*?[^-]--\s+${GUEST_PROGRAM}\b`) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Bind separator matches to the WSL invocation.
STRING_FORM searches from wsl.exe to the end of the line. It can match a nested separator after a valid --exec invocation. For example, wsl.exe --exec bash -c "git diff -- cat" matches -- cat and is reported as legacy.
ARGV_FORM has the same problem. The file-level /wsl/i check does not prove that ['--', 'cat'] belongs to the WSL argv.
Parse the WSL argv or constrain the match to the actual WSL separator. Add a negative regression for nested separators.
🧪 Add regression coverage
+ it('ignores nested separators in a valid --exec command', () => {
+ const valid = 'wsl.exe --exec bash -c "git diff -- cat"'
+ expect(STRING_FORM.test(valid)).toBe(false)
+ })Also applies to: 75-80, 85-91
🧰 Tools
🪛 ast-grep (0.45.1)
[warning] 18-18: Do not use variable for regular expressions
Context: new RegExp(String.rawwsl(?:\.exe)?\b[^\n]*?[^-]--\s+${GUEST_PROGRAM}\b)
Note: [CWE-1333] Inefficient Regular Expression Complexity. Security best practice.
(regexp-non-literal-typescript)
* fix(wsl): pass guest argv verbatim through --exec
`wsl.exe <...> -- <argv>` expands `$name` in every argument against the
guest environment before the guest ever runs. It does this even when no
shell is involved, so `-- /usr/bin/printf %s '$HOME'` prints /home/you.
Every WSL invocation went through that preprocessor, so scripts arrived
already rewritten: `awk '{print $2}'` lost its field reference, and a
POSIX script asking for the literal `$HOME` got the expanded path.
`escapeWslShCommandForWindows` tried to compensate by escaping `$`, but
it skipped any `$` preceded by a backslash, so a script containing `\$`
was still corrupted -- and half the call sites never applied it at all.
Route every invocation through `--exec`, which passes argv through
untouched, and delete the escaper. The direct-git path already used
`--exec`, so this is not a new compatibility dependency.
A guard test fails if the `--` form reappears anywhere in the tree.
Net -50 lines of production code.
* test(wsl): drop remaining escaped-dollar assertions
* fix(wsl): cover the --exec migration's blind spots
An audit of every wsl.exe invocation found sites the first pass missed,
including two it actively broke:
- config/scripts/wsl-git-shell-benchmark.mjs imported
escapeWslShCommandForWindows, which no longer exists, so the script
threw on startup. Its wslShellArgs helper also still used `--`; the
file already had an --exec helper, so route both call sites there.
- classifySubprocessCommand unwrapped `wsl.exe <...> -- <binary>` by
breaking on `--` alone. With every Orca spawn now on --exec it never
found the guest binary and bucketed all WSL subprocesses as plain
"wsl", losing the git/gh/glab breakdown. Break on either separator,
since foreign wsl.exe processes still use `--`.
CliSkillRuntimeSetup builds its setup command as a template literal
rather than an argv array, so no array-shaped search could see it. Its
decoder accepts both separators so commands persisted before this
change still decode.
The guard now scans config/ and tests/ as well as src/, and checks the
command-string spelling alongside the argv one — the two shapes that
have each shipped a regression. It skips comment lines so prose about
the old form stays allowed, and asserts it scanned a plausible file
count so a bad root cannot make it vacuous.
* fix(wsl): restore the guard's multi-line sensitivity
The guard matched line by line, so `'--',\s*'bash'` could not span a
newline -- and every argv array in this repo is formatted one element
per line, which is exactly the shape it exists to catch. Measured
against the pre-migration tree it caught 17 files before and 9 fewer
after. It now strips comment lines and matches the rejoined text, with
a case that pins the multi-line shape so this cannot silently return.
The program list is wider than shells now, which surfaced a false
positive: tmux takes a `--` separator followed by a program too
(`split-window ... -- cat`). Matching is scoped to files that mention
WSL rather than narrowing the list back.
Also:
- Replaced the `sed` regression case, which was vacuous. A backreference
contains no `$`, so it returned `bac` under both separators and would
have passed without the fix. The block claimed every case proved the
bug. Swapped in a positional argument and a shell local, both measured
to differ -- the positional is the shape `wslUncDirectoryExists` uses,
where `--` blanked `$1` so every existing directory probed as missing.
- windows-shell-args.test.ts derived its expected argv from
buildWslExecArgs, the helper under test, so six assertions would still
pass if it regressed to `--`. Spelled the expectation out.
- Dropped two comments citing the removed `--` behavior as rationale.
---------
Co-authored-by: OrcaWin <[email protected]>
* fix(wsl): pass guest argv verbatim through --exec
`wsl.exe <...> -- <argv>` expands `$name` in every argument against the
guest environment before the guest ever runs. It does this even when no
shell is involved, so `-- /usr/bin/printf %s '$HOME'` prints /home/you.
Every WSL invocation went through that preprocessor, so scripts arrived
already rewritten: `awk '{print $2}'` lost its field reference, and a
POSIX script asking for the literal `$HOME` got the expanded path.
`escapeWslShCommandForWindows` tried to compensate by escaping `$`, but
it skipped any `$` preceded by a backslash, so a script containing `\$`
was still corrupted -- and half the call sites never applied it at all.
Route every invocation through `--exec`, which passes argv through
untouched, and delete the escaper. The direct-git path already used
`--exec`, so this is not a new compatibility dependency.
A guard test fails if the `--` form reappears anywhere in the tree.
Net -50 lines of production code.
* test(wsl): drop remaining escaped-dollar assertions
* fix(wsl): cover the --exec migration's blind spots
An audit of every wsl.exe invocation found sites the first pass missed,
including two it actively broke:
- config/scripts/wsl-git-shell-benchmark.mjs imported
escapeWslShCommandForWindows, which no longer exists, so the script
threw on startup. Its wslShellArgs helper also still used `--`; the
file already had an --exec helper, so route both call sites there.
- classifySubprocessCommand unwrapped `wsl.exe <...> -- <binary>` by
breaking on `--` alone. With every Orca spawn now on --exec it never
found the guest binary and bucketed all WSL subprocesses as plain
"wsl", losing the git/gh/glab breakdown. Break on either separator,
since foreign wsl.exe processes still use `--`.
CliSkillRuntimeSetup builds its setup command as a template literal
rather than an argv array, so no array-shaped search could see it. Its
decoder accepts both separators so commands persisted before this
change still decode.
The guard now scans config/ and tests/ as well as src/, and checks the
command-string spelling alongside the argv one — the two shapes that
have each shipped a regression. It skips comment lines so prose about
the old form stays allowed, and asserts it scanned a plausible file
count so a bad root cannot make it vacuous.
* fix(wsl): restore the guard's multi-line sensitivity
The guard matched line by line, so `'--',\s*'bash'` could not span a
newline -- and every argv array in this repo is formatted one element
per line, which is exactly the shape it exists to catch. Measured
against the pre-migration tree it caught 17 files before and 9 fewer
after. It now strips comment lines and matches the rejoined text, with
a case that pins the multi-line shape so this cannot silently return.
The program list is wider than shells now, which surfaced a false
positive: tmux takes a `--` separator followed by a program too
(`split-window ... -- cat`). Matching is scoped to files that mention
WSL rather than narrowing the list back.
Also:
- Replaced the `sed` regression case, which was vacuous. A backreference
contains no `$`, so it returned `bac` under both separators and would
have passed without the fix. The block claimed every case proved the
bug. Swapped in a positional argument and a shell local, both measured
to differ -- the positional is the shape `wslUncDirectoryExists` uses,
where `--` blanked `$1` so every existing directory probed as missing.
- windows-shell-args.test.ts derived its expected argv from
buildWslExecArgs, the helper under test, so six assertions would still
pass if it regressed to `--`. Spelled the expectation out.
- Dropped two comments citing the removed `--` behavior as rationale.
---------
Co-authored-by: OrcaWin <[email protected]>
* fix(wsl): pass guest argv verbatim through --exec
`wsl.exe <...> -- <argv>` expands `$name` in every argument against the
guest environment before the guest ever runs. It does this even when no
shell is involved, so `-- /usr/bin/printf %s '$HOME'` prints /home/you.
Every WSL invocation went through that preprocessor, so scripts arrived
already rewritten: `awk '{print $2}'` lost its field reference, and a
POSIX script asking for the literal `$HOME` got the expanded path.
`escapeWslShCommandForWindows` tried to compensate by escaping `$`, but
it skipped any `$` preceded by a backslash, so a script containing `\$`
was still corrupted -- and half the call sites never applied it at all.
Route every invocation through `--exec`, which passes argv through
untouched, and delete the escaper. The direct-git path already used
`--exec`, so this is not a new compatibility dependency.
A guard test fails if the `--` form reappears anywhere in the tree.
Net -50 lines of production code.
* test(wsl): drop remaining escaped-dollar assertions
* fix(wsl): cover the --exec migration's blind spots
An audit of every wsl.exe invocation found sites the first pass missed,
including two it actively broke:
- config/scripts/wsl-git-shell-benchmark.mjs imported
escapeWslShCommandForWindows, which no longer exists, so the script
threw on startup. Its wslShellArgs helper also still used `--`; the
file already had an --exec helper, so route both call sites there.
- classifySubprocessCommand unwrapped `wsl.exe <...> -- <binary>` by
breaking on `--` alone. With every Orca spawn now on --exec it never
found the guest binary and bucketed all WSL subprocesses as plain
"wsl", losing the git/gh/glab breakdown. Break on either separator,
since foreign wsl.exe processes still use `--`.
CliSkillRuntimeSetup builds its setup command as a template literal
rather than an argv array, so no array-shaped search could see it. Its
decoder accepts both separators so commands persisted before this
change still decode.
The guard now scans config/ and tests/ as well as src/, and checks the
command-string spelling alongside the argv one — the two shapes that
have each shipped a regression. It skips comment lines so prose about
the old form stays allowed, and asserts it scanned a plausible file
count so a bad root cannot make it vacuous.
* fix(wsl): restore the guard's multi-line sensitivity
The guard matched line by line, so `'--',\s*'bash'` could not span a
newline -- and every argv array in this repo is formatted one element
per line, which is exactly the shape it exists to catch. Measured
against the pre-migration tree it caught 17 files before and 9 fewer
after. It now strips comment lines and matches the rejoined text, with
a case that pins the multi-line shape so this cannot silently return.
The program list is wider than shells now, which surfaced a false
positive: tmux takes a `--` separator followed by a program too
(`split-window ... -- cat`). Matching is scoped to files that mention
WSL rather than narrowing the list back.
Also:
- Replaced the `sed` regression case, which was vacuous. A backreference
contains no `$`, so it returned `bac` under both separators and would
have passed without the fix. The block claimed every case proved the
bug. Swapped in a positional argument and a shell local, both measured
to differ -- the positional is the shape `wslUncDirectoryExists` uses,
where `--` blanked `$1` so every existing directory probed as missing.
- windows-shell-args.test.ts derived its expected argv from
buildWslExecArgs, the helper under test, so six assertions would still
pass if it regressed to `--`. Spelled the expectation out.
- Dropped two comments citing the removed `--` behavior as rationale.
---------
Co-authored-by: OrcaWin <[email protected]>
Stack
Merge bottom-up; each PR is based on the one above it.
main#15039#15040#15060ELI5
When Orca asks WSL to run something, it hands
wsl.exea little shell script. Butwsl.exereads that script first and swaps out anything that looks like a variable —$HOME,$2,$PATH— before the Linux side ever sees it. So a script that says "print the word$HOME" arrives as "print/home/you", andawk '{print $2}'arrives asawk '{print }'.Orca tried to defend against this by escaping every
$. That escaper had a hole, and half the call sites never used it at all.wsl.exehas a flag that turns the rewriting off:--exec. This PR uses it everywhere and deletes the escaper.Root cause
wsl.exe -d <distro> -- <argv>expands$namein every argument against the guest environment before the guest runs. This iswsl.exeitself, not the guest shell — it happens with no shell in the command at all:escapeWslShCommandForWindowscompensated by rewriting$to\$, but skipped any$preceded by a backslash:So a POSIX script containing
\$— an escaped dollar inside double quotes, or a sed/awk program — was left unescaped and silently corrupted. Andrunner.ts's non-login path,wsl.ts,skill-discovery-wsl.tsand others never called the escaper at all.Evidence
Measured against a real
Ubuntu-24.04. The A/B holds the login-shell wrapper constant and changes only--→--exec:--+ escaper)--exec)"READY""READY""[bar]""[bar]"awk '{print $2}'"b\n""b\n""bac\n""bac\n"$"[$HOME]""[$HOME]"c=7c=7$anchor"foo\n""foo\n"\$HOME"[/home/neil]""[$HOME]"Eight of nine byte-identical; the only divergence is the escaper's bug. Unescaped call sites were worse —
awk '{print $2}'returned the whole linea binstead ofb.--execwas also verified to preserve everything the callers depend on: exit codes (exit 7→ 7,gitin a non-repo → 128), bare-name PATH resolution, separate stderr, 20k-char argv, and the/usr/bin/env VAR=xprefix form. The codebase already shipped--execon the direct-git path, so this is not a new compatibility dependency.What changed
buildWslExecArgs()is the single place that buildswsl.exeargv.escapeWslShCommandForWindowsand its tests are deleted.--exec. The second--insh -s -- <path>is a shell argument separator and is deliberately left alone.Net −50 lines of production code.
Second pass: the blind spots
A follow-up audit of every
wsl.exeinvocation found sites the first pass missed — including two it actively broke:config/scripts/wsl-git-shell-benchmark.mjsimportedescapeWslShCommandForWindows, which no longer exists, so the script threw on startup.classifySubprocessCommandunwrappedwsl.exe … -- <binary>by breaking on--alone. With every spawn now on--execit never found the guest binary and bucketed all WSL subprocesses as plainwsl, losing the git/gh/glab breakdown in diagnostics. It now breaks on either separator, since foreignwsl.exeprocesses still use--.CliSkillRuntimeSetup.tsxbuilds its setup command as a template literal, not an argv array, so no array-shaped search could see it. Its decoder accepts both separators so commands persisted before this change still decode.--sites intests/e2e/andconfig/scripts/, outside the original guard's scanned root.Guard
A test walks the tree and fails if the
--form reappears. Both spellings that have shipped a regression are covered — the argv array and the command string — acrosssrc/,config/andtests/. It skips comment lines so prose about the old form stays allowed, and asserts it scanned a plausible file count so a bad root cannot make it silently vacuous. Both forms were mutation-checked: each fails and names the offending file when a violation is injected.Testing
buildWslLoginShellCommandpayloads round-trip through a live distro.\$, sed backreference, single-quoted$) assert byte-for-byte guest delivery — each returned the wrong bytes before this change.oxlint, and the code-quality gate are clean.origin/mainon the same machine, at test-name granularity. The remaining local failures are present on unmodifiedmaintoo (verified by re-runningmainright then, since some of these suites leave on-disk state and a stale baseline lies).