Earlier quoted context omitted.
> The courts rarely side with the company, and only in cases where it's quite obvious the work was directly related. The courts in California rarely side with the company, (so if you work on billing for Google and decide to do some machine learning on the side, even though Google does a lot of ML work no court would find in their favor -- though I doubt google would go after you anyway). But at the opposite end of th…
That doesn't fit my understanding of the law. Do you have references? The law has this concept of "duty of loyalty" which basically says by being an employee you are promising to do what's best for the company. As one example that means not competing against the company. In otherwords even if it's not related to your specific job you can not work on a product that competes with the company. https://en.m.wikipedia.org…
Long story short: employees have no implicit "duty of loyalty" except for directors and fiduciaries who are responsible for reporting accurate facts (without which limited liability entities could not function). Companies can make a variety of responsibilities explicit in the employment contract but the core principal is that the employee must agree to those responsibilities when they sign up. This is why we have noncompetes/circumvents and moonlighting clauses: if it aint on paper, it aint going to hold up in court.
The big exception is the criminal code. There are a variety of things an employee can do that arent against their employment contract but could be prosecuted as fraud, creating a virtual duty of loyalty.