> ## Documentation Index
> Fetch the complete documentation index at: https://docs.velatir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trace Lifecycle

> How a trace flows through Velatir from capture to final state.

## Overview

Every AI interaction captured by Velatir follows the same path. Understanding it helps you read trace outcomes and configure your agents well.

## The Stages

<Steps>
  <Step title="Received" icon="inbox">
    The browser extension or desktop app sends an interaction to Velatir. The trace is stored and grouped into a session with any related traces. Review begins straight away.
  </Step>

  <Step title="Assessed" icon="shield-check">
    Both active agents review the trace at the same time, each recording an assessment.

    | Agent              | Looks at                                                                 |
    | ------------------ | ------------------------------------------------------------------------ |
    | **Gatekeeper**     | Which service is being used                                              |
    | **Data Protector** | Sensitive content such as credentials, personal data, and financial data |

    Each agent reaches a verdict based on your configuration.
  </Step>

  <Step title="Resolved" icon="scale">
    The outcome depends on each agent's role.

    | Role         | What it can do                                              |
    | ------------ | ----------------------------------------------------------- |
    | **Observer** | Flags its finding for review. Does not block or notify.     |
    | **Enforcer** | Blocks the trace, or escalates it to a person for approval. |

    The most restrictive outcome wins. If either agent blocks, the trace is blocked. If either escalates, it is escalated.
  </Step>

  <Step title="Final state" icon="check">
    The trace settles as one of four outcomes: **Allowed**, **Flagged**, **Blocked**, or **Escalated**. Escalations notify your team but do not change the outcome of the trace itself.
  </Step>
</Steps>

## Sessions Give Context

Related traces are grouped into a session that represents a complete conversation or workflow. When a reviewer looks at an escalated trace, they see the whole session around it rather than a single interaction on its own.

## Monitoring

* **Sessions** shows activity grouped into complete interactions.
* **Assessments** shows every agent verdict, with reasoning and any applied instruction.
* Open any trace to see each agent's assessment, how the outcome was resolved, and any escalation.

***

<CardGroup cols={2}>
  <Card title="Escalations" icon="bell" href="/traces/escalations">
    What happens when a trace needs a person.
  </Card>

  <Card title="Sessions" icon="layers" href="/traces/understanding-sessions">
    How traces are grouped into sessions.
  </Card>
</CardGroup>
