I don't think that's how it works. An anti radiation missile from the 90s had a pretty high degree of autonomy. I know the British ones could deploy a parachute when the radar stopped emitting and reacquire the target when it reactivated. The missile quite literally made targeting and engagement decisions on its own.
The human that launched the missile is still responsible for it. Weapons that have autonomy are still given engagement parameters (e.g. limit target to certain geo bounds, engage between two certain timestamps). The humans that set those parameters and choose to deploy the weapon are responsible for what the autonomous weapon does.