AI {{ operation_label }}
{% if error %}
{{ result_text }}
{% else %} {% if operation == "artifacts" %} {% if latest_plan %} {% include "partials/ai-workspace-mitigation-panel.html" with person=person plan=latest_plan rules=latest_plan_rules games=latest_plan_games corrections=latest_plan_corrections fundamentals_text=latest_plan.fundamental_items|join:"\n" mitigation_messages=latest_plan_messages latest_export=latest_plan_export notice_message=mitigation_notice_message notice_level=mitigation_notice_level auto_settings=latest_auto_settings active_tab="plan_board" %} {% else %}

No mitigation plan yet. Use the Patterns tab to generate one.

{% endif %} {% elif operation == "draft_reply" and draft_replies %}
{% for option in draft_replies %}

{% with tone=option.label|default:""|lower %} {% if tone == "soft" %} {% elif tone == "neutral" %} {% elif tone == "firm" %} {% else %} {% endif %} {% endwith %} {{ option.label|default:"Option" }}

{{ option.text }}

{% endfor %}
{% else %} {% if operation == "extract_patterns" %}
{% for section in result_sections %}
{% if section.level <= 2 %}

{{ section.title }}

{% elif section.level == 3 %}

{{ section.title }}

{% else %}
{{ section.title }}
{% endif %} {% for block in section.blocks %} {% if block.type == "ul" %}
    {% for item in block.items %}
  • {{ item }}
  • {% endfor %}
{% else %} {% for item in block.items %}

{{ item }}

{% endfor %} {% endif %} {% endfor %}
{% endfor %}
{% else %}
{% for section in result_sections %}
{% if section.level <= 2 %}

{{ section.title }}

{% elif section.level == 3 %}

{{ section.title }}

{% else %}
{{ section.title }}
{% endif %} {% for block in section.blocks %} {% if block.type == "ul" %}
    {% for item in block.items %}
  • {{ item }}
  • {% endfor %}
{% else %} {% for item in block.items %}

{{ item }}

{% endfor %} {% endif %} {% endfor %}
{% endfor %}
{% endif %} {% endif %} {% if operation == "extract_patterns" %}

Create Framework / Rules / Games

Building mitigation plan...

Plan editing is consolidated in the Plan tab.

{% endif %} {% endif %}