Its engineers might, in addition to their habitual writing of improved algorithms, consider the durable oath of a profession that has long wrestled with the kinds of ethical quandaries that arise from innovating in the pursuit of the greater good: first, do no harm.