{% extends 'admin/master.html' %} {% block head %} {{ super() }} {% endblock %} {% block head_css %} {{ super() }} {% endblock %} {% block body %}

Reconciliation and Drift Detection

Compares billed usage cost from task billing events against tracked inference cost from run_activity_overview_json (fallback: activity_overview.json in run_zip_snapshot).

Tasks checked: {{ summary.total_tasks_checked }}
OK: {{ summary.ok_count }}
Mismatches: {{ summary.mismatch_count }}
Missing data: {{ summary.missing_count }}
Tolerance (USD): {{ '%.4f'|format(summary.tolerance_usd) }}
{% if has_alert %}
ALERT: {{ summary.mismatch_count }} task(s) exceeded reconciliation tolerance.
{% endif %}

Auto-refresh every {{ refresh_seconds }}s.

{% for row in rows %} {% endfor %}
Task Created State Billed usage (USD) Tracked usage (USD) Delta (USD) Status Artifacts
{{ row.task_id }} {{ row.timestamp_created }} {{ row.state }} {% if row.billed_usage_cost_usd is not none %}{{ '%.6f'|format(row.billed_usage_cost_usd) }}{% else %}—{% endif %} {% if row.tracked_usage_cost_usd is not none %}{{ '%.6f'|format(row.tracked_usage_cost_usd) }}{% else %}—{% endif %} {% if row.delta_usd is not none %}{{ '%.6f'|format(row.delta_usd) }}{% else %}—{% endif %} {% if row.status == 'mismatch' %} mismatch {% elif row.status == 'missing_data' %} missing_data {% else %} ok {% endif %}
{% endblock %}