AI Data-Flow Mapping & Trust Boundaries
Before choosing a provider or security control, map exactly where user data travels and where it is stored.
type DataFlow = {
dataClass: 'public' | 'internal' | 'confidential' | 'regulated';
destination: string;
purpose: string;
retentionDays?: number;
encrypted: boolean;
};
Questions every architecture should answer
What leaves your server? Which system stores it? For how long? In which region? Which subprocessors see it? Can users delete/export it? Does enabling background execution, files, conversation state or caching change retention?
Practice
- Draw the data flow for a RAG chatbot using a hosted LLM and remote MCP server.
- Which boundaries require separate retention documentation?
- Why are application logs part of the AI privacy model?
- What changes when a user uploads a confidential PDF?