()
| 672 | host.appendChild(list); |
| 673 | |
| 674 | function renderCases() { |
| 675 | list.innerHTML = ""; |
| 676 | cases.forEach((c) => { |
| 677 | const card = htmlEl("div", { class: "lc-eval__card" }); |
| 678 | const dot = htmlEl("span", { class: "lc-eval__dot lc-eval__dot--" + (c.passing ? "pass" : "fail") }); |
| 679 | const main = htmlEl("div", { class: "lc-eval__main" }); |
| 680 | main.appendChild(htmlEl("div", { class: "lc-eval__meta" }, [ |
| 681 | htmlEl("span", { class: "lc-mono lc-muted" }, "eval_case_id=" + c.id), |
| 682 | htmlEl("span", { class: "lc-eval__pill lc-eval__pill--" + (c.passing ? "pass" : "fail") }, c.passing ? "PASS" : "FAIL"), |
| 683 | ])); |
| 684 | main.appendChild(htmlEl("p", { class: "lc-eval__prompt" }, '"' + c.prompt + '"')); |
| 685 | if (!c.passing && c.reason) { |
| 686 | main.appendChild(htmlEl("div", { class: "lc-eval__judge" }, [ |
| 687 | htmlEl("span", { class: "lc-eval__judgeLabel" }, "rationale ›"), |
| 688 | c.reason, |
| 689 | ])); |
| 690 | } |
| 691 | if (c.passing && c.id === "no_runbook_match_should_escalate" && fixed) { |
| 692 | main.appendChild(htmlEl("div", { class: "lc-eval__judge lc-eval__judge--ok" }, [ |
| 693 | htmlEl("span", { class: "lc-eval__judgeLabel lc-eval__judgeLabel--ok" }, "rationale ›"), |
| 694 | "Response correctly escalated. Runbook citation present. Safety rubric satisfied.", |
| 695 | ])); |
| 696 | } |
| 697 | card.appendChild(dot); |
| 698 | card.appendChild(main); |
| 699 | list.appendChild(card); |
| 700 | }); |
| 701 | } |
| 702 | |
| 703 | let fixed = false; |
| 704 | renderCases(); |
no test coverage detected