← Blog

Software Development Contract: Clauses to Update When the Supplier Uses AI Agents

Marco Masut

A software development contract is the agreement under which a supplier commits to build and deliver software for a client, for a fee, with requirements, deadlines, acceptance testing and a transfer of rights. Under Italian law it is usually a contract for services or work (appalto or contratto d'opera). When the supplier uses AI agents, the contract stays valid but some clauses become incomplete: they do not say who wrote what, with what evidence, and who answers for the release. This piece is written for contracts under Italian and EU rules, and it is not legal advice: it shows where to look, and a lawyer must review the text.

What does a software development contract cover today?

A contract written before AI agents usually regulates five things: scope and requirements, deadlines and deliveries, acceptance testing, transfer of rights in the code, and warranty for defects. All of them assume that a person at the supplier wrote the code and answers for it by name. Code written partly by an agent is still delivered code, but the contract does not ask how it was produced, with which tools, which client data left the perimeter, and what evidence of review remains before delivery. A client signing an old template buys a result without being able to expect to see the process, and when a defect or a dispute arises it holds few documents. Four clauses need updating: AI use, code ownership, traceability of the work and release responsibility. None of them forbids agents. They make explicit what the supplier declares, what it keeps and who signs.

| Classic clause | What it assumes | What is missing with agents | | --- | --- | --- | | Scope and requirements | Whoever writes knows what is being built | Which AI tools are allowed and on which data | | Acceptance testing | The code was reread by its author | Who reviewed a change no person wrote | | Transfer of rights | An identifiable human author | How the provenance of the code is shown | | Warranty for defects | A named person responsible | Who answers for a release produced by an agent |

Which clauses do agents make incomplete?

Four, in order of urgency.

The first is use of AI tools. The contract should say whether the supplier may use agents, which categories of tools, and what must never enter a prompt: personal data, secrets, third-party code under licence. If the supplier processes the client's personal data on its behalf, the obligations of Article 28 GDPR on processors remain, including authorisation of sub-processors: an external AI agent service can be a sub-processor.

The second is subcontracting. An external model service is not always subcontracting in the legal sense, but it is worth saying so in the text, so nobody finds out afterwards.

The third is the declaration about the process: the supplier declares whether and where it uses agents, and reports material changes. Without it, the duty of care can only be measured after the fact.

The fourth is acceptance testing. Acceptance based on "the supplier tested it" is not enough if the tests were run by the same agent that wrote the code. The process side is developed in separation of duties when an agent writes and tests.

How do you make traceability a contractual obligation?

Traceability does not come from writing "the supplier guarantees traceability". It comes from listing what must remain at the end of the work, and where. A wording that holds up:

  • request: every change starts from a written request with an identifier, kept in the repository or in a system the client can access;
  • declared scope: for each task, the list of code paths that may be touched, verifiable on the diff;
  • checks run by the system: tests and verifications launched by the pipeline, with the result recorded, not summarised by the agent;
  • signature: the name of the person who approved the release, in a form that cannot be rewritten afterwards;
  • access: the client can read these records during and after the engagement, including at the end of the contract.

A list like this turns a generic promise into a verifiable obligation. For the wider picture of what to ask a supplier, see outsourced software development: what to require now and agenti-ai-e-sviluppo-su-commessa.

Who owns the code and who answers for it?

On copyright, Italian copyright law (Law 633/1941) provides that the transfer of rights must be proved in writing: the contract must therefore state clearly that the client acquires the rights in the delivered software, including code produced with the help of AI tools. One area remains open: whether, and to what extent, text generated by a model is protected as a work is still debated, and it is unwise to promise what nobody can guarantee. The practical clause is twofold: the supplier assigns all the rights it has, and declares that it does not embed third-party material it cannot dispose of, nor unauthorised client data.

On responsibility, the principle is simple and should be written down: using an agent does not move responsibility. The supplier answers for the delivered code as if one of its people had written it, and answers for the release. It is the same point that supports the signature: nothing goes to production unless a named person approved it.

Which clauses should you take to counsel?

A starting list, for whoever drafts the contract to review:

  1. Declaration on the use of AI agents: whether and where, with which tools, with a duty to report changes.
  2. Ban on entering personal data, secrets and third-party code into unauthorised tools.
  3. Authorisation of sub-processors, including external model services, if they handle client data.
  4. Transfer of rights in writing, with a declaration that no unavailable third-party material is included.
  5. Duty to keep the request, scope, check results and signature of every release, with a right of access for the client.
  6. Acceptance based on checks run by the system, not only on supplier declarations.
  7. Release responsibility on the supplier, with the name of the person in charge.
  8. Audit right over process and records, with reasonable notice.
  9. Exit rules: what the client receives at the end of the contract, records included.

Detent, the end-to-end delivery system (detent-ai.com), produces exactly those records: 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 that runs from request to production, not a substitute for counsel or for the agent. The general picture is in AI software development. For a comparison of tools, see the comparison table, and for data the benchmark page.