In a warming world, agricultural resilience may depend as much on the quality of rural infrastructure as on the quality of seeds and soil