The role of pathogens in insect ecology is widely appreciated but remains insufficiently explored. Specifically, there is little understanding about the sources of the variation in the outcome of insect-pathogen interactions. This study addresses the extent to which immune traits of larvae and pupae