Repository navigation
Conversation
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: Abhishree <[email protected]>
Signed-off-by: Abhishree <[email protected]>
Signed-off-by: Abhishree <[email protected]>
Signed-off-by: Abhishree <[email protected]>
Two GDPVal tasks have 220-660 MiB reference files, above the 128 MiB cap, so their seeds always failed and were retried as transient errors. Use a separate 1 GiB per-file cap and an idle-read timeout, bound connection retries, retry 429/5xx a few times, and return a terminal 413 for oversize files. Signed-off-by: Abhishree <[email protected]>
A subdirectory, link, unsafe name, or more than 100 files in /workspace/output made the export return 503, which counts as a retryable infra failure, so the task was dropped from the score and re-run on resume. Judges read only top-level regular files, so export those, record skipped entries in finish_params.json, and raise the export cap to 1 GiB (two gold deliverables exceed 128 MiB). Signed-off-by: Abhishree <[email protected]>
Raising 503 on an invalid judge verdict sent the row to the failure sidecar without its export, so judge-only ELO could not score it and a resume re-ran the agent while the seeded judge choice repeated. Return the verdict: rubric aggregation already excludes invalid rows and reports them. Signed-off-by: Abhishree <[email protected]>
A missing reference or exhausted retries surfaced as a bare aiohttp error, which the middleware turns into a generic 500, so EnvironmentServer re-ran the episode. Return 424 for a non-retryable HTTP status and 503 after the last attempt, and let the download loop own retries (one try per request() call), so the worst case is four bounded attempts. Signed-off-by: Abhishree <[email protected]>
Signed-off-by: Abhishree <[email protected]>
Compose the stock Codex harness with the benchmark config and run one task through both sides' real session code. Document the sandbox path and its Codex composition. Signed-off-by: Abhishree <[email protected]>
7 tasks done
7 tasks done
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?
Runs the Codex harness on GDPval tasks. This is row 6 of the Nemotron 3.5 Super Harness Benchmark Matrix (Codex × GDPVal-AA-V2). Stacked on NVIDIA-NeMo#3640 (Codex in task sandboxes), so the diff shows only the GDPval side.
The pairing is composition only. There are no Codex code changes and no Codex-specific preset. A run composes the stock
codex_agent.yaml, a GDPval sandbox config, andsingle_agent_turn_legacy, as the harness guide (NVIDIA-NeMo#3917) and the GYMINT-5 runbook ask.Commits:
/workspace/outputafter the agent closes and grades it.libreoffice_command, for hosts without LibreOffice;finish_params.jsonmarker on export;cache_sandbox_deliverables, which copies exports into the judge-only ELO layout;fix(gdpval): stage large reference files and bound their download. Two GDPval tasks have 230–690 MB reference files, above the old 128 MiB cap, so their seeds always failed and were retried. The fix adds a separate 1 GiB per-file cap and an idle-read timeout, bounds connection retries (they were unbounded), retries 429/5xx a few times, and returns a terminal 413 for oversize files. The Pi branch carries the same commit.fix(gdpval): report reference download failures with clear statuses. A missing reference or exhausted retries reached EnvironmentServer as a generic 500 (retryable). It now gets 424 (terminal) or 503 (retryable), and the download loop owns the retries, so the worst case is four bounded attempts.resources_servers/gdpval/configs/gdpval_sandbox.yaml: the benchmark side only, withallowed_agents: [codex_agent].tests/test_harness_pairings.py.No separate issue: this is the matrix task. Related: NVIDIA-NeMo#3640, NVIDIA-NeMo#3917, yaoyu-33#8, yaoyu-33#9.
Validation
Local, Linux x86_64, Python 3.13.14, venvs built from
uv.lock:pytest responses_api_agents/codex_agent/tests environment_servers/single_agent_turn_legacy/tests environment_servers/single_agent_turn/tests resources_servers/gdpval/tests/test_harness_pairings.py resources_servers/gdpval/tests/test_cache_sandbox_deliverables.py --import-mode=importlib -o addopts='': 263 passed, 3 skipped.GDPval server venv (the one
gym env test --resources-server gdpvalbuilds),pytest tests -o addopts='': 628 passed, 3 skipped, 4 failed. The 4 failures aretest_judge_panel.py::test_benchmark_panel_reaches_intended_upstream_models_and_credentials[*]. They fail the same way on feat(codex): run Codex in task sandboxes NVIDIA-NeMo/Gym#3640's head (97aff4815), before any commit here.Each new test was checked by breaking the code it guards. The pairing test fails for 9 mutations, including:
reasoning_effortset,sandbox_mode: workspace-write,num_workers: 4, an unpinned version;The download tests fail when the 413, the retries, the 4xx rule, or the connection-retry bound is removed.
pre-commit run --all-files: passed.Two independent review rounds (correctness, tests and docs, scale). Their findings in this PR's scope are fixed; the rest are listed under limitations.
Rollouts
Real-model runs on HSG:
2b0b4fc27(branchcodex-gdpval-baseline-run), which differs from this PR's head only in how failed reference downloads are reported (a54a1176f).timeout3600 s, compaction at 229,376.openai_modelserver.gdpval_aa_v2_arm64.sif(sha256f456983c…058c2a).Results:
judge_media_mode: images_and_text):max_output_tokens32768,temperature1.0,top_p0.95./tmp./workspaceand wrote.xlsxdeliverables to/workspace/output. They were exported withfinish_params.jsonafter the agent closed.image_url(HTTP 400). Those rows were recorded asenvironment_server_failed, not scored zero. Fixed withjudge_media_mode: images_and_text, now in the README.a941b6d8failed at export with 503. That is the case the commit fixes.75401f7cproduced a 98 MB showreel. With the final code and the judge panel, the video was routed togemini-3.5-flashand scored 1.0.a941b6d8was cut short to free the GPU slot for the full run, which includes this task..../users/athittenaman/runs/codex_gdpval/):evidence/smoke3b.manifest.json(versions, image hash, config hashes, results);smoke3b/{rollouts.jsonl, model_calls/, deliverables/, logs/}.Baseline: 220 tasks
The 220 tasks ran as two shards of 110, 16 at a time, with one attempt per task. Infrastructure failures are retried; harness or model failures are not. The full judge panel is the official AA-v2 one: GPT-5.5, Gemini 3.1 Pro, Opus 4.8.
comparison/eval_elo; skips the missing export)ELO checks:
final_stage_degraded= 0;infeasibleis null in both stages' reference reassignment;The 4 omitted tasks:
transport_ineligible);skipped).That task (
b9665ca1) has no export. 7 of its calls hit the 32,768-token output cap, the last 4 in a row. The next prompt (229,377 tokens) plus the 32,768-token output budget exceeded the 262,144-token context by 1 token, which Codex reports as an execution error.Generation numbers:
Coverage policy used for both Pi and Codex:
[{num_tasks: 45, partial_completion: {min_success_fraction: 0.9, min_per_reference_success_fraction: 0.3, min_successful_rows_per_reference: 1}}, {num_tasks: 220, num_models: 4, partial_completion: {min_success_fraction: 0.95, min_per_reference_success_fraction: 0.5, min_successful_rows_per_reference: 1}}]Evidence on HSG, under
runs/codex_gdpval/:evidence/gen220.manifest.json;FAILURES.md, which lists every failure and omission;gen220{a,b}/andphase2_{elo_v2,rubric}/.Compatibility and benchmark impact
Stirrup and judge-only GDPval runs are unchanged. The sandbox path, including the download fix, runs only when
sandbox_provideris set.The smoke rewards are rubric scores from one judge, not the GDPVal-AA-V2 ELO.
The baseline plan has two phases:
cache_sandbox_deliverables, then run the multi-stage ELO against the 18 references.The references' ELOs were set with the official panel, so this ELO is a baseline, not strictly comparable.
Limitations and follow-ups
--agentthrough an Environment Server skip the benchmark'sallowed_agentscheck. Rows that name the Environment Server are checked. This needs a separate core fix.judge_media_mode: native_pdffails on GPT judges behind this route. The code comment says it works for GPT.gym env resolvemasksmax_output_tokensas if it were a secret./tmp). A shared read-only runtime is a planned follow-up.Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).