{% autoescape true %} {% if window_decisions %}
Identical displayed decision summaries share a reference. The native dataset retains all alternatives and source evidence. New records include the actual ordering rules and sort keys.
{% for window in window_decisions %}Sources: {% for source in window.sources %}{{ source }}{% if not loop.last %}, {% endif %}{% endfor %}. {% if window.products %}Products: {{ window.products | join(', ') }}.{% endif %}
{% if window.parent %}Selected [{{ window.parent.start }}, {{ window.parent.end }}) in parent candidate sequence {{ window.parent.sequence }} (zero-based, end-exclusive).
{% else %}Parent candidate coordinates were not recorded.
{% endif %} {% if window.none_eligible %}No windows met the recorded eligibility constraints.
{% elif window.decision %}Recorded rank {{ window.decision.selection_rank }}; {{ window.decision.decision_reason | replace('_', ' ') }}. Sort key: {{ window.decision.ordering_key | tojson | e }}. Ranking rules: {{ window.decision.ranking_rules | join(', ') }}.
{% else %}Historical selection order and tie-break decisions were not recorded.
{% endif %}{{ window.self_status }}. {{ window.serum_status }}.
Ordering: {{ window.ordering_description }}. Recorded policy: {{ window.policy | tojson | e }}. {% if window.utility_selector %}Utility uses (target score − serum weight × at-risk target score) / (1 + self weight × non-CTA self score).{% endif %}
| {{ label }} | {{ value }} |
|---|
Retained target occurrences (window offsets{% if window.utility_selector %}; each sequence/allele contributes its maximum score once{% else %}; occurrence scores are summed{% endif %}):
{% for target in window.targets %}{{ target.sequence }} at {{ target.offset }}: {% for allele, score in target.allele_scores.items() %}{{ allele }}: {{ '%.6g' | format(score) }}{% if not loop.last %}; {% endif %}{% endfor %}{% if target.internal_cuts is defined %}; internal supported cuts {{ target.internal_cuts | tojson | e }}{% endif %}.
{% endfor %}{% endif %} {% if window.alternatives %}Alternative preview: {{ window.alternatives | length }} of {{ window.alternative_count }} recorded windows; complete alternatives are in the native audit. {% if not window.decision %}Producer order is shown; historical preference order is unavailable.{% endif %}
| Alternative | Target / {{ 'utility' if window.utility_selector else 'combined score' }} | Decision |
|---|---|---|
| {{ alternative.sequence }} | {{ alternative.target_score | display_epitope_value }} / {{ (alternative.utility if window.utility_selector else alternative.combined_score) | display_epitope_value }} | {{ (alternative.decision_reason or alternative.ineligibility_reason or 'Eligible; final choice not recorded') | replace('_', ' ') }}
{% if alternative.selection_rank %}; rank {{ alternative.selection_rank }}{% endif %}
{% if alternative.ordering_key %} Sort key: {{ alternative.ordering_key | tojson | e }}{% endif %} |