Skip to content

[NVBug 6790282] Reconcile swerl_llm_judge grading_mode default with README strict #4512

Closed

Description

@qiaochuz-nv

Queue rank 24/48 · Difficulty 3/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6790282 · priority: Unprioritized · ARB: Atefeh Sohrabizadeh
GitHub: none found (internal tracker: Jira NMGYM-62)

Summary

In resources_servers/swerl_llm_judge, the README documents grading_mode default as "strict", but both the request schema and task-data schema default to "lenient", and no config overrides it. A caller omitting the optional field gets lenient acceptance instead of the documented strict behavior, so explanatory text can wrongly earn reward 1.0. This is a documentation/default-contract mismatch, not a model-quality failure. The verifier compares an extracted letter deterministically; it does not call an LLM judge.

Reproduction

No GPU/model needed. From the Gym checkout, validate the omitted-mode path. The divergence requires the solution-wrapped form <solution>B because this patch fixes it</solution>, gold B: omitted mode parses lenient and returns extracted_answer="B", reward=1.0; explicit strict returns None, 0.0. (A bare B because this patch fixes it returns None under BOTH modes — reward 0.0 — so it does not show the divergence; this matches QA control line 268.)

Root cause

Schema defaults disagree with docs. Not a parser defect; explicit strict and lenient both work.

Status on main (not_fixed)

HEAD 75bb53e. Defect present verbatim:

  • app.py:40 — grading_mode: Literal["lenient", "strict"] = "lenient"
  • task_data.py:51-52 — Field(default="lenient", ...)
  • README.md:15 — default: "strict"; README.md:25 — strict (default)
    git log 06123724..HEAD -- resources_servers/swerl_llm_judge/ shows only 016bb6b81 (legacy servers) and b4d3fbc0d (Ray); neither touches the defaults. git log -L 40,40:app.py traces the = "lenient" line to the original add (Single step environments for SWE tasks #561), unchanged. configs/swerl_llm_judge.yaml sets no grading_mode; all 5 example.jsonl rows use strict.

Proposed fix

Decide intended default (ARB input needed); the QA testcase already enforces strict, so prefer strict:

  • Change defaults to "strict" in app.py:40 and task_data.py:52; leave README as-is.
  • Alternative (if lenient intended): update README.md:15 and :25 to say lenient default.
  • Add a unit test in tests/test_app.py omitting grading_mode: explanatory text -> extracted_answer=None, reward=0.0; <solution>B</solution> -> reward=1.0. Keep explicit strict/lenient tests.

Validation

Re-run QA testcases/environments/swerl_llm_judge.py — the missing_mode_readme_strict_default control (lines 266-289), which asserts extracted_answer=None, reward=0.0 for omitted mode; it currently FAILs and should pass after the fix. Run pytest resources_servers/swerl_llm_judge/tests/test_app.py.

Triage

Difficulty 3/5 — root cause pinpointed to two default literals plus README, but resolution is gated on a maintainer/ARB decision on the intended default direction, a request-contract change spanning app.py + task_data.py + README + a new regression test. That design-choice-plus-maintainer-agreement profile is the level-3 signature. Needs GPU: no.

Reviewer notes

Verifier confirmed all four paths and status not_fixed on main (HEAD 75bb53e; = "lenient" traces to #561, never changed). Raised difficulty from 2 to 3: the fix needs an ARB decision on the intended default plus a request-contract change and new regression test. Corrections applied: the reproduction must use the solution-wrapped <solution>...</solution> form (QA control line 268) to show lenient 1.0 vs strict 0.0 — a bare string returns None under both modes.

Activity

  1. added a commit that references this issue on Nov 7, 2026
    9f2c693
  2. added a commit that references this issue on Nov 19, 2026
    fb5c1bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions