{% if contradictions %}
{% for c in contradictions %}
Contradiction Detected
{% if c.severity == 'hard' %}
Hard
{% elif c.severity == 'soft' %}
Soft
{% endif %}
{{ (c.detected_at|string)[:10] if c.detected_at else '' }}
Item A
{{ c.item_a.title if c.item_a else 'Unknown' }}
{{ c.item_a.content[:200] if c.item_a else '' }}
{% if c.item_a and c.item_a.domain %}
{{ c.item_a.domain|title }}
{% endif %}
Item B
{{ c.item_b.title if c.item_b else 'Unknown' }}
{{ c.item_b.content[:200] if c.item_b else '' }}
{% if c.item_b and c.item_b.domain %}
{{ c.item_b.domain|title }}
{% endif %}
Analysis: {{ c.explanation }}
{% if c.suggested_resolution %}
Suggested: {{ c.suggested_resolution }}
{% endif %}
{% endfor %}
{% else %}
No contradictions detected.
Contradictions are flagged when new items conflict with existing knowledge.
{% endif %}
Loading duplicate candidates...