Download docs/grading.md from pooria/benchmark-cost-per-task: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/datasets/pooria/benchmark-cost-per-task/resolve/main/docs/grading.md
- Command line
-
hf download hf://datasets/pooria/benchmark-cost-per-task/docs/grading.md
-
curl -L -o grading.md https://huggingface.co/datasets/pooria/benchmark-cost-per-task/resolve/main/docs/grading.md
Grading
Every task starts a fresh virtual file system and CRM. The grader replays the submitted tool log against that initial state; it never trusts a submitted finalState or tool result. A task scores 1 only when all files and CRM records exactly match the task's expected state and finish_task was called. Otherwise it scores 0 with the mismatched state named in the reason.
Failure modes considered before implementation
- Claiming success without doing work. Text answers, including “yes,” do not change replayed state.
- Forging final state or tool results. Only tool names and arguments are replayed. Submitted result fields and
finalStateare ignored. - Always making the same call. Every public task has a distinct target state, and a finish-only trace fails all of them.
- Changing extra data. Verification compares the complete file map and CRM record list, so unrelated edits fail.
- Skipping completion. Correct state without
finish_taskfails; this keeps episode termination measurable. - Malformed calls. Unknown tools, missing arguments, missing records, and missing files return deterministic errors without mutating state.
- Object key order. Comparison recursively sorts object keys so serialization order cannot change a score.
- Nondeterministic replay. The environment has no clock, network, or randomness after task generation.
The E2E script checks every reference trace, then tries empty, refusal, constant-answer, forged-state, finish-only, token-burning, and reserved-key submissions against every task. It also runs a policy that reads only the visible prompt and tool results through the real run loop; that policy must solve all 30 tasks. Every bad policy must have a mean no greater than 0.1.
Limits
The expected state is public, so these tasks measure tool execution rather than secrecy or memorization resistance. Exact final-state grading does not reward a partially correct workflow. Public results should identify the package version and seed; serious evaluations should use an unpublished generated split.