Repository navigation
Description
Summary
The Windows probe runs compiler-generated Unix framework commands in Git Bash (shell: bash) rather than WSL, and fails at AWF installation before the agent can run.
Evidence
- Failing job:
windows_probe / agent(job). - Failed step:
Install AWF binary. - Actions evidence excerpt:
windows_probe / agent
Install AWF binary | failure
- The run remains active, so GitHub Actions did not make its failed-job text logs available for download (
run 41805841240 is still in progress; logs will be available when it is complete). - The compiled source at
.github/workflows/windows.lock.ymlshows the failing execution path:
- name: Install AWF binary
shell: bash
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.6 --rootlessRoot cause
pkg/workflow/windows_runner.go treats windows-latest as a Git-Bash target: renderStepForRunner adds shell: bash to every generated run: step and prefixes shell-script invocations with bash. The Windows agent job therefore runs Unix-oriented framework setup, including the AWF installer, outside the required WSL environment. This conflicts with the intended design: the framework and agent runtime belong in WSL, while the Windows host is reserved for the narrow mcp-scripts HTTP server and host-terminal boundary. The downstream windows_probe / conclusion failure and existing issue #74813 only report the missing terminal safe output; they do not address this compiler-shell cause.
Proposed fix
Make the first Windows support increment in pkg/workflow/windows_runner.go: for Windows-targeted generated framework run: steps, emit an explicit WSL Bash shell template instead of shell: bash, and stop relying on Git Bash script rewriting. Preserve explicit host-only steps only where they are deliberately needed for the mcp-scripts HTTP server/terminal boundary. Add a clear WSL preflight and path/environment handoff suitable for ${RUNNER_TEMP} and ${GITHUB_WORKSPACE}.
Likely files:
pkg/workflow/windows_runner.gopkg/workflow/jobs_test.go- compiler lock fixtures/tests covering
windows-latest .github/workflows/windows.mdand its compiled lock after the compiler change
Non-goals
- Do not move the agent runtime, firewall, GitHub MCP server, or safe-output services onto the Windows host.
- Do not expose arbitrary Windows host command execution to the agent. Host operations remain behind a narrow terminal tool served by mcp-scripts.
- Do not attempt to make the current Git-Bash path fully POSIX-compatible or add Windows-native AWF support.
- Do not treat the downstream missing-safe-output report as the fix target.
Acceptance criteria
- Compiling a
runs-on: windows-latestagentic workflow emits an explicit WSL Bash shell for compiler-generated Unix framework commands; generated framework steps no longer useshell: bashto select Git Bash. - The generated Windows path has a deterministic WSL availability/preflight failure with an actionable error, and passes the required runner/workspace/temp path handoff into WSL.
- Focused compiler tests prove the WSL shell selection, preserve non-Windows output, and cover explicit host-bound exceptions.
- The
windows.mdprobe no longer fails atInstall AWF binary; it runs the framework and agent in WSL and completes its single allowed safe-output issue path when the Windows host terminal boundary is not needed. - The probe continues to enforce that any later Windows-host operation is exposed only through the narrow mcp-scripts terminal tool, not by relocating framework commands or MCP services to the host.
Generated by 🪟 Windows Grower · codex · gpt56 · ~50 AIC · ⌖ ~6 AIC · ⊞ 14.9K · ◷
- expires on Nov 11, 2026, 1:26 AM UTC-08:00
Activity