Can one publish an assignment completed during a hiring process?
<p>Say a company gives a week long assignment during the hiring process of a Software Engineer role and ask for the project´s codebase to remain private.</p>

<p>Can they morally and legally ask to keep that private? Who has right / ownership of this project?</p>

<h2>Answer</h2>

<blockquote>
  <p><strong>If you agreed to keep it private, you are bound to do so.</strong></p>
</blockquote>

<hr>

<h3>Sources</h3>

<p>This answer pulls information from the following sources regarding the enforceability of non-disclosure agreements.</p>

<ul>
<li><a href="http://www.infolawgroup.com/2009/11/articles/information-security/ndas-worth-the-effort/" rel="nofollow">Info Law Group</a></li>
<li><a href="https://www.quora.com/How-enforceable-are-NDAs" rel="nofollow">Quora</a></li>
<li><a href="http://earlygrowthfinancialservices.com/ndas-worth-much/" rel="nofollow">Early Growth Financial Services</a></li>
<li><a href="https://www.ipnexus.com/protecting-information-making-nda-enforceable/" rel="nofollow">IP Nexus</a></li>
<li><a href="http://www.brightjourney.com/q/ndas-even-worth-signing-employees-even-enforceable" rel="nofollow">Bright Journey</a></li>
<li><a href="http://esr.ibiblio.org/?p=2394" rel="nofollow">iBiblio</a></li>
</ul>

<hr>

<h3>NDAs are enforceable</h3>

<p>Non-Disclosure Agreements and Confidentiality Agreements are common elements of the hiring process. It would not be unusual if they required you to sign one in consideration for an interview.</p>

<p>If you signed one, you should consider it a binding contract and absolutely enforceable.</p>

<h3>Project Ownership</h3>

<p>Regarding project ownership. If the employer had an existing codebase and asked you to contribute to it in exchange for being considered for a job opening, they would own the project, the code and the work product you contributed.</p>

<h3>Caveat for Fraud</h3>

<p>All this assumes an actual job exists and they are not tricking you just to get free labor. If they are, then that would be fraud and contracts are not enforceable if their is "fraud in the inducement."</p>

<hr>

<p><strong>Disclaimer</strong>: I am not an attorney. I am not your attorney. Do not follow my advice. Hire a real attorney. Never take legal advice from strangers on the internet. Treat my answer and every answer on this site just like you would advice from a bunch of drunks at a bar — all of whom received their "legal educations" from watching episodes of The Practice, Boston Legal and Ally McBeal.</p>

<p>It depends on what the explicit agreement was but generally speaking based on the facts you've given yes they can ask for it to remain private. In consideration for being a job candidate you agreed to do work and keep the work private. Their half of the contract was to evaluate you as a job candidate and your half was to do the work and keep it private.</p>

<p>Did the other party fulfill their part?</p>

united-kingdom intellectual-property employment