{% extends "base.html" %} {% from "_macros.html" import badge, tabs %} {% block title %}Session {{ session_id|short }} · {{ app.name }} · garrison{% endblock %} {% block content %} {{ tabs(app, tab) }}

Session {{ session_id }}

{{ turns|length }} turn{{ '' if turns|length == 1 else 's' }} · {{ totals.tokens|num }} tokens · {{ totals.blocked }} blocked · {{ totals.error }} error{{ '' if totals.error == 1 else 's' }}. As a table

    {% for t in turns %}
  1. Turn {{ loop.index }} · {{ t.agent }} · {{ t.started_at|dt }} {{ badge(t.status) }} {{ t.duration_ms|ms }} · {{ t.tokens|num }} tokens
    {% if t.content %}
    User{{ t.content.input }}
    {% for c in t.tool_calls %}
    {{ c.tool }} {{ badge(c.status or 'allowed') }}{% if c.violation %} {{ c.violation }}{% endif %}
    {% endfor %}
    {{ t.agent }}{{ t.content.output }}
    {% else %}

    Metadata only. {% if t.tool_calls %}Tools: {% for c in t.tool_calls %}{{ c.tool }} ({{ c.status or 'allowed' }}){{ ', ' if not loop.last }}{% endfor %}.{% else %}No tool calls.{% endif %} {% if t.violations %}Violations: {{ t.violations|map(attribute='violation')|join(', ') }}.{% endif %}

    {% endif %} Trace detail →
  2. {% endfor %}
{% endblock %}