The David Autor Series - Why Haven't Robots Taken Our Jobs? The Complementarity Effect
talks about the "complementarity effect" - jobs taken over by robots can be codified, but can lead to increase in employment due to efficiencies gained and specialization by humans in tasks robots can't perform, e.g. being bank tellers specializing in relationship management with bank clients with advent of atm — i.e. specializing in selling more shit (marketing, basically).
so, the next question may be... as robots take over more jobs, are the "complementary" human jobs going to be majority in "selling more shit"? well, there has to be people "making more shit to sell", true, but it's often easier to sell more shit by making up some innovation than creating a truly useful and improved innovation.