You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows WHPX: container-update --cpus 2 bypasses run/create single-vCPU fail-closed #262
On Windows WHPX, a3s-box run --cpus 2 and create --cpus 2 fail closed correctly, but container-update --cpus 2accepts and persistscpus: 2. A later start then fails with the WHPX single-vCPU error. This bypasses the platform invariant and leaves the box in a poisoned configuration.
Evidence (a3s-box 3.2.5, WHPX)
a3s-box create --name upd2 --cpus 1 alpine -- sleep 60 # ok
a3s-box container-update --cpus 2 upd2 # rc=0, inspect cpus becomes 2
a3s-box start upd2
# stderr: Configuration error: the Windows WHPX backend currently supports exactly 1 virtual CPU; requested 2
# stdout: Starting box upd2...
a3s-box run --rm --cpus 2 alpine -- true
# stderr: --cpus: the Windows WHPX backend currently supports exactly 1 virtual CPU; requested 2
Also observed: container-update --cpus 2 --memory 1g on a dead box returned rc=0 and inspect showed cpus: 2.
Expected
container-update applies the same WHPX vCPU validation as run/createbefore persisting.
Reject --cpus != 1 on Windows with the same diagnostic; leave prior config unchanged.
CLI coverage: Windows test that update with --cpus 2 fails and inspect remains cpus: 1.
First-principles test cases
WIN-NEG-CUPD-01: update --cpus 2 on created/stopped box fails closed, no persist
Activity