Skip to content

fix(config): warn about ignored case judge fields - #403

Merged
zpzjzj merged 4 commits into
alibaba:mainfrom
karanb192:fix/case-judge-requires-type
Nov 16, 2026
Merged

zpzjzj merged 4 commits into
alibaba:mainfrom
karanb192:fix/case-judge-requires-type

Conversation

@karanb192

@karanb192 karanb192 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When a case has a non-empty judge block without type, skill-up keeps using the eval judge and ignores the case's judge fields. validate and run now warn about those ignored fields while preserving that fallback behavior.

For example, judge: {timeout_seconds: 30} produces a warning and continues using the eval judge's timeout. Setting type explicitly applies the case override.

Details

  • Omitted, empty and null case judge blocks inherit a singular eval judge without a warning.
  • YAML field-presence tracking distinguishes an empty block from explicitly configured zero, empty or null values. YAML merges are handled too.
  • Explicitly typed overrides retain their existing behavior. A case-level judge without a type remains an error when overriding an eval-level judges list.
  • The English and Chinese guides and changelog document the warning and inheritance rules.

Test plan

Checked after merging current main, using Go 1.26.10 and the pinned lint tools:

  • make verify
  • make test
  • make e2e
  • npm run docs:build

Regression tests load case YAML and verify warnings and resolved judge settings for rules, timeouts, zero values, empty and null fields, omitted and empty blocks, YAML merges, and typed overrides. Separate cases verify that eval-level judges list validation is unchanged.

A case-level judge block with no type was replaced by the eval judge, so
its rules, timeout and other fields were ignored and validate passed.
ResolveJudgePlan, used by both validate and run, now reports
"case judge.type is required when overriding the eval judge", the same
check it already made when the eval configures a judges list.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T10:43:56.973901Z 206ceac PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

zpzjzj commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

I suggest preserving backward compatibility in this PR:

  • An omitted, empty, or null case-level judge should inherit the eval judge.
  • A non-empty case-level judge without type should retain the existing fallback behavior, with a warning that its fields are ignored.
  • Explicitly typed overrides and the existing validation for eval-level judges lists should remain unchanged.

Defaulting type from the eval judge and applying the case fields would activate settings that were previously ignored, potentially changing grading results. That would be better handled separately, with explicit inheritance semantics and tests for timeout overrides, rule replacement, and judge-type changes.

@karanb192 karanb192 changed the title fix(config): reject a case judge block without a type fix(config): warn about ignored case judge fields Nov 16, 2026

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zpzjzj
zpzjzj added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 16, 2026
@zpzjzj
zpzjzj added this pull request to the merge queue Nov 16, 2026
Merged via the queue into alibaba:main with commit a163152 Nov 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants