"""기술 검증 입력과 관측 결과의 보고서 표시."""

from __future__ import annotations

from ..common import evidence_index
from ..models import HumanReportView


def build_technical_verification_view(data: dict) -> HumanReportView:
    anchored = ("technicalVerification.checks",)
    return HumanReportView(
        "technical-verification",
        "html/tasks/technical-verification.template.html",
        {
            "humanSummary": data["humanSummary"],
            "verification": data["technicalVerification"],
            "evidenceIndex": evidence_index(data, anchored),
        },
        (),
        anchored_fields=anchored,
    )
