Where did the tractor get the money?
I mean, people can probably give stuff to an "AI" the same way they leave stuff to their cats, but we are an absurdly long way off from developing an artificial intelligence with real agency. These are questions for science fiction authors, not actual legal scholars.