Skip to content

feat(gdpval): run OpenCode and OpenClaw with task tools - #5079

Merged
athitten merged 13 commits into
NVIDIA-NeMo:mainfrom
AdamRajfer:gdpval-opencode-openclaw-post-decoupling
Oct 31, 2026
Merged

athitten merged 13 commits into
NVIDIA-NeMo:mainfrom
AdamRajfer:gdpval-opencode-openclaw-post-decoupling

Conversation

@AdamRajfer

@AdamRajfer AdamRajfer commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Run GDPVal with OpenCode and OpenClaw in the resources-owned task sandbox from #4178. Both recipes reuse the harness-neutral data, task tools, deliverable persistence, judges and multistage driver. The default Stirrup recipe is unchanged.

The adapters pass MCP grants, headers and timeouts to the pinned native runtimes. Required connections are checked before policy execution; OpenClaw also detects a connection lost between its probe and agent startup. Optional failures produce observation gaps. Probes use the shared supervisor and must stop before the main agent starts or the borrowed sandbox is released.

The review fixes preserve timeouts before the first model call, support non-root probe/status writes, use the shared runner filename, and document scoring, resume, CLI and network behavior. The branch includes current main and preserves the accepted OpenCode context-budget fix.

Validation

On fec4f7bb6: both adapter suites and GDPVal tests 1,937 passed, 8 skipped; nine shared session/MCP/sandbox/deliverable contract files 299 passed.

python -m pytest -q responses_api_agents/openclaw_agent/tests responses_api_agents/opencode_agent/tests resources_servers/gdpval/tests
python -m pytest tests/unit_tests/test_agent_sessions.py tests/unit_tests/test_resources_sessions.py tests/unit_tests/test_mcp_auto_exposure.py tests/unit_tests/test_sandbox_session.py tests/unit_tests/test_sandbox_access.py tests/unit_tests/test_base_responses_api_agent.py tests/unit_tests/test_base_resources_server.py tests/unit_tests/test_deliverables.py tests/unit_tests/test_session_routing.py --import-mode=importlib -n 0 -q -o addopts= -o log_cli=false
pre-commit run --all-files
  • Six cleanup/deadline scenarios with real processes in borrowed Docker sandboxes pass, including close during probe preparation. Owner sandboxes remain usable and no probe processes remain.
  • Eight pinned-CLI scenarios pass: healthy connections and required startup loss as root/uid 1000, OpenCode's non-root status replacement, optional startup loss, and timeout during MCP initialization. These use scripted MCP/model fixtures, without real inference.
  • Pre-commit passes. de6a362a2 only annotates synthetic credentials in a sanitization test; its AST and every adapter implementation blob match fec4f7bb6. The affected test file passes again (37 tests), as does the exact secrets-detector command.

On 690f0362c, all 134 GDPVal scoring, judge-hardening and app tests passed, along with the applicable pre-commit checks. The payload-limit fix recognizes a provider's explicit exceeded image-size limit as a permanent judge error while keeping throttles and ordinary image-size diagnostics retryable.

Rollouts

Full 220-task runs

I ran all 220 GDPVal tasks per harness against the same policy model (model identity and absolute scores are not published here). Generation ran once; both scoring passes reused the saved submissions.

Harness Rubric coverage ELO fit coverage Generation failures
OpenCode 217/220 graded 219/220 2/220
OpenClaw 217/220 graded 217/220 0/220

Rubric accounting is 215 graded submissions plus two harness failures scored zero for OpenCode, and 217 graded submissions for OpenClaw. Each excludes three genuine judge-limit tasks: two exceeded the assigned judge's context window and one exceeded its image-payload limit. The mean uses a denominator of 217 in each case. Empty submissions (36 for OpenCode, 16 for OpenClaw) remain in the accounting.

Both ELO fits come from the native final-stage fit, accepted under the existing partial-coverage policy and marked nondegraded. OpenCode has 217 real judged rows plus two native failure-as-loss rows, each 0W/4L; OpenClaw has 217 real judged rows and no imputed losses. One OpenCode task and three OpenClaw tasks were omitted as terminal transport_ineligible cases. These are separate from the rubric omissions. Native timeout retries completed on the saved submissions; no unresolved timeout was silently excluded. Cache resumes preserved completed grades and retried only unresolved judging errors; generation was not rerun.

Configuration used:

  • Generation and ELO: de6a362a27ca2c38263343a100ef678b8538c269, using gdpval/opencode and gdpval/openclaw. Rubric recovery used 690f0362c8c0aee7b09d13daec2896d10bfb9a4c, whose scoring change classifies an explicit exceeded provider image-payload limit. Saved deliverable hashes still matched their pre-judging manifests after both scoring passes.
  • Pinned runtimes: OpenCode 1.17.11 and OpenClaw 2026.6.11. vLLM context 262,144, per-call output cap 32,768, server sampling temperature 1.0 / top_p 0.95. Agent context limits were 229,376 for OpenCode and 262,144 for OpenClaw.
  • 16 concurrent tasks per harness, both harnesses sharing serving capacity, with a 10,800-second agent budget. Generation disabled deliverable judging; the native multistage driver then reused cached deliverables, followed by rubric reverify. The judging runs made zero policy-completion requests.
  • The canonical GPT-5.5 / Gemini 3.1 Pro / Claude Opus 4.8 panel and 18 reference anchors were preserved. ELO used 45 tasks in stage 0, then 220 tasks with a four-reference pool in stage 1, with four trials against one assigned reference per task. Coverage floors remained 0.9 overall / 0.3 per reference in stage 0 and 0.95 / 0.5 in stage 1, with at least one successful row per reference. judge_sampling_seed=null retained stable task-based assignment.
  • Final rubric scoring uniformly used images_and_text for both harnesses: 144 DPI, extracted text included, and the benchmark's 1,000-page cap. The initial rubric pass with PDF transport is diagnostic only and is excluded from these results. ELO retained its per-member media settings: GPT images and text, Gemini native PDF with image overflow, and Opus native PDF.

Comparison with Pi's reported run is not controlled: these runs used a three-hour rather than one-hour agent budget, shared serving load from two simultaneous 16-task harnesses, and working search. They also used an older sandbox image whose equivalence to the current Dockerfile remains unverified. These are not certified AA v2 scores.

Integration smokes

On fec4f7bb6, one genuine model task per harness completed shell execution, MCP finish, deliverable persistence and default rubric judging in one pass. Both used the same archived task, rendered input and reference bytes, with the configured panel, seed and media settings unchanged. Each returned one unmasked rollout with no failure; both ended naturally and left no task sandbox instance.

The persisted workbooks, 65 artifact hashes and all 19 policy calls were checked independently. The captured calls all returned HTTP 200, used the 32,768-token output cap, matched the rollout token totals and ended with a normal stop. Automated rollout-health checks report healthy for both, with no ignored checks.

Policy sampling was configured on the model server as temperature 1.0 / top_p 0.95. The captures precede the server's extra_body merge; the forwarded provider request and judge usage were not captured. These smoke results precede the judge payload-limit classification fix.

These are integration smokes, not a full-dataset score. The sandbox image used for this validation is older than the current GDPVal Dockerfile; canonical-image equivalence remains unverified. Archived input/reference bytes and hashes define the test inputs because upstream dataset/model revisions are not pinned.

CI

On de6a362a, lint, copyright, secrets, DCO, guardwords, documentation preview and native OpenCode conformance checks passed. The combined core/sandbox and changed-server test job passed. The non-blocking Kilocode conformance failure has an identical 93-row result table on the pinned main revision.

Compatibility and benchmark impact

The recipes reuse the shared scoring configuration, judge panel, sampling seed and multistage driver. One panel member is sampled per rubric call. The recipes use a 32,768-token per-call output budget and a 10,800-second agent deadline. OpenCode reserves output space with a 229,376-token context limit; OpenClaw uses the served 262,144-token window. Configure policy sampling on the model server, as documented.

As with Pi/Codex, finish records the submission without stopping these agents; timeout and resume semantics are documented. OpenCode's effective MCP call limit is about 300 seconds despite the configured 900 seconds. These recipes do not produce certified AA v2 scores.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated edits are excluded.
  • Tests added or updated and pass locally.
  • Documentation added or updated.
  • Pre-commit checks pass locally.
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off.

@copy-pr-bot

copy-pr-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@AdamRajfer AdamRajfer self-assigned this Oct 26, 2026
@AdamRajfer AdamRajfer added area:agent Agent harnesses and Responses API agent behavior feature New capabilities, enhancements, or enablement work labels Oct 26, 2026
@AdamRajfer
AdamRajfer marked this pull request as ready for review October 26, 2026 12:05
@AdamRajfer AdamRajfer added the needs-review PR is ready for code review and waiting on a reviewer label Oct 26, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 26, 2026 12:06

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HOLD — two RISK findings affect probe cleanup and activation deadlines; one NOTE concerns lost failure diagnostics.

Reviewed all 11 changed files and their directly affected session, tool-grant, sandbox, and GDPVal routing/persistence contracts. GDPVal recipe coverage was completed directly after its delegated report was unavailable. Static inspection only: tests and native runtimes were not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@AdamRajfer
AdamRajfer marked this pull request as draft October 26, 2026 14:10
@AdamRajfer AdamRajfer removed the needs-review PR is ready for code review and waiting on a reviewer label Oct 26, 2026
@AdamRajfer

Copy link
Copy Markdown
Contributor Author

/review reset=true

@AdamRajfer AdamRajfer added the needs-review PR is ready for code review and waiting on a reviewer label Oct 26, 2026
@AdamRajfer
AdamRajfer marked this pull request as ready for review October 26, 2026 15:45

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP — no remaining eligible findings in this follow-up.

Verified the three findings from review 5652194192 against the current source:

Accounted for all 14 changed files. Discovery remained limited to the prior failures, subsequent changes since the reviewed baseline, and directly affected contracts. No introduced regression above the historical moderate-impact ceiling was established. OpenCode coverage was completed directly because its delegated report was unavailable.

Static inspection only; tests, native runtimes, and Docker scenarios were not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.

Comment thread benchmarks/gdpval/opencode.yaml Resolved
Comment thread benchmarks/gdpval/README.md Resolved
AdamRajfer and others added 2 commits October 27, 2026 08:14
Co-authored-by: Abhishree Thittenamane <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
Co-authored-by: Abhishree Thittenamane <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
Merge main while preserving the required MCP helpers in both harnesses.
Use the current sandbox exports and utility entry point.

Signed-off-by: Adam Rajfer <[email protected]>
yaoyu-33
yaoyu-33 previously approved these changes Oct 30, 2026
@yaoyu-33
yaoyu-33 disabled auto-merge October 30, 2026 18:27
@yaoyu-33
yaoyu-33 added this pull request to the merge queue Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41107131941

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 30, 2026
Merge main while preserving the required MCP helpers in both harnesses.
Keep the adapters and their tests on the current public package exports.

Signed-off-by: Adam Rajfer <[email protected]>
@athitten
athitten added this pull request to the merge queue Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41184877387

This branch was previously deployed

1 inactive deployment
public — cc83f0fc Deployed Oct 31, 2026 by copy-pr-bot[bot] via release / finalize / notify #8933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants