{%- if trace_result.is_success -%}✓{%- else -%}✗{%- endif -%}
{%- if trace_result.is_success -%}
All requirements properly traced
{%- else -%}
Issues found in requirements tracing
{%- endif -%}
Summary
Total Items:{{ trace_result.total_items }}
Defects:{{ trace_result.defect_count }}
{%- if trace_result.defect_count > 0 -%}
Defect Breakdown
{%- for message in trace_result.defect_statistics_messages() -%}
{{ message }}
{%- endfor -%}
{%- endif -%}
{%- if trace_result.defect_count > 0 -%}
Defects Found
{%- for defect in trace_result.defects -%}
{{ defect.defect_type }}{{ defect.description }}
{%- match defect.item_id -%}
{%- when Some with (id) -%}
→ View Item
{%- when None -%}
{%- endmatch -%}
{%- endfor -%}
{%- endif -%}
Specification Items
{%- for item in trace_result.items -%}
{{ item.item.id }}
{{ item.coverage_status }}
{%- match item.item.title -%}
{%- when Some with (title) -%}
{{ title }}
{%- when None -%}
{%- endmatch -%}
{%- match item.item.description -%}
{%- when Some with (description) -%}
{{ description|safe }}
{%- when None -%}
{%- endmatch -%}
{%- match item.item.location -%}
{%- when Some with (location) -%}
Location:{{ location }}
{%- when None -%}
{%- endmatch -%}
{%- if !item.item.needs.is_empty() -%}
Needs:{{ item.item.needs|join(", ") }}
{%- endif -%}
{%- if !item.item.covers.is_empty() -%}
Covers:
{%- for cover_id in item.item.covers -%}
{{ cover_id }}
{%- if !loop.last -%}, {%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if !item.item.depends.is_empty() -%}
Depends:
{%- for depend_id in item.item.depends -%}
{{ depend_id }}
{%- if !loop.last -%}, {%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if !item.outgoing_links.is_empty() -%}
Outgoing Links:
{%- for link in item.outgoing_links -%}
{{ link.target_id }}
{%- if !loop.last -%}, {%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if !item.incoming_links.is_empty() -%}
Incoming Links:
{%- for link in item.incoming_links -%}
{%- match link.source_id -%}
{%- when Some with (source_id) -%}
{{ source_id }}
{%- when None -%}
Unknown
{%- endmatch -%}
{%- if !loop.last -%}, {%- endif -%}
{%- endfor -%}