Answer

Who owns the code a contractor writes?

Under US law copyright vests first in the author, and Circular 30 says that the author is ordinarily the person who actually created the work. A commissioned work is a work made for hire only in the narrow cases that 17 U.S.C. 101 lists, and a transfer of ownership, other than by operation of law, needs a signed writing (17 U.S.C. 204(a)). Under clause 8 of my agreement the rights pass to you when the invoice for that work is paid in full.

Under US law copyright starts with the author

17 U.S.C. 201(a) says that copyright vests initially in the author or authors of the work. Circular 30 says that ordinarily the author is the person who actually created the work, and that works made for hire are an exception.

17 U.S.C. 101 defines a work made for hire in two ways. The first is a work prepared by an employee within the scope of his or her employment. The second is a work specially ordered or commissioned in one of nine listed categories, if the parties expressly agree in a written instrument signed by them that it is a work made for hire (Circular 30 of the US Copyright Office).

“Computer program” is not one of the nine names. That does not mean code can never be a work made for hire. It means a commissioned work must fit one of the nine categories and meet all four criteria of Circular 30.

The Copyright Act does not define the term “employee”. Circular 30 says that the US Supreme Court held that the courts should rely on the general common law of agency to give meaning to that term. For a commissioned work the Copyright Office writes “If a work fails to satisfy any of these requirements, it is not a work made for hire.” Then copyright vests initially in the author (17 U.S.C. 201(a)).

17 U.S.C. 204(a) says that a transfer of copyright ownership, other than by operation of law, is not valid unless an instrument of conveyance, or a note or memorandum of the transfer, is in writing and signed by the owner of the rights conveyed or the owner’s duly authorized agent. Circular 1 adds that a transfer on a nonexclusive basis does not require a written agreement.

How my agreement handles it, clause 8

Clause 8.1 says that until the invoice for a sprint is paid in full, the work stays on a branch or fork and I keep the rights. You may run and test it for internal evaluation, but you may not use it in production before you pay.

Clauses 8.2 and 8.5 say that all rights in the Sprint Work and in the Deliverables of paid work pass to you when the invoice for that work is paid in full. For the first Sprint that is the invoice sent after acceptance.

Under clause 8.3, if you do not accept the first Sprint, no licence to the unaccepted work passes. The Brief, the written diagnosis, the plan and the reports stay with you in every case.

Under clause 8.6 the rights that pass are all economic rights in the Deliverables, in all fields of use known at the time of transfer. These fields include recording, copying, changing, translating, combining with other works, distributing, publishing, selling, licensing, and storing in computer memory and on networks. To the extent the law allows, I will not use my moral rights to object to normal use or change of the Deliverables.

Under clause 8.7 I keep my background materials, the tools, libraries, templates, prompts and know-how I had before the agreement or create outside it. Where they are part of the Deliverables, you get a non-exclusive, worldwide, perpetual, royalty-free licence to use, copy and change them as part of the Deliverables, and the licence can pass with your business.

Under clause 8.8 open-source components keep their own licences. I list each new third-party dependency in the pull request and add no strong copyleft dependency (for example GPL or AGPL) without written approval.

Clause 8.9 says that the ownership rules apply to AI-assisted work to the extent the law gives rights in it. I review every change that an AI tool helps to write.

Clause 8.10 says that you keep all rights in your own code, data, brand and materials.

Clause 15.8 says that the parties may sign electronically and in separate copies. If the governing law requires a special form for a transfer of copyright, the parties sign in that form.

What the Polish copyright act says

The Polish Act on Copyright and Related Rights of 4 February 1994 (consolidated text of 9 January 2025, Dz.U. 2025 poz. 24) has its own rules. The English sentences below are my own translations.

Art. 41 ust. 1 pkt 1 says, unless the Act says otherwise (“Jeżeli ustawa nie stanowi inaczej”), that “autorskie prawa majątkowe mogą przejść na inne osoby w drodze dziedziczenia lub na podstawie umowy”. In my translation, economic rights can pass to other persons by inheritance or under a contract.

Art. 41 ust. 2 reads “Umowa o przeniesienie autorskich praw majątkowych lub licencja obejmują pola eksploatacji wyraźnie w nich wymienione.” In my translation, a transfer contract or a licence covers the fields of exploitation that it names expressly.

Art. 53 reads “Umowa o przeniesienie autorskich praw majątkowych wymaga zachowania formy pisemnej pod rygorem nieważności.” In my translation, a contract that transfers economic rights must be in writing, or it is void.

Clause 15.9 of my agreement leaves the governing law and the courts blank. The parties fill them in. This page does not say which law applies to your engagement.

What this means for your review

Check four things in any contractor agreement, a written and signed transfer, the moment ownership passes, what the contractor keeps (background materials, open-source licences) and the governing law that the parties fill in.

In my agreement the answers are clause 8.6 (all economic rights, in all fields of use known at the time of transfer) with the signatures and clause 15.8 (the form of signing), clauses 8.2 and 8.5 (on full payment), clause 8.7 (background materials stay with me, licensed to you) and clause 15.9 (blank until the parties fill it in).

If your reviewer needs the exact wording, the Engagement Agreement is on the documents page, as www.axdale.com/documents/axdale-01-engagement-agreement.md and as a PDF. Under clause 8.8 I list each new third-party dependency in the pull request.

This page and the documents are not legal advice. Ask your own lawyer about the law that applies to your engagement.

The documents behind this answer

Send a written brief

Next step

Send me your project, or the part your team can’t get to.

Send me your project

My last client result, a reports page cut from 3,800 requests per load to 3. The brief and the repo are enough to start.

How it starts

  1. [1]Send your project
  2. [2]Get a written plan
  3. [3]Approve the first milestone