Who owns the prompts and evals you build for a client?
If the contract never names prompts, evals and connectors, the ownership dispute is simply postponed until handover day.
In brief
- The contract should name each type of deliverable, prompts and workflows included, rather than describing them in general terms.
- Tools you bring stay yours unless explicitly assigned, but the contract must say whether the client gets a license to use them.
- The AI platform's terms are a third layer: they decide who owns Output, training data and feedback.
Six weeks into an engagement with a logistics client, the repo holds a 400-case eval suite built from real support tickets, 30 prompts, a connector into the ticketing system, and all of it runs on the eval harness library your company uses on every project. Take this as a hypothetical, but a common one.
At a review, the client’s team lead asks a perfectly ordinary question: when the contract ends, do they keep all of it? You realize you don’t know. Worse, the contract may not know either.
By this point the question has arrived six weeks late. You are not a lawyer and don’t need to become one. Your job is to understand enough to spot the gap at kickoff, while fixing it is still cheap, and then hand the right questions to the legal team.
Everything goes in one of two buckets
The basic framework is simple. As UpCounsel explains it, background IP is whatever existed before the project began, and foreground IP is whatever was developed during the project. Your company’s eval harness library is background. The 400 cases built for the client are foreground.
The default rule for the background bucket is fairly comfortable. Sprintlaw, a UK law firm that writes for AI automation agencies, advises that contracts state pre-existing materials remain the agency’s unless explicitly assigned.
Keeping ownership is only half the story, though. If the connector you hand over needs your library to run, UpCounsel notes, the contract must make clear whether the client is licensed to use that library.
The foreground bucket needs a list. Sprintlaw recommends defining exactly which deliverables are assigned, naming them specifically, such as scripts, workflows and prompts, instead of a catch-all like “all work product of the services.” The reason is practical: prompts and evals are new kinds of artifact, and a clause drafted from an old template may not have anticipated them.
The US adds a further trap. Under the definition in 17 U.S. Code § 101, a commissioned work is a “work made for hire” only if it falls into one of the categories the statute lists and both parties have agreed in a signed written instrument.
So “the client paid, so the client owns it” is not a safe default. You need an explicitly written assignment clause.
One engagement, four artifacts
Back to the logistics client. Sit down with the repo, put each item in its bucket, and you end up with a table like this:
| Artifact | Bucket | Question for legal |
|---|---|---|
| Your company’s eval harness library | Background | Is the client licensed to keep using it after the project, and within what scope? |
| 400 eval cases built from real tickets | Foreground, contains confidential information | Who owns it, and may your side retain any version of it? |
| 30 custom prompts and workflows | Foreground | Does the assignment list name them? |
| Connector into the ticketing system | Hybrid: shared core, custom configuration | Where is the line between the core and the custom part? |
The second row is the hardest. The eval suite is the most valuable thing you produced, because it encodes what “correct” means for this client.
But it was built from their data, and Sprintlaw stresses that contracts should clearly limit reuse of the client’s confidential information.
If you want to carry the structure of the eval suite into the next project, agree on it at the outset; don’t decide it on your own in the final week.
The last row shows why code should be separated early. If the connector core lives in its own package and the client’s configuration in its own module, the IP boundary matches the boundary in the repo. If everything is mixed into one file, no clause will save you at handover.
The third layer: the model provider’s terms
The two parties to the contract are not the whole picture. Sprintlaw warns that a third-party AI platform’s terms may restrict transfer, resale, copying, use for training or later commercialization. You cannot pass the client a right you don’t hold yourself.
Take Anthropic’s commercial terms as an example. Under them, the customer retains all rights to Input and owns Output, and Anthropic may not train models on Customer Content from the services. For an eval suite built from real tickets, that detail can reassure the client’s security team.
Read the word “Customer” carefully, though. The terms grant Output rights to the Customer, so the first step is to check who the Customer is on the account the project uses. If it is not your client, add one more question for legal: by what route in the contract do the Output rights reach the client?
The feedback clause deserves attention too: Anthropic states that it may use customer feedback without any obligation to the customer. Attaching real eval cases to a bug report is something to think about before you hit send.
What to do in the first week
Start with an inventory of expected artifacts, written before any code exists: libraries you bring in, prompts, evals, connectors, runbook documentation. Label each line background, foreground or hybrid. Then flag every line that touches the client’s confidential data.
Next, check who the Customer is on the project’s API account and read the Input, Output, training and feedback sections of the provider’s terms. Finally, send the table to legal with three questions: does the assignment list name prompts, evals and connectors; does the client have a license for the existing tools; and what may your side reuse after the project.
The skill also pays off when job hunting. When an FDE posting mentions “scoping” or “SOW”, a CV line such as “built the artifact inventory and classified IP with legal at kickoff” shows you have run an engagement, not just written code inside one.
Common mistakes
The most common mistake is treating prompts as throwaway configuration, so nobody lists them. The second is letting internal libraries seep into client code, so that on handover day delivering the connector means delivering the company’s shared tooling as well.
The third is copying the whole eval suite into the next project because “it’s only tests anyway”, when every case in it is the client’s confidential data.
The last is subtler: believing IP is a matter for sales and legal. They draft the clauses, but only the people writing the code know what the repo actually contains. The logistics team lead’s question in week six is one you should have asked yourself on day one, and the answer should already sit in a four-row table.
Was this article useful?
Thanks for the feedback!