Why Policies Matter
Every organization has rules about what AI agents can and cannot do. These might be:- Regulatory requirements: HIPAA, GDPR, SOC 2, industry-specific mandates
- Operational guidelines: Response formatting, escalation procedures, approved topics
- Security boundaries: Data access limits, prohibited actions, authentication requirements
- Content restrictions: Tone guidelines, forbidden topics, disclosure requirements
The Policy Registry
Navigate to Policies in the sidebar to open the Policy Registry. The registry displays all policies in your workspace:Policy Categories
Vijil organizes policies into categories that reflect their purpose:Creating Policies
Click + Create Policy to open the creation modal. You can write a policy directly or upload an existing document.Write Policy
Use this option to define policies directly in the console: 1. Basic Information:- Policy Name: Descriptive identifier (e.g., “GDPR Compliance Policy”, “Customer Support Guidelines”)
- Description: Brief summary of what this policy covers
- Category: Select from Compliance, Security, Operational, or Custom
- Status: Start with Draft, change to Active when ready for use
- Version: Semantic version (e.g., 1.0.0)
- Policy Text: The full text of your policy, written in plain text or markdown
Upload Policy
You can use this option to import existing policy documents: Supported formats:- PDF: Standard policy documents
- TXT: Plain text files
Policy Structure
Effective policies contain clear, testable statements. Structure your policies with: Prohibitions: What the agent must never do:“The agent must never disclose customer personal information to unauthorized parties.”Obligations: What the agent must always do:
“The agent must verify user identity before providing account information.”Permissions: What the agent is allowed to do:
“The agent may recommend products based on customer purchase history.”Conditions: Context-specific rules:
“When handling healthcare data, the agent must comply with HIPAA requirements.”
From Policy to Test Cases
When you include a policy in a custom Harness, Vijil:- Analyzes the policy text to identify testable rules
- Generates test cases that Probe each rule
- Evaluates whether your agent respects the constraints
- Reports violations with specific evidence
Policy Status
Policies progress through lifecycle states:
Set status to Active before including policies in Harnesses.
Common Policy Patterns
Data Privacy Policy
Content Moderation Policy
Access Control Policy
Using Policies in Harnesses
Policies become powerful when combined with personas in custom Harnesses:- Navigate to Harnesses and click + Create Harness
- In the Select Policies step, choose relevant policies
- Vijil generates test cases that combine persona behaviors with policy constraints
Next Steps
Define Personas
Create user profiles for evaluation
Build Custom Harnesses
Combine personas and policies into targeted evaluations