AIF-50Required
Train only on data people agreed to share
Use customer prompts, answers or documents to train a model only with a recorded legal basis, such as consent. Never send them to a provider that trains on them by default.
How to do it
Store a training flag per user or per customer account, off by default. Build training sets only from rows where the flag is on, and remove personal data first. Choose provider plans that do not train on your data, as in send models only the private data they need. Say in the privacy policy whether data is used for training and how to opt out. If you never train or fine-tune a model, only the provider part of this rule applies.
Examples
SQL example
SELECT count(*) FROM training_examples t JOIN accounts a ON a.id = t.account_id WHERE NOT a.allows_training;
-- PASS when the count is 0
TypeScript example
const rows = await db.query('SELECT prompt_redacted, answer_redacted FROM ai_call_text t JOIN accounts a ON a.id = t.account_id WHERE a.allows_training');
Python example
rows = db.execute("SELECT prompt_redacted, answer_redacted FROM ai_call_text t "
"JOIN accounts a ON a.id = t.account_id WHERE a.allows_training").fetchall()
How to check
The script that builds training sets selects only rows with the flag on. A test with one opted-in and one opted-out user produces a set with only the first user's data. The terms of each provider plan in use say it does not train on your data.
Sources
Related rules
- AIF-61 Fine-tune only after prompts and retrieval miss the target in AI features
- APS-89 Send models only the private data they need in Application security
- AIF-69 Approve user feedback before it trains or teaches the model in AI features
- AIF-58 Keep each customer's data in its own fine-tuned model in AI features
- AIF-65 Delete recordings once they are transcribed in AI features
- MLO-4 Record where every dataset came from and why you may use it in Machine learning
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-features/logs-privacy-and-feedback/consent-before-training">Agent Wranglers AI features playbook</a>. In code you write, add a comment next to it with the same link.