so what is software developer doing if writing code is not part of their job
I don't see how not writing code is being offered as a moat, it seems like that is just translating business/stakeholder requirements to architecture/biz processes which is exactly the type of low hanging fruit that AI will capture first
or was it your point that the position sits closer to the stakeholders (relatively compared to those lifting) thus immune from replacement by AI
or is your argument that your taste is exquisite that no AI will be able to match it like it already has with software so far and it will not improve beyond the current state
Same thing architects do if drawing lines gets automated: architecture.
Would you trust living in a high rise designed by AI?
Designing a system that survives production is the job.
So what a lab researcher doing if typing articles is not part of the job?
If you get to senior level then most of your job probably is not writing code, but planning things out. The code is largely an implementation detail.
At least that's how it was for me, maybe other peoples' careers are different.