fix(limrun): report the session device id in iOS settings refusals

Merged
TH
2mo ago
+84-59

Summary

A Limrun iOS settings refusal reported deviceId: 'booted', because the simctl plan used the simctl udid as the device id. On Limrun the udid is always booted, so the caller could not tell which session's device refused.

  • SimctlSettingRequest now lives in @agent-device/contracts/settings. provider-limrun used a hand-copied LimrunIosSimctlSettingRequest; that copy is deleted.
  • The request has a required deviceId, separate from udid. Limrun passes session.device.id; the local simulator path passes device.id for both. No caller can fall back to the udid.
  • The lazy-load test in src/sdk/limrun-runtime-dependencies.test.ts now counts evaluations of the Apple simctl plan module, which is what its name claims.

8 files, 143 gross lines.

Validation

At 360f3e2260: pnpm check:affected --run passes (508 files, 3985 tests). A new plan test sends udid: 'booted' with deviceId: 'limrun:ios:lease-a' and checks that the refusal reports the device id while simctl still receives booted.