Repository navigation
Description
Summary
Windows agent jobs render Unix-only framework and runtime commands for direct execution on the Windows host; introduce a WSL-backed execution boundary for those commands.
Evidence
- Failing probe job:
windows_probe / agent(job); downstreamwindows_probe / conclusionalso failed after the agent failure. No probe job was cancelled. - Available runtime-failure excerpt from this run:
Failure classification: missing_terminal_safe_output
Safe-output telemetry: not recorded
No terminal safe output was recorded.
- Run: https://github.com/github/gh-aw/actions/runs/42789101459
- Direct download of both failed job logs was attempted, but GitHub read access was denied by DIFC policy while the parent run remains active. The excerpt above is the accessible runtime evidence; it does not establish the primary agent failure.
Root cause
The current Windows rendering path in pkg/workflow/windows_runner.go only adds shell: bash and prefixes shell scripts with bash. The compiled windows.lock.yml therefore runs the Unix-oriented framework directly on windows-latest: it uses /tmp/gh-aw, Bash scripts, Docker image download and socket handling, Linux bind mounts, and awf --container-workdir arguments. The lock shows this before the agent invocation, including Download container images, Start MCP Gateway, and Execute Codex CLI. Git Bash is not the Linux execution environment required by those commands.
Proposed fix
Add the smallest Windows runner adapter that moves compiler-generated framework and agent runtime commands into WSL. Replace the current direct-Bash rendering in pkg/workflow/windows_runner.go with a tested WSL wrapper that:
- performs an explicit, fail-fast WSL availability/bootstrap check;
- maps the GitHub workspace, runner temp/tool-cache, and required generated paths into WSL without relying on implicit path conversion;
- executes generated POSIX run blocks, Docker/AWF startup, and the agent runtime inside WSL; and
- preserves native Windows Action steps only where necessary.
Likely files: pkg/workflow/windows_runner.go, pkg/workflow/jobs.go, pkg/workflow/compiler_yaml_step_generation.go, focused tests in pkg/workflow/jobs_test.go, and regenerated windows.lock.yml. Keep the host-side responsibility narrow: this increment does not move the agent runtime or framework MCP services to the host.
Non-goals
- Do not move the agent runtime, Docker/AWF framework, or general MCP servers onto Windows.
- Do not add arbitrary Windows-host shell access for agents; a future host terminal capability must remain a narrow tool served by host-side mcp-scripts.
- Do not hand-edit generated locks, alter model selection, or repair the downstream terminal-safe-output reporting separately.
- Do not change non-Windows runner rendering.
Acceptance criteria
- Unit tests show Windows-generated POSIX framework and agent run steps use the WSL adapter, while Ubuntu/macOS output remains unchanged.
- Tests cover conversion/propagation of workspace, runner-temp, tool-cache, and
/tmp/gh-awpaths, and fail clearly when WSL is unavailable. - The regenerated
windows.lock.ymlhas no direct host execution of generated Bash/Docker/AWF runtime commands; those commands execute inside WSL. - The Windows host is not given a general agent shell or relocated agent runtime; any future host operation remains behind the narrow mcp-scripts terminal-tool boundary.
- After the change lands, an authorized
windows.mdprobe onwindows-latestreaches the WSL-based framework and agent runtime and completes its existing one-issue haiku contract without a Windows-host Bash/Docker/path failure. If a later stage fails, its evidence must be distinct from the prior direct-host execution boundary.
Generated by 🪟 Windows Grower · codex · gpt56 · ~47 AIC · ⌖ ~8 AIC · ⊞ 15.1K · ◷
- expires on Nov 17, 2026, 1:29 AM UTC-08:00
Activity