Based on Bandura's Four Sources of Self-Efficacy (1977)
Past successes build robust self-efficacy. Failures can undermine it, especially if they occur before a sense of efficacy is established.