Policies
Policies is where you write governance rules, such as "hide social security numbers" or "limit daily spending". You can create, edit, switch on or off, copy and remove them, and each change keeps a version history.
Open Policies
Go to Studio → Governance → Policies (/governance/policies). The page is titled Policies: "Define and manage governance rules for your AI platform". Buttons at the top are Templates and New Policy.
The list
- Chips: Total, Active and Violations (24h) (orange above 5).
- A search box "Search policies…", a status filter (all, active, inactive) and a type filter (All, content, model, tool, budget, egress).
- Columns: Policy (name, description, up to two tags), Type, Scope, Status (an on/off switch), Violations, Last Evaluated, Ver and Actions.
- Actions are Edit, Clone (opens the editor with "(Copy)" added to the name) and Delete.
- Empty or failed: "No policies found." and "Failed to load policies".
Start from a template
Click Templates to open Policy Templates, then Use Template. This only fills the New Policy form, so you can adjust it before saving.
| Template | Framework | Type |
|---|---|---|
| HIPAA Baseline | HIPAA | Content |
| SOC 2 Controls | SOC2 | Content |
| Financial AI Safety | SOX | Model |
| GDPR Privacy Shield | GDPR | Egress |
| General Safety | Custom | Content |
Create or edit a policy
Open the editor
Click New Policy, or Edit on a row. The window has three tabs: Definition, Rules and Versions (not available for a new policy).
Fill in the Definition tab
Enter a Policy Name (required), a Description, a Policy Type (Content, Model, Tool, Budget or Egress), a Scope (Organization, Workspace or Project) and Tags, separated by commas.
Set the Rules
The Rules tab changes with the type, as shown below.
Save
Use the Active switch at the bottom, then click Create Policy (or Save Changes). Create Policy stays disabled until there is a name. A message says "Policy saved."
Rules for each type
| Type | Settings |
|---|---|
| Content | PII Detection (switch; action REDACT, BLOCK or WARN; severity critical, high, medium or low; patterns ssn, credit_card, email, phone, passport, mrn, dob). Prompt Injection Guard (switch; sensitivity LOW, MEDIUM or HIGH; action BLOCK or WARN). Secrets Detection (switch; patterns aws_key, github_token, private_key, api_key, password, jwt). |
| Model (Model Restrictions) | Allowed Models (gpt-4o, claude-sonnet-4-6, claude-haiku-4-5, gemini-1.5-pro, gemini-flash), Max Input Tokens (8192) and Max Output Tokens (4096) |
| Budget (Budget Controls) | Daily Cost Cap (USD) (50), Monthly Token Limit (10,000,000) and Action on Exceed (BLOCK, WARN or DOWNGRADE_MODEL) |
| Tool (Tool Policy) | Require Approval For (scopes): READ, WRITE, ADMIN. Action: BLOCK, REQUIRE_APPROVAL or WARN. |
| Egress (Egress Policy) | Blocked Patterns: customer_id, email, ssn, account_number. Action: BLOCK, REQUIRE_APPROVAL or WARN. |
The model list is a fixed list in the page, not read from your connected providers.
Version history
Every policy starts at version 1 ("Initial version"). The Versions tab lists each version with its note, time and author, and a Snapshot badge. There is no button to restore an older version.
Remove a policy
Delete shows "Delete Policy?" and says it "will deactivate and remove the policy". In fact the policy is only switched off and kept in the database, so the wording is stronger than what happens. Messages: "Policy removed." or "Failed to delete."
Permissions
Create needs apex.governance.policies with create rights, and edit, switch on or off need update rights. Changes are recorded in the Audit Trail.