Skip to content

fix(equivalence_llm_judge): restore Bash prompt and reject unknown judge fields - #7034

Open
khairullinr wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
khairullinr:khairullinr/fix-judge-prompt-validation
Open

khairullinr wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
khairullinr:khairullinr/fix-judge-prompt-validation

Conversation

@khairullinr

Copy link
Copy Markdown

Summary

Fixes #6985.

The nl2bash-equivalency configuration uses the obsolete
judge_prompt_template field, which is silently ignored during
configuration validation. As a result, Bash command equivalence
is evaluated using the default STEM prompt instead of the
intended Bash-specific grading rules.

Changes

  • Move the existing Bash judge prompt into a dedicated template
    file without modifying its grading rules or examples.
  • Update the configuration to use judge_prompt_template_fpath.
  • Add fail-fast validation for unknown judge_* configuration
    fields.
  • Preserve compatibility with existing framework configuration
    metadata.
  • Update the configuration class docstring.

Tests

Added regression coverage for:

  • Loading the Bash-specific prompt from the actual nl2bash
    YAML configuration.
  • Rejecting the obsolete inline prompt parameter.
  • Rejecting unknown judge configuration fields.
  • Preserving compatibility with framework metadata.
Stage Passed Failed
Before the fix 215 3
After the fix 218 0
  • All equivalence LLM judge tests passed.
  • Existing prompt content preserved.
  • Existing judge configuration field compatibility checked.
  • Ruff checks passed.
  • Pre-commit checks passed.

Scope

No new dependencies or changes to reward calculation,
verdict parsing, or judge request execution.

Benchmark

The verified nl2bash benchmark baseline still needs to be
regenerated using the corrected Bash-specific prompt.
A full benchmark rerun has not been performed as part of this PR.

@copy-pr-bot

copy-pr-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the community-request Issue reported or requested by someone from the community label Dec 1, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the risk:mid Autobot PR risk: mid label Dec 1, 2026
@khairullinr

Copy link
Copy Markdown
Author

The regression tests confirm that the original issue is fixed,
with all 218 local tests passing.
Verified nl2bash benchmark baseline still needs to be
regenerated. Could a maintainer advise on the preferred
procedure for running this benchmark?

@khairullinr
khairullinr marked this pull request as ready for review December 1, 2026 17:58
@khairullinr
khairullinr force-pushed the khairullinr/fix-judge-prompt-validation branch from 526cc03 to 971399b Compare December 1, 2026 18:07
@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Dec 1, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Dec 2, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working community-request Issue reported or requested by someone from the community risk:mid Autobot PR risk: mid sla:triage-overdue Review assignment is over the one-business-day SLA waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

equivalence_llm_judge: nl2bash-equivalency's bash judge prompt is ignored

2 participants