A complex mechanism translating variation of a simple genetic architecture into alternative life-histories