Repository navigation
fix(evaluator): judge skip_remaining failures on the final turn - #380
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. |
|
Could we pass the turns configuration directly to
This should address the final-turn and single-turn cases without storing policy information in |
…final-turn # Conflicts: # CHANGELOG.md
Pass the configured turns to multiTurnStatus and look up the failed turn's post_condition.on_fail there, instead of storing the policy on TurnResult.
|
Done in 63aeb9a.
I also merged main to clear the changelog conflict and moved the entry to Unreleased. |
…final-turn # Conflicts: # CHANGELOG.md
Summary
A failed
post_conditionwithon_fail: skip_remainingnow leaves the case verdict to the judges, including on the final or only turn. Previously, the evaluator inferred that policy from later skipped turns, so these cases were forced to FAIL without judging.multiTurnStatusreads the failed turn's policy from the configured turns, using its turn number with bounds and nil checks. The failed turn remains recorded asfailed. The default policy andon_fail: failstill stop judging;TurnResultis unchanged.Test plan
Checked after merging current main, using Go 1.26.10 and the pinned lint tools:
make verifymake testmake e2enpm run docs:buildRegression tests cover final-turn and single-turn failures, skipped later turns, single and multiple judges, judge PASS and FAIL, executed-turn counts, and policy lookup defaults for missing configuration or invalid turn numbers.