{% extends "base.html" %} {% block title %}Exception Review - {{ project.name }}{% endblock %} {% block content %}

Exception Review

Exception Rate: {{ "%.2f"|format(exception_rate) }}% {{ total_exceptions }} / {{ total_utterances }}
{% if exception_rate > 1 %}
Quality Gate Failed: Exception rate ({{ "%.2f"|format(exception_rate) }}%) exceeds 1% threshold. The analysis process should be improved before proceeding to voice generation.
{% endif %}
Exceptions Requiring Review
{% if exceptions %}
{% for exc in exceptions %} {% endfor %}
Chapter Utterance Current Speaker Confidence Ambiguity Type Evidence Text Preview Actions
Ch {{ exc.chapter_index + 1 }}
{{ exc.chapter_title or 'Untitled' }}
utt{{ exc.utterance_index }} {% if exc.speaker == 'narrator' %} Narrator {% else %} {{ exc.speaker }} {% endif %}
{{ "%.0f"|format(exc.confidence * 100) }}%
{{ exc.ambiguity_type }} {% for e in exc.evidence[:3] %}
{{ e }}
{% endfor %} {% if exc.evidence|length > 3 %}
+{{ exc.evidence|length - 3 }} more...
{% endif %}
{{ exc.text[:200] }}{% if exc.text|length > 200 %}...{% endif %}
{% if exc.alternatives %} {% endif %}
{% else %}

No Exceptions Found

All attributions meet confidence thresholds.

{% endif %}
{% endblock %}