{# 05 / RECOMMENDATION + COST -- merges the v0.1.0 verdict block and cost_breakdown.html into one section so users see the "what library / what proxy / what does it cost" picture in one pass. #}
05 / RECOMMENDATION + COST

Recommended approach

{% set syn = report.synthesis_result %} {% set rec = (syn.recommendation if syn else None) %} {% if rec and rec.primary_library and rec.primary_library != 'unknown' %}
{% if syn.verdict %}

{{ syn.verdict }}

{% endif %}
Tooling
{{ rec.primary_library }}
{{ rec.confidence | format_percent }} confidence
Proxy type
{{ rec.proxy_type }}
{{ rec.proxy_confidence | format_percent }} confidence
Cost band
{{ rec.cost_band_low_usd | format_money }} – {{ rec.cost_band_high_usd | format_money }}
per {{ rec.cost_unit_count }} req · range
{% if rec.rationale %} {# T47.3: rationale uses ``var(--ink)`` (the high-contrast token), not ``var(--ink-2)``. The card background is ``var(--bg-card)`` -- in dark mode that's ``#161618`` and ``var(--ink-2)`` (#b8b6b1) was readable in isolation but failed WCAG AA against the rest of the card's typography stack (heading + meta both use ``var(--ink)``), creating a perceived dim/illegible patch. ``var(--ink)`` is ``#e6e4e0`` in dark mode / ``#18181B`` in light mode -- contrast ratios 13:1 dark, 17:1 light against ``--bg-card``. #}

{{ rec.rationale }}

{% endif %}
{% else %}

No recommendation was synthesised on this scan. Inspect sections 01 and 04 for raw signals.

{# T18: combined synthesis (recommendation + verdict + starter_code) #} {# failed -- offer a free per-section retry. Hides automatically once #} {# the section renders successfully because the outer `if rec` flips. #} {% if synthesis_section_failed(report, 'synthesis') %} {% with section_name='synthesis', section_label='this section' %} {% include 'partials/retry_section.html' %} {% endwith %} {% endif %} {% endif %} {% include 'partials/cost_breakdown.html' %}