fix(native-eval): benchmark genuine OpenClaw code mode - #62
Conversation
|
Codex review: needs changes before merge. Reviewed August 22, 2026, 7:08 PM ET / 23:08 UTC. ClawSweeper reviewWhat this changesThe PR updates ShellBench’s OpenClaw native-evaluation runner to configure direct, directory, and Code Mode runs explicitly and validate exported trajectories before scoring. Merge readinessKeep open: the PR’s explicit mode handling is not reached by normal matrix generation, so its claimed Code Mode cohort is never planned. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherShellBench builds a benchmark matrix, dispatches each run to a native harness, then scores exported trajectories. This change affects how OpenClaw runs receive tool-mode configuration and how their evidence is accepted. flowchart LR
A[Benchmark matrix] --> B[Planned OpenClaw runs]
B --> C[Tool-mode dispatch]
C --> D[OpenClaw harness]
D --> E[Trajectory export]
E --> F[Validation]
F --> G[Scored result]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Expand standard OpenClaw plans into distinct, uniquely labelled direct, directory, and code runs, preserve each mode through reruns and manifests, and prove the generated matrix before running a matched batch. Do we have a high-confidence way to reproduce the issue? Yes: source inspection shows normal planning leaves openclaw_tool_mode unset, and the harness deterministically defaults that value to direct. Is this the best way to solve the issue? No: explicit dispatch support is insufficient until the normal matrix creates one distinct OpenClaw run for every requested mode. 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 changes:
Label justifications:
EvidenceAcceptance criteria:
What 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 (72 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.