Discovering how plants make life-and-death decisions