Sub topic 4
Reading Provider Retention and Training Policies
This chapter assumes you know how data flows from your machine to an AI tool (prompts, file context, command output, telemetry). It also assumes you can read a short legal-style document. You will learn which questions to ask of a provider's terms and how to compare plans before you paste in private code.
Why the policy matters
Once a prompt leaves your machine, the provider's terms decide what happens to it. Two separate questions apply:
- Retention: how long the provider stores your prompts, files, and outputs.
- Training: whether the provider may use that content to improve its models.
Providers often answer these differently. A plan may not train on your data but still keep it for 30 days for abuse monitoring. Treat the two as independent settings.
The questions to answer
Read the terms of service, privacy policy, and any data-processing addendum (DPA, a contract that sets how a vendor handles your data). Look for answers to these questions:
- Is my content used to train models by default?
- Can I opt out, and where is that setting? Is it per user or per organization?
- How long is content retained, and is there a zero-retention option?
- Who can read it? Look for human review, subprocessors (other companies the vendor uses), and support access.
- Does telemetry (usage data sent automatically) include code snippets or file paths?
- Where is data stored, and can I choose a region?
- What happens to data when I delete a chat or close my account?
Plans differ, not just models
The same product often has several tiers with different terms. The pattern below is common, but check each vendor. Do not assume it.
| Plan type | Typical training default | Typical retention | Contract terms |
|---|---|---|---|
| Free or consumer | May train unless you opt out | Longer, sometimes indefinite | Standard terms only |
| Individual paid | Varies, often opt-out available | Moderate | Standard terms |
| Team or business | Usually no training | Shorter, configurable | Admin controls |
| Enterprise or API | Usually no training | Shortest, zero-retention sometimes offered | DPA, audit options |
A free tier is often the riskiest for private code, because the default favors the vendor.
Reading a policy in practice
Policies use phrases that sound alike but mean different things. Watch for these:
- "We do not train on your data" may apply only to the API, not to the chat app.
- "Improve our services" can include training. Look for a definition.
- "Retained for safety review" may mean flagged content is kept longer than the stated period.
- "Feedback" is often treated separately. If you click thumbs up or down, the vendor may keep that conversation and use it for training.
Record what you find with the date and a link. Policies change, so a note like "checked 2026-11-27" helps you spot drift later.
from dataclasses import dataclass
@dataclass
class ProviderPolicy:
name: str
plan: str
trains_by_default: bool
opt_out_available: bool
retention_days: int | None # None means unknown
has_dpa: bool
def acceptable_for_private_code(p: ProviderPolicy) -> bool:
if p.retention_days is None:
return False # unknown is not acceptable
no_training = (not p.trains_by_default) or p.opt_out_available
return no_training and p.has_dpa
policy = ProviderPolicy("ExampleAI", "team", False, True, 30, True)
print(acceptable_for_private_code(policy))The function treats an unknown retention period as a failure. This is a deliberate choice: missing information should block approval, not pass it.
Common errors
- Reading the marketing page instead of the legal terms.
- Checking the model vendor's terms but not those of the tool or plugin that wraps it. The wrapper may log prompts too.
- Opting out on a personal account while teammates use a different, default account.
- Forgetting that a cloud provider hosting the model may have its own terms.
Exercise
A vendor's page says "we never train on API data." Your team uses the vendor's free chat app. What should you verify before pasting private code?
Show answer
Whether the statement covers the chat app or only the API. Check the consumer terms for the training default, the opt-out setting, and the retention period. Also check whether feedback buttons change how conversations are used. If the chat app trains by default and you cannot opt out, do not use it for private code.