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
On Windows, simlock status lists iOS capacity and counts it in the global limit #1689
Seen on Windows 11 23H2, main at 2df19f8, default config (only Android set up).
Expected
On a host where the iOS driver cannot run, status (text and --json) shows no iOS capacity or warm-pool reserve, and the global limit (/9 here) counts only the platforms that can run (/1).
Confirmed, on bug/1689-repro. Core with only an Android driver (src/core/create-core.test.ts, "reports no iOS device or running slot, no iOS warm reserve, and a global running limit of the Android slots alone"); status text (src/cli/index-status-warm-pool.test.ts, "simlock status prints no iOS capacity line and no iOS warm reserve for a worker that reports 0 iOS devices and 0 iOS running slots", a proposed shape).
Defect. src/core/create-core.ts:197 builds the capacity strategy from config alone, never knowing which platforms have a driver. iOS loads only on darwin (driver-discovery.ts:140), but the resource defaults (resource/index.ts:141) always give iOS slots, and global is their sum. Warm figures (converger.ts:401) echo the configured reserve. A gateway adds these slots to fleet capacity (aggregate.ts:128).
Simplest fix
servingOnly(strategy, platforms) in core/capacity, given the platforms with a driver or a refused one: a missing platform gets maxRunning 0, deviceLimit 0, no reservation, and global is capped at the other's slots.
converger.ts:401 reports the reserve through reserveOnVirtualPlatforms(…, hasDriver).
cli/format.ts skips the capacity line and reserve of a platform with limit and maxRunning 0.
--json keeps capacity.ios as zeros: no schema change.
Alternatives rejected
Drop capacity.ios from --json, as asked: optional field, protocol bump, gateway and console changes.
Zero the limits in config defaults: validators refuse 0 (ADR 0084).
Risk
Tried: both reproductions pass; 4126/4128 unit tests pass. dispatcher-leases-device-mode.test.ts and server-requests.test.ts pin Android reserve 1 and global 2 on iOS-only fixtures.
A refused driver keeps its limits: its devices still hold slots.
A gateway with no Android worker sums to 0/0, so its Android line goes too.
Fast track
Defect: yes
Fix tried: no — two existing tests pin the old figures
Nothing public added or broken: yes
No ADR or rule changed: yes
One fix: no — dropping the --json field changes output
A platform whose driver doesn't load gets 0 slots.
The global limit counts only the platforms that can run.
The iOS warm-pool reserve reads 0.
Text status drops the iOS line.
In status --json, capacity.ios stays, with every figure 0, so the shape doesn't change and there is no protocol bump. Update the two tests that pin the old figures.
Merged: #1695 (#1689)
Parked: none
Waiting: none
Decided: #1689 — does a platform whose driver was refused keep its slots? → yes, as today (see the PR's Decision taken comment)
Activity
V3RON commentedon Nov 18, 2026
Reproduction
Confirmed, on
bug/1689-repro. Core with only an Android driver (src/core/create-core.test.ts, "reports no iOS device or running slot, no iOS warm reserve, and a global running limit of the Android slots alone"); status text (src/cli/index-status-warm-pool.test.ts, "simlock status prints no iOS capacity line and no iOS warm reserve for a worker that reports 0 iOS devices and 0 iOS running slots", a proposed shape).Root cause
Defect.
src/core/create-core.ts:197builds the capacity strategy from config alone, never knowing which platforms have a driver. iOS loads only on darwin (driver-discovery.ts:140), but the resource defaults (resource/index.ts:141) always give iOS slots, and global is their sum. Warm figures (converger.ts:401) echo the configured reserve. A gateway adds these slots to fleet capacity (aggregate.ts:128).Simplest fix
servingOnly(strategy, platforms)incore/capacity, given the platforms with a driver or a refused one: a missing platform getsmaxRunning0,deviceLimit0, no reservation, and global is capped at the other's slots.converger.ts:401reports the reserve throughreserveOnVirtualPlatforms(…, hasDriver).cli/format.tsskips the capacity line and reserve of a platform withlimitandmaxRunning0.--jsonkeepscapacity.iosas zeros: no schema change.Alternatives rejected
capacity.iosfrom--json, as asked: optional field, protocol bump, gateway and console changes.Risk
dispatcher-leases-device-mode.test.tsandserver-requests.test.tspin Android reserve 1 and global 2 on iOS-only fixtures.Fast track
Written by an agent.
V3RON commentedon Nov 18, 2026
Maintainer decision
Take the triage's proposed fix:
statusdrops the iOS line.In
status --json,capacity.iosstays, with every figure 0, so the shape doesn't change and there is no protocol bump. Update the two tests that pin the old figures.Written by an agent.
test: fixtures with an iOS driver only serve Android where their clai…
fix(cli): status prints no reserve clause when no platform is served;…
V3RON commentedon Nov 18, 2026
Delivery run
Merged: #1695 (#1689)
Parked: none
Waiting: none
Decided: #1689 — does a platform whose driver was refused keep its slots? → yes, as today (see the PR's Decision taken comment)
Written by an agent.
fix(core): a platform the host cannot run has no capacity, warm reser…