Overview
When a trace enters Velatir, it goes through several stages before reaching its final state. Understanding this lifecycle helps you configure policies and workflows effectively.Lifecycle Stages
1. Trace Created (Status: Received)
Your system sends a trace to Velatir through the API, SDK, or integration. The trace is stored and marked as Received. At this point:- Trace data is captured
- Session grouping happens
- Processing begins
2. Policy Assessment (Status: Assessed)
Active policies evaluate the trace. Each policy produces an assessment with:| Field | Description |
|---|---|
| Compliant | Does the trace comply with the policy? |
| Risk Level | Low, Medium, High, or Critical |
| Confidence | How confident is the assessment (0-1) |
| Reason | Explanation of the assessment |
| Recommendation | Suggested action |
| Tags | Labels for categorization |
3. Workflow Execution
If a workflow is active, triggers are evaluated against the trace and its assessments. Trigger Types:| Trigger | Evaluates |
|---|---|
| Policy Trigger | Checks if a specific policy matched |
| Conditional Trigger | Checks trace fields, args, or assessment data |
4. Node Execution
Workflows contain nodes that process the trace:| Node Type | What It Does |
|---|---|
| Human Intervention | Creates a review task, pauses workflow |
| Notification | Sends alert to configured channels |
| Rejection | Marks trace as rejected |
5. Human Intervention (If Required)
When a workflow hits a Human Intervention node:- A Review Task is created
- Notifications are sent to configured channels (Slack, Email, Teams)
- Workflow pauses until a decision is made
- Reviewer approves, declines, or requests changes
- Workflow continues based on the decision
6. Final State
| Status | Meaning |
|---|---|
| Completed | Trace approved (auto or by human) |
| Rejected | Trace rejected by workflow or human |
Example Flow
Processing Modes
Synchronous (Workflows Active)
When a workflow is configured:- Policies evaluate immediately
- Workflow executes in-line
- API response includes status and review task ID (if created)
Asynchronous (No Workflows)
When no workflow is configured:- Trace is queued for assessment
- API response returns immediately
- Check trace status later via API or dashboard
Monitoring Lifecycle
Track trace progress in the dashboard:- Traces view - See status of all traces
- Trace detail - View assessments and workflow execution
- Sessions view - See all traces in a conversation
- Review Tasks - Manage pending human decisions