fix(native-eval): benchmark genuine OpenClaw code mode - #62
Conversation
|
Codex review: found issues before merge. Reviewed August 3, 2026, 12:09 AM ET / 04:09 UTC. ClawSweeper reviewWhat this changesThe branch makes ShellBench explicitly configure OpenClaw direct, directory, and Code Mode runs, export public root and child trajectories, and validate those trajectories before scoring benchmark results. Merge readinessThis PR addresses a real ShellBench native-eval correctness problem, but the current head turns two existing legacy configuration inputs into immediate failures without an upgrade path. Because the author is a repository member and the remaining choice is whether to preserve those interfaces or intentionally break them, it should stay open for maintainer direction and a compatibility repair before merge. Priority: P2 Review scores
Verification
How this fits togetherShellBench’s native evaluator plans benchmark runs, dispatches them to a remote OpenClaw harness, then exports and validates trajectories for scoring. This PR changes the configuration passed through that pipeline and the evidence used to decide whether a run is valid. flowchart LR
A[Benchmark plan] --> B[Fleet dispatcher]
B --> C[Run environment and manifest]
C --> D[OpenClaw native harness]
D --> E[Public trajectory exports]
E --> F[Trajectory validation]
F --> G[Scored benchmark results]
Decision needed
Why: The patch mechanically supports compatibility translation, but whether existing benchmark automation may be broken is a maintainer-owned contract decision. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Preserve recognized legacy tool-mode values through an explicit deprecation translation to the new direct, directory, or Code Mode contract, reject only invalid values, and publish a fresh matched direct/Code Mode batch using the validated public exports. Do we have a high-confidence way to reproduce the issue? Yes, from source: set a recognized nonempty legacy manifest field or SHELLBENCH_OPENCLAW_TOOL_SEARCH_MODE and the proposed validation raises before dispatch or run construction. The issue does not need a live remote benchmark to establish that upgrade regression. Is this the best way to solve the issue? No. Explicit direct, directory, and Code Mode selection is the right repair direction, but rejecting known legacy values without translation or explicit maintainer approval is not the narrowest safe migration. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against 884dd1bb5511. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (21 earlier review cycles; latest 8 shown)
|
What does this PR do?
Makes the OpenClaw native-eval arms represent genuine direct, directory, and
Code Mode execution, then exports and validates their public trajectory bundles
before a run can be scored.
Why?
Fixes #61.
The earlier
codearm selected the legacytool_search_codebridge rather thanOpenClaw Code Mode. The harness also masked setup failures, forced thinking off,
terminated the runtime before lifecycle cleanup settled, and reconstructed
delegated traces from private session files. Those failures made the released
direct/code comparison invalid and disproportionately erased Code Mode's nested
tool calls.
Changes
direct,directory, andcodeto explicit, mutually exclusiveOpenClaw tool surfaces.
OpenClaw defaults, subagents, CLI execution, and manifests.
openclaw agentexit naturally.openclaw sessions export-trajectory.nested and repeated runs, without blocking the Gateway.
status, complete Code Mode snapshots, and the exact provider-visible
exec/waitsurface.public export bundles.
than publishing partial traces.
Tests
454 passed, 5 skipped61 passedgit diff --check, generated shell syntax for all threemodes, and generated audit-plugin
node --checkThe July 29, 2026 released
coderesult remains legacy Tool Search bridgeevidence only. It is not evidence about genuine OpenClaw Code Mode.