Repository navigation
fix(eval): validate ground-truth session ids - #2880
1828703450qqcom-ux wants to merge 2 commits into
Conversation
|
@1828703450qqcom-ux — Thanks for fixing the silent drop and for adding core tests for missing, matching, and unmatched session IDs. I checked the unmatched case with the CLI’s production file logger: the warning goes into the rotating log, but stderr is empty. A user looking at the evaluation result still can’t tell their ground truth was ignored. Could you surface that warning on stderr and add a command-level regression test that asserts stderr names the unused session and stdout remains valid JSON? One useful case is a session that exists but has no tool-call spans for a tool-call evaluator: it should warn and make no Evaluate call. I also hit internal |
|
Thanks @vivdalal for the thorough review! Addressed all of the feedback in commit 72c7205:
Verified locally with |
Summary
--ground-truthentries without a session ID in both on-demand references and batch session metadata, rather than silently ignoring or submitting malformed references.Closes #2876
Testing
bun test src/core/evalGroundTruth.test.ts— 4 passed; the broader on-demand test command reported by the contributor passed 25 tests.bun run typecheck,bun run lint:check,bun run format:check,bun run build, andbun run secrets:checkpassed.git diff --checkpassed.EBUSY. The local audit command could not run because the installed Bun version could not read this repository's lockfile version.AI assistance: Codex helped implement and test this change.