fix(native-eval): benchmark genuine OpenClaw code mode - #62
Conversation
|
Codex review: needs changes before merge. Reviewed August 9, 2026, 4:44 AM ET / 08:44 UTC. ClawSweeper reviewWhat this changesThis PR updates ShellBench’s OpenClaw native-evaluation harness to configure direct, directory, and Code Mode runs explicitly and validate exported trajectories before scoring. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 5 items remain Keep this member-authored PR open. Its central benchmark-mode change is still necessary, but the planner creates only one OpenClaw run per model/repetition and never assigns a tool mode, so every planned OpenClaw run defaults to direct mode. Priority: P2 Review scores
Verification
How this fits togetherShellBench builds a benchmark matrix, dispatches each planned run to an OpenClaw harness, then exports and validates trajectories before scoring. Tool mode must be encoded in each planned run for distinct benchmark arms to reach dispatch. flowchart LR
A[Benchmark matrix] --> B[Planned runs]
B --> C[Tool-mode selection]
C --> D[OpenClaw dispatch]
D --> E[Trajectory export]
E --> F[Validation and scoring]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Land a matrix that has distinct, uniquely labeled direct, directory, and Code Mode OpenClaw runs, with exported manifests demonstrating each selected arm before using results for comparison. Do we have a high-confidence way to reproduce the issue? Yes. The planner can be inspected directly: it omits openclaw_tool_mode, while the harness maps a missing mode to direct. Is this the best way to solve the issue? No. Downstream propagation is not sufficient until the matrix emits one uniquely identified OpenClaw run for each requested tool 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:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (59 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.