AI trust boundaries and data provenance
Map the assistant before trusting it
An AI system includes a model, input sources, application logic, storage and possibly tools. Threat modeling asks what each component can access, who controls it and what happens if its output is wrong. In our fictional CampusHelp assistant, a student asks about library hours; the app retrieves approved public documents and produces a draft answer. The model cannot change a timetable or access student records.
Draw the data flow
User -> Application -> authorized document retrieval -> Model (untrusted draft) -> Validator -> User -> Policy gate -> Mock action receiptThe application authenticates the user and enforces document permissions before retrieval. Treat document text as data even when it contains imperative language. The model is not an access-control service. The policy gate is separate from the model and receives authenticated context from the application.
Record model and data provenance
Provenance records where an artifact came from, its version, owner, integrity evidence and allowed use. A model release record should also include evaluation results, dependency versions and licensing review. A document record needs source, classification, revision and expiry. Example: a public library schedule with a recorded owner and valid revision is eligible for review; a document with unknown origin or expired approval is held. A hash can verify bytes against a trusted expected digest, not truth or authorization.
Keep data exposure small
Retrieve only relevant, authorized fields; keep credentials and unrelated records outside model context. Separate tenants at the application and storage layers. Apply retention and access policy to prompts, outputs, embeddings and evaluation records too. A vector-search relevance score does not grant permission. Removing restricted material after generation is weaker than preventing unauthorized retrieval in the first place.
Practice a boundary review
Use the CampusHelp fictional inventory. Identify owner, allowed audience, expiry and provenance for each record. Mark missing evidence as hold rather than guessing. Specify who may approve a new model version and which evaluation must be rerun. Next review the model input and output contracts.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
AI trust boundaries and data provenance — knowledge check
Review AI trust boundaries, output validation, approvals and PQC migration.
Which component must enforce document access before retrieval?
What does a matching trusted digest establish?
An approved document expired today. What should the classroom policy do?
What should a model provenance record include?
Which design minimizes unauthorized context?