Skip to main content

What Are Policies?

Policies are rules that evaluate traces for compliance and risk. When a trace arrives, Velatir’s policy engine automatically assesses it against all active policies, producing assessments with compliance status, risk levels, and recommendations. These assessments are then used by workflows to determine what happens next.

How Policy Evaluation Works

When a trace arrives:
  1. Analyzes the Trace - Examines function name, arguments, metadata, and any LLM explanation
  2. Applies All Active Policies - Runs the trace through every enabled policy
  3. Generates Assessments - Creates a detailed assessment for each policy
  4. Feeds Workflows - Assessments are used by workflow triggers to determine routing

Assessment Output

Each policy produces an assessment with:

Compliance Status

Compliant - Trace meets policy requirements Non-Compliant - Trace violates policy or needs review

Risk Level

Low - Minimal risk Medium - Some risk, may need attention High - Significant risk, likely needs review Critical - Major violation

Confidence Score

0.0 - 1.0 - How confident the AI is in its assessment Higher scores mean more certainty

Recommendation

Auto-Approve - Safe to proceed Human Intervention - Needs human review

Assessment Details

Every assessment includes:
  • Reason - Clear explanation of the assessment
  • Tags - Categorization labels for routing and analytics
  • Policy Version - Exact version used
  • Evaluation Timestamp - When assessed

Policy Types

Pre-built Policies

Velatir provides a set of pre-built and validated policies covering common compliance and governance scenarios. These are ready to use out of the box.

Custom Policies

Create organization-specific rules tailored to your industry, use cases, and compliance requirements.

Using Policies with Workflows

Policies and workflows work together:
  1. Policies evaluate - Each trace gets assessments from active policies
  2. Workflows trigger - Policy triggers check assessment results
  3. Actions execute - Matching triggers run workflow nodes
Example workflow trigger:
Trigger when: Policy matches
Condition: Non-compliant
Risk Level: High or Critical

Policy Management

In the dashboard:
  • Enable/Disable - Turn policies on or off per project
  • View Assessments - See how policies evaluate your traces
  • Create Custom - Build organization-specific policies
  • Version History - Track changes to policy definitions

Create Custom Policies

Build your own rules