stmaarten
Law school is for learning how to do good legal research, analysis, and writing, with some exposure to a selection of substantive areas of law thrown in for good measure. At the top schools, there's also a strong focus on understanding the law through historical, philosophical, and policy-oriented contexts. Memorizing "black letter law" is not an objective. In fact, at most final exams, you can bring in a stack of study guides and reference books to look up what you don't know.
Outside of that niche, I think California has a rather good body of law. For example, it features strong protections for employee and consumer rights that (in my opinion) other states sorely need.
I don't know which "bunch of BS rules" you're referring to specifically, but it's true that California tends to require greater notice when a party is waiving important statutory rights in a written agreement. I doubt that the few bits of bold text or extra signature lines (which are already in every practitioner's standard templates) are what you're really complaining about.
"If the company DECIDES to hire you and use thousands of hours of your life each year so that the company can enjoy a profit, the company owes you its loyalty."
Rare is the company whose leadership feels that any meaningful loyalty is owed to employees.
Edit: I want to add that your 4 guidelines are wonderful if you work for genuinely good, moral people who want to "do the right thing" and who have the luxury of setting such priorities. But caution is necessary. Far too many employees devote decades to a company only to find when they're ill or older that loyalty was a one-way street.
Personally, I’m not interested in questions such as whether the OP has been dishonest, or what the status-quo legal regime would prescribe. I am interested in the underlying economic reality. The OP has developed a technology with real and quantifiable value. He created wealth. So: who should keep it?
At the macro level, I think it’s pretty clear that the existing economic and legal regime would have these gains accrue to capital owners. After all, markets (when they function) do a good job of allocating resources according to value signals. But that's just a default allocation; that doesn't tell us "who should keep it".