Sub topic 9
Employer and client ownership of AI-assisted work
This chapter assumes you know how an AI coding assistant is used day to day, that you work with Git and code review, and that you know what an open-source license is. It is general education, not legal advice. Contract law differs by country and changes over time.
Who owns code by default
Copyright ownership usually starts with the author. Two rules commonly move that ownership to someone else:
- Employment. In many countries, code an employee writes within the scope of their job belongs to the employer. In the US this is called "work made for hire". In the UK, the employer generally owns works made in the course of employment, unless the contract says otherwise.
- Contract. A freelancer or consultant usually keeps ownership unless the contract assigns it to the client. An assignment clause or a work-for-hire clause is what transfers it.
These rules assume there is a copyrightable work and a human author. The earlier chapters covered the limits on copyright for AI-generated output. The consequence here is that your employer or client can only receive rights that exist. If a passage of code has no copyright protection, no contract can create it.
What this means for AI-assisted work
Assignment clauses were written before coding assistants existed. They usually say that you assign "all work product" or "all deliverables". Three questions follow from that wording.
- Is the AI-assisted part covered? Clauses that cover everything you produce in the job normally include AI-assisted code. But the party receiving it may get thinner protection for the purely generated parts.
- Did the contract allow the tool? Some client contracts forbid third-party tools, or forbid sending client material to external services. Using an assistant can then be a breach, even if the code is excellent.
- Do warranties still hold? Many contracts include a promise that the deliverable is original and does not infringe anyone's rights. Generated code that copies licensed code can make that promise false.
Common failure modes
- Silence is not permission. If a policy does not mention AI tools, ask before assuming they are allowed.
- Client data in prompts. Pasting client code into a tool can breach confidentiality terms, even when ownership is not in doubt.
- Personal accounts on work code. Using a personal subscription for employer work can mix up whose terms apply and where the data goes.
- Side projects. Some employment contracts claim work done with company resources or related to the company's business. Using a work-provided assistant for a side project can blur that line.
- Undisclosed use. A client may expect that deliverables were written by humans. Some contracts require disclosure of AI use. Check before you deliver.
A practical routine
Before using an assistant on paid work, do these steps:
- Read the AI-related parts of your employment agreement, the client contract and any internal policy.
- Use only tools the employer or client has approved.
- Edit and review output yourself, and keep a record of the human choices you made. The commit trailer convention from the provenance chapter works well here.
- Ask for written permission when the contract is unclear. A short email is better than a later dispute.
Subject: Use of AI coding assistant on Project Atlas
Hi Sam,
Our contract (section 7) requires approval for third-party tools.
I would like to use an AI coding assistant for Project Atlas. Code
and prompts would be sent to the vendor's service. Can you confirm
in writing whether this is approved, and under what conditions?
Thanks,
JaneExercise
You are a freelancer. Your client contract assigns all deliverables to the client and warrants that they are original. You use an assistant to draft a module, and one function closely matches code under a copyleft license. Name two contract risks this creates.
Show answer
First, the originality and non-infringement warranty may be false, which exposes you to a breach claim. Second, the client may receive code carrying license obligations they did not agree to. If you also sent client code to an unapproved tool, there may be a separate confidentiality or tool-use breach.