Skip to content
mentoor

Topic 2 of 5 · 4 min read

Vendor agreements and regulated data flows

Goal: Map the data flow of an AI feature and confirm each hop has the agreement, retention and region it needs.

Draw every hop a regulated record takes, from the browser to storage and back, and check that each hop has a signed agreement, a retention setting and a region that fits the data. One unmanaged hop is enough to break the rule for the whole feature.

Check yourself · 1 of 3

A healthcare app calls a model API under a BAA. Which other component most needs checking?

Choose one answer

Why it matters

Health data in the US falls under HIPAA, which requires a business associate agreement (BAA) with any vendor that handles protected health information for you. In the EU and UK, personal data processing needs a data processing agreement and a lawful route for transfers outside the region. A model API is only one hop: the prompt also passes through your gateway, your logs, a vector database, an error tracker and sometimes a transcription service.

How to do it

  1. List the hops. For each one write the vendor, what data it sees, the agreement, how long it keeps data and where it runs.
  2. Check the agreement covers the exact product. Vendors sign BAAs for specific products and plans. Anthropic's BAA article, for example, lists what is covered and what is not, so read the scope, then match it to the endpoint and features you call. A beta feature, a consumer app or a free tier is often outside it.
  3. Set retention. Ask for zero data retention where the vendor offers it, and confirm it applies to the features you use, such as file uploads or caching. Check that your own logs do not undo it.
  4. Pin the region. Use the regional endpoint your data rules need, and verify with a request, not only the settings page.
  5. List subprocessors. The vendor's vendors see your data too. Subscribe to change notices.
  6. Minimise first. Strip or tokenise identifiers before the call when the task does not need them.

Before and after

# Before: only the model call was reviewed
hops:
  - gateway -> model-api (BAA: yes)
# After: the whole path
hops:
  - browser -> gateway        # TLS, no PHI in URLs
  - gateway -> model-api      # BAA yes, ZDR yes, region us
  - gateway -> vector-db      # BAA yes, region us
  - gateway -> error-tracker  # PHI scrubbed, no BAA needed

What goes wrong

  • Agreement without scope. The BAA exists but the feature you use is excluded.
  • Leaky side channels. Debug logs, analytics and error trackers capture the prompt text.
  • Silent region drift. A default endpoint routes outside the required region.

Examples

The error tracker

A clinic's assistant has a BAA with its model vendor. A stack trace on a failed call includes the full prompt, and the error tracker has no agreement. The fix is to scrub request bodies before they reach the tracker and add the tracker to the hop list.

A beta feature

A team turns on a vendor's beta file-search tool. The signed agreement covers the standard API only, so uploaded patient letters now flow through an uncovered feature. The team checks the scope text before enabling any new vendor feature.

Key points

  • Map every hop of the request, not just the model call, and record vendor, data seen, agreement, retention and region for each.
  • An agreement covers specific products and plans, so match its scope to the exact endpoint and features you use.
  • Confirm zero data retention applies to your features and that your own logs and trackers do not undo it.
  • Verify the region with a real request, not only a settings page.
  • Minimise identifiers before they leave your boundary whenever the task allows it.

Common mistakes

  • Reviewing only the model API and forgetting vector stores, logs, trackers and transcription.
  • Assuming a signed agreement covers every product and beta feature from that vendor.
  • Trusting a retention setting without testing what your own logging stores.
  • Ignoring subprocessor change notices.

Check yourself · 2 of 3

Why read the scope of a vendor's BAA before using a new feature?

Choose one answer

Check yourself · 3 of 3

A team sets zero data retention at the model vendor. What else must they check?

Choose one answer

Practice items, not counted towards your mastery.

Start here

Where to go in your country