If you're there to develop novel machine learning tools, and you sit there thinking about machine learning tools all day, then go home, publish it, and take the patent for yourself, that's a bit much.
"Very cool and healthy that people on this website instinctively imagine themselves as the boss of random commenters on a website."
I agree with the sentiment of the first sentence, if we simply say the blast radius is the the product(s) level you're working on.
And all the salary too. I really don't see the issue.
The cardinal rule is that, if you do not want your invention to belong to your employer, don't work for them.
All of the sour grapes about these arrangements are indictments of working for someone else, and I wholeheartedly agree! If you have the least bit of cojones, make something people want and sell it yourself. But, if you prefer the golden yoke, the owner of the farm gets all the fruits.