Repository navigation
Commit 313505a
fix(gooddata-eval): let --gate decide a what-if item, not pass@K alone
`run_agentic_what_if` already computed `pass_power_k`; the evaluator never read
it, asking `if not summary.pass_at_k` for the verdict. `--gate power` on a flaky
item therefore reported a pass on the strength of one good run out of K -- the
exact case the gate exists to catch, reporting the opposite of what happened.
The evaluator now takes `gate` like every other multi-run kind, asks
`gate_passed(...)`, and carries the gate's note into the assertion message, which
matters here because the message body describes the BEST run and under pass^K that
can be one that passed. It also stamps the gate on the run metadata and publishes
pass@K/pass^K/gate_passed, so a gated run is readable in Langfuse rather than only
in the exit code.
The default is unchanged: without --gate this is pass@K exactly as before, pinned
by a test alongside the power case. The power test fails against the previous
code.
Found by CodeRabbit on #1798, where the same gap was fixed for forecasting.
`agentic_anomaly_detection` has it too and is fixed on its own branch, #1801,
because that evaluator does not exist on master yet.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 9be051b commit 313505a
3 files changed
Lines changed: 65 additions & 2 deletions
File tree
- packages/gooddata-eval
- src/gooddata_eval
- cli
- core/agentic
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
463 | 471 | | |
464 | 472 | | |
465 | 473 | | |
| 474 | + | |
466 | 475 | | |
467 | 476 | | |
468 | 477 | | |
| |||
493 | 502 | | |
494 | 503 | | |
495 | 504 | | |
| 505 | + | |
| 506 | + | |
496 | 507 | | |
497 | 508 | | |
498 | 509 | | |
| |||
520 | 531 | | |
521 | 532 | | |
522 | 533 | | |
| 534 | + | |
523 | 535 | | |
524 | 536 | | |
525 | 537 | | |
| |||
564 | 576 | | |
565 | 577 | | |
566 | 578 | | |
567 | | - | |
| 579 | + | |
| 580 | + | |
568 | 581 | | |
569 | | - | |
| 582 | + | |
570 | 583 | | |
571 | 584 | | |
572 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
0 commit comments