{% extends "base.html" %} {% from "_macros.html" import badge, tabs %} {% block title %}Trace {{ t.trace_id[:8] }} · {{ app.name }} · garrison{% endblock %} {% block content %} {{ tabs(app, tab) }}

{{ t.agent }}{% if t.flow %} in flow {{ t.flow }}{% endif %}

{{ badge(t.status) }}
trace_id
{{ t.trace_id }}
run_id
{{ t.run_id }}
Session
{% if t.session_id %}{{ t.session_id }}{% else %}—{% endif %}
Bundle revision
{% if t.bundle_revision is not none %}{{ t.bundle_revision }}{% else %}— (library mode){% endif %} {% if t.prompt %} · prompt {% if t.prompt.href %}{{ t.prompt.label }}{% else %}{{ t.prompt.label }} (not in the service){% endif %}{% endif %}
{% if t.caller_app or t.parent %}
Called by
{% if t.caller_app %}{{ t.caller_app }} (from its key){% endif %} {% if t.parent %} · parent trace {% if t.parent.href %}{{ t.parent.app }} / {{ t.parent.trace_id[:8] }}{% else %}{{ t.parent.trace_id[:8] }} (not reported here){% endif %}{% endif %}
{% endif %} {% if t.chain and t.chain|length > 1 %}
Chain
{{ t.chain|join(' → ') }} (hops before the direct caller are unverified)
{% endif %} {% if t.children %}
Called
{% for c in t.children %}{% if c.href %}{{ c.app }} / {{ c.trace_id[:8] }}{% else %}{{ c.app }} / {{ c.trace_id[:8] }} (not reported here){% endif %}{{ ', ' if not loop.last }}{% endfor %}
{% endif %}
Model
{{ t.model or '—' }}
Started
{{ t.started_at|dt }} UTC
Ended
{{ t.ended_at|dt }} UTC
Duration
{{ t.duration_ms|ms }}
Tokens
{{ t.token_input|num }} in · {{ t.token_output|num }} out · est. {{ t.cost_usd|usd(5) }}{% if t.unpriced %} ({{ 'partial: ' if t.cost_usd is not none }}no price for {{ t.unpriced_models|join(', ') if t.unpriced_models else 'the model' }}){% endif %}
{% if runs|length > 1 %}

This trace_id has {{ runs|length }} runs: {% for r in runs %}{{ r.started_at|dt('%H:%M:%S') }} {{ r.agent }}{{ ', ' if not loop.last }}{% endfor %}

{% endif %}

Steps

{% if t.timeline.steps %}

Bars are positioned on the run's {{ t.timeline.span_ms|ms }}.

    {% for s in t.timeline.steps %}
  1. {{ s.type|replace('_', ' ') }} {% if s.tool %}{{ s.tool }}{% endif %} {% if s.to_agent %}→ {{ s.to_agent }}{% endif %} {% if s.agent and s.type in ('agent_start', 'agent_end', 'handoff') %}{{ s.agent }}{% endif %} {% if s.status %}{{ badge(s.status) }}{% endif %} {% if s.violation %}{{ s.violation }}{% endif %} {{ s.offset_ms|ms }}{% if s.has_duration %} · {{ s.duration_ms|ms }}{% endif %}
  2. {% endfor %}
{% else %}

The SDK didn't report steps for this run.

{% endif %}

Tool calls

{% for c in t.tool_calls %} {% else %}{% endfor %}
ToolAppAgentStatusDurationRedacted fields
{{ c.tool }} {{ c.app }}{% if c.cross_app %} cross-app{% endif %} {{ c.agent }} {{ badge(c.status or 'allowed') }}{% if c.violation %} {{ c.violation }}{% endif %} {{ c.duration_ms|ms }} {{ (c.redacted_fields or [])|join(', ') or '—' }}
No tool calls.
{% if t.agents|length > 0 %}

Agents

{% for a in t.agents %} {% endfor %}
AgentPromptModelStatusTokensLatency
{{ a.agent }}{% if a.registered == false %} unregistered{% endif %} {{ a.prompt_version or '—' }}{{ a.model or '—' }} {{ badge(a.status or 'success') }} {{ (a.input_tokens or 0)|num }} / {{ (a.output_tokens or 0)|num }} {{ a.latency_ms|ms }}
{% endif %}

Governance

{% set fired = t.scans|selectattr('detected')|list %}

Injection scans

{% if fired %} {% elif t.scans %}

{{ t.scans|length }} scan{{ '' if t.scans|length == 1 else 's' }}, nothing detected.

{% else %}

No scans ran.

{% endif %}

Violations

{% if t.violations %} {% else %}

None.

{% endif %} {% if t.hook_denials %}

Hook denials: {{ t.hook_denials }}

{% endif %}
{% if t.content %}

Content

Sent because this app opted in. Secret-looking fields and each tool's redact_fields are replaced before it leaves the app.

Input
{{ t.content.input }}
Output
{{ t.content.output }}
{% if t.content.error %}
Error
{{ t.content.error }}
{% endif %} {% for a in t.content.agents or [] %}
{{ a.agent }}: prompt, input and response

Prompt

{{ a.prompt }}

Input

{{ a.input }}

Response

{{ a.output }}
{% if a.raw_output and a.raw_output != a.output %}

Raw response (before the output check)

{{ a.raw_output }}
{% endif %}
{% endfor %} {% for c in t.content.tool_calls or [] %}
Tool {{ c.tool }}: params and response

Params

{{ c.params|tojson(indent=2) }}

Response

{{ c.response|tojson(indent=2) }}
{% if c.correction %}

Anvil correction

{{ c.correction }}
{% endif %}
{% endfor %}
{% endif %}

Received {{ t.received_at|dt }} UTC. The app's local trace file has the full record under this trace_id.

{% endblock %}