AI startup due diligence: how investors check what is real / The engineering read
Code provenance and licence exposure in AI-generated code
Licence exposure in AI-generated code comes down to three questions: whether the generated code can be owned at all, whether the generator reproduced someone else's licensed code, and what the tool provider's terms say about who owns the output. The US Copyright Office concluded in January 2025 that copyright does not extend to purely AI-generated material and that prompts alone do not give a user authorship, which makes the first question real for a codebase that was mostly generated. The second is answered by the generator's own matching logs, and the third by reading the terms. This page gives the check an investor can run and what to record.
Published September 17, 2026. Editorial.
Key takeaways
- The US Copyright Office's January 2025 report concludes that purely AI-generated material is not protected by copyright, that prompts alone do not provide sufficient control for authorship, and that human contributions are assessed case by case; a codebase with no record of human contribution has an ownership question.
- Generators can reproduce public code: GitHub's Copilot documentation describes a code-referencing feature that checks suggestions against public repositories and logs the matching file and its licence, so ask whether it was on and what it logged.
- Morgan Lewis's June 2026 list of open-source areas of inquiry in M&A diligence, policy, training, contributions, tracking, scans and copyleft approval, does not mention AI-generated code at all, so the standard legal checklist will not ask these questions unless you add them.
- Provider terms decide output ownership and training use: Anthropic's commercial terms state that the customer owns its outputs and that Anthropic may not train on customer content, and the target should be able to show which terms applied to each tool.
Licence exposure in AI-generated code is three separate questions, and a diligence review has to ask all three because each has a different source of evidence. Can the generated code be owned? Did the generator reproduce code that carries someone else's licence? And what do the terms of the tool that generated it say about who owns the output and what the provider may do with the input?
The general open-source review in open-source licence due diligence still runs. This page is about what it misses when most of the code came out of a model.
Can AI-generated code be owned at all?
AI-generated code can be owned to the extent a human contributed protectable expression to it, and purely generated code, with no such contribution, is not protected by copyright under current US guidance. That is the conclusion of the US Copyright Office's report on copyrightability, published in January 2025 after a consultation that drew more than 10,000 comments [1].
Reveneau's provenance check on an AI-written codebase asks for the record of human contribution, not because every file needs a human author, but because a company that cannot show which parts of its code a person shaped cannot say which parts it owns. The report's conclusions, quoted from its summary, are the test.
The Office concluded that "copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements"; that "based on the functioning of current generally available technology, prompts do not alone provide sufficient control"; that "the use of AI tools to assist rather than stand in for human creativity does not affect the availability of copyright protection for the output"; and that whether human contributions are sufficient "must be analyzed on a case-by-case basis" [1]. It also concluded that human authors are entitled to copyright in their own contributions that are perceptible in the output, and in the creative selection, arrangement or modification of it.
For a startup, the practical reading is this. Code a developer wrote with an assistant suggesting lines is assisted and protected. Code an agent generated from a prompt, unmodified, is at the weak end of the scale. Most codebases are a mix, and the diligence question is whether the company can say which is which. The report is US guidance; other jurisdictions differ, and the report itself says it will revisit its conclusions as the technology changes. The finding for the investor is the same in every jurisdiction: the ownership of generated code is a live question, and the target's answer should be a record rather than an assumption.
Did the generator reproduce licensed code?
The generator may have reproduced public code, and the tool's own logs are the evidence. GitHub's documentation for Copilot describes a code-referencing feature that compares a suggestion and the surrounding code, a window it gives as 150 characters, against an index of public repositories on GitHub.com, and says that when a matching suggestion is accepted the log entry includes the URLs of files containing matching code and the name of the licence that applies to that code, or NOASSERTION if none was found [2]. The same documentation describes a setting that blocks suggestions matching public code.
So the questions are direct. Was the matching filter on or off, and since when? If it was on and set to allow, where are the logs, and what licences appear in them? If it was set to block, can the company show the setting's history? If the tool was one that offers no such feature, what did the company do instead?
The standard legal checklist will not ask these. Morgan Lewis's June 2026 summary of common open-source areas of inquiry in M&A diligence lists six: whether the company has a written open-source policy, whether it trains employees on licence obligations, whether it contributes to open-source projects, whether it tracks open-source usage, whether it runs regular scans, and whether it has an approval process for copyleft-licensed software [3]. It is a good list and it does not mention AI-generated code once. A target that passes all six can still have a generator that reproduced a GPL-licensed function into a proprietary module with no record of it.
The fix is a scan that the general open-source tools already do, pointed at the right question. A snippet-level match against public code, rather than a package-level dependency scan, is what finds a reproduced function. Ask whether one has been run and read the results.
What do the tool's terms say about output?
The tool's terms decide who owns the output and what the provider may do with the input, and a target should be able to name the terms that applied to each tool it used. The two are different questions. Ownership of output is about whether the company can claim what was generated. Training use is about whether the company's own code, sent as context, may have been used to improve the provider's models, which matters when the code contains a customer's data or a trade secret.
Anthropic's commercial terms of service state that the customer "retains all rights to its Inputs" and "owns its Outputs", and that "Anthropic may not train models on Customer Content from Services" [4]. Terms differ between a provider's consumer products and its commercial API, and they differ between providers, so the target's answer needs to be specific: which tool, which account type, which terms, from which date. A team that used personal accounts for a year before moving to a commercial plan has a year of input under different terms.
For the models the product itself calls in production, rather than the tools used to write it, the same question applies to customer data flowing through the API, and it belongs on the security page as well as here.
How do you run the provenance check?
Run the provenance check by asking for a record and then testing it against the tools' own logs and settings.
- Ask for the provenance record. Which tool generated which parts of the codebase, from when to when, under which account and terms. A good answer is a document. A weak answer is a guess about proportions.
- Ask for the human contribution record. Which modules were designed, modified or reviewed by a person, and how that is evidenced. Review history and specification documents are the usual evidence.
- Read the tool settings and their history. For each generator: the public-code matching setting, the logs it produced, and the date the setting last changed.
- Run a snippet-level scan against public code. On the current commit. Read every match with a copyleft licence and trace it to a module.
- Read the terms for each tool and account type. Confirm output ownership and training use. Note any period on consumer terms.
- Document the models the product calls. The SPDX 3.0 specification, released by the Linux Foundation on 16 April 2024, includes an AI profile whose properties for an AI package include the type of model, information about training, limitations, a safety risk assessment, and whether sensitive personal information is used [5] [6]. A target does not need SPDX, but it needs to be able to answer those fields.
- Write the exposure by module. Which parts of the codebase are assisted and owned, which are generated and unrecorded, and which contain a match to licensed code.
What goes in the report?
The report states the exposure by module and the cost of closing it. The table below is the shape.
| Finding | Evidence | Consequence |
|---|---|---|
| Human contribution recorded for core modules | Specs, review history, commit messages naming the reviewer | Ownership defensible under the Copyright Office's case-by-case standard |
| Generated modules with no contribution record | Provenance record says agent-generated, no review trail | Ownership uncertain; recommend a documented review pass post-close |
| Public-code matching was off | Tool settings history | Reproduced code possible; run a snippet scan before close |
| Copyleft match in a proprietary module | Snippet scan output | Rewrite or relicense the module; cost in the model |
| Consumer terms used for a period | Account history | Input may have been used for training in that period; disclose to affected customers if data was involved |
Each of these findings is common and each has a fix. What decides the deal is whether the company knew, because a company that knows has a record and a plan, and a company that does not has a lawyer's afternoon ahead of it after close.
Diligence on an AI-written codebase covers the other five artefacts the provenance record sits beside, security of AI-written code in diligence covers the data-flow half of the terms question, and handing over AI-written software is the engineering view of what a clean provenance record makes possible. The AI startup due diligence guide places all three in the engineering read.
Best for
- Any deal where the codebase was mostly generated and the IP is part of the valuation
- A legal team adding AI questions to a standard open-source checklist
- A buyer planning to relicense or sell the code after close
Avoid if
- The code is human-written with editor-level assistance and the general open-source review covers it
- The IP is not part of the value, as in a services business
Verify before you commit
- Ask for the provenance record and the human contribution record in writing
- Read the public-code matching setting and its logs for each generator
- Run a snippet-level scan against public code on the current commit
Common questions
Can a startup own code that was written by AI?
A startup can own AI-assisted code to the extent a person contributed protectable expression, and under current US guidance it cannot claim copyright in purely generated code. The US Copyright Office's January 2025 report concludes that copyright does not extend to purely AI-generated material, that prompts alone do not provide sufficient control, and that human contributions are assessed case by case. The diligence question is whether the company can show which parts a person shaped.
Does prompting an AI make the founder the author of the code?
No, prompting alone does not make the founder the author under current US guidance. The US Copyright Office's January 2025 report states that, based on current generally available technology, prompts do not alone provide sufficient control for authorship, while human contributions that are perceptible in the output, and creative selection, arrangement or modification of it, are protected. A record of specification, review and modification is what turns generated code into owned code.
How do I know if an AI coding tool copied open-source code?
You know whether an AI coding tool copied open-source code from the tool's own matching logs and from a snippet-level scan of the codebase against public code. GitHub's Copilot documentation describes a code-referencing feature that compares suggestions against public repositories and logs the matching file URL and its licence, or NOASSERTION, when a match is accepted. Ask whether the setting was on, read the logs, and run a snippet scan on the current commit regardless.
Does the standard open-source diligence checklist cover AI-generated code?
No, the standard open-source checklist does not cover AI-generated code. Morgan Lewis's June 2026 summary of common open-source areas of inquiry in M&A diligence lists six: a written policy, employee training, contributions to open-source projects, usage tracking, regular scans and a copyleft approval process. None mentions AI tools. A target can pass all six and still have a generated function that reproduced copyleft code, so the provenance questions have to be added.
Who owns the output of an AI coding tool?
Who owns the output of an AI coding tool depends on the tool's terms and the account type, and the target should be able to name both for each tool it used. Anthropic's commercial terms state that the customer retains all rights to its inputs and owns its outputs, and that Anthropic may not train models on customer content from the services. Consumer terms differ from commercial ones, so a period on personal accounts is a period under different terms and should be recorded.
Could the startup's code have been used to train a provider's model?
Whether the startup's code was used to train a provider's model depends on the terms in force when the code was sent as input, which is why the provenance record needs account types and dates. Anthropic's commercial terms state that Anthropic may not train on customer content from the services; consumer terms can differ. A team that used personal accounts before moving to a commercial plan has a period to account for, and if customer data was in the context, that period may need disclosure.
What is a snippet-level scan and why does it matter for AI code?
A snippet-level scan compares fragments of the codebase against public code to find reproduced functions, where a package-level dependency scan only lists the libraries declared. It matters for AI code because a generator can reproduce a licensed function into a proprietary module without adding a dependency. GitHub's Copilot documentation describes its own matching window as 150 characters of a suggestion and its surroundings; a snippet scan is the same idea run over the whole repository after the fact.
What should a provenance record for AI-generated code contain?
A provenance record for AI-generated code should say which tool generated which parts of the codebase, over which dates, under which account and terms, with what public-code matching setting, and which modules a person designed, modified or reviewed and how that is evidenced. For the models the product itself calls, the SPDX 3.0 AI profile, part of the specification the Linux Foundation released on 16 April 2024, lists the fields a documented AI package answers: model type, training information, limitations and safety risk.
Is licence exposure in AI-generated code a deal-breaker?
Licence exposure in AI-generated code is rarely a deal-breaker on its own; what decides the deal is whether the company knew. A copyleft match in a proprietary module is a rewrite with a cost in the model. A period on consumer terms is a disclosure. Generated modules with no contribution record are a documented review pass after close. The US Copyright Office's January 2025 report makes ownership a case-by-case question, and a company with a record can answer it; one without has a lawyer's afternoon ahead.
Does the Copyright Office report apply outside the United States?
No, the US Copyright Office's January 2025 report is US guidance, and other jurisdictions reach their own conclusions on authorship of AI-generated material. The report itself says the Office will continue to monitor technological and legal developments and may revisit its conclusions. The finding for an investor is the same everywhere: ownership of generated code is a live question, so ask the target for a record of human contribution rather than accepting an assumption of ownership.
References
- U.S. Copyright Office, Copyright and Artificial Intelligence, Part 2: Copyrightability, January 2025
- GitHub Docs, GitHub Copilot code referencing, read 17 September 2026
- Morgan Lewis, Katrina Slack and Vito Petretti, Open-Source Software: Common Areas of Inquiry in M&A Due Diligence, 5 June 2026
- Anthropic, Commercial Terms of Service, read 17 September 2026
- SPDX, Specification 3.0.1, AI profile, read 17 September 2026
- Linux Foundation, SPDX 3.0 Revolutionizes Software Management in Systems with Enhanced Functionality and Streamlined Use Cases, 16 April 2024
More in The engineering read
Diligence on an AI-written codebase: what to ask for and what a good answer looks like
Diligence on an AI-written codebase asks for six things: the specification the code was generated from, the eval suite and its last failing run, the provenance record of which tool wrote which files, a current security scan, the list of models and versions the product calls, and a walkthrough by the person who directs the agents. It asks for these because the signals a reviewer used to rely on, commit history, style, comment density and test count, are produced by the model at no cost and tell you nothing about who understands the code. This page lists what to ask for and what a good answer looks like for each.
The eval suite as a diligence artefact: ask for the suite, the pass gate, and a failing run
The eval suite is the most useful diligence artefact an AI startup can hand over, because it is the only document that shows whether product quality is measured or asserted. Ask for three things: the suite itself, the pass gate that decides whether a change ships, and one run that failed together with what was done about it. A suite that exists, gates releases and has a history of catching problems tells you the company can say how good its product is. A suite that is all green and has never failed tells you it has never been used. This page is the method for reading one in a diligence session; what an eval suite is lives on the eval-driven development guide.
Security of AI-written code: what to check in diligence
Security of AI-written code in diligence comes down to two checks: scan the code rather than read it, because Veracode's July 2025 test of over 100 models found 45 percent of generated samples failed security tests, and check the risks that only exist because a model is in the product, which the OWASP Top 10 for LLM Applications lists, starting with prompt injection. The general security review still runs. This page covers what the AI adds: the scan to run on the current commit, the ten model-specific risks to ask about, and what a good answer looks like from a team that has done this work already.