{% from "_macros.html" import verdict_chip, weight %} {% set dec = x.decision %} {% set head %}{{ icon("scale") }} {{ dec.decision_type|capitalize }} decision{% if dec.verdict %}{{ verdict_chip(dec.verdict) }}{% endif %}{% if dec.outcome %}{{ dec.outcome|replace('_', ' ')|lower }}{% endif %}{% endset %} {% include "_panel_head.html" %}
Decision
{{ icon("user", 14) }} by{{ dec.actor.kind }}: {{ dec.actor.id }}
{% if dec.reason %}
{{ icon("message-question", 14) }} reason{{ dec.reason }}
{% endif %} {% if dec.resolution %}
{{ icon("list-check", 14) }} answer{{ dec.resolution }}{% if dec.relation %}: {{ dec.relation }}{% endif %}
{% endif %} {% if dec.rationale %}
{{ icon("message-question", 14) }} rationale{{ dec.rationale }}
{% endif %} {% if dec.reason_codes %}
{{ icon("hash", 14) }} reasons{% for c in dec.reason_codes %}{{ c|replace('_', ' ')|lower }} {% endfor %}
{% endif %} {% if dec.invocation_id %}
{{ icon("sparkles", 14) }} model call{{ dec.invocation_id }}
{% endif %} {% if dec.recommendation_id %}
{{ icon("sparkles", 14) }} was shown{{ dec.recommendation_id }}
{% endif %} {% if dec.left_id %}
{{ icon("arrows-join", 14) }} pair {{ dec.left_id }}
{{ dec.right_id }}
{% endif %} {% for s in dec.scores or [] %}
{{ icon("chart-dots", 14) }} {{ s.kind|replace('_', ' ') }}{{ fmt(s.value) }}
{% endfor %} {% if dec.members %}
{{ icon("users", 14) }} members{{ plural(dec.members|length, 'node') }}
{% endif %}
{{ icon("clock", 14) }} at{{ dec.created_at[:16]|replace('T', ' ') }}
{{ icon("hash", 14) }} id{{ dec.decision_id }}
{% if x.evidence %}
Evidence
{% for e in x.evidence %} {% endfor %}
ComparisonLevelBitsInputs
{{ e.attribute or e.kind }}{{ e.level or e.value }} {% if e.score %}{{ weight(e.score.value) }}{% endif %} {% if e.kind == 'llm_adjudication' %}{{ (e.value or {}).get('rationale') or '' }}{% else %}{% for k, v in e.inputs.items() %}{{ k }}: {{ fmt(v) }}
{% endfor %}{% endif %}
{% endif %} {% if x.edges %}
Pairs behind it {{ x.edges|length }}
{% for edge in x.edges %}{% set p = edge.decision %}
{{ verdict_chip(p.verdict) }}{{ p.left_id[:12] }}… · {{ p.right_id[:12] }}… {% for s in p.scores if s.kind == 'fellegi_sunter_weight' %}{{ weight(s.value) }}{% endfor %}
{% endfor %} {% endif %}