AI {{ operation_label }}
{% if error %}
{{ result_text }}
{% else %} {% if ai_request_status %}
Request {{ ai_request_status|title }} Messages {{ ai_request_message_count|default:0 }} {% if ai_result_created_at %} Result {{ ai_result_created_at }} {% endif %} {% if ai_request_started_at %} Started {{ ai_request_started_at }} {% endif %} {% if ai_request_finished_at %} Finished {{ ai_request_finished_at }} {% endif %}
{% if ai_request_window_spec %}
{% if ai_request_window_tags %} {% for item in ai_request_window_tags %} {{ item }} {% endfor %} {% else %} Window selected {% endif %} {% if ai_request_policy_tags %} {% for item in ai_request_policy_tags %} {{ item }} {% endfor %} {% endif %}
{% endif %} {% endif %} {% 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 interaction_signals %}

Interaction Signals

{% for signal in interaction_signals %} {{ signal.label }} ({{ signal.valence }}) {% endfor %}
{% endif %} {% if memory_proposals %}

Memory Proposals

{% if memory_proposal_groups %}
{% for group in memory_proposal_groups %}

{{ group.title }}

    {% for proposal in group.items %}
  • {{ proposal.content }}
  • {% endfor %}
{% endfor %}
{% else %} {% for proposal in memory_proposals %}

{{ proposal.kind|title }}: {{ proposal.content }}

{% endfor %} {% endif %}
{% endif %} {% if citations %}

Citations

{% if citation_rows %}
{% for row in citation_rows %}

{{ row.source_system|default:"event" }} {% if row.ts_label %} {{ row.ts_label }} {% endif %} {% if row.text %} {{ row.text|truncatechars:140 }} {% else %} {{ row.id }} {% endif %}

{% endfor %}
{% else %}

{{ citations|join:", " }}

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

Create Framework / Rules / Games

Building mitigation plan...

Plan editing is consolidated in the Plan tab.

{% endif %} {% endif %}