Skip to content
Amila

Palahepitiya Gamage Amila · Weekly Learnings

What to check in an AI model service's terms before your coding agents use it

· Palahepitiya Gamage Amila

In late October I sat down and read the terms of an AI model service I was testing. I wanted to know where my prompts would go.

The short answer. Before you point coding agents at a new AI model service, read its terms, not just its test results. Get three things in writing: where your prompts are processed, which country's law applies, and whether the service will sign a data processing agreement. None of these show up when you test the models.

Some context. I run AI coding agents across a few companies. They send code and config to whichever model they're pointed at, and now and then something that shouldn't leave the building. So price wasn't the only thing I was checking. When I wrote about testing cheaper models for coding agents, where my prompts would be stored was one of the things I couldn't pin down.

Why read the terms when the models already passed your tests?

Because tests only tell you about output. One model on this service ran clean on every test I gave it. Judged on output alone, it would have passed.

But a test run can't tell you where your prompts are processed, who else handles them, or which law you'd be relying on if something went wrong. Only the terms can tell you that, or show you that they don't say.

What did I find in the terms?

Three things stood out:

  • Contracts sat under another country's law, and that country's courts would handle any dispute.
  • The service could change its terms just by posting new ones, effective straight away.
  • It said it kept no request logs.

The last one sounds reassuring, and it may well be true. But put it next to the second point. A promise in terms that can change the day they're posted is only as good as the version I read, and I'd only know it had changed if I went back and read the page again.

What couldn't I find?

  • A data processing agreement.
  • A list of sub-processors, meaning the other companies that would handle my data.
  • Which region the servers ran in.

A data processing agreement is the contract that says how a company handles personal data on your behalf: what it can do with it, how it keeps it safe, and what happens when you stop using it. A sub-processor list names the other companies it passes that data to, such as hosting providers. If your agents ever see client code or customer data, these are the documents that tell you where it ends up.

Missing documents don't prove anything bad is happening. They mean I couldn't check, and I wasn't going to send real code somewhere I couldn't check.

Why didn't any of this show up in testing?

Because tests check answers, and terms cover everything around the answer. A model can write good code while the service in front of it is a poor place for that code to go.

I ran into a version of this with a stall check that failed a working agent. That rule only looked at what was on screen, so it judged the agent on the wrong thing. Testing a model service on output alone has the same gap.

What should you get in writing before pointing agents at a new model service?

  1. Where your prompts are processed. A named region, in writing, not a guess based on where the company is.
  2. Which country's law applies, and whose courts would handle a dispute.
  3. Whether they'll sign a data processing agreement.

If a service won't give you those three in writing, don't send it anything you'd mind losing control of, however well its models test.

I'm not a lawyer, and this isn't legal advice. It's what I'd check before the first real prompt goes out.

Questions this note answers

What is a data processing agreement for an AI model service?

It's a contract that sets out how a service handles personal data on your behalf, including what it may do with that data and how it keeps it safe. If your coding agents might send client code or personal data, ask the service whether it will sign one before you use it.

Why does it matter which country's law an AI service's terms are under?

That law, and that country's courts, decide any dispute you have with the service. If it isn't your own country, a disagreement about your data could mean dealing with a foreign legal system. Check the governing law section of the terms before you send real work.

Can testing an AI model show whether a service is safe for your code?

No. Testing shows how well a model answers. It can't show where your prompts are processed, who else handles them or which law applies. A model can pass every test while the service's terms still leave those questions open.