Skip to content

refactor(legal-agent-bench): separate runtime code from vendor notices - #5787

Closed
rystewart-nvidia wants to merge 4 commits into
NVIDIA-NeMo:mainfrom
rystewart-nvidia:lab-refresh/attribution
Closed

rystewart-nvidia wants to merge 4 commits into
NVIDIA-NeMo:mainfrom
rystewart-nvidia:lab-refresh/attribution

Conversation

@rystewart-nvidia

@rystewart-nvidia rystewart-nvidia commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Move LAB's runtime code into resources_servers/legal_agent_bench/harness/ and lab_harbor/. Leave licenses and attribution under vendor/harvey_labs/. Update imports and preparation paths so the runtime works as normal Python packages.

Preserve the MIT license for code adapted from Harvey LAB, add Apache-2.0 notices for NVIDIA's changes, and list the component in ATTRIBUTIONS.md. Source headers and the attribution README identify the upstream files and revision.

Validation

Run with Python 3.13.14 and the Gym test environment activated:

PYTHONPATH=. LITELLM_LOCAL_MODEL_COST_MAP=True uv run --active --no-sync python -m pytest \
  resources_servers/legal_agent_bench/tests \
  benchmarks/legal_agent_bench/tests -q
pre-commit run --all-files
git diff --check

45 tests passed, covering preparation, imports, agent behavior, and scoring. The new test catches broken package imports and stale runtime paths. Pre-commit and import checks passed.

LITELLM_LOCAL_MODEL_COST_MAP=True avoids downloading model prices during imports; --active --no-sync uses the activated environment.

Rollouts

A live model used the moved runtime in a Harbor Docker sandbox to write moved-runtime.txt containing READY. It finished in two turns, and the collected file contained the expected text.

The standalone verifier then graded that file using GPT-5.5 as judge. Its criterion passed, giving reward 1 with no judge errors. This checked that the verifier could run from the packaged files without mounting the repository. Test containers and connections were cleaned up.

These checks cover the moved agent and verifier.

Compatibility and benchmark impact

Imports now use resources_servers.legal_agent_bench.harness and resources_servers.legal_agent_bench.lab_harbor. Task IDs, source revision, benchmark settings, prompt, and scoring are unchanged.

Only ATTRIBUTIONS.md changes outside LAB. No shared runtime code changes, and Harvey's original code remains MIT-licensed.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

@copy-pr-bot

copy-pr-bot Bot commented Nov 7, 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.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Nov 7, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added support User questions, support, or maintenance requests area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 7, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Nov 9, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Nov 9, 2026
@cmunley1

Copy link
Copy Markdown
Contributor

resources_servers/legal_agent_bench/harness/adapters/openai_compatible.py L9-10: the source link points at upstream harness/adapters/base.py, but this file adapts a different upstream module. Could the link name the actual source file?

@rystewart-nvidia

Copy link
Copy Markdown
Contributor Author

@cmunley1 I fixed the source link to point to harness/adapters/openai.py and added the same mapping to the attribution table

@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Nov 12, 2026
@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Nov 13, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 13, 2026 15:59
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
Signed-off-by: Ryan Stewart <[email protected]>
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the risk:high Autobot PR risk: high label Nov 18, 2026
@rystewart-nvidia

Copy link
Copy Markdown
Contributor Author

superseded by changes merged in #5791, closing

@nemo-automation-bot nemo-automation-bot Bot removed the community-request Issue reported or requested by someone from the community label Nov 27, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Nov 27, 2026
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 needs-review PR is ready for code review and waiting on a reviewer risk:high Autobot PR risk: high support User questions, support, or maintenance requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants