Sub topic 9
Employer and Client Ownership of AI-Assisted Work
This chapter covers who owns code you write with an AI assistant when you work for an employer or a client. It assumes you know the basics from earlier chapters: copyright needs human authorship, AI-assisted work can be protected where a human makes the creative choices, and tool terms assign output rights in different ways. It is general education, not legal advice. Contract terms and national law decide the real answer in any given case.
Two separate questions
Ownership of AI-assisted code involves two questions that people often mix up.
- Is there a copyright to own? This depends on human authorship, as covered in earlier chapters. Parts of the code that no human authored may have no copyright at all.
- If there is a copyright, who holds it? This depends on employment law and on contracts: your employment agreement, your client contract, and the terms of the tool you used.
Employment and contract rules only move rights that exist. If a block of generated code has no copyright, your employer cannot own a copyright in it. Your employer can still control it through confidentiality, trade secret protections and access control. The contract does not create the missing right.
How ownership normally flows
For ordinary code, ownership usually follows one of two routes.
Employees
In many countries, work an employee creates within the scope of the job belongs to the employer from the start. In the US this is the "work made for hire" doctrine. In the UK, the Copyright, Designs and Patents Act 1988 gives the employer first ownership of works made by an employee in the course of employment, unless there is an agreement to the contrary. Many EU countries differ. Some give the employer only a license to use the work, or handle it through contract terms. Employment contracts often add an explicit assignment clause that moves any remaining rights to the employer.
"Scope of the job" matters. Code you write on your own time for your own project may belong to you. Some contracts claim more than the default rule gives, and some jurisdictions limit such claims. Read the clause that covers inventions and works, and check whether it covers work done with company equipment or on company time.
Contractors and freelancers
Contractors are different. In the US, a contractor generally owns what they create unless a written agreement says otherwise. Work made for hire applies to contractors only for certain categories of work and only with a signed writing. Software often does not fit those categories, so client contracts normally include a written assignment of copyright from the contractor to the client. In the UK, a contractor is also the first owner by default, and an assignment must be in writing and signed.
So a client contract is where ownership gets decided, and AI use changes what the contract can promise.
What AI changes
You can only assign what you hold
An assignment clause transfers rights you have. If part of a deliverable has no copyright because a model generated it without enough human creative input, the assignment has nothing to transfer for that part. The client receives the code, but not an exclusive right to stop others copying it.
That matters when a client expects exclusivity. A client who pays for custom software may assume a competitor cannot legally copy it. If large portions were generated with little human authorship, that assumption may be wrong. Your human-written structure, selection and arrangement, and your edits to generated output, are the parts most likely to carry protection.
Warranties in contracts
Client contracts often include warranties. Common ones include:
- The work is original.
- The work does not infringe third-party rights.
- The contractor has the right to assign the work.
- The work contains no open-source code under terms that require disclosure, except as listed.
AI-assisted code can strain each of these. Generated code can reproduce existing licensed code, which raises the infringement and open-source warranties. Missing copyright in some parts affects the "right to assign" warranty. Before you sign or deliver, compare your AI use against the warranties. If you cannot give a warranty honestly, negotiate it.
Tool terms sit underneath your contract
Your tool's terms of service come first in the chain. If the tool's terms do not give you the rights you then promise your client, there is a gap. Check three things:
- Does the tool assign output rights to you, or grant a license?
- Do the terms allow commercial use of output?
- Does the tool use your input for training, and does that conflict with your confidentiality duties?
The earlier chapter on tool terms covers these in detail. Here the point is that your promises to a client cannot exceed what the tool terms give you.
Employer policy and unauthorized tools
Many employers restrict AI tools. Common rules include an approved tool list, a ban on pasting proprietary code into public tools, and a requirement to disclose AI use in pull requests.
Breaking such a rule can cause problems that go beyond a policy violation:
- Confidentiality breach. Sending client code or secrets to a third-party service may break a non-disclosure agreement.
- Ownership gaps. A personal account with consumer terms may give the tool provider rights you did not expect, or a weaker indemnity than the company's enterprise plan.
- Disciplinary action. Employers can treat a breach of the AI policy as misconduct.
Using your own tool on company work is risky for another reason. If the terms attached to your personal account conflict with your employer's rights, your employer may not get clean ownership.
A worked scenario
Priya is a freelance developer. Her contract with a client says she assigns all rights in the deliverables, warrants the work is original and non-infringing, and will not use third-party code without written approval.
She uses an AI assistant to draft a date-parsing module and a small retry helper. She rewrites the date module extensively and writes the tests by hand. She accepts the retry helper almost unchanged.
What should she do?
- Check the contract. The "no third-party code without approval" clause could cover generated code that matches existing open-source code. She should ask the client about AI use, or confirm that the contract allows it.
- Check the tool terms. She confirms that her plan assigns output to her and offers some indemnity.
- Review the output. She scans the retry helper for matches to known code and checks any license notices.
- Record provenance. She notes in the commit which parts were AI-assisted and what she changed.
- Disclose. She tells the client that AI assistance was used, and agrees on how to describe it in the delivery notes.
The result is clearer than silence. The client knows what they receive, and Priya can show she took reasonable care.
flowchart TD
A[AI-assisted code is ready to deliver] --> B{Does the contract or policy allow AI tools?}
B -- No --> C[Stop and ask for written permission]
B -- Yes --> D{Do the tool terms support the rights you promise?}
D -- No --> E[Change tool or renegotiate the promise]
D -- Yes --> F[Review output for copied code and licenses]
F --> G[Record provenance in commits]
G --> H[Deliver with agreed disclosure]Putting the diagram in context
The flowchart above is plain Mermaid source. The platform's diagram format wraps it like this:
Common contract clauses to watch
| Clause | What it does | AI-related risk |
|---|---|---|
| Assignment of rights | Transfers copyright to employer or client | Cannot transfer rights that do not exist |
| Originality warranty | Promises the work is your own creation | Generated code may not be original to you |
| Non-infringement warranty | Promises no third-party rights are violated | Output can reproduce licensed code |
| Third-party code restriction | Requires approval for outside code | Generated code may count as third-party code |
| Confidentiality / NDA | Limits sharing of client information | Prompts and code sent to a tool may be a disclosure |
| Moral rights waiver | Gives up attribution and integrity claims | Applies to human authors, and varies by country |
| Audit rights | Lets the client inspect your process | You may need provenance records to answer |
Practical habits
- Read your employment agreement and client contracts for clauses on AI, third-party code and confidentiality. Many older contracts do not mention AI, so apply the general clauses.
- Ask when a contract is silent. A short written confirmation from a client is better than an assumption.
- Use approved tools with terms that match your obligations.
- Keep human creative work visible: design decisions, edits, tests and review notes.
- Keep records. A commit trailer or pull request note costs seconds and can answer a question months later.
- Do not promise exclusivity you cannot support. If a client needs strong exclusivity, discuss how much of the work will be human-authored.
Edge cases
- Open-source employer projects. If your employer contributes to open source, the employer's policy decides whether AI-assisted patches may be submitted. The next chapters cover project rules.
- Multiple contributors. In a team, one person's unreviewed generated block can affect the warranty for the whole deliverable. Review applies to the entire codebase, not only your own commits.
- Existing code as input. If you give a tool a client's existing code and ask it to extend it, the output is a derivative of the client's code and sits under the client's rights, in addition to any questions about the tool.
- Side projects. Work done with an employer's AI subscription, on company time, or using company code as context may fall under the employer's claim even if you consider it personal.
- Departing employees. Prompts, chat histories and generated drafts stored in a tool account may hold company information. Check what you must return or delete when you leave.
Exercise
A freelancer delivers a module that is mostly generated with light edits. The contract assigns "all copyright" to the client and warrants the work is original. Name two problems this may cause and one step the freelancer should have taken.
Show answer
First, the assignment can only transfer rights that exist, so the unedited generated portions may have no copyright to assign, and the client may not get the exclusivity they expect. Second, the originality and non-infringement warranties may be untrue if the output reproduces existing licensed code. Before delivery, the freelancer should have checked the contract and tool terms for AI use, reviewed the output for copied code, and disclosed the AI assistance to the client in writing.
Exercise
An employee uses a personal AI account on the free consumer plan to refactor company code, although the company has an approved enterprise tool. List two risks beyond breaking the policy.
Show answer
The code may be disclosed to a third party in breach of confidentiality, and the consumer terms may allow the provider to retain or train on the input. The consumer plan may also offer weaker output rights and no indemnity, which can leave the employer's ownership and legal protection less clear than with the approved tool.