{% comment %} One judged conversation on the scenario result page: a repetition, or the whole result of a single-rep run. Context: rep (see infra.ui._rep_view). {% endcomment %}
{% if rep.summary %}

Judge verdict

{% include "partials/severity_badge.html" with sev=rep.severity %}

{{ rep.summary }}

{% endif %} {% if rep.issues or rep.positives or rep.recommendations %}

Issues found ({{ rep.issues|length }})

{% if rep.issues %}
    {% for x in rep.issues %}
  • •{{ x }}
  • {% endfor %}
{% else %}

None.

{% endif %}

Positive behaviours ({{ rep.positives|length }})

{% if rep.positives %}
    {% for x in rep.positives %}
  • ✓{{ x }}
  • {% endfor %}
{% else %}

None recorded.

{% endif %}

Recommendations ({{ rep.recommendations|length }})

{% if rep.recommendations %}
    {% for x in rep.recommendations %}
  • →{{ x }}
  • {% endfor %}
{% else %}

None.

{% endif %}
{% endif %} {% if rep.conversation %}

Conversation ({{ rep.turns }} turn{{ rep.turns|pluralize }})

{% for m in rep.conversation %}

{{ m.speaker }}{% if m.turn %} · turn {{ m.turn }}{% endif %}

{{ m.content }}

{% endfor %}
{% endif %} {% if rep.rationale %}

Judge rationale

{{ rep.rationale }}

{% endif %} {% if rep.tokens or rep.other %}
{% if rep.tokens %}

Token usage ({{ rep.total_tokens }} total)

{% for t in rep.tokens %}

{{ t.role }}

{{ t.input|default:"0" }} in · {{ t.output|default:"0" }} out

{% endfor %}
{% endif %} {% if rep.other %}
{% for key, value in rep.other.items %}
{{ key }}{{ value }}
{% endfor %}
{% endif %}
{% endif %}