{% extends "base.html" %} {% block title %}Workflows - Memorizz{% endblock %} {% block content %} {% if agent_sections %} {% for section in agent_sections %}

Agent: {{ section.label }}

{% if section.can_act %}
{% endif %}
{% if section.report %}
Last promotion report {{ section.report.at }}
{% if section.report.promoted %}
✓ Promoted skill{{ 's' if section.report.promoted|length != 1 }}: {{ section.report.promoted|join(', ') }} — review on the Skills page
{% endif %} {% for item in section.report.rejected %}
✗ Rejected {{ item.hash }}…: {{ item.reasons|join('; ') }}
{% endfor %} {% for item in section.report.skipped %}
– Skipped {{ item.hash }}…: {{ item.reason }}
{% endfor %} {% for flag in section.report.review_flags %}
⚠ {{ flag }}
{% endfor %} {% if not section.report.promoted and not section.report.rejected and not section.report.skipped and not section.report.review_flags %}
No eligible trajectory classes this cycle.
{% endif %}
{% endif %} {% for cls in section.classes %}

{{ cls.tools }}

{{ cls.hash_short }}…
{{ cls.executions }} run{{ 's' if cls.executions != 1 }} {{ cls.success_rate }} success {{ cls.distinct_queries }} distinct quer{{ 'y' if cls.distinct_queries == 1 else 'ies' }} last seen {{ cls.last_seen }}
{% if cls.promoted %} PROMOTED{% if cls.covering_skill_name %} → {{ cls.covering_skill_name }}{% endif %} view skill {% else %} {% for gate in cls.gates %} {{ '✓' if gate.passed else '✗' }} {{ gate.name }} {% endfor %} {% if cls.eligible and section.can_act %}
{% elif cls.eligible %} ELIGIBLE {% endif %} {% endif %}
{{ cls.run_count }} run{{ 's' if cls.run_count != 1 }} (showing {{ cls.runs|length }}) {% for run in cls.runs %} {% endfor %}
WhenOutcomeUser query
{{ run.created_at or '—' }} {{ run.outcome }} {{ run.user_query|truncate(90) }} {% if run.promoted %}suppressed{% endif %}
{% endfor %}
{% endfor %} {% else %}
🛠️

No Workflow Memory Found

Workflow trajectories are captured automatically when agents call tools. Once the same procedure repeats successfully, it becomes eligible for promotion to a learned skill.

{% endif %} {% endblock %}