Figures and data

Overview of notation.
Values conveyed for the genes are initial input values, values given for the scaling parameters are fixed throughout the simulations. If more than one value is given, results are shown to display the effect of this parameter’s variation. *: Additional values of these parameters are discussed in the Supplemental Material.

Diagram of the scheduling executed per generation.
(1) A breeder reproduces. Its productivity depends on the cumulative level of brood care provided by the group during the previous life cycle. Maximum productivity is achieved when different helping tasks are performed to a similar extent. (2) Subordinates may disperse to become floaters, or they may stay in the group and help. Dispersers/floaters may join a random group to become subordinates. (3) Subordinates in the group either work to provision to the breeder’s offspring or display defensive forms of help. (4) Individuals survive contingent on group-living benefits and dispersal costs, as well as the cost of defensive activities. (5) If a breeder dies, helpers in the group and a sample of floaters compete for the breeding position. Individuals still alive ascend one age class, and the cycle starts all over (i.e., next generation).

Effect of environmental quality on alloparental care and division of labor.
The evolutionary equilibria for levels of helping and task specialization are shown at three different levels of environmental quality, ranging from benign (m=0.1) to harsh (m=0.3), and for three different levels of cost of help on survival (light blue, xh=3; blue, xh=5; and dark blue, xh=7), across 20 replicas. The y- axis expresses the likelihood of individuals choosing a defensive task with a cost to survival versus a work task with a cost to their dominance rank. The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (▴) or when no restrictions were introduced to the task performed by the group members (〇). In each environment, additional details are given on the selective forces that play a role in the evolution of help and task specialization: help can only evolve by kin selection (KS), group augmentation (GA), or both (KS + GA). All parameter values described in Table 1.

Evolved reaction norms to age on the display of task specialization.
The evolutionary equilibria for the reaction norms of task specialization are shown at five different levels of environmental quality, ranging from benign (m=0.1, purple) to harsh (m=0.3, yellow), and xh=5. A: γt > 0 signifies that individuals increase the likelihood of performing work tasks (task = 0; cost to dominance value), whereas γt < 0 signifies that individuals increase the likelihood of performing defensive tasks (task = 1; cost to survival). The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (▴), or when no restrictions were introduced to the task performed by the group members (〇). Results show that at division of labor equilibria, individuals increase the likelihood of performing their preferred task (circles), when increasing their dominance value. B: Evolved reaction norms to dominance value with average γ0 and γt across 20 replicas for varying quality environments. All parameter values described in Table 1.

Effect of increasing the baseline survival x0 to favor the evolution of division of labor under only kin selection.
The evolutionary equilibria for levels of helping and task specialization are shown at three different levels of environmental quality, ranging from benign (m = 0.1) to harsh (m = 0.3), and for three different levels of cost of help on survival (light blue, xh = 3environmental= 5; and, ranging xh = 7). The y-axis expresses the likelihood of individuals choosing a defensive task with a cost to survival versus a work task with a cost to dominance. The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (▴), or when no restrictions were introduced to the task performed by the group members (〇). Input parameters are the same as in Figure 2 (where x0 = 1.5) except for x0 = 4.5 and x0 = 10 (higher survival for all individuals irrespective of group membership or environment; Table 1). Further details are provided in Table S2.

Effect of reducing the incentives to disperse to favor the evolution of division of labor under only kin selection.
An increase in incentives to remain philopatric was achieved by reducing f to 1 (f = 2 in Figure 2; Table 1). The evolutionary equilibria for levels of helping and task specialization are shown at three different levels of environment quality that range from benign (m=0.1) to harsh (m = 0.3), and for three different levels of cost of help on survival (light blue, xh = 3; blue, xh = 5; and dark blue, xh = 7). The y-axis expresses the likelihood of the individuals to choose a defensive task with cost to survival versus a work task with a cost to dominance. The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (▴), or when no restrictions were introduced to the task performed by the group members (〇). Other input parameters are the same as in Figure 2 (where x0 = 1.5) except for x0 = 4.5 and x0 = 10 (higher survival for all individuals irrespective of group membership or environment; Table 1).

Supplementary data for Figure 2.
Mean values are shown for dispersal propensity, survival rate, group size (± SD), and within-group relatedness for three environmental qualities ranging from benign (m = 0.1) to harsh (m = 0.3) across 20 replicas. Selective forces at play include kin selection (KS), group augmentation (GA), or both (KS + GA). The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (DoL), or when no restrictions were introduced to the task performed by the group members (No DoL).

Supplementary data for the effect of increasing the baseline survival x0 to favor the evolution of division of labor under only kin selection shown in Figure S1.
Mean values are shown for dispersal propensity, survival rate, group size (± SD), and within-group relatedness for three environmental qualities ranging from benign (m = 0.1) to harsh (m = 0.3) across 20 replicas. Results are shown for x0 = 1.5 (default), x0 = 3.5 and x0 = 10. The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (DoL), or when no restrictions were introduced to the task performed by the group members (No DoL).

Supplementary data for the effect of reducing the incentives to disperse to favor the evolution of division of labor under only kin selection shown in Figure S2.
The increased incentive was achieved by reducing the parameter f that signifies the mean number of groups a floater samples for becoming a breeder from 2 (default) to 1. Mean values are shown for dispersal propensity, survival rate, group size (± SD), and within-group relatedness for three environmental qualities ranging from benign (m = 0.1) to harsh (m = 0.3) across 20 replicas. Results are shown for x0 = 1.5 (default), x0 = 3.5 and x0 = 10. The optimum breeder productivity per unit of help provided was either when both tasks were performed to a similar extent, potentially selecting for division of labor (DoL), or when no restrictions were introduced to the task performed by the group members (No DoL).