{% if impact.total_pipelines == 0 %}

This worker is not used in any pipeline.

{% else %}
{{ impact.total_pipelines }} pipeline{{ 's' if impact.total_pipelines != 1 }} {{ impact.total_stages }} stage{{ 's' if impact.total_stages != 1 }} {% if impact.total_downstream > 0 %} {{ impact.total_downstream }} downstream {% endif %} {% if impact.risk == "high" %} HIGH RISK {% else %} LOW RISK {% endif %}
{% if not impact.has_output_schema %}

No output_schema defined — downstream stages have no contract protection.

{% endif %}
{% for p in impact.pipelines %}
{{ p.name }} — {{ p.stages | length }} stage{{ 's' if p.stages | length != 1 }} {% if p.downstream %}, {{ p.downstream | length }} downstream{% endif %}
Direct stages: {% for s in p.stages %} {{ s.name }} {{ s.tier }} {% if s.has_output_schema %}{% endif %} {% endfor %}
{% if p.downstream %}
Downstream (affected by changes): {% for d in p.downstream %} {{ d }} {% endfor %}
{% endif %}
{% endfor %} {% endif %}