Repository navigation
feat(legal-agent-bench): add native execution through agent sessions - #5968
Closed
rystewart-nvidia wants to merge 36 commits into
Closed
rystewart-nvidia wants to merge 36 commits into
rystewart-nvidia wants to merge 36 commits into
Conversation
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]>
…y LAB 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]>
rystewart-nvidia
force-pushed
the
lab-refresh/native
branch
from
November 10, 2026 21:54
ba56438 to
75c20f6
Compare
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]> # Conflicts: # resources_servers/legal_agent_bench/app.py # resources_servers/legal_agent_bench/tests/test_app.py
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]>
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]> # Conflicts: # resources_servers/legal_agent_bench/tests/test_worker_entrypoints.py
…esh/attribution 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
Contributor
Author
|
Superseded by #5788, which includes the LAB Native agent and Harbor Environment Server integration. |
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?
Add a native LAB agent that uses Gym's shared agent sessions. The official Harvey LABs implementation uses a native agent that this implementation mirrors. Depends on #5792 which has its own PR dependencies. Will rebase onto main once 5792 merges.
finishbehavior with the same task source and judges as the existing Harbor LAB path. Keep judge credentials and hidden criteria out of the agent sandbox.num_samples_in_parallel, defaulting to one.Validation
All 281 tests in the LAB, native-agent, benchmark, and shared-executor suites passed. All-files pre-commit and import checks passed.
From the repository root, run below to test:
LITELLM_LOCAL_MODEL_COST_MAP=Trueavoids downloading model prices during imports.Rollouts
Ran all five
example.jsonltasks through Gym's native LAB agent and Docker withopenai/openai/gpt-5.6-sol. Each run calledfinish, retained its DOCX outputs and both judge reports, and completed without operational or judge errors. Profiling covered all five runs; none were masked.Neither judge passed every criterion on any task, so all full-task rewards were zero. These runs check the integration, not benchmark performance.
Live provider checks passed for Enroot, Apptainer, OpenSandbox, and OpenShell: reattachment, supervised execution, owner survival after disconnect, exact 1 MiB artifact transfer, separate verifier state, and teardown. Apptainer's root/fakeroot execution also passed. Its nested cgroup limits could not be validated; the test container enforced the outer limits. Fargate's ECS/S3, transfer, ownership, and cleanup checks passed with LocalEmu; real AWS provisioning remains untested because I don't have AWS credentials for testing.
Configure policy and judge endpoints in
env.yamlusing the LAB evaluation guide. This run used Claude Sonnet 4.6 and GPT-5.5 through a shared endpoint:Replace the URL and key with your endpoint settings, and use the model IDs your endpoint accepts. Both judges inherit the shared URL and key; individual entries can override them with
base_urlandapi_key. For single judging, keep just one entry.From the repository root:
Compatibility and benchmark impact
Harbor remains the default. The LAB native agent uses an Environment Server with
single_agent_turn_legacyfor Gym JSONL task rows. Selectbenchmarks/legal_agent_bench/config_native.yamlto use the native agent; task rows and judge configuration stay the same. Harness changes can affect scores. Automatic LAB image building requires Docker; other providers need a prepared compatible image.Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).