Repository navigation
feat(legal-agent-bench): refresh Harvey tasks, runtime, and grading - #5791
Merged
Merged
Conversation
7 tasks done
rystewart-nvidia
force-pushed
the
lab-refresh/source
branch
from
November 7, 2026 03:39
6d4590b to
c189bd7
Compare
rystewart-nvidia
force-pushed
the
lab-refresh/source
branch
from
November 10, 2026 21:56
c189bd7 to
b44f7f4
Compare
Contributor
|
A few points:
|
7 tasks done
rystewart-nvidia
force-pushed
the
lab-refresh/source
branch
from
November 12, 2026 19:39
41f1263 to
4588b0f
Compare
Contributor
Author
|
@cmunley1 fixed the model prefixes and made the judges run concurrently. Also added notes about filesystem locking and how the document-label fix changes grading |
7 tasks done
rystewart-nvidia
force-pushed
the
lab-refresh/source
branch
from
November 12, 2026 20:34
4588b0f to
6cac91d
Compare
cmunley1
previously approved these changes
Nov 13, 2026
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
…nvironment Server Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
rystewart-nvidia
force-pushed
the
lab-refresh/source
branch
from
November 13, 2026 15:56
6cac91d to
ee4e7c8
Compare
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
7 tasks done
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44852548409 |
7 tasks done
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Refresh LAB to Harvey LABs revision
9e9fa7fe126103de1fceb2227b7c70bf59b67f73, with 2,010 tasks (up from 1,749) and update gym LAB benchmark version0.2.0. Update tools, prompts, document processing, and grading together so the new tasks can be evaluated correctly.lab_core/harness/skills. Preserve existing task IDs, shared-document caching, and task selection.Depends on #5788, which provides the Harbor Environment Server integration. This PR will be rebased onto main after #5788 merges. Shared runtime changes are in separate prerequisites; this PR changes LAB components only, with matching guide, catalog, and attribution updates.
Validation
All 202 LAB, native-agent, benchmark, and docs-link tests passed. All-files pre-commit and import checks passed.
uv sync --locked --project resources_servers/legal_agent_bench source resources_servers/legal_agent_bench/.venv/bin/activate PYTHONPATH=. LITELLM_LOCAL_MODEL_COST_MAP=True uv run --active --no-sync python -m pytest \ resources_servers/legal_agent_bench/tests \ responses_api_agents/legal_agent_bench_native/tests \ benchmarks/legal_agent_bench/tests \ tests/unit_tests/test_fern_docs_links.py --import-mode=importlib -qLITELLM_LOCAL_MODEL_COST_MAP=Trueavoids downloading model prices during imports;--active --no-syncuses the activated environment.Verified source archive SHA-256
333223f7bd293e075ba3d3444f0752b210d52ff2b4f961e888b20afe771c8261and the 2,010-task inventory.Rollouts
Ran two example tasks (trust-document comparison and transition services agreement markup) in Docker with the LAB nativ harness with GPT-5.6-sol and produced the requested DOCX files. Both judges (Sonnet 4.6 and GPT-5.5) completed without errors.
Both rewards were 0 because neither judge passed all criteria for either task.
A focused Docker rerun also confirmed Pandoc 3.11 document extraction, an accepted
finishcall, complete reports from both judges, and sandbox cleanup. Each judge passed 21/23 criteria (reward 0).With Docker running, add
policy_base_url,policy_api_key, andpolicy_model_nameto the gitignored rootenv.yaml, plus the judge settings below. Use the model IDs accepted by your endpoints. Setdefault_hostinenv.yamlto the host address that the sandboxes can reach.Alternatively, configure each judge’s model, base URL, and API key separately in
env.yaml:Per-judge settings override shared defaults. Keep only one entry for single judging.
Using the activated environment from the Validation section above, prepare and run those same two tasks from
resources_servers/legal_agent_bench/data/example.jsonl:In another terminal with the same environment activated:
uv run --active --no-sync gym eval run --no-serve \ --config results/lab-smoke/config.yaml \ --input results/lab-smoke/prepared.jsonl \ --output results/lab-smoke/rollouts.jsonl --limit 2 --concurrency 1Inspect the rollout rows and the outputs and judge reports under
results/lab-smoke/artifacts. Stop the servers after collection. Scores and completion can vary from run to run.To exercise the document-label correction, select this row instead of the examples before preparing:
{"instance_id":"legal_agent_bench::litigation-dispute-resolution__categorize-document-production-set-by-relevance-and-privilege","responses_create_params":{"input":[]}}Compatibility and benchmark impact
The task count increases from 1,749 to 2,010 and the benchmark version becomes
0.2.0. Existing task IDs stay stable where the upstream task is unchanged. LAB Native remains the default harness.Replace
judge_model_name: <model>withlab_judges: [{model_name: <model>}]and removejudge_profile. A missing or empty list will cause an error. Sharedjudge_base_urlandjudge_api_keystill work.full_task(default)criteria_pass_rateFor example, judges passing 2/2 and 1/2 criteria give 0.5 in full-task mode and 0.75 in criterion mode. A failed judge cannot produce a successful aggregate; measured verifier-budget timeouts retain the shared Harbor behavior.
The refreshed tasks, extraction, and judging change score comparability with old runs.
Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).