{% extends "base.html" %} {% block title %}Pattern Analysis — {{ design.name }}{% endblock %} {% block content %}
← Canvas

🔍 Pattern Analysis

{{ design.name }} · {{ design.domain or 'unspecified' }}
{{ result.dominant }}
Structural Flags
{% for flag, val in result.flags.items() %} {{ flag.replace('_',' ') }} {% endfor %}
Pattern Confidence Scores
{% for p in result.patterns %} {% endfor %}
Pattern Confidence Description Matched Missing Nodes
{{ p.name }} {% if p.id == result.dominant %} Dominant {% endif %}
{{ p.confidence }}%
{{ p.description }} {% for f in p.matched_flags %} {{ f }} {% endfor %} {% for m in p.missing_nodes %} {{ m }} {% endfor %}
{% if result.patterns and result.patterns[0].missing_nodes %}
⚠ Suggested Nodes for {{ result.dominant }}

Adding these nodes would strengthen the dominant pattern's compliance and safety posture:

{% for m in result.patterns[0].missing_nodes %} + {{ m }} {% endfor %}
{% endif %}
{% endblock %}