{% extends "base.html" %} {% block title %}Compare · AgentFlight{% endblock %} {% block main %}

Runs / Compare

Compare runs {{ status | replace("_", " ") }}

Base
{{ names[d.base_id] or "(unnamed)" }} {{ d.base_id }}
Head
{{ names[d.head_id] or "(unnamed)" }} {{ d.head_id }}
Pairing
{{ d.pairing | replace("_", " ") }}

{% for s in ("changed", "added", "removed", "unknown", "same") %} {{ counts[s] | number }} {{ "not comparable" if s == "unknown" else s }} {% endfor %}

{% for side, state in d.unfinished.items() %} {% endfor %} {% if d.pairing == "same_run" %}

Base and head are the same run, so every span is the same; values were not compared one by one.

{% endif %} {% if status == "not_comparable" %}

Nothing that could be compared differs, but some values couldn't be compared (redacted or truncated on one or both sides), so these runs are not shown as the same.

{% endif %} {% if other_warnings %} {% endif %} {% if d.run or d.info or d.run_changes %} {% for field, v in d.run.items() %} {% endfor %} {% for c in d.run_changes %} {% endfor %} {% for field, v in d.info.items() %} {% endfor %}
Run fieldBaseHeadChange
{{ field }}{{ v.base | run_value(field) }}{{ v.head | run_value(field) }}{{ v.get("delta") | run_value(field, True) }}
{{ c.field }}{{ c.reason }}{% if c.paths %}: {% for p in c.paths %}{{ p }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}
{{ field }} (informational){{ v.base | run_value(field) }}{{ v.head | run_value(field) }}{{ v.get("delta") | run_value(field, True) }}
{% endif %}

Spans

{% if show_all %}All {{ d.pairs | length | number }} pairs. Show differences only{% else %}{{ pairs | length | number }} of {{ d.pairs | length | number }} pairs differ or can't be compared. Show all pairs{% endif %}

{% if pairs %} {% for p in pairs %} {% endfor %}
StatusKindSpanChangedDuration Δ
{{ "not comparable" if p.status == "unknown" else p.status }} {{ p.kind }}
{% if p.depth %}{% endif %} {% if p.replay_step is not none %}step {{ p.replay_step }}{% endif %} {% if p.subtree_size > 1 %}({{ p.subtree_size | number }} spans){% endif %}
{% for c in p.changes %}{{ c.field }} {% endfor %}{% if p.usage %}usage{% endif %} {{ p.duration_delta_ms | delta_ms }}
{% endif %}
{% endblock %}