Source: http://pnwstartuplawyer.com/employee-inventions/
Timestamp: 2019-04-18 10:46:24+00:00

Document:
When can an employee spin up a side project without messy legal entanglements? When does a company own its employee's code?
To answer these common questions, we first look for contracts. If there was an invention assignment agreement, it will probably have our answers. If no contracts were signed, we run into a mess of state and federal default rules.
The post provides some quick takeaways for founders and employees, and then digs into the relevant (1) Patent Law, (2) Copyright Law, and (3) Non-Compete Law. I’ve also put up a sample Invention Assignment Agreement.
Have all employees sign an IP assignment agreement that spells out the details of who owns what technology. It doesn’t need to be draconian. In fact, you may want to incentivize employees to develop side projects.
First, double-check your employment agreement and the company’s employment policies. There can be IP assignment agreements in either. If there isn’t an applicable IP assignment provision, (a) you probably own the patents to your inventions, and (b) if the project is unrelated to your employer’s business, you probably also own the copyright to your side-project’s code.
Ideally, talk to your company about your side-project. If possible, get their approval in writing. This is the only sure-fire method of owning your own side-project IP.
If you’re not confident the company will grant permission, perhaps its better not open up a discussion (stealth mode, as the kids say). However, working in secret runs the risk of a future ownership battle. The rules of this battle are complicated, and a well-funded company will have the upper hand.
Never work on your side-project during work hours, never use a work computer, never rely on company code, servers or technology.
A side-project that directly competes with your employer or that siphons off customers is more likely to start a lawsuit, and you’re more likely to lose it.
Review any non-compete clause. In California, you can probably ignore it. In New York, non-compete’s are enforceable, but only in a limited fashion.
Now lets dig into the law, starting with some terminology. When we talk about owning code and inventions, we’re talking about copyrights and patents (Intellectual Property, or “IP”). An “Assignment” is a transfer of all ownership rights in some IP. Contrast this with a “license” which is just a type of permission to use some IP.
The default ownership rules for patents and copyrights are different. Without a specific IP assignment clause, employees own the patents on their own inventions. But a company will own the copyright to its employee’s creative works (including software code), as long as the work was done “within the scope” of employment.
"The law on patent ownership is unacceptably complex." -Prof. Donald Chisum.
The general rule is that inventors own their own inventions. “The presumptive owner of the property right in a patentable invention is the single human inventor” Stanford v. Roche, 131 S. Ct. 2188 (2011). This rule is different from the rest of employment law, where a company generally owns the results of its employee’s work. “No one would claim that an autoworker who builds a car while working in a factory owns that car. But, as noted, patent law has always been different: We have rejected the idea that mere employment is sufficient to vest title to an employee’s invention in the employer.” Stanford v. Roche, 131 S. Ct. 2188 (2011).
“The general rule is that an individual owns the patent rights to the subject matter of which he is an inventor, even though he conceived it or reduced it to practice in the course of his employment. There are two exceptions to this rule: first, an employer owns an employee’s invention if the employee is a party to an express contract to that effect; second, where an employee is hired to invent something or solve a particular problem, the property of the invention related to this effort may belong to the employer. Both exceptions are firmly grounded in the principles of contract law that allow parties to freely structure their transactions and obtain the benefit of any bargains reached.” Banks v. Unisys Corp., 228 F.3d 1357, 1359 (Fed. Cir. 2000).
Hired to Invent. Even without a contract, a company will own an employees patents if the employee was “hired to invent.” The exact standard here is difficult to pin down. “Hired to invent” requires something more than merely being hired to “make improvements.” Likewise, a fancy job title like “Chief Engineer” does not necessarily mean an employee was “hired to invent.” If you’re a founder, never assume that any of your employee’s were “hired to invent” anything. Instead, have them sign a written IP assignment agreement.
Shop Right. Even if the company is not the owner of an employee invention, the company may have a “shop right.” That is, the company may have an automatic no-cost license to use the employee invention. Startups should never rely on these vague “shop rights” when they can easily get written IP assignment agreements.
San Francisco and Seattle startups take note: special state laws apply. California Labor Code § 2870 limits the types of inventions that an employee can be forced to turn over to her company. Washington State law is similar.
Copyright ownership is controlled by federal law, so the rules are the same in every state. The default copyright rules are similar to the default patent rules. By default, authors own the copyright to all of their creative works, including any code they write. But as always, there are exceptions.
A company owns the copyright to “works made for hire.” This includes (a) any work made by an employee “within the scope of her employment” and (b) the work of an independent contractor if the company gets an express written assignment.
“Work for hire” is defined in 17 USC § 101. For an employee, any work created “within the scope of his or her employment” is work for hire and owned by the company. For an independent contractor, the rules are more complicated. But understanding the rules is much less important than remembering to get a written IP assignment agreement whenever you hire an employee or independent contractor.
Non-compete agreements are becoming more common, even in technology startups. In California, non-compete agreements are generally unenforceable. In New York, the rules are more complicated.
New York allows non-competes, but only to the extent necessary to protect the company’s “legitimate business interests.” What does that mean? It’s not always clear, but in practice, New York non-competes generally only kick in when something unfair or improper happens. For example, an employee that takes confidential information from their former company and uses it to compete against the company will probably be violating a company’s legitimate business interest. The leading NY case is BDO Seidman v. Hirshberg, 712 NE 2d 1220 (N.Y. 1999).
New York law does not allow a company to prevent a former employee from using her general skills and knowledge, even if she’s working for one of the company’s competitors. New York has a strong public policy favoring employee mobility and free enterprise. After “the term of an employment agreement has expired, the general public policy favoring robust and uninhibited competition should not give way merely because a particular employer wishes to insulate himself from competition.” American Broadcasting Companies v. Wolf, 52 N.Y.2d 394, 404 (N.Y. 1981). There are also “powerful considerations of public policy which militate against sanctioning the loss of a man’s livelihood.” Id.
Startups should have a side-project policy. Whether allowed or prohibited, there should be written agreement that clearly identifies who owns what technology.
Intelligent and creative people will have side projects anyway, so they might as well be out in the open.
Generous side-project policies can attract top engineering talent.
Side-projects encourage creativity and experimentation. They can improve employee creativity, innovation and lateral thinking in ways that spill over into core products.
It adds variety to an employee’s routine and can reduce burnout, while simultaneously improving employee skills.
Side projects can improve your employee’s network, which might help you hire new developers.
Gmail famously came from Google’s 20% time to tinker policy. And while Google quietly terminated 20% time last year, other companies have picked up the torch. Check out LinkedIn’s Incubator, Apple’s BlueSky, and Microsoft’s Garage. Github Hacks on Side Projects just because they’re fun.
Github’s best practices for leaving your company.

References: v. 
 v. 
 v. 
 § 2870
 § 101
 v. 
 v.