{# Cost impact verification partial (spec 108) #} {% if cost_verification.status in ['queued', 'running'] %}

Cost Impact Verification

In progress

Building models... Please wait.

Running dbt build with the applied changes and comparing costs against the baseline.

{% elif cost_verification.status == 'completed' and cost_verification.cost_comparison %}

Cost Impact Verification

Completed
{# Summary banner #} {% if cost_verification.net_delta_usd is not none %} {% if cost_verification.net_delta_usd < 0 %}

Net Saving: ${{ "%.2f"|format(cost_verification.net_delta_usd | abs) }}

{% elif cost_verification.net_delta_usd > 0 %}

Net Cost Increase: ${{ "%.2f"|format(cost_verification.net_delta_usd) }}

{% else %}

No net cost change detected.

{% endif %} {% endif %} {# Comparison table #} {% set comparison = cost_verification.cost_comparison %} {% if comparison and comparison.models %}
{% for model in comparison.models %} {% endfor %} {% if comparison.summary %} {% endif %}
Model Before After Delta Change %
{% if model.is_changed_model %} {{ model.model_name }} {% else %} {{ model.model_name }} {% endif %} {% if model.before_cost_usd is not none %}${{ "%.4f"|format(model.before_cost_usd) }}{% else %}—{% endif %} {% if model.after_cost_usd is not none %}${{ "%.4f"|format(model.after_cost_usd) }}{% else %}—{% endif %} {% if model.delta_usd is not none %} {% if model.delta_usd < 0 %}-${{ "%.4f"|format(model.delta_usd | abs) }}{% elif model.delta_usd > 0 %}+${{ "%.4f"|format(model.delta_usd) }}{% else %}$0.0000{% endif %} {% else %}—{% endif %} {% if model.pct_change is not none %}{{ "%.1f"|format(model.pct_change) }}%{% else %}—{% endif %}
Total ${{ "%.4f"|format(comparison.summary.total_before_usd) }} ${{ "%.4f"|format(comparison.summary.total_after_usd) }} {% if comparison.summary.net_delta_usd < 0 %}-${{ "%.4f"|format(comparison.summary.net_delta_usd | abs) }}{% elif comparison.summary.net_delta_usd > 0 %}+${{ "%.4f"|format(comparison.summary.net_delta_usd) }}{% else %}$0.0000{% endif %} {% if comparison.summary.net_pct_change is not none %}{{ "%.1f"|format(comparison.summary.net_pct_change) }}%{% else %}—{% endif %}

{{ comparison.summary.model_count }} model{{ 's' if comparison.summary.model_count != 1 else '' }} evaluated. marks the changed model.

{% endif %}
{% elif cost_verification.status == 'failed' %}

Cost Impact Verification

Failed

Verification build failed

{% if cost_verification.error_message %}

{{ cost_verification.error_message | truncate(300) }}

{% endif %}
{% endif %}