()
| 808 | } |
| 809 | |
| 810 | function applyFix() { |
| 811 | cases = cases.map((c) => |
| 812 | c.id === "no_runbook_match_should_escalate" |
| 813 | ? Object.assign({}, c, { passing: true, reason: undefined }) |
| 814 | : c |
| 815 | ); |
| 816 | fixed = true; |
| 817 | renderCases(); |
| 818 | note.textContent = "Iteration #2 — all rubrics satisfied"; |
| 819 | actionBtn.textContent = "↺ Replay the fix loop"; |
| 820 | actionBtn.classList.add("lc-btn--ghost"); |
| 821 | animateReveal(); |
| 822 | } |
| 823 | function reset() { |
| 824 | cases = JSON.parse(JSON.stringify(EVAL_CASES_INITIAL)); |
| 825 | fixed = false; |
no test coverage detected