Commit c7bef36
fix(gooddata-eval): report whole-conversation latency and ungated cost
Third structural finding from #1799's review, applied here.
latency_sec used run.turn_wall_clock_sec, which is the goal turn alone and
excludes the clarification turns that got there -- understating the item's real
elapsed cost on exactly the runs where it matters. It now prefers pt.latency and
falls back to the goal turn, which is what 7 of the 8 existing kinds already do;
kda_skill is the outlier and documents its own reason, and this copied it without
re-checking.
cost_usd was gated on ev.triggered, so a run that answered without ever reaching
the tool reported no cost despite having spent tokens. The gate is gone.
806 passed, lint and format clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 273b842 commit c7bef36
1 file changed
Lines changed: 9 additions & 2 deletions
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
530 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
531 | 538 | | |
532 | 539 | | |
533 | 540 | | |
| |||
0 commit comments