Skip to content

Windows WHPX: run --network <bridge> pulls image before fail-closed rejection #259

Closed

Description

@ZhiXiao-Lin

Summary

On Windows WHPX, a3s-box run --network <bridge> rejects with bridge networking is not supported on Windows only after an image pull (and after network create succeeds). Same first-principles class as #249: unsupported combinations must fail closed before side effects.

Evidence (a3s-box 3.2.5, WHPX host)

a3s-box network create win-probe-net   # rc=0, creates bridge network
a3s-box run --rm --network win-probe-net alpine -- true
# stdout: Pulling alpine... [layer pull completes]
# stderr: Error: invalid execution request: bridge networking is not supported on Windows
# rc=1

a3s-box info already reports Bridge networking: unsupported.

Root cause (code)

validate_runtime_options / resolve_execution do not reject Windows bridge early. Rejection lives in managed-record / execution validation after pull (setup_and_boot validates options, then pulls, then builds the managed record).

Expected

  • Fail closed before pull / Creating box when --network resolves to bridge on Windows.
  • Clear diagnostic matching info (bridge unsupported).
  • CLI coverage: command_coverage Windows test asserting no Pulling / no Creating box.

First-principles test cases

  • WIN-NEG-BRIDGE-01: run --network bridge / named bridge → fail before pull
  • WIN-NEG-BRIDGE-02: create --network <bridge> → same
  • WIN-NEG-BRIDGE-03: compose remains fail-closed (already covered); keep consistent messaging

Activity

  1. added
    bug
    area/runtime
    priority/medium
    on Sep 7, 2026
  2. added a commit that references this issue on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/runtimebugpriority/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions