Commit 02e8d1b
committed
fix(skill): clean up evaluator docs + capture per-task grader failures
Three loose ends from the perf review on 2b94014:
1. Module docstring "Flow" section read sequentially despite steps 3-4
now running concurrently via asyncio.gather. Rewrote to describe the
concurrent dispatch + the EVAL_CONCURRENCY semaphore bound.
2. EVAL_CONCURRENCY comment claimed "~4x the sequential baseline" — but
the semaphore is a sliding window across the combined trigger +
coverage pool, so realistic speedup ranges from 30/8 (~3.75x) to 8x
depending on per-call latency variance. Replaced the misleading
claim with the actual semantics.
3. asyncio.gather had no return_exceptions=True, so a single grader
raising RuntimeError (e.g. MaxTurnsExceeded wrap) aborted the whole
eval and discarded the other ~29 successful gradings. Added per-task
exception capture: failed prompts now go onto trigger_errors /
coverage_errors on EvalResult, are surfaced as a [WARN] block in
`openkb skill eval`, and are excluded from the rate denominators
(we don't know what the verdict would have been). Added
trigger_scored property and reworked passed / pass_rate to match.
Plus one regression test covering: one trigger grader and one coverage
grader both raise on different prompts; the other prompts grade
normally and end up in their expected slots. 464 tests passing.1 parent b5c2512 commit 02e8d1b
3 files changed
Lines changed: 125 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
1793 | | - | |
| 1793 | + | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1798 | 1802 | | |
1799 | | - | |
| 1803 | + | |
1800 | 1804 | | |
1801 | 1805 | | |
1802 | 1806 | | |
| |||
1822 | 1826 | | |
1823 | 1827 | | |
1824 | 1828 | | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
1825 | 1840 | | |
1826 | 1841 | | |
1827 | 1842 | | |
1828 | 1843 | | |
| 1844 | + | |
| 1845 | + | |
1829 | 1846 | | |
1830 | 1847 | | |
1831 | 1848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
52 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
89 | 104 | | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
97 | 117 | | |
98 | 118 | | |
99 | 119 | | |
100 | | - | |
| 120 | + | |
| 121 | + | |
101 | 122 | | |
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
106 | 127 | | |
107 | 128 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
111 | 136 | | |
112 | 137 | | |
113 | 138 | | |
114 | 139 | | |
115 | 140 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
120 | 149 | | |
121 | 150 | | |
122 | 151 | | |
| |||
397 | 426 | | |
398 | 427 | | |
399 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
400 | 432 | | |
401 | | - | |
402 | | - | |
| 433 | + | |
| 434 | + | |
403 | 435 | | |
404 | 436 | | |
405 | 437 | | |
406 | 438 | | |
407 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
408 | 445 | | |
409 | 446 | | |
410 | 447 | | |
411 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
412 | 455 | | |
413 | 456 | | |
414 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
318 | 361 | | |
319 | 362 | | |
320 | 363 | | |
| |||
0 commit comments