Home / Insights / Dedicated Teams and Outsourcing
Dedicated Teams and Outsourcing
Who Owns AI-Generated Code? IP, Licences and Contract Clauses for Outsourced Development
When an outsourced team uses AI coding assistants, the usual assumption that you own everything you paid for needs a closer look. This guide explains where the legal uncertainty lies, which risks matter in practice, and which contract clauses and delivery controls protect you.
TopicsDedicated Teams and OutsourcingGenerative AI and LLMsSoftware Partner Selection
Key takeaways
- Copyright law in several jurisdictions protects human authorship; purely machine-generated material may not be protected at all, which weakens exclusivity rather than transferring ownership to someone else.
- In practice, the bigger risks are third-party licence obligations from code that matches public repositories, and confidential code leaking into tools with unsuitable terms.
- Contracts should assign all deliverables regardless of how they were produced, add warranties on licence compliance, name approved AI tools and settings, and require disclosure on request.
- Delivery controls matter as much as clauses: tool policies, public-code filters, licence scanning, human review and records of significant AI use.
- Match the level of control to the asset: core product IP justifies stricter rules than an internal tool.
On this page
- Why has code ownership become a question again?
- What does current guidance say about ownership of AI-generated material?
- Which risks matter most in practice?
- Which clauses should an outsourcing contract include?
- What delivery controls should you expect from a supplier?
- How strict should your rules be?
- What should you check before signing?
- Frequently asked questions
- Sources and methodology
Most software development contracts contain a simple promise: the client owns the intellectual property in what it pays for. That promise was written for a world in which human developers typed every line. By the end of 2024, many development teams, including offshore and nearshore teams, routinely use AI coding assistants to suggest functions, generate tests and draft documentation. Clients are starting to ask a reasonable question: if a machine wrote part of the code, who owns it, and does the old contract still protect us?
As a PM-QA lead, I approach this less as a legal puzzle and more as a delivery governance problem. The law is still developing, and you should take advice from a qualified lawyer in your jurisdiction. But most of the practical risk can be managed with clear contract terms and disciplined delivery controls. This article is for CTOs, founders, procurement and legal teams buying outsourced development. It explains what current guidance says, which risks matter most, the clauses worth adding, the controls to expect from a supplier, and a checklist to use before signing.
Why has code ownership become a question again?
Traditional outsourcing contracts rely on a chain: developers create code, their employment or contractor agreements give the rights to the supplier, and the supplier assigns those rights to the client. Each link assumes there is a human author whose rights can be transferred.
AI coding assistants complicate that chain in three ways.
- Authorship. If a portion of code is generated with little human creative input, it may not attract copyright at all in some jurisdictions. There may be nothing to assign for that portion.
- Provenance. Models trained on large volumes of public code can occasionally produce suggestions that closely match existing code, which may be covered by an open-source or other licence.
- Confidentiality. Using an assistant means sending code and context to a service. Whether that service retains or uses the data depends on its terms and configuration.
None of these issues means AI-assisted code is unusable. They mean that “we own everything” should be backed by specific terms and evidence, especially for software that forms the core of your product’s value or that you may one day need to defend in due diligence.
What does current guidance say about ownership of AI-generated material?
There is no single global answer, and positions are still evolving. Two jurisdictions illustrate the range.
United States
The US Copyright Office’s registration guidance on works containing AI-generated material, published in the Federal Register in March 2023, states that copyright protects only material that is the product of human creativity. Where an AI tool receives a prompt and determines the expressive elements of its output, that output is not human-authored. The guidance also says that a work containing AI material can still be protected where a human selects, arranges or modifies the material with sufficient creativity, but the protection covers only the human-authored contribution. Applicants are expected to disclose AI-generated content that is more than de minimis.
United Kingdom
UK law has an unusual provision. Section 9(3) of the Copyright, Designs and Patents Act 1988 says that for a computer-generated literary, dramatic, musical or artistic work, the author is taken to be the person by whom the arrangements necessary for the creation of the work are undertaken. How this applies to modern generative AI is debated. On 17 December 2024 the UK government opened a consultation on copyright and artificial intelligence, running until 25 February 2025, which includes copyright protection for computer-generated works among the issues it covers.
What this means for buyers
| Question | Practical answer today |
|---|---|
| Does the AI tool provider own the code? | Generally not under major providers’ terms; for example, Microsoft states it claims no IP ownership of Copilot outputs. Check each tool’s terms. |
| Does the supplier own it instead of us? | Not if your contract assigns all deliverables to you, whatever the method of production. |
| Is every line protected by copyright? | Not necessarily. Purely generated fragments may be unprotected in some jurisdictions; human-designed structure, selection and modification are more likely to be protected. |
| Does lack of copyright in a fragment hurt us? | It weakens your ability to stop others copying that fragment, but your overall system, trade secrets and contractual confidentiality still protect your product. |
For most commercial software, the value lies in the overall design, the integration with your data and processes, and the knowledge of how it works, rather than in individual generated functions. That is why the contractual and confidentiality protections discussed below matter more day to day than the authorship debate.
Which risks matter most in practice?
When we review AI use in delivery, we separate three risks, because each has a different cause and mitigation.
| Risk | What causes it | Who controls it | Main mitigation |
|---|---|---|---|
| Weak protection for generated fragments | Little human creative input in parts of the code | Largely legal; partly process | Human design and review, trade secret and confidentiality terms, records of human contribution |
| Third-party licence obligations | Suggestions that match public code under licences with conditions | Supplier, through tool settings and scanning | Block or flag public-code matches, licence scanning, review of flagged code |
| Confidentiality and data leakage | Code, secrets or personal data sent to tools with unsuitable terms | Supplier and client, through tool choice and policy | Business-licensed tools, approved list, no secrets or production data in prompts |
Public-code matching
Some tools offer controls for this. GitHub’s documentation explains that suggestions matching public code can be blocked or allowed through personal or organisation policies, and where they are allowed, Copilot can show references to similar public code with the licence type, where known, and the URL of the matching file. A supplier working on your code should be able to tell you which setting is in force and what happens when a match is flagged.
Provider indemnities
Some providers offer contractual protection to paying business customers. Microsoft announced its Copilot Copyright Commitment in September 2023, later expanded as the Customer Copyright Commitment, under which it will defend commercial customers of covered paid Copilot services, including GitHub Copilot, against third-party copyright claims arising from outputs. The commitment has conditions, including using the built-in guardrails and content filters and not attempting to generate infringing material. Note that such commitments protect the provider’s customer, which in an outsourcing arrangement is usually the supplier, not you. Your contract with the supplier should address how that protection, and the conditions attached to it, apply to your project.
Which clauses should an outsourcing contract include?
Most of these clauses can be added to an existing master services agreement or statement of work. Your lawyer will adapt the wording; the aim here is to make sure the right topics are covered.
- Assignment regardless of method. All deliverables, including code, tests, documentation, prompts and configuration, are assigned to the client to the fullest extent the law allows, whether created manually or with AI tools. Where rights cannot be assigned, the supplier grants an exclusive, perpetual, royalty-free licence and waives claims.
- Licence compliance warranty. The supplier warrants that deliverables do not knowingly include third-party code under licences incompatible with the client’s intended use, and that any open-source components are declared.
- Approved tools and settings. The supplier uses only listed AI tools under business licences, with settings agreed with the client, such as blocking suggestions that match public code and disabling use of inputs for model training where the tool allows it. Changes need notice or approval.
- Data handling. No credentials, secrets, personal data or production data may be entered into AI tools. Client code may be processed only by approved tools.
- Disclosure and records. On request, the supplier identifies deliverables or components that were substantially AI-generated and keeps reasonable records, such as pull request labels.
- Indemnity and remedies. The supplier’s IP indemnity covers AI-assisted deliverables in the same way as other work. If the supplier relies on a tool provider’s commitment, it must meet that commitment’s conditions.
- Review standard. All code, however produced, passes the same human review, testing and scanning gates.
- Confidentiality and trade secrets. Confidentiality obligations explicitly cover information shared with or generated by AI tools in the course of the work.
These clauses work best when they reflect controls the supplier already operates. If a supplier cannot explain how it would comply, the clause is only paper.
What delivery controls should you expect from a supplier?
Contracts set expectations; delivery processes make them real. From a PM-QA perspective, these are the controls I look for.
Before work starts
- A written AI tool policy covering approved tools, licensing, settings and prohibited inputs, shared with the client.
- Tool accounts under the supplier’s business organisation, not personal accounts.
- Repositories hosted in the client’s organisation where possible, so access and history remain with the client.
During development
- Public-code matching blocked, or flagged and reviewed, according to the agreed setting.
- Software composition analysis and licence scanning in CI to detect declared and copied open-source components.
- Pull request templates that ask whether AI assistance was used substantially, giving a lightweight record.
- Human review of every change, with reviewers checking generated code for correctness, security and suspiciously generic blocks that may have been reproduced.
- Secret scanning to catch credentials before they reach repositories or tools.
At milestones and handover
- A dependency and licence report, or software bill of materials, for the release.
- Confirmation that all code, configuration and documentation are in client-controlled repositories.
- A summary of AI tools used and any exceptions to the policy.
For a framework on reviewing the quality of AI-assisted code itself, see our article on turning AI-generated code into maintainable software. If you are setting internal rules for your own engineers as well, our guide to rolling out AI coding assistants across an engineering team covers governance and measurement.
How strict should your rules be?
Not every project needs the same level of control. Over-restricting AI use can slow delivery without reducing meaningful risk, while under-controlling it on a core product can create problems in due diligence later.
| Type of software | Typical sensitivity | Suggested stance on AI assistance |
|---|---|---|
| Core product IP (the thing investors or acquirers value) | High | Allowed with approved tools, public-code blocking, licence scanning, disclosure records and senior review of core algorithms |
| Regulated systems (health, finance) or code handling sensitive data | High | Allowed with strict data rules; no sensitive data in prompts; client approval of tools; audit-ready records |
| Customer-facing features built on common patterns | Medium | Allowed with standard controls and review |
| Internal tools, scripts and prototypes | Lower | Allowed with basic controls; focus on confidentiality |
For example, an illustrative healthtech start-up preparing for investment might require public-code blocking, licence scans and pull request disclosure on its core platform, while allowing lighter rules for internal reporting scripts. That gives it a clear story for due diligence without slowing every task.
When you engage a dedicated development team with us, IP and confidentiality terms are agreed in the contract and repositories can sit in your organisation, so these stances can be written into the working agreement from the start. For the commercial side of AI-augmented teams, see our article on what changes in productivity and pricing.
What should you check before signing?
Use this checklist with your legal and engineering leads before signing or renewing an outsourcing agreement.
Contract
- Assignment covers all deliverables regardless of how they were produced, with a fallback licence where assignment is not possible.
- Warranty on open-source and third-party licence compliance.
- Approved AI tools, licensing and required settings are listed.
- Data handling rules prohibit secrets, personal data and production data in prompts.
- Disclosure on request and reasonable records of significant AI use.
- IP indemnity applies to AI-assisted work.
Supplier practice
- Written AI tool policy you have read.
- Business accounts with appropriate data settings.
- Public-code matching blocked or flagged and reviewed.
- Licence and secret scanning in CI.
- Human review of all changes.
Your side
- Repositories and key accounts in your organisation.
- A decision on the strictness level for each part of your system.
- A named owner who reviews the licence report at each release.
- Legal advice for your jurisdiction, particularly while guidance and consultations are ongoing.
Frequently asked questions
If an offshore developer uses an AI assistant, does the supplier or the tool provider own the code?
Ownership between you and the supplier is set by your contract, so make sure it assigns all deliverables regardless of method. Major tool providers generally do not claim ownership of outputs; Microsoft, for example, states it claims no IP ownership of Copilot outputs. Check each tool’s terms.
Is AI-generated code protected by copyright?
It depends on the jurisdiction and on the human contribution. US Copyright Office guidance says only human-authored material is protected, while UK law has a specific provision for computer-generated works that is under consultation. Take legal advice for your situation.
Should we ban AI coding tools in our outsourcing contract?
Usually not. A ban is hard to verify and can slow delivery. It is generally more effective to require approved tools, agreed settings, licence scanning, human review and disclosure on request.
Does a tool provider’s copyright indemnity protect us as the client?
Such commitments typically protect the provider’s customer, which is often the supplier, and come with conditions such as using built-in content filters. Your contract should address how that protection and its conditions apply to your project.
What evidence of AI use should we keep for due diligence?
Pull request labels or notes on significant AI assistance, licence and dependency reports for each release, the supplier’s tool policy and settings, and confirmation that code sits in your repositories.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- US Copyright Office, Federal Register: Copyright Registration Guidance: Works Containing Material Generated by Artificial Intelligence (16 March 2023) — accessed 9 November 2026. Human authorship requirement, treatment of prompt-driven output, protection for human selection and modification, and disclosure.
- legislation.gov.uk: Copyright, Designs and Patents Act 1988, section 9 — accessed 9 November 2026. Authorship of computer-generated works under UK law.
- UK Government: Copyright and Artificial Intelligence consultation (17 December 2024) — accessed 9 November 2026. Consultation dates and inclusion of protection for computer-generated works.
- GitHub Docs: Finding public code that matches GitHub Copilot suggestions — accessed 9 November 2026. Blocking or allowing public-code matches and licence information shown for matches.
- Microsoft On the Issues: Microsoft announces new Copilot Copyright Commitment for customers (September 2023) — accessed 9 November 2026. Scope and conditions of the provider indemnity and statement that Microsoft claims no ownership of outputs.
Related reading
Continue your research
Want AI tool rules and IP terms written into your development agreement from day one?
Tell us about your product and how sensitive each part is. We will propose working rules for AI tools, IP and confidentiality terms, and the delivery controls we would run.
