On a windy morning in California's Salinas Valley, a tractor pulled a wheeled, metal contraption over rows of budding iceberg lettuce plants. Engineers from Silicon Valley tinkered with the software on a laptop to ensure the machine was eliminating the right leafy buds.