Repository navigation
test(conformance): include OpenClaw in P0 harness probes - #5120
giuliolovisotto merged 4 commits into
Conversation
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM — no concerns found. Reviewed all eight changed files and traced registry/CI selection, sandbox runtime installation, episode configuration, provider tool-call handling, and affected tests and documentation. No qualifying BLOCKER, RISK, or NOTE findings.
Static review only; tests, live OpenClaw probes, runtime downloads, and Fern checks 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.
prokotg
left a comment
There was a problem hiding this comment.
Hey, nice work getting this to 7/7. Two questions while reading through:
- The
call_->callchange inprovider.pyapplies to every harness. What was OpenClaw actually doing to the IDs? The test comment says it "normalizes non-alphanumeric IDs", but I couldn't tell if it strips the underscore or does something else. Which scenarios were failing before the change? I'm wondering because real models and vLLM mostly returncall_xxx, so if OpenClaw rewrites those, the retainedtool_call_idwon't join against the captured model calls in real runs. The fixture no longer exercises that. Would it make sense to make the prefix a per-harness thing, or at least mention the rewrite in the PR description? - On
model_error: only the HTTP 400 case is covered. Pi also classifies transport errors (MODEL_TRANSPORT_ERROR), and OpenCode handles the context-limit case. OpenClaw'sclassify_outcomeonly does the status-code regex. Does the pinned CLI never emit those cases (connection reset, timeout, overflow), or just didn't get checked? Same question for 429/5xx after retries run out: is that a terminal failure with the right status, or something else?
Not blocking from my side, just want to understand what's known vs assumed.
9472bd2 to
efa7419
Compare
efa7419 to
c477a60
Compare
|
@prokotg Following up on your review, both points are now verified and addressed.
Validation on the updated stack: 386 conformance/checker tests passed (2 skipped), all 7 P0 scenarios passed with underscore IDs, and full pre-commit checks passed. The real-model tool/verification smoke also passed. Could you re-review and approve the updated conformance commit if it looks good? |
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
c477a60 to
0339da0
Compare
Keep error-regression artifacts beside the P0 output directory. CI runs pytest before the P0 suite, which requires its output directory to be new. Signed-off-by: Giulio Lovisotto <[email protected]>
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41476685966 |
What does this PR do?
Add OpenClaw to the default P0 harness registry and CI selection. This is stacked on #5119; this PR contains conformance tooling and tests, with adapter changes confined to the base PR.
The runner recognizes OpenClaw's
exec(command)tool, sets its deadline, and lets session setup install pinned OpenClaw 2026.6.11 / Node 22.19.0 in the sandbox.Fixtures retain the original
call_UUID IDs for every harness. The sharedProbeuses a strict_accepted_result_idshook;OpenClawProbeoverrides it, and the episode selects the probe class once. OpenClaw rewrites those IDs when replaying history: its witness accepts the rewritten result only when the replayed assistant call has the corresponding ID, tool name and arguments. Raw captures and saved tool identities remain unchanged. Regression tests reject mismatched results, names, arguments and use of this allowance by other harnesses.The OpenClaw CI test selection also executes eight isolated real-CLI regressions: exhausted 429/500/503, connection reset, interrupted SSE, idle timeout, provider context overflow and local context precheck. They assert the structured response received by the environment, retained failure evidence and default retry/fail policy. Raw socket faults bypass capture intentionally and are not presented as capture-conformance passes. Their artifacts are saved beside the suite output, leaving the fresh output directory required by the subsequent P0 run.
The eight shared P0 scenarios, checker requirements and health expectations remain unchanged, including the upstream judge-verifier scenario. No separate public issue is needed for this focused extension of existing coverage.
Validation
On Linux ARM64:
Reproduced CI's sequence with the same
PROBE_OUTPUT:HARNESS=openclaw python -m pytest -o addopts= --import-mode=importlib -q scripts/harness_conformance/tests tests/unit_tests/harness_capabilities responses_api_agents/openclaw_agent/tests(906 passed, 3 skipped), immediately followed by the full P0 suite (8/8 passed). All eight error-regression artifacts remain in the uploaded results tree.HARNESS=openclaw python -m pytest -o addopts= --import-mode=importlib scripts/harness_conformance/tests tests/unit_tests/harness_capabilities -q: 412 passed, 2 skipped (publication tests requiringjj), including all eight new CLI regressions.Adapter tests: 494 passed, 1 skipped.
python scripts/run_harness_conformance.py --harness openclaw --output results/openclaw-p0: 8/8 passed, including all six tool scenarios with underscore IDs.python -m pytest -o addopts= --import-mode=importlib tests/unit_tests/test_public_api_facades.py tests/unit_tests/test_agent_outcome.py tests/unit_tests/trajectory/test_trajectory_record.py -q: 371 passed.Full pre-commit checks passed; DCO and SSH signatures verified.
Real-model smoke: two model calls, one shell tool, expected file verified, reward 1, completed and unmasked evaluation.
Compatibility and benchmark impact
Default and scheduled runs include OpenClaw; OpenClaw changes select its CI job. Session probes require Linux and runtime-download access, with no model credentials. The new error regressions run when
HARNESS=openclaw, as set by that CI job, and retain diagnostics in its probe artifacts. This PR does not change benchmark scoring policy or make conformance a required merge gate. P1, remote deployments and legacy local execution remain outside this qualification.