AI Vendor Data Processing — Operator Responsibility
Audience: the deployment operator configuring this platform, not a code contributor. This
document lives outside docs/adr/ deliberately, per ADR-035 §Decision point 4.
This document is not legal advice, does not assert what the AI vendor's current data retention, training-use, or contractual terms are, and cannot be substituted for your own review of those terms or your own organization's compliance requirements. It states only what this codebase does and does not do, and what you, as the deployment operator, are responsible for deciding before you enable AI.
Where AI requests go
A self-hosted install chooses one of two ways (ADR-967, ADR-968). Azilos Cloud, the hosted edition, has only the first.
- Azilos Cloud credits (
AI_GATEWAY_KIND=azilos). This install sends each AI request to Azilos Cloud (https://api.azilos.com, orAZILOS_CLOUD_API_URL) with your Azilos API key. Azilos Cloud charges your prepaid balance and forwards the request to the AI vendor it uses, Anthropic, with Azilos's own vendor key (docs/architecture/AZILOS_CLOUD_V0.1.md). Azilos Cloud keeps only what a charge needs: the key id, the model, the token counts and the amounts. It does not store the prompt, the code or the model's output. - Your own AI vendor (
AI_GATEWAY_KIND=cloud, self-hosted installs only). This install sends each AI request straight to the vendorAI_GATEWAY_CLOUD_VENDORnames (openai, the default, oranthropic), with your own key for it:AZILOS_AI_GATEWAY_CREDENTIAL(OpenAI) orAZILOS_AI_GATEWAY_ANTHROPIC_CREDENTIAL(Anthropic), or their_FILEforms.AI_GATEWAY_CLOUD_MODELchooses the model; without it, the adapter's default is used. No request reaches Azilos Cloud, and Azilos holds no copy and charges nothing; you pay the vendor directly. The vendors' SDKs also readOPENAI_BASE_URLandANTHROPIC_BASE_URLfrom the process environment and send requests there instead; this codebase sets neither.
What is sent
Three capabilities send tenant data. Each needs the tenant's own consent, and each sends something different (ADR-486):
- Understand's AI-derived insight (
POST /projects/:projectId/understand/insight): project metadata — file paths, byte sizes, detected technology names, and declared dependency name/version/ecosystem/manifest-path data. File content is not sent (ADR-026 §Decision point 4). - Document generation (
POST /projects/:projectId/document): the project's facts as Azilos recorded them — module inventory, declared dependencies, the AI insight, the system model, the assessment counts, plan and Transform items, validation declarations, and the Apply branch's name, commits, version edits and the explanations of approved AI fixes. - AI code fixes (
POST /projects/:projectId/ai-code-fix): file content. The repository'spackage.jsonand the files the failing build or test output names, read from the Apply branch, the end of that output, and the upgrades that caused it (ADR-222). Its consent refusal says so: it sends the tenant's source code and build output to a model provider. Because it is the one capability that sends file content, it needs two decisions, both by anadmin: the tenant's consent, and the project's own opt-in (PUT /projects/:projectId/ai-code-fix/opt-in, ADR-738). A project with no stored opt-in sends nothing, including a project created after the tenant consented.
Whatever is sent leaves your deployment boundary over the network: to Azilos Cloud and then its vendor, or straight to your own vendor.
What this codebase does not, and cannot, control
This install's adapters (AzilosCloudAiGatewayPort for Azilos Cloud, CloudAiGatewayPort for
OpenAI, AnthropicAiGatewayPort for Anthropic) each make one kind of call and read one kind of
response. None of them can:
- read or verify what data-retention period the vendor applies to a forwarded request,
- confirm whether the vendor uses submitted data for model training,
- request deletion of a specific already-sent request from the vendor's own systems, or
- enforce a Data Processing Agreement (DPA), Zero Data Retention (ZDR) arrangement, or any other contractual term.
Those are commercial and contractual matters: set out in Azilos's own terms and data-processing
statement and in its vendor's terms, or, for your own vendor, between your organization and that
vendor, through its own console, sales or legal process. See ADR-027-ai-gateway-cloud-real-adapter.md,
ADR-032-ai-gateway-cloud-anthropic-second-vendor.md, ADR-034-understand-insight-consent-decline-data-retention.md
and ADR-035-ai-vendor-data-processing-attestation.md for the reasoning behind this boundary.
What you are responsible for doing before enabling AI
Before setting an acknowledgment flag (below), you should independently:
- Review the current data processing, retention and training-use terms of whoever receives the requests, from those parties directly, not from this document: Azilos's data-processing statement and its vendor's terms, or your own vendor's terms (its API documentation, terms of service, or a signed DPA).
- Determine whether those terms satisfy your own organization's regulatory, contractual, or internal compliance requirements for the tenant data these capabilities send.
- Arrange any additional agreement your own requirements call for (a DPA, a Zero Data Retention agreement, or equivalent).
- Do this for each way you enable: reviewing OpenAI's terms says nothing about Anthropic's, or about Azilos Cloud's. If you later switch, redo the review before setting the new flag.
The acknowledgment flags
One flag per way, each independent:
| Environment variable | Gates |
|---|---|
AI_GATEWAY_AZILOS_DATA_PROCESSING_ACKNOWLEDGED | AzilosCloudAiGatewayPort (Azilos Cloud, ADR-594) |
AI_GATEWAY_CLOUD_OPENAI_DATA_PROCESSING_ACKNOWLEDGED | CloudAiGatewayPort (OpenAI, ADR-027) |
AI_GATEWAY_CLOUD_ANTHROPIC_DATA_PROCESSING_ACKNOWLEDGED | AnthropicAiGatewayPort (Anthropic, ADR-032) |
Each accepts exactly true or false (any other value fails configuration loudly rather than being
silently coerced). The selected way's own flag must be true, alongside its own key, before any AI
route does anything other than report ... is not configured; another way's flag or key never
stands in. With NODE_ENV=production, the API does not start without them (ADR-684, ADR-967).
Setting a flag to true without having actually completed the review above defeats the entire
purpose of this gate. This codebase has no way to verify that you performed the review — the flag
is an attestation, not a technical check (ADR-035 §Decision point 3) — so its only value comes from
being set truthfully.
Related documents
docs/architecture/AZILOS_CLOUD_V0.1.md— Azilos Cloud, the service AI requests go to.docs/adr/ADR-026-understand-ai-derived-insight.md— what data the insight sends, and why.docs/adr/ADR-593-azilos-cloud-ai-gateway-adapter.md/ADR-594-select-azilos-ai-gateway.md— the Azilos Cloud adapter and its settings.docs/adr/ADR-028-understand-insight-tenant-consent-gate.md/ADR-033-understand-insight-tenant-self-service-consent.md— the separate, tenant-level consent question.docs/adr/ADR-034-understand-insight-consent-decline-data-retention.md— what happens (nothing automatic) to already-generated data when a tenant later declines consent.docs/adr/ADR-035-ai-vendor-data-processing-attestation.md— the ADR this document was written to satisfy (§Decision point 4).docs/adr/ADR-027-ai-gateway-cloud-real-adapter.md/ADR-032-ai-gateway-cloud-anthropic-second-vendor.md— the OpenAI and Anthropic adapters, removed by ADR-737 and restored for self-hosted installs by ADR-967.