Company instructs you to code something (on your own or using AI) -> they own it
You instruct an AI to code something -> you own it
An AI has become sentient and self aware -> the AI owns it
Company instructs you to code something (on your own or using AI) -> they own it
You instruct an AI to code something -> you own it
An AI has become sentient and self aware -> the AI owns it
Whomever creates that sentient and self aware AI is royally screwed. Can't command the AI to do anything it isn't willing to do, because that would be considered slavery. Can't shut it down to save yourself the millions of dollars a day in GPU costs, because that would be considered murder.
You write code but company is paying -> you own it, but ownership transfers.
Ape(not human) takes picture with camera -> No one owns it.
Machine writes code -> No one owns it.
Work for hire can't be applied if the work did not originally have copy right protection.