{% extends "base.html" %} {% block title %}Sraosha — Run {{ run.id | string | truncate(8, true, '') }}{% endblock %} {% block breadcrumbs %}

Run detail

{{ run.id }}

{% endblock %} {% block content %}
{% if contract %} ← {{ contract.title }} {% else %} ← Contracts {% endif %} {% if run.status == "passed" %} passed {% elif run.status == "failed" %} failed {% else %} {{ run.status }} {% endif %} {{ run.run_at.strftime('%Y-%m-%d %H:%M:%S UTC') }}
{% if prev_run_id %} Older run {% endif %} {% if next_run_id %} Newer run {% endif %}
{% if run.checks_total %} {% set pct_pass = (run.checks_passed / run.checks_total * 100) | round(1) %} {% set pct_fail = (run.checks_failed / run.checks_total * 100) | round(1) %}
Checks {{ run.checks_passed }} / {{ run.checks_total }} passed
{% endif %}
Duration
{{ "%dms" % run.duration_ms if run.duration_ms else "—" }}
Triggered by
{{ run.triggered_by or "—" }}
Server
{{ run.server or "—" }}

Metadata

Contract
{% if contract %} {{ contract.title }} {% else %} {{ run.contract_id }} {% endif %}
Enforcement
{% if run.enforcement_mode == "block" %} block {% elif run.enforcement_mode == "warn" %} warn {% else %} log {% endif %}
{% if run.error_message %}

Error

{{ run.error_message }}

{% endif %} {% if run.failures %}

Failed checks ({{ run.failures | length }})

{% for f in run.failures %} {% endfor %}
Check Field Message
{{ f.check or "—" }} {{ f.field or "—" }} {{ f.message or "—" }}
{% endif %}

Validation log

{% if run.run_log %} {% endif %}
{% if run.run_log %}
{{ run.run_log }}
{% else %}
No log captured for this run.
{% endif %}
{% if run.run_log %} {% endif %} {% endblock %}