{% if run.status not in ['succeeded', 'failed', 'cancelled'] %}
{% endif %}
{% if run.status == 'succeeded' and run.spec.agent_name and not ev %}
Runs the candidate over its canonical scenarios.
{% endif %}
{% if ev and ev.passed and run.spec.agent_version %}
{% if item.candidate_state == 'active' %}
✓ Promoted — {{ run.spec.agent_name }}@{{ run.spec.agent_version }} is active (see stage 01).
{% elif item.promotion_pending %}
Promotion pending approval in stage 05 — Promote.
{% else %}
{% endif %}
{% elif ev and ev.passed and not run.spec.agent_version %}
Set a candidate version on the run to request promotion.
{% endif %}
{% else %}
No training runs yet. Submit one above — the candidate version is prefilled with the agent's draft.