As source code becomes more of a generated artifact of software development the way object code is an artifact of compilation, we might be moving toward a world where secrecy, constant forward motion, and moats become even more of an asset (vs plain IP protection).
It's actually better if we keep re-creating the wheel. Keeps more people employed.
I do think what happens in this case is SCOTUS will ultimately rule that AI-built code is copyrightable while art is not. I'm sure there's some rationale thick enough for them.
Interesting world we live in. Soon it'll be faster to one-shot the tiny slice of functionality I need from Adobe CS than to navigate their subscription cancellation obstacle course.
Pretty sure you're already in that world. ;)