Why buyers ask
A buyer of a software company is buying, above all, exclusive rights in the code. In technical due diligence, the standard ownership questions concern people: employees, contractors and founders, and whether each assigned their work to the company. AI coding assistants add a contributor who signs nothing.
Two concerns follow. The first is whether code produced by a tool is protected by copyright at all, and so whether the seller has exclusive rights to sell. The second is whether the tool reproduced someone else's code and brought that code's license into the product. Neither is a reason to avoid companies that use assistants. Both are reasons to ask.
This article is general information and not legal advice. The rules differ by jurisdiction and are still developing, so counsel should be consulted on any specific transaction.
Whether the code is protected
Copyright in most systems protects works of human authorship. In several jurisdictions, including the United States, the authorities have taken the position that material generated by a machine without sufficient human creative contribution does not qualify. A few countries have statutory rules for computer-generated works.
In practice very little production code is purely machine-made. An engineer frames the problem, selects among suggestions, edits, integrates and tests. How much human contribution is enough, and how it would be proved years later, is not settled, and the answer may differ from country to country.
Two points keep this in proportion. Source code that is kept confidential is also protected as a trade secret and by contract, neither of which depends on authorship. And the exposure is uneven: a weakness in protection matters most for code that a competitor could obtain, and for the modules where the product's value is concentrated.
License contamination
Coding assistants are trained on large bodies of existing code, much of it open source under licenses with conditions. The concern is that an assistant reproduces a recognizable portion of that code in its output, and that the portion carries its license with it. If the original was under a copyleft license such as the GPL, the consequences could reach the surrounding code. Our article on copyleft licenses explains those obligations.
How often this happens is hard to state with confidence. Short, common fragments are unlikely to matter. Long passages reproduced closely would, and the risk is higher where an engineer asks for a well-known algorithm or library function by name. Some assistants offer a setting that blocks suggestions matching public code, and whether it was switched on is worth establishing.
Whether training a model on licensed code is itself lawful is a separate question, and it is being tested in the courts of several countries. It is mainly a matter for model providers, but the outcome may affect their customers.
What the provider terms decide
The agreement between the target and each tool provider settles several things that the law leaves open. Terms differ between providers, between plans of the same provider, and over time, so the version in force when the code was written is the one that counts.
Read for four points:
- Rights in output. Whether the provider claims any rights in what the tool generates, or leaves them with the customer.
- Indemnity. Whether the provider undertakes to defend the customer against infringement claims over output, and on what conditions, such as keeping certain filters enabled.
- Retention and training. Whether the code and prompts sent to the tool are stored, and whether they are used to train models. This bears on confidentiality as much as on ownership.
- Plan. Business plans and personal plans often carry different terms. An engineer using a personal account on company code may be outside every protection the company arranged.
Policy and practice
A buyer cannot inspect how each line was written, but it can inspect whether the company controlled the matter. A company in good order has a written policy with a date on it, a list of approved tools and settings, and a rule that generated code is reviewed by a person who takes responsibility for it.
The gap between policy and practice is where findings arise. A policy adopted last quarter says little about code written two years ago. Approved tools on company accounts say little about what engineers ran on their own machines. Ask when each tool was introduced, who administers it, and how the company would know if someone used something else.
How to evidence usage
A seller that expects the question can prepare the answer. Useful material for a data room includes:
- The AI usage policy and its revision history.
- Subscription records for each coding assistant, with plan and dates.
- Administrative settings, in particular for code-matching filters and data retention.
- The provider terms in force during each period.
- A provenance estimate for the codebase, by module. See GenAI code provenance.
- Results of an open-source scan that includes snippet matching, to show whether known licensed code appears in the product.
In the share purchase agreement (SPA), the facts usually surface as a warranty about the use of AI tools and compliance with their terms, with disclosures against it. A warranty is only useful if it can be checked, a point developed in representations and warranties about software.
How we approach it
Every report we produce includes GenAI code provenance: an estimate of the share of the codebase generated by AI, its concentration by module, and the implications for intellectual property (IP) and security. These figures are estimates. They show where to look and how much is at stake, not who holds title.
Alongside it we run license compliance and software composition analysis with a full software bill of materials (SBOM), and an IP chain-of-title analysis that maps each assignment clause in the agreements against the contributors in the code history. The result is a chain-of-title score and a list of gaps. This is analysis, not legal advice.
In the Analyst-Verified Report, an in-house analyst verifies the findings and pairs material issues with market-standard remedies, which is data-backed negotiation support, not advisory. The method is described on our technology page. Analysis runs in Codekeeper's private environment, and nothing is sent to AI vendors or used for training, as set out under security.
Questions we are asked
Does AI-generated code mean the seller does not own its software?
Not in itself. Most code written with an assistant involves substantial human work, and confidential source code is also protected by trade secret law and contract. The open questions concern the degree of protection for particular passages, and they differ by jurisdiction, which is why counsel should assess them on the facts.
Can a scan prove that no licensed code was copied by an assistant?
No. A scan with snippet matching can find passages that match known open-source code, and a clean result is useful evidence. It cannot prove a negative, and our reports state what was examined and what was not.
What should a seller do before a sale?
Adopt a written policy if there is none, move all usage onto company accounts with known terms and settings, and collect the records listed above. A seller that can show when each tool was introduced and how it was controlled turns an open question into a disclosed fact.
This article is general information for people working on software transactions. It is not legal, financial or insurance advice.