YOUR DIGITAL HUB
← Back to blog

Source code ownership: what the contract must say

9 min read

Cover — Source code ownership and the provider contract

A question to settle before signing

Who owns the software you are paying for? The answer seems obvious: you do, since you pay for it. It is wrong as long as no written assignment has been signed, and discovering it after delivery is costly. Bespoke software does not automatically belong to the person who orders it, or even to the person who funds it.

This article gives general information to a company director, who needs to know which questions to ask and what to check in the contract. It is not legal advice: an assignment clause should be reviewed by a lawyer qualified in French law, or by your legal department, before you sign. References to statutes are given only where they are settled. Where the exact rule depends on the situation, the article describes the principle without an article number.

The topic is closely tied to the question of exit. If you may one day change provider, read our article on software reversibility as well, and our guide to choosing a software development provider.

The principle: the author keeps the rights

Under French law, software is a work protected by copyright. The French Intellectual Property Code (Code de la propriété intellectuelle) protects software (article L. 112-2, 13°); the author holds the rights by the sole fact of creation, even when working for a client under a service contract (article L. 111-1). Paying for the work does not, on its own, transfer those rights.

Author's rights have two components. The moral component, which protects the personal link between the author and the work, cannot be assigned. The economic component, which covers reproducing, modifying and distributing the work, can be transferred, but only under the conditions set by law and by the contract. It is the economic component that matters to the client.

These rules apply differently depending on who wrote the code.

Who wrote the code Who holds the rights by default What you need to obtain
An employee of the provider, acting in the course of their duties The provider, as employer, for the economic rights in the software (article L. 113-9) A precise written assignment from the provider to you
A freelancer or a third-party company The freelancer, as author; the third-party company, holder of its employees' rights or assignee An assignment from each author, or a chain of assignments in the subcontracting agreement
A pre-existing component of the provider The provider, or a third party who licensed it to the provider A perpetual, transferable use licence, or an assignment
An open source library Its authors, under the licence they chose A list of dependencies and their licences

The key point is simple: every chain of authors must be covered. If the provider brings in a freelancer for part of the code, the provider's assignment does not transfer the freelancer's rights unless the freelancer assigned them to the provider in writing.

What the assignment clause must cover

A formula such as "all rights assigned" does not protect the client. French law requires that the transfer of author's economic rights mention each assigned right distinctly and delimit its exploitation as to scope, purpose, place and duration (article L. 131-3). A useful clause therefore covers at least the following points.

  • The rights assigned. List them one by one: reproduction, representation or distribution, modification, adaptation, translation, commercial exploitation where relevant. The right to modify the software, or to have a third party modify it, is the one most often missing.
  • Scope and purpose. Specify the permitted uses: internal use, use by your subsidiaries, making the software available to your customers, integration into a product. An assignment limited to internal use does not let you sell a service built on the software.
  • Place. The territory must be stated. A worldwide assignment is common in digital projects, but it must be written down, not assumed.
  • Duration. State how long the assignment lasts. An assignment for the full legal term of protection is a common formula, which should still be checked with your adviser.
  • Timing of the transfer. Are the rights assigned on delivery, or only after full payment? A clause making the transfer of rights conditional on full payment is common. It is negotiable and should be understood before signature.
  • Consideration. The contract should say whether the assignment is included in the price or billed separately, and on what basis. An assignment presented as acquired without any mention of price deserves a question.
  • Warranties. The provider should confirm that it holds the rights it assigns, that the software does not infringe third-party rights, and explain what happens if a claim arises.

The provisions of article L. 131-3 are formal and precise. A vague clause can be challenged, and arguing about what it means is exactly what you want to avoid.

Pre-existing components

A provider never starts from zero. It has internal libraries, proven modules, architecture templates and tooling scripts. These assets are often valuable and are legitimately its property. The question is under what conditions you may use them.

Ask for a list of these components before the project starts, and distinguish two cases. If a component is built into the core of your software, you need a use licence that allows you to run, maintain and transfer it to a successor. If it is a development tool that is not part of the delivered product, a simple mention is usually enough. This sharing should appear in the contract, not in an informal exchange.

Open source components

Most modern software relies on free libraries. Their use is normal and often recommended, provided the licences are understood. They are not all equivalent.

Permissive licences, such as the MIT licence or the Apache 2.0 licence, allow use, modification and redistribution, with obligations that are generally limited to keeping copyright notices. So-called copyleft licences, such as the GPL family, generally require that software incorporating them, when distributed, is itself released under compatible terms, sometimes including publication of the source code. This can become a real issue if your software is distributed to customers, embedded in a product you sell or, for some licences such as the AGPL, simply offered online.

Require, therefore, a list of dependencies, with each name, version and licence. The list should be kept up to date during the project, not assembled at the end. A serious provider can produce it easily, because its build tools manage it. The absence of a list, or an answer such as "we will see", deserves a follow-up question.

Access to repositories and accounts

Legal ownership of the code is of little use if you have no technical control over the software. Two elements should be checked from the start, not at the moment of exit.

The first is where the code repository sits. It should be hosted on an account of which your company is the holder, with the provider invited and given the rights it needs. The second is the full set of infrastructure accounts: hosting, container registry, domain names, monitoring tools. The holder and the payment method should be yours. The provider works inside your accounts; it does not own them.

The contract should allow you to review the full history of changes at any time, and provide that the provider's access rights can be withdrawn without notice when the contract ends.

Source code held by a third party

Some situations justify additional protection: a small provider, software that is critical to your activity, or heavy dependence on a small team. Source code escrow consists of entrusting a copy of the code and its documentation to a trusted third party, which keeps it and releases it to the client under conditions defined in advance. Escrow gives no right of use: the contract must provide the licence applicable on release, and triggers based on insolvency proceedings may be unenforceable.

The contract should then specify the triggering events for release, for example cessation of activity or a serious and lasting failure, how often the deposit is updated, and how it is verified. An escrow deposit that has never been tested offers no real protection. Check that the deposited code can be rebuilt, just as you would for reversibility.

What to check at handover

Acceptance is when ownership becomes concrete. Before signing the acceptance record, check the following.

  • The complete source code is available, with its history, and sits in your repository.
  • Build scripts, dependency files and deployment configuration are included.
  • The list of third-party components and licences is complete and up to date.
  • The assignments provided for in the contract are formalised, including for freelancers and subcontractors.
  • Hosting accounts, domain names and administrator access are in your name.
  • The documentation describes the delivered version and makes installation possible.

For the last item, a simple test is enough: ask someone who did not take part in the project to rebuild the application from what was delivered. If they succeed without calling the provider, technical control is effective.

Common mistakes

A few situations come up again and again in ownership disputes, and they are almost always avoidable.

  • Treating the invoice as an assignment. Payment proves that you bought a service, not that the rights in the software were transferred.
  • Accepting a general formula. An assignment of "all rights" with no list, scope or duration leaves room for interpretation.
  • Forgetting indirect contributors. A freelancer or subcontractor of the provider may have written part of the code, with no direct link to you.
  • Leaving the repository on the provider's account. As long as the code is not reachable from your own accounts, getting it back depends on the provider's goodwill.
  • Discovering licences late. A copyleft library integrated without review can become a problem on the day the software is distributed.
  • Signing without seeing the code. An ownership clause is only worth something in practice if you can consult, build and take over what is delivered.

What to keep in mind

Ownership of the code is negotiated before the project starts, not at its end. It rests on a chain of written assignments, a reliable list of third-party components, accounts in your name and documentation that lets you take the software over. A detailed assignment clause is not enough if one of these elements is missing.

Have the assignment clause and the transfer conditions reviewed by a lawyer or by your legal department, and give them the list of components and a diagram of the people involved. To discuss how these points apply to your project, explore our services, from scoping to operations, or write to us at contact@your-digital-hub.com.

Let's talk about your project. Send us the essentials.

Tell us the context, whether it is a new build, a takeover or a migration, the technologies in place and your target date.