Technical Health Assessment
{{ client_name }}
{{ product_name }}
Prepared by: {{ consultant_name or "ACE Intelligence" }}
Date: {{ generated_at }}
Report type: {{ report_type.replace('_', ' ').title() }}
01 Executive Summary
{% for para in executive_summary.split('\n\n') %} {% if para.strip() %}

{{ para.strip() }}

{% endif %} {% endfor %}
{% if headline_findings %}

Key Findings

{% endif %}
02 Health Scorecard
{% set sorted_disciplines = health_by_discipline | sort(attribute='avg_score') %} {% set callout = sorted_disciplines[:3] %} {% set rest = sorted_disciplines[3:] %}
{% for d in callout %} {% set pct = (d.avg_score * 100)|int %} {% set cls = "good" if d.avg_score >= 0.7 else ("warn" if d.avg_score >= 0.4 else "bad") %}
{{ d.discipline.replace('_', ' ') }}
{{ pct }}%
{% if d.gap_count > 0 %}
{{ d.gap_count }} gap{{ 's' if d.gap_count != 1 }}
{% endif %}
{% endfor %}
{% if rest %}
{% for d in rest %} {% set pct = (d.avg_score * 100)|int %} {% set cls = "good" if d.avg_score >= 0.7 else ("warn" if d.avg_score >= 0.4 else "bad") %}
{{ d.discipline.replace('_', ' ') }} {{ pct }}%
{% endfor %}
{% endif %}
03 System Diagrams
Risk Heat Map — Coverage vs. Business Impact
{{ diagram_risk_heatmap | safe }}
System Architecture
{{ diagram_arch_map | safe }}
Capability Dependencies
{{ diagram_cap_graph | safe }}
{% if mermaid_js_inline %} {% elif mermaid_js_src %} {% endif %}
{% if top_risks %}
04 Top Risks
{% for r in top_risks %}
{{ loop.index }}
{{ r.severity }} {{ r.discipline.replace('_', ' ') }} — {{ r.capability_slug.replace('_', ' ') }}
{% if risk_summaries and risk_summaries.get(r.capability_slug) %}
{{ risk_summaries[r.capability_slug] }}
{% endif %} {% if r.gaps %}
{% for g in r.gaps %}
{{ g }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
05 Recommended Path Forward
{% if recommendation_intro %}

{{ recommendation_intro }}

{% endif %}
{% for i in initiatives %}
{{ i.status }}
{{ i.title }}
{% if i.description %}
{{ i.description }}
{% endif %}
{% endfor %} {% if not initiatives %}

No active initiatives — recommendations to be discussed.

{% endif %}