{# Answered decisions and actions, newest first, with a filter. Context: log (db.decision_log). #} {% from "_macros.html" import ref %} {% set sources = {"dashboard": "you", "cli": "you (CLI)", "mcp": "you, in chat", "linear": "Linear", "archive": "closed on archive", "human": "you", "agent": "an agent"} %}

Decision log {{ log | length }}

{% if log %}
    {% for d in log %}
  1. {{ ref(d.id) }}{{ d.title }} {% if not p and d.project_name %}{{ d.project_name }}{% endif %} {% if d.kind == "action" %}Action{% endif %} {{ d.answered_at | ago }} · by {{ sources.get(d.answer_source, d.answer_source or "you") }}

    Q {{ d.summary or d.question }}

    A {{ d.answer_text | truncate(400) }}

  2. {% endfor %}
{% else %}

Nothing decided yet.

{% endif %}