Skip to content

Windows: --isolation sandbox and --tee mutate box-create path instead of early fail-closed #249

Closed

Description

@ZhiXiao-Lin

Summary

On Windows WHPX (a3s-box 3.2.5), unsupported --isolation sandbox and --tee still print Creating box ... and enter execution startup / reconciliation before failing. Peers such as --cpus 2, --health-cmd, and --network bridge reject before box creation.

This violates the soak plan rule that unsupported combinations must fail before mutating runtime state (docs/soak-test-plan.md).

Environment

  • Host: Windows 10/11 x86_64 (windows/amd64)
  • Package: a3s-box 3.2.5 Windows WHPX
  • a3s-box info: VM backend: whpx, Control channel: named-pipe

Repro

a3s-box run --rm --isolation sandbox alpine:3.20 -- true
a3s-box run --rm --tee alpine:3.20 -- true

# Contrast — early reject, no "Creating box"
a3s-box run --rm --cpus 2 alpine:3.20 -- true
a3s-box run --rm --health-cmd true alpine:3.20 -- true
a3s-box run --rm --network bridge alpine:3.20 -- true

Observed

Sandbox:

Creating box noble_wozniak (31564a5f3b09)...
Error: execution backend unavailable: ... VM boot failed: Sandbox host capability check failed: Sandbox isolation is supported only on Linux ... VM state error: Sandbox execution requires Linux

TEE:

Creating box quick_diffie (54b465cd8a74)...
Error: execution lifecycle failed: ... TEE configuration error: TEE configuration is not supported on Windows

--cpus 2 (good baseline):

Error: --cpus: the Windows WHPX backend currently supports exactly 1 virtual CPU; requested 2

No leftover boxes were observed after failure (boxes dir count unchanged), but the create path still runs.

Expected

Fail closed at request validation (same layer as --cpus / health / bridge):

  • No Creating box ...
  • No execution ID / VM boot / reconciliation
  • Short platform diagnostic (Linux-only / Windows-unsupported)

First-principles test case

WIN-NEG-01 / WIN-NEG-02 in the Windows first-principles acceptance matrix (related issue): assert stderr does not contain Creating box, exit ≠ 0, and no new box directory after failure.

Activity

  1. added
    bug
    area/runtime
    priority/medium
    on Sep 7, 2026
  2. ZhiXiao-Lin commented on Sep 7, 2026

    @ZhiXiao-Lin
    Author

    Tracked in acceptance matrix #252 (WIN-NEG-01 / WIN-NEG-02).

  3. added a commit that references this issue on Sep 7, 2026
    7c262d4
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