Sub topic 17
Limits of the Layer and Shared Responsibility
This chapter assumes you know Salesforce permissions and sharing, and that you have followed the request flow from the earlier chapters: grounding, masking, prompt defense, the LLM gateway, zero data retention, toxicity detection, demasking, and audit. Here you look at what those controls do not do, and what stays with your organization.
What the layer does not guarantee
The Trust Layer reduces risk. It does not remove it. Each control has a boundary.
- Masking only covers values it detects, based on its configuration. A sensitive value in free text that no pattern or detection rule matches can still reach the model. Masking is also not a substitute for deciding which fields belong in a prompt.
- Zero data retention is a term of the agreement with the model provider. It says the provider does not keep prompts and responses. It does not control what happens inside your org or in the response a user copies elsewhere.
- Toxicity detection scores responses. A score is a signal, not proof that a response is accurate, fair, or appropriate for your business.
- Prompt defense adds guard instructions. It lowers the chance of misuse, but it cannot promise that no manipulation will work.
- Grounding can only use data the running user may see. It cannot fix data that is wrong to begin with.
What stays with you
The layer works on the data and design you give it. Four areas remain your responsibility.
| Area | What can go wrong | What you do |
|---|---|---|
| Permissions and sharing | A user with too much access grounds prompts in records they should not see | Apply least privilege to profiles, permission sets, and sharing rules |
| Data quality | Stale or incorrect records produce confident but wrong answers | Keep records clean and review the fields used for grounding |
| Agent design | An agent given broad topics and actions can do more than intended | Scope topics, write clear instructions, limit actions |
| Review | Problems go unnoticed without anyone looking | Check audit and feedback data, and test before release |
Where responsibility sits
A practical review habit
Before you release an agent, test it as a user with the narrowest realistic access. Ask questions that try to reach data outside that user's role. Check the audit trail to see what was masked and how responses were scored. Repeat the check after you change permissions, topics, or actions.
Exercise
An agent summarizes a case and the response includes an internal discount figure the customer should not see. The Trust Layer was enabled. Which of the Trust Layer controls is least likely to have been the cause, and what should you check first?
Show answer
The Trust Layer controls (masking, prompt defense, zero data retention, toxicity detection) are not designed to decide which business fields are appropriate to expose. Check first whether the running user can see the discount field through permissions or sharing, and whether the agent's grounding and instructions include it. The fix is in permissions and agent design.
Exercise
Name two protections the Trust Layer provides and, for each, one limit that remains.
Show answer
Example: Masking protects detected sensitive values, but undetected values in free text can still be sent. Zero data retention stops the provider from keeping prompts, but it does not control how users reuse the response. Other correct pairs are acceptable if they match the limits described in this chapter.