While knowledge tasks are different than mechanical ones, you could argue that they're both "tasks" that are being "done" and require thinking in some way, but just more (or different) thinking is involved this time.
I don't know if machines could automate things like ingenuity, although at the same time I don't know if the demand for ingenuity is large enough for people to have a stable job.