Sub topic 12
Model choices and what changes for trust
This chapter assumes you know the request flow from earlier chapters: grounding, masking, prompt defense, the LLM gateway, and zero data retention. Here the question is narrower. When the model behind an agent changes, which protections stay the same and which ones you need to check again?
Where the model sits
The LLM gateway is the single exit point for prompts. The model is the destination behind it. Because every prompt passes through the gateway, the same Trust Layer steps run before and after the model call, whichever model is chosen.
What the choice affects
Model options vary by release and by org setup, so check current Salesforce documentation for the list your org has. In general, the options differ in three ways.
| Question | Why it matters for trust |
|---|---|
| Who hosts the model? | Decides whether the prompt stays inside Salesforce infrastructure or goes to a third party. |
| Do retention terms apply? | Zero data retention is an agreement with a provider. It does not apply by default to a model you bring yourself. |
| Who operates the model? | For a customer-supplied model, you own its security, logging, and data handling. |
What stays the same
For models reached through the gateway, these steps still happen:
- Retrieval and grounding respect the running user's permissions.
- Masking replaces detected sensitive values before the prompt leaves.
- Prompt defense instructions are added.
- Toxicity detection scores the response.
- Demasking and the audit trail run on the way back.
What can change
- Retention terms. Zero data retention is a contract with each provider. Confirm that it covers the model you pick.
- Data location. Where the model runs can matter for data residency rules.
- Quality and behavior. Models differ in accuracy, tone, and how well they follow instructions. A different model can give different answers to the same prompt.
- Masking coverage. Masking only hides what it detects. A model with different behavior does not make undetected values safe.
A practical checklist
- Identify who hosts and operates the model.
- Confirm that zero data retention terms cover it.
- Check data residency requirements for your data.
- Run representative prompts and review the output and the audit trail.
Exercise
Your team wants to connect a model that it hosts and manages itself. Which Trust Layer steps still run at the gateway, and which protection should you not assume applies?
Show answer
Grounding with user permissions, masking, prompt defense, toxicity detection, demasking, and audit still run through the gateway. Do not assume zero data retention applies, because that is a provider agreement. Your team is responsible for how the self-hosted model stores and handles prompts.