Licensing source code to AI buyers

By Plety. Updated

Source code with its history shows how software is built and changed over time, commit by commit. AI developers license code like this, and some buyers take code only, which can suit smaller teams. Before licensing, the company confirms it owns the code and removes secrets such as passwords and keys. Personal data in the commit history is dealt with inside its own systems.

Does the company own its code?

Check this first. Code written for clients may belong to them under the contract. Code from contractors depends on what their agreements assign, and open-source components keep their own licence terms.

Data a company holds for its clients, including client code in its repositories, is always left out.

What is removed from a code archive?

Secrets come out first: passwords, API keys, tokens and private certificates, which can sit in old commits as well as current files. Then personal data: commit author names and email addresses, names in comments and any customer data in test files. Commit details that identify a developer are personal data under Article 4(1) of the UK GDPR.

What makes a code archive more useful?

Complete history over several years, with reviews and the reasons for changes kept alongside the code. Most buyers of whole record sets ask for a team of about 20 or more, but some take code only.

How is code extracted?

From the company's own repositories, inside its environment, by its processor or by the buyer's tool under a written contract with the company (Article 28). Secrets and personal data are removed from the full history before the records go straight to the buyer.

The ICO's AI security guidance says de-identification may be needed before training data is extracted from its source, depending on the risk.

Questions

Are commit messages personal data?
Often. Author names and email addresses identify developers, and messages sometimes mention colleagues. They are removed or masked inside the company's systems before export.
Can we license code we no longer use?
Yes, if the company owns it. Old projects and retired products can be included, and the licence lists exactly which repositories and years are covered.

Want to know what your records could fetch?

Email Herman or book a 30-minute call. We tell you which buyers fit before anything else happens.

Sources

This page is general information, not legal advice. Take advice on your own company's records and contracts.

Read next