Technical due diligence is the independent review of a piece of software, and of how it is produced, carried out before an acquisition, an investment or a contract with an enterprise client. Its purpose is to establish whether what is being bought or adopted holds up: code quality, security, licences, dependencies, release process, and the people who know how it works. When AI agents wrote part of the code, the question changes: it is no longer enough to ask what is in the repository, you have to ask what remains as evidence of how it got there. This piece is written for deals under Italian and EU practice.
What does technical due diligence look at?
Technical due diligence looks at six things: architecture and technical debt, security and known vulnerabilities, licences of the code and its dependencies, ownership of the code and rights, the development and release process, and dependence on a few people or on external suppliers. The buyer or enterprise client wants to understand two things: how much it will cost to maintain the software after signing, and which hidden risks come with it. With agent-written code the list stays the same, but three items weigh more: the provenance of the code, the traceability of who approved each change, and the supplier's ability to show the checks that ran, not just to state them. Well-built software with no trace of its process is harder to defend in a negotiation than less elegant software that is documented.
| Area | Classic question | Extra question with agents | | --- | --- | --- | | Code and architecture | How much technical debt is there? | Who reviewed code that no person wrote? | | Security | Which known vulnerabilities remain? | Who chose the dependencies, and with what check? | | Licences and rights | Is the code free of encumbrances? | How is the provenance of model-produced code shown? | | Process | How does a change reach production? | Which person signed the release, with what evidence? | | People | Who knows how it works? | How much of that knowledge lives only in an agent's session? |
What changes when the code is generated?
The evidence changes more than the code. A reviewer opening the repository sees the same kind of files as ever: the difference is that nobody can assume that whoever wrote a line also understood and reread it. Three practical effects.
The first is the chain of responsibility. Due diligence asks who approved what. If the only sign of approval is a chat message or an "ok" written in a document, the answer is weak. What holds up is the signature of an identified person, tied to a specific state of the code and not rewritable afterwards.
The second is separation between who writes and who checks. If the same agent writes the code and runs the tests that judge it, an "all green" result proves little. Buyers tend to ask who, or what, ran the checks. The topic is covered in separation of duties when an agent writes and tests.
The third is the provenance of dependencies and components. An agent can add a package in seconds. An up-to-date inventory of components is the fastest answer: see SBOM for AI-generated code.
One piece of context to temper enthusiasm: the METR randomized study of 10 July 2025 on experienced open source developers measured that, with AI tools, participants took 19% longer while believing they were faster. It is not a measure of code quality, but it shows that the supplier's perception is not enough as evidence.
Which evidence should a supplier be able to show?
A prepared supplier does not describe how it works: it opens the files. The evidence a buyer can reasonably ask for, and a supplier should already have ready, is this:
- The request behind each change, written, with an identifier, linked to the change in the repository.
- The declared scope: for each task, which code paths could be touched, verifiable on the diff.
- The result of checks run by the system, with date and code version, not summarised by an agent.
- A person's signature on what went to production, with name, date and the approved state of the code.
- The inventory of components and licences, updated at every release.
- The release history and fixes, including rollbacks.
- The rules on AI tool use: which tools are allowed, on which data, with which limits.
These items have a precise value: they turn a statement into a check the buyer can redo alone. On change auditing, see software audit trail when an agent made the change.
What are the warning signs?
Some signs raise a reviewer's level of attention, and it is better to know them before the reviewer sees them:
- the supplier cannot say which parts of the code were written by agents;
- there is no approval record, or it exists only in chat messages;
- tests are run by the same tool that wrote the code, with no independent checks;
- dependencies were added with no inventory and no licence check;
- one person truly understands how the system works, or the knowledge sits in an agent's sessions and not in the project files;
- statements about the process do not match what the repository shows;
- nobody has a written rule on what may enter a prompt, client data included.
None of these points alone blocks a deal. Together, they point to a process that cannot be verified, and that shows up in the price, in the warranties required or in the timeline.
How do you prepare before the request arrives?
The best preparation is to work so that the evidence produces itself while you work, rather than being rebuilt ahead of a negotiation. In practice:
- Write down where the evidence lives: request, scope, checks and signature in the repository or in a system the client can read.
- Separate who writes from who checks, and say which checks the system runs.
- Keep an inventory of components updated at every release.
- Put the AI rules in writing: allowed tools, forbidden data, who may change them.
- Run a rehearsal: ask someone outside the team to spot-check three recent releases starting only from the files, and see whether they can answer the questions on the list.
Detent, the end-to-end delivery system (detent-ai.com), produces these records as a normal part of the work: the request, the scope, the checks run by the system and a person's signature, in versioned files that stay with the client. It is one station on the line from request to production, not a substitute for the reviewer or for legal counsel. The general picture is in software development with AI. For a comparison of tools there is the comparison table, for the data the benchmark page.
