In the UK, most of my lawyer friends would tell you that lawyering up is the last course of action you want to take, as it tends to make issues more complicated, expensive and combative, though you might want to be careful what you admit / agree to.
My wifes a solicitor. :)
Your employer doesn't even need to know you consulted a lawyer.
* OP is in the wrong and employer can't afford to pursue further. OP loses a lot of reputation as word spreads.
* OP is in the wrong and employer can't afford to pursue now. Five years down the line, when Oracle acquires employer, OP is sued for five years of damages.
* OP is in the right, but employer's lawyer crafts a very intimidating and compelling legal letter. OP backs down, having blown the relationship with the lawyer, loses rights, and is fired two months later.
It's helpful to be able to say "no" with conviction if one is right, or not press an issue if one is wrong.
Not sure if the incentives are the same in the UK, but in the US, most lawyers retained in matters like this work for the client.
In that lawyers advise, the client decides, and then the lawyers attempt to realize the goal the client has chosen (if they decide to keep working for them).
Most people in the US seem to look at legal counsel as "Do what the lawyer says," when it's actually "listen to what the lawyer says, ask about alternatives, and then choose the course you want to take."
Or as I've heard it explained: a lawyer's default is to counsel the courses of action that will allow them to win a hypothetical jury trial two years from now.
When in reality, most things never get there, and some optimal courses of action for trial are antagonistic in a pre-trial context.
For the record, I've used solicitors before and it was a ball-ache. The first thing they tell you is the judges want you to have at least made an attempt at discourse before you can go to court.
In the UK you're entitled to 1 hour of free legal aid, so it's hardly expensive to consult with one who can direct you to the right person and place.
Listening to doctors instead of carefully reading forums would have probably left me seriously crippled. Doctors hold no real liability, nor do they have any real expertise outside their (very narrow) problem domain.
There is no substitute for doing your own research if you want something done right.
As for doctors not having real expertise outside their (very narrow) problem domain: that's precisely why you want to see them if your problem is in that narrow domain.
Finding expert doctors and relaying updated information to family doctors doesn't work too well either.
No, if I have a medical problem _that is serious enough that it is worth the cost_ I go to a doctor. I don't go to the doctor for every cold or headache I get. Granted the OP is actually a case that might be worth that cost, but I've seen similar advice for much smaller things. I mean, I've asked questions about IP for my hobby open source projects, from which I don't expect to ever get a penny, and been told to get a lawyer. Or in this case, say compensation was off the table, is keeping ownership of the project worth hundreds or thousands of dollars for consulting a lawyer? Maybe. Only the OP would know that. And even after consulting a lawyer it's hardly a sure thing.
I'm not saying you should take legal advice from forums. My problem is with the "Always always always talk to a lawyer." Maybe you have enough money to talk to a lawyer every time you have a legal question and see a doctor every time you have any kind of malady, but not everyone does.
And I guess part of my complaint is just that such an important service is so expensive. It leads to a situation where the well off can hire lawyers to consult them on things like employment contracts, but those with less money can't, which makes it easier to exploit them.
1) The employment agreement 2) Understand the degree to which the specific project overlaps with the employer's business 3) Etc.
That takes a conversation you don't want to have online.
But yes, I definitely to seek legal advice from forums, Nolo books, and similar. Self-serve law is not a bad idea in most cases, despite advice to the contrary. Just not in THIS case.
If you can't afford a lawyer you might as well roll over right now because that will be the end game.
The idea that some advice given in an online forum would reduce the need for finding a lawyer is akin to taking medical advice from a forum. You have no idea what the qualifications/experience/jurisdictions are of the people giving you advice so it might be good/neutral/detrimental.
Get a lawyer, one that specializes in IP and if possible to find those skills in one person as well as in employment law in your place of residence.