fix(task_10): support OpenClaw/Claude Code read tool name in read_config grader#54
Open
JoeProAI wants to merge 1 commit intopinchbench:mainfrom
Open
fix(task_10): support OpenClaw/Claude Code read tool name in read_config grader#54JoeProAI wants to merge 1 commit intopinchbench:mainfrom
JoeProAI wants to merge 1 commit intopinchbench:mainfrom
Conversation
…fig grader The automated grader for task_10_workflow checks whether the agent used a file-reading tool to read config.json. Currently it only recognizes 'read_file' and 'readFile' tool names with a 'files' parameter. OpenClaw and Claude Code record file reads as tool name 'read' or 'Read' with 'path' or 'file_path' parameters. This means agents on these platforms always score 0.0 on read_config even when they correctly read config.json. Changes: - Case-insensitive tool name matching (read_file, readfile, read) - Also check 'path' and 'file_path' params alongside 'files'
Author
|
Hey, just noting this is related to the broader OpenClaw compatibility work — PR #58 (merged today) fixed model ID casing, and PR #20 fixed config format. This one handles the grader side: OpenClaw and Claude Code use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
task_10_workflowautomated grader checks whether the agent used a file-reading tool to readconfig.jsonvia theread_configcriterion. Currently it only recognizes two tool name variants:read_filereadFileAnd only checks the
filesparameter for the filename.OpenClaw and Claude Code record file reads with:
readorReadpathorfile_path(notfiles)This means agents running on these platforms always score 0.0 on
read_configeven when they correctly read config.json as the first step.Fix
read_file,readfile,read(covers Cursor, Windsurf, OpenClaw, Claude Code)pathandfile_pathparams alongsidefilesImpact
This only affects
task_10_workflowautomated scoring. No other tasks are impacted. The fix is backward-compatible — existing tool names still match.