fix(ios): respect devicectl minimum timeout for device probes

Merged
SA
18d ago
+47-4

Summary

  • Clamp the CoreDevice details CLI timeout to the accepted 5-second minimum while preserving the independent host deadline. No retry or transport-policy changes.
  • Define the minimum once in IOS_DEVICECTL_MIN_TIMEOUT_SECONDS, shared by details and hinge-angle probes. Leave xcdevice timeouts unchanged.
  • Three files changed: shared configuration, probe calculation and five boundary regression cases using the existing anonymized fixture.

Validation

  • Commit: c2ed74a9ff3bf133d2872b7401bc854c2a7d8003.
  • pnpm check:affected --run: all runnable gates passed, including 444 test files / 3,210 tests. Coverage and native CI lanes remain separate.
  • Focused suites: 28 CoreDevice + 3 hinge-angle tests passed. Restoring the old clamp made the shortened CoreDevice suite fail (1 failed / 27 passed); restoring the fix passed all 28.
  • Earlier direct live resolver checks at 15343c425, unchanged 1,000 ms budget: unpatched source returned no address twice (49/48 ms); patched source resolved it three times (641/456/498 ms). Not repeated for this constant-only refactor.
  • Full CLI idle-gap behavior remains unverified. USB-first commands may bypass this path, so no broader runner-reliability claim is made. Fork CI requires maintainer approval; current-head CI is not claimed green.