Repository navigation
feat: offline eval baselines and comparison (HY-241) - #409
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dbb9061df7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if row.status == "truncated" or any(turn.truncated for turn in row.turns): | ||
| outcome.issues.append("truncated reply") |
There was a problem hiding this comment.
Preserve turn identities for truncation regressions
When a baseline conversation already contains one truncated turn, a candidate that truncates additional turns receives the same single "truncated reply" issue. Since comparison() detects regressions by subtracting issue sets, it reports no changed checks and exits 0 despite the new truncated replies; the increased metric is only advisory. Record truncation issues with their turn identities, as is already done for empty replies, so additional truncations are detected without failing an unchanged known truncation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 808f9d3. Truncation issues now include turn identities; a conversation-level fallback preserves detection for status-only recordings. Added regression tests covering additional, moved, unchanged and resolved truncations, CLI exit codes, and status-only truncation. The additional/moved cases failed before the fix. All 250 eval tests, Ruff and full mypy pass; three selected fallback mutations were killed. Both committed snapshots reproduce unchanged. Full application/DB tests were not rerun for this scoped offline-report fix.
What
Why
HY-241 needs a reproducible baseline and a pre-merge diff command for future prompt/model/policy changes.
Refs #356
How it was tested
Safety impact
None to runtime safety screening, crisis responses, memory writes or client state. This adds offline evaluation tooling and documentation. Approved recovery expectations and thresholds remain unchanged; known failures stay visible. Truncated/empty replies fail deterministic checks. Judge scores remain advisory pending human calibration.
Notes for the reviewer