{% set type_badge = { "episodic": "blue", "semantic": "green", "working": "yellow", "procedural": "purple" } %} {% set trust_badge = namespace(cls="gray") %} {% if entries %} {% for entry in entries %} {% set trust = entry.trust_score %} {% if trust is not none %} {% if trust >= 0.8 %}{% set trust_cls = "green" %} {% elif trust >= 0.5 %}{% set trust_cls = "yellow" %} {% else %}{% set trust_cls = "red" %} {% endif %} {% else %} {% set trust_cls = "gray" %} {% endif %} {{ entry.id[:8] }} {{ entry.agent_id or '—' }} {{ entry.memory_type }} {{ (entry.content or '')[:80] }}{% if (entry.content or '') | length > 80 %}…{% endif %} {% if entry.trust_score is not none %} {{ '%.2f' | format(entry.trust_score) }} {% else %} {% endif %} {{ entry.created_at.strftime('%Y-%m-%d %H:%M') if entry.created_at else '—' }} {{ entry.last_accessed.strftime('%Y-%m-%d %H:%M') if entry.last_accessed else '—' }} {% endfor %} {% else %} No memory entries found. {% endif %}