How does AI generated code factor into FOSS? Maybe it's shit but it's definitely faster to develop - gotta give it that.
As input, I doubt any code generator respects license compatibility. There will surely be lawsuits on whether people can train models on free software and what license does the model output carry,
As output, in some cases the problem is already too much code contributed and too little capacity to review it. It doesn't take AI, sometimes it's just a big corporation paying a few developers fulltime and creating a community imbalance.
Culturally, I don't think AI can fit any communities culture. All that you said about understanding other people's code.
In software engineering writing code is not the most time consuming task, but in free software development even less.
I read some free software maintainer complaining of AI generated bug reports with no merit and overwhelming resources (I think I sent it here some weeks ago).
There's also often the requeriment that the build chain for a free software project should be free software too. What is a free software AI model is being recently defined, but whatever it is it may still be undesirable in that it may require too much data, hardware or energy,
so if the model is ot part of the build chain and just its outputs are considered like code contributions, it seems kind of unsustainable.. I don't know.
So I don't think AI should be useful in free software.
But people or corporations are still going to use AI models to write software and some are going to publish it with some free license (with more or less uncertain legal validity) and some of it then it might even be actual free software. But the community is not going to work the same, and I don't know how to set up the governance. I can imagine it as one of those code drop projects that get published but not really community maintained.
No idea.