{% if directives %} {% for d in directives %}
{{ d.id }} — {{ d.name }} {% if d.priority %} Priority {{ d.priority }} {% endif %}

{{ d.statement }}

{% if d.last_reviewed %}

Last reviewed: {{ d.last_reviewed }}

{% endif %} {% if d.practices %}
Practices ({{ d.practices | length }}) {% for p in d.practices %} {% endfor %}
ID Name Status
{{ p.id }} {{ p.name }} {{ p.status | default("active") }}
{% endif %} {% if d.decisions %}
Decisions ({{ d.decisions | length }}) {% for dec in d.decisions %} {% endfor %}
ID Decision Date
{{ dec.id }} {{ dec.decision }} {{ dec.date }}
{% endif %} {% if d.gaps %}
Gaps ({{ d.gaps | length }}) {% for g in d.gaps %} {% endfor %}
ID Title Status
{{ g.id }} {{ g.title }} {{ g.status }}
{% endif %} {% if not d.practices and not d.decisions and not d.gaps %}

No linked practices, decisions, or gaps.

{% endif %}
{% endfor %} {% else %}

No Directives Found

No directives were found in .context/project/directives.yaml.

{% endif %}