向推理服務轉售商提出的 DPA 與資料保留問題
Vendor DPA and data-retention questions to ask
面向經由轉售商採購推理服務的團隊,文章列出 8 個 DPA 與資料保留審查問題,涵蓋內容留存、模型訓練、次處理者、刪除、執法機關要求及地區限制。文中提供 Python 評分腳本,可把供應商回答轉成加權通過/未通過表,並建議將回答連同日期和文件版本保存於版本控制,以便日後重新核對。
"We do not log your prompts" is a claim about one hop in a chain that usually has two. The question that matters is not whether the API gateway stores your payload, but what happens to it afterwards, for how long, in which country, and under which contract. This article gives eight questions with the answer shape that should satisfy a reviewer, a scorecard script that turns answers into a pass/fail table so procurement decisions are reproducible, and the three mistakes that let a data-protection review pass while leaving real exposure in place. It is written for teams buying inference from a reseller rather than directly from a model lab.
Why the reseller case is different
When you buy inference from a reseller, your prompt reaches at least two parties: the gateway that authenticates you and meters the request, and the model provider that actually runs inference. A gateway can truthfully say it does not persist prompts, and a provider can still retain them under its own terms — which the gateway cannot override beyond its contract with that provider. So every question below has to be asked twice: once about the gateway, once about what it can commit to on behalf of its suppliers.
The eight questions
1. Are prompts and completions persisted anywhere in your path, and for how long? A good answer distinguishes the transient in-memory path from any store: gateway logs, request archives for debugging, analytics pipelines, and error trackers. "Not persisted in the gateway" is a start; the useful follow-up is whether anything else — an APM tool, an error tracker, a WAF — captures bodies. Where the platform used for this article is concerned, the public position is that prompts and completions transit in memory and are not written to the database or to disk.
2. What metadata is retained, and why? The legitimate list is small: model id, token counts, cost, latency, status, key id, request id. Retention here is often split by purpose — usage metadata for operations, ledger and order records for tax law. Ask for each number with its legal basis, because "13 months for usage metadata and 7 years for ledger and order records" is a very different answer from "we keep everything for as long as needed".
3. Is content used for training or model improvement, by you or by your providers? This must be an unconditional no, in contract, with the same commitment flowing down to the model provider. Watch for "we do not train on your data" that omits the provider, and for aggregate-analytics carve-outs that are broad enough to include content.
4. Who are the sub-processors, where are they, and under what transfer mechanism? Get the current list and the notification process for changes. Typical shapes: payment processor, transactional email, hosting, and the model provider for inference. For EEA/UK personal data, ask which transfer mechanism applies — standard contractual clauses are the common answer — and whether the data processing addendum is available on request or published.
5. What happens on deletion — on request, and on account closure? Ask for a window, not a policy statement. "Account data is deleted within 30 days of closure, except where retention is required by law" is an operable commitment; "we honour deletion requests" is not. Ask separately about backups and about derived records such as order records, which are normally exempt.
6. What text is scanned for safety, and what is kept from that scan? Moderation is a data-processing event people forget. Ask whether system prompts are scanned, whether matched text is stored, and who reviews it. A strong answer: only user message text is screened, only a content hash is stored per event, and reviewers see patterns rather than prompts.
7. Will you sign a DPA, and what does the security annex contain? Ask for the document, not a promise: SCC module, encryption in transit and at rest, access control, breach notification window, audit rights or the substitute (a current penetration-test summary), and the sub-processor change notice period. If the DPA exists only "on request", request it during evaluation — a document you cannot read before signing is not a control.
8. How do you handle law-enforcement requests and regional restrictions? Two questions that are usually answered together: what is your policy on compelled disclosure (notice to the customer unless legally barred, and a transparency count), and which jurisdictions will you not serve. A documented regional block that returns a hard error before any model call — rather than a clause nobody enforces — is a sign the operator has thought about this.
The scorecard
Written answers in a document are not auditable. Turn them into a weighted table you can rerun next year:
#!/usr/bin/env python3
"""dpa_scorecard.py — turn vendor answers into a reproducible pass/fail table."""
import json, sys
ANSWERS = {
"1 persistence": {"answer": "no payload persisted; metadata only", "weight": 3, "ok": True},
"2 metadata": {"answer": "usage 13 months, ledger 7 years", "weight": 2, "ok": True},
"3 training": {"answer": "no training, flows down to provider", "weight": 3, "ok": True},
"4 sub-processors":{"answer": "list published; SCCs for EEA/UK", "weight": 2, "ok": True},
"5 deletion": {"answer": "account data removed within 30 days", "weight": 2, "ok": True},
"6 moderation": {"answer": "user text only; content hash kept", "weight": 1, "ok": True},
"7 DPA": {"answer": "signable; annex available on request","weight": 3, "ok": False},
"8 disclosure": {"answer": "policy published; 451 on blocked regions","weight": 1, "ok": True},
}
def evaluate(answers: dict) -> tuple[int, list[str]]:
total = sum(a["weight"] for a in answers.values())
earned = sum(a["weight"] for a in answers.values() if a["ok"])
gaps = [f"{k}: {v['answer']}" for k, v in answers.items() if not v["ok"]]
return round(100 * earned / total), gaps
if __name__ == "__main__":
source = json.load(open(sys.argv[1])) if len(sys.argv) > 1 else ANSWERS
score, gaps = evaluate(source)
print(f"| Question | Answer on file | Weight | Status |")
print(f"|---|---|---|---|")
for name, row in source.items():
print(f"| {name} | {row['answer']} | {row['weight']} | "
f"{'covered' if row['ok'] else 'OPEN'} |")
print(f"\nreadiness: {score}%")
for gap in gaps:
print(" OPEN ->", gap)
sys.exit(0 if score >= 90 else 1)
Run it as python3 dpa_scorecard.py answers.json. Keep the JSON in version control with the date and the document version it refers to; the exit code makes it usable as a gate in a procurement checklist rather than a memo someone reads once.
Failure 1: accepting "we do not log prompts" as the whole answer
The claim is usually true and usually insufficient. It says nothing about the provider hop, nothing about error trackers that capture request bodies, and nothing about training. A data-protection review that stops at that sentence approves a system whose exposure sits one layer below the thing it examined.
Failure 2: confusing a DPA with an SLA
A DPA governs personal data; a service-level agreement governs availability. They are different documents with different remedies, and having one tells you nothing about the other. A published availability target — "99.9% per calendar month" is a common shape — is not a service-credit commitment unless the contract says so, and contractual credits normally exist only where an SLA has been signed. Ask which of the two you actually have.
Failure 3: no dated record of the answers
Vendors change sub-processors, retention periods and terms. An undated answer set cannot be audited and cannot be compared year over year, and the person who negotiated it has usually left by the time it matters. Freeze answers with the date, the document version and the name of who gave them, then re-run the scorecard on a schedule — a 92% score from eighteen months ago is a historical artefact, not a control.
What to watch when you speak to a gateway instead of OpenAI
Three gateway-specific things belong in the review, because they differ from buying directly. Two-party exposure: your prompt reaches a provider by design, and the gateway's own documentation usually says so plainly — read that sentence as a factual statement about where your data goes, not as a disclaimer to skip. Payload-free observability: ask what the gateway's own troubleshooting requires. If support can trace a request by x-request-id using metadata alone, the gateway does not need your prompt to help you — that is a verifiable property, not a promise. Regional enforcement: a contractual restriction on where customers may be located is only real if the platform also enforces it in the request path; a hard failure before the model call is the difference between a policy and a paragraph.
Request the current documents and a key at https://tokenaimodels.com — run the scorecard on what you are given, and treat any OPEN row as the first item in your next conversation with the vendor.
Modelry is an independent platform operator running a prepaid, metered endpoint for the DeepSeek models — no card to sign up, and a spend cap on every key: https://tokenaimodels.com/signup?utm_source=devto&utm_medium=post&utm_campaign=eight_questions_to
來源:DEV Community · dev.to