Salesforce Agentforce Risk Review Skill
Purpose
This skill reviews Salesforce Agentforce
and AI agent configurations for model-risk controls, grounding quality,
retrieval scope, action allowlist safety, human handoff design, hallucination
containment, prompt injection surface, autonomous action boundaries, and audit
logging. It exists because AI agents operating on live Salesforce data and
business processes carry unique risks — autonomous actions, scope creep, and
hallucination-driven errors can cause irreversible data changes or compliance
failures. It does not access live orgs or execute agent actions.
notice: All Agentforce, Einstein, Data Cloud, and
related AI feature names in this skill carry a verification requirement.
Salesforce AI product naming, feature availability, and configuration
interfaces evolve rapidly. Validate all product references against the
current official Salesforce documentation before use.
When to use
- An Agentforce agent configuration is being reviewed before deployment.
- An AI agent's action allowlist has been expanded and must be risk-assessed.
- A human handoff design for an AI agent needs review.
- An AI agent has taken an unexpected action and the configuration must be analyzed.
- Model-risk controls for a Salesforce AI deployment must be documented.
When not to use
- General Salesforce Flow or automation (not AI) — use
salesforce-flow-automation-review-skill.
- Live Agentforce deployment to production — use
salesforce-live-change-approval-protocol.
- Apex code quality (not AI configuration) — use
salesforce-apex-lwc-code-review-skill.
- Marketing AI features (consent and data flow focus) — use
salesforce-marketing-consent-review-skill.
Minimum payload (required inputs)
- Sanitized Agentforce agent
configuration: agent name, role description, topic assignments, action
allowlist, grounding configuration.
- Description of the agent's intended scope and business function.
- Human handoff design: conditions under which the agent escalates to a human.
- Audit logging configuration (or note that it is undocumented).
- Environment: sandbox or production (use placeholder).
Workflow
1. Grounding and retrieval scope review
- Verify that the agent's knowledge base or retrieval source is scoped to
the minimum necessary data.
- Flag: agents with retrieval access to all records in an object without
field-level or record-level restriction.
- Flag: agents using Einstein Search
or Data Cloud knowledge without
documented retrieval scope limits.
- Flag: retrieval of data from objects containing PII or regulated data
without documented access justification.
- Flag: agents grounded on unversioned or unmonitored knowledge sources
(stale grounding can cause hallucination).
2. Action allowlist review
- Review the list of actions the agent is permitted to take (Apex actions,
Flow invocations, external callouts).
- Flag: actions that mutate production records without a human confirmation step.
- Flag: actions that send external communications (email, SMS) autonomously.
- Flag: actions that access financial, HR, or regulated-data records.
- Flag: actions not explicitly allowlisted (if the agent has a default-permit
posture, flag as Critical).
- Flag: actions that can invoke other agents or escalate permissions.
3. Human handoff design
- Verify that human handoff conditions are defined.
- Flag: no handoff condition (agent runs to completion without any human
escalation path).
- Flag: handoff conditions that are too narrow (agent can be steered away
from handoff by adversarial input).
- Flag: handoff destination is not a monitored queue or live human (voicemail,
unmonitored inbox).
- Flag: handoff does not preserve conversation context (human receives no
session summary).
4. Hallucination containment
- Verify that the agent's responses are grounded in retrieved data, not
model-generated facts.
- Flag: agent configured to answer questions about policies, regulations, or
financial data without a retrieval step (pure generation from model).
- Flag: no output validation or confidence threshold before external-facing
response.
- Flag: agent presents retrieved data as guaranteed fact without a confidence
indicator.
5. Prompt injection surface
- Review how user input is incorporated into agent prompts.
- Flag: user-supplied text inserted directly into a system prompt or
instruction template without sanitization.
- Flag: agent configured to follow instructions in user-supplied documents
(uploaded files, email bodies) without an injection guard.
- Flag: agent lacks detection for adversarial instructions embedded in
retrieved knowledge.
6. Autonomous action boundary
- Verify that autonomous action boundaries are explicitly defined and enforced.
- Flag: agent can take actions across multiple records in a single invocation
without a configurable limit.
- Flag: agent can chain actions in a loop without a termination condition.
- Flag: agent has write access to objects it does not need to read
(least-privilege violation).
- Flag: sandbox-only actions enabled in the production agent configuration.
- Flag: agent can modify its own configuration or the configurations of other
agents.
7. Audit logging
- Verify that agent actions are logged with: agent ID, action taken, record
affected (placeholder), timestamp, user or session context, outcome.
- Flag: audit logging disabled or not configured.
- Flag: audit log does not capture failed actions or handoff events.
- Flag: audit log not retained for the minimum required period for the industry
vertical.
- Flag: audit log accessible to the agent itself (self-modification risk).
8. Model-risk controls
- Verify that model-risk controls are documented:
- Model version pinned or version-change alert in place.
- Acceptable use policy for the AI feature defined.
- Human oversight mechanism for high-stakes actions.
- Incident response plan for AI-driven errors.
- Flag: no model version pinning (silent model update can change agent behavior).
- Flag: no acceptable use policy documented for the AI deployment.
- Flag: no incident response plan for AI-driven errors.
Evidence requirements
- Sanitized agent configuration export or detailed description; no credentials,
session tokens, or customer data.
- Action allowlist (complete list of permitted actions).
- Human handoff conditions.
- Audit logging configuration.
Output format
agentforce_risk_review_findings:
grounding_retrieval:
- finding: [description]
severity: Critical | High | Medium | Low
verify_before_merge: [feature name if applicable]
recommendation: [brief]
action_allowlist: [same structure]
human_handoff: [same structure]
hallucination_containment: [same structure]
prompt_injection: [same structure]
autonomous_action_boundary: [same structure]
audit_logging: [same structure]
model_risk_controls: [same structure]
summary:
total_findings: [count]
critical_count: [count]
high_count: [count]
escalation_gates_fired: [from salesforce-risk-taxonomy — autonomous-ai-action gate if applicable]
verify_before_merge_items: [list of product names requiring verification]
assumptions: [list]
missing_evidence: [what would improve the review]
Redaction rules
- Never request secrets, credentials, OAuth tokens, refresh tokens, session IDs, MFA seeds, customer PII.
- Sanitize org IDs, user IDs, and agent session IDs (replace with placeholders) before sharing in outputs.
- Agent conversation logs containing customer data must not be included in review inputs.
Privilege / data handling rules
- AI agent configurations involving regulated data (health, financial) escalate to compliance review.
- Audit logs are evidence of AI behavior; handle as compliance records.
- Model-risk findings may have regulatory implications in regulated verticals; route to compliance counsel.
Handoff rules
- Hands off to: salesforce-permission-model-review-skill (if agent permission scope is excessive),
salesforce-data-exposure-escalation-protocol (if autonomous AI action creates data exposure),
salesforce-live-change-approval-protocol (if production Agentforce deployment is next),
salesforce-case-capsule (structured handoff for any Critical finding).
- Required handoff fields: matter_id, critical_count, escalation_gates_fired,
autonomous_action_boundary summary, verify_before_merge_items.
Audit log fields
- matter_id, skill_id, skill_version, invoked_by, input_hash, evidence_quality, output_verdict, escalation_fired, timestamp
Stop conditions
- Agent configuration shows autonomous write access to regulated-data objects without human confirmation — fire autonomous-ai-action gate immediately.
- Action allowlist is effectively unbounded (default-permit) — Critical finding; recommend disabling agent until allowlist is defined.
- Audit logging is disabled in a production agent — Critical finding; escalate to human review before any agent invocation.
- Agent can modify its own configuration — Critical finding; stop and escalate.
Security notes
- All Agentforce and Einstein feature names require verification against current
Salesforce documentation before use in production contexts.
- Autonomous action boundary violations are always escalation-grade regardless
of the action's apparent severity.
- Prompt injection is an active threat surface; agent configurations that
incorporate uncontrolled user input without sanitization are Critical risks.
- This skill does not execute agent actions, access live agent sessions, or
retrieve model outputs. Review is configuration-level only.
1---2name: salesforce-agentforce-risk-review-skill3description: Salesforce Agentforce Risk Review Skill4---56# Salesforce Agentforce Risk Review Skill78## Purpose9This skill reviews Salesforce Agentforce10and AI agent configurations for model-risk controls, grounding quality,11retrieval scope, action allowlist safety, human handoff design, hallucination12containment, prompt injection surface, autonomous action boundaries, and audit13logging. It exists because AI agents operating on live Salesforce data and14business processes carry unique risks — autonomous actions, scope creep, and15hallucination-driven errors can cause irreversible data changes or compliance16failures. It does not access live orgs or execute agent actions.1718**notice:** All Agentforce, Einstein, Data Cloud, and19related AI feature names in this skill carry a verification requirement.20Salesforce AI product naming, feature availability, and configuration21interfaces evolve rapidly. Validate all product references against the22current official Salesforce documentation before use.2324## When to use25- An Agentforce agent configuration is being reviewed before deployment.26- An AI agent's action allowlist has been expanded and must be risk-assessed.27- A human handoff design for an AI agent needs review.28- An AI agent has taken an unexpected action and the configuration must be analyzed.29- Model-risk controls for a Salesforce AI deployment must be documented.3031## When not to use32- General Salesforce Flow or automation (not AI) — use `salesforce-flow-automation-review-skill`.33- Live Agentforce deployment to production — use `salesforce-live-change-approval-protocol`.34- Apex code quality (not AI configuration) — use `salesforce-apex-lwc-code-review-skill`.35- Marketing AI features (consent and data flow focus) — use `salesforce-marketing-consent-review-skill`.3637## Minimum payload (required inputs)38- Sanitized Agentforce agent39 configuration: agent name, role description, topic assignments, action40 allowlist, grounding configuration.41- Description of the agent's intended scope and business function.42- Human handoff design: conditions under which the agent escalates to a human.43- Audit logging configuration (or note that it is undocumented).44- Environment: sandbox or production (use placeholder).4546## Workflow4748### 1. Grounding and retrieval scope review49- Verify that the agent's knowledge base or retrieval source is scoped to50 the minimum necessary data.51- Flag: agents with retrieval access to all records in an object without52 field-level or record-level restriction.53- Flag: agents using Einstein Search54 or Data Cloud knowledge without55 documented retrieval scope limits.56- Flag: retrieval of data from objects containing PII or regulated data57 without documented access justification.58- Flag: agents grounded on unversioned or unmonitored knowledge sources59 (stale grounding can cause hallucination).6061### 2. Action allowlist review62- Review the list of actions the agent is permitted to take (Apex actions,63 Flow invocations, external callouts).64- Flag: actions that mutate production records without a human confirmation step.65- Flag: actions that send external communications (email, SMS) autonomously.66- Flag: actions that access financial, HR, or regulated-data records.67- Flag: actions not explicitly allowlisted (if the agent has a default-permit68 posture, flag as Critical).69- Flag: actions that can invoke other agents or escalate permissions.7071### 3. Human handoff design72- Verify that human handoff conditions are defined.73- Flag: no handoff condition (agent runs to completion without any human74 escalation path).75- Flag: handoff conditions that are too narrow (agent can be steered away76 from handoff by adversarial input).77- Flag: handoff destination is not a monitored queue or live human (voicemail,78 unmonitored inbox).79- Flag: handoff does not preserve conversation context (human receives no80 session summary).8182### 4. Hallucination containment83- Verify that the agent's responses are grounded in retrieved data, not84 model-generated facts.85- Flag: agent configured to answer questions about policies, regulations, or86 financial data without a retrieval step (pure generation from model).87- Flag: no output validation or confidence threshold before external-facing88 response.89- Flag: agent presents retrieved data as guaranteed fact without a confidence90 indicator.9192### 5. Prompt injection surface93- Review how user input is incorporated into agent prompts.94- Flag: user-supplied text inserted directly into a system prompt or95 instruction template without sanitization.96- Flag: agent configured to follow instructions in user-supplied documents97 (uploaded files, email bodies) without an injection guard.98- Flag: agent lacks detection for adversarial instructions embedded in99 retrieved knowledge.100101### 6. Autonomous action boundary102- Verify that autonomous action boundaries are explicitly defined and enforced.103- Flag: agent can take actions across multiple records in a single invocation104 without a configurable limit.105- Flag: agent can chain actions in a loop without a termination condition.106- Flag: agent has write access to objects it does not need to read107 (least-privilege violation).108- Flag: sandbox-only actions enabled in the production agent configuration.109- Flag: agent can modify its own configuration or the configurations of other110 agents.111112### 7. Audit logging113- Verify that agent actions are logged with: agent ID, action taken, record114 affected (placeholder), timestamp, user or session context, outcome.115- Flag: audit logging disabled or not configured.116- Flag: audit log does not capture failed actions or handoff events.117- Flag: audit log not retained for the minimum required period for the industry118 vertical.119- Flag: audit log accessible to the agent itself (self-modification risk).120121### 8. Model-risk controls122- Verify that model-risk controls are documented:123 - Model version pinned or version-change alert in place.124 - Acceptable use policy for the AI feature defined.125 - Human oversight mechanism for high-stakes actions.126 - Incident response plan for AI-driven errors.127- Flag: no model version pinning (silent model update can change agent behavior).128- Flag: no acceptable use policy documented for the AI deployment.129- Flag: no incident response plan for AI-driven errors.130131## Evidence requirements132- Sanitized agent configuration export or detailed description; no credentials,133 session tokens, or customer data.134- Action allowlist (complete list of permitted actions).135- Human handoff conditions.136- Audit logging configuration.137138## Output format139```140agentforce_risk_review_findings:141 grounding_retrieval:142 - finding: [description]143 severity: Critical | High | Medium | Low144 verify_before_merge: [feature name if applicable]145 recommendation: [brief]146 action_allowlist: [same structure]147 human_handoff: [same structure]148 hallucination_containment: [same structure]149 prompt_injection: [same structure]150 autonomous_action_boundary: [same structure]151 audit_logging: [same structure]152 model_risk_controls: [same structure]153154summary:155 total_findings: [count]156 critical_count: [count]157 high_count: [count]158escalation_gates_fired: [from salesforce-risk-taxonomy — autonomous-ai-action gate if applicable]159verify_before_merge_items: [list of product names requiring verification]160assumptions: [list]161missing_evidence: [what would improve the review]162```163164## Redaction rules165- Never request secrets, credentials, OAuth tokens, refresh tokens, session IDs, MFA seeds, customer PII.166- Sanitize org IDs, user IDs, and agent session IDs (replace with placeholders) before sharing in outputs.167- Agent conversation logs containing customer data must not be included in review inputs.168169## Privilege / data handling rules170- AI agent configurations involving regulated data (health, financial) escalate to compliance review.171- Audit logs are evidence of AI behavior; handle as compliance records.172- Model-risk findings may have regulatory implications in regulated verticals; route to compliance counsel.173174## Handoff rules175- Hands off to: salesforce-permission-model-review-skill (if agent permission scope is excessive),176 salesforce-data-exposure-escalation-protocol (if autonomous AI action creates data exposure),177 salesforce-live-change-approval-protocol (if production Agentforce deployment is next),178 salesforce-case-capsule (structured handoff for any Critical finding).179- Required handoff fields: matter_id, critical_count, escalation_gates_fired,180 autonomous_action_boundary summary, verify_before_merge_items.181182## Audit log fields183- matter_id, skill_id, skill_version, invoked_by, input_hash, evidence_quality, output_verdict, escalation_fired, timestamp184185## Stop conditions186- Agent configuration shows autonomous write access to regulated-data objects without human confirmation — fire autonomous-ai-action gate immediately.187- Action allowlist is effectively unbounded (default-permit) — Critical finding; recommend disabling agent until allowlist is defined.188- Audit logging is disabled in a production agent — Critical finding; escalate to human review before any agent invocation.189- Agent can modify its own configuration — Critical finding; stop and escalate.190191## Security notes192- All Agentforce and Einstein feature names require verification against current193 Salesforce documentation before use in production contexts.194- Autonomous action boundary violations are always escalation-grade regardless195 of the action's apparent severity.196- Prompt injection is an active threat surface; agent configurations that197 incorporate uncontrolled user input without sanitization are Critical risks.198- This skill does not execute agent actions, access live agent sessions, or199 retrieve model outputs. Review is configuration-level only.