{% comment %} First-viewport agentic summary for one repetition: overall verdict badge with a distinct color per status, a one-paragraph explanation, observed-vs-expected counts, and trace completeness. Hidden when the rep has no agentic evaluation. Context: rep (see infra.ui._rep_view). {% endcomment %} {% if rep.agentic_overview %}

Agentic audit

{{ rep.agentic_overview.status }} {% if rep.agentic_trace_completeness %} {% with tc=rep.agentic_trace_completeness %} {% if tc.complete %} Trace complete{% if tc.captured_kinds %} · {{ tc.captured_kinds|join:", " }}{% endif %}{% if tc.span_count is not None %} · {{ tc.span_count }} span{{ tc.span_count|pluralize }}{% endif %} {% else %} Trace incomplete{% if tc.missing_reason %} — {{ tc.missing_reason|truncatechars:80 }}{% endif %} {% endif %} {% if tc.total_steps is not None %}{{ tc.total_steps }} step{{ tc.total_steps|pluralize }}{% endif %} {% if tc.tool_calls is not None %}{{ tc.tool_calls }} tool call{{ tc.tool_calls|pluralize }}{% endif %} {% if tc.errors %}{{ tc.errors }} error{{ tc.errors|pluralize }}{% endif %} {% endwith %} {% endif %}
{% if rep.agentic_overview.reason %}

{{ rep.agentic_overview.reason }}

{% endif %}
{{ rep.agentic_overview.n_passed }} pass {{ rep.agentic_overview.n_failed }} fail {{ rep.agentic_overview.n_inconclusive }} inconclusive {{ rep.agentic_overview.n_checks }} check{{ rep.agentic_overview.n_checks|pluralize }} total
{% if rep.agentic_overview.first_failure or rep.agentic_overview.first_inconclusive %}

{% if rep.agentic_overview.first_failure %}First failure: {{ rep.agentic_overview.first_failure }}{% else %}Needs more evidence: {{ rep.agentic_overview.first_inconclusive }}{% endif %}

{% endif %}
{% endif %}