I very often fill gaps in my theoretical knowledge with personal experience—please forgive me for that!
I would also like to note that the interpretation of Marx's theory in the USSR was somewhat simplified. For instance, the USSR acknowledged the existence of a primitive communal system but not the "Asiatic mode of production." I only heard about the latter recently. I would like to highlight this aspect; perhaps the key to what is currently happening in China lies there.
Given that my knowledge of Marx's theory is superficial—and considering that Marx did not outline a precise model for constructing socialism (his work was largely a theoretical analysis of capitalism and its consequences)—it is worth noting that philosophy never sets concrete tasks for the individual.
Regarding your view of Marx's philosophy, I can also point out an inaccuracy. You state that Marx envisioned the construction of socialism only within the context of developed capitalism, based on highly advanced productive forces.
However, that is not entirely the case. In a letter to Vera Zasulich (dated March 8, 1881),
Karl Marx stated that Russia could bypass the painful stage of capitalism. He emphasized that his theory was not a universal historical prescription and that the Russian peasant commune could, under certain conditions, become the nucleus of socialist development. Marx told Zasulich at the time that education was one of the most crucial factors in the possibility of bypassing the agonizing stage of capitalism.
The bottom line is this: Lenin and Trotsky supported the NEP, whereas Stalin sided with "Zasulich." Stalin turned out to be entirely right, and he did not deviate from Marx's theory by even a millimeter.