This problem has been weighing heavily on my mind since reading The Second Machine Age. The first thing I've read that gives me some hope for finding a solution is Rushkoff's "Throwing Rocks at the Google Bus"
I highly recommend reading both books, because more perspective is needed to think abouy this than just "what machines can and cant automate"