All ({{ all_count }}) {% for t in ['failure', 'success', 'antifragile', 'workflow'] %} {% if type_counts.get(t, 0) > 0 %} {{ t | capitalize }} ({{ type_counts[t] }}) {% endif %} {% endfor %}
{% if patterns %} {% for p in patterns %}
{{ p.id }} {{ p.pattern }}
{% if p.description %}

{{ p.description }}

{% endif %} {% if p._type == 'failure' and p.mitigation %}

Mitigation: {{ p.mitigation }}

{% elif p._type == 'success' and p.context %}

Context: {{ p.context }}

{% elif p._type == 'workflow' and p.example %}

Example: {{ p.example }}

{% endif %} {% if p._type == 'antifragile' %} {% if p.capability_gained %}

Capability gained: {{ p.capability_gained }}

{% endif %} {% if p.escalation_ladder %}
{% set ladder = p.escalation_ladder | lower %}
A
Don't repeat
B
Improve technique
C
Improve tooling
D
Change ways
{% endif %} {% endif %}
{% if p.learned_from %} Learned from: {{ p.learned_from }} {% endif %} {% if p.date_learned %} | {{ p.date_learned }}{% endif %} {% if p.directive %} | Directive: {{ p.directive }}{% endif %}
{% endfor %} {% else %}

No patterns match this filter.

{% endif %}