Test fixture
Implementation-focused coding tasks with structured correctness checks.
The model receives the prompt (and optional system message). The run uses scorer javascript_function_tests with the JSON configuration below. Pass/fail and partial credit are determined entirely by that scorer against the model output; no human grading.
Return JSON only with a string field named code. The code must be dependency-free JavaScript, define the requested function in the top level or module.exports, and include no markdown, imports, require, timers, network, filesystem, eval, or placeholders.
Implement function shortestGridPath(grid, start, goal). Given a rectangular grid where 0 is open and 1 is blocked, plus start and goal coordinates as [row, col], return the fewest orthogonal moves needed to reach the goal, or -1 when no path exists.
Your JSON must look like {"code":"function shortestGridPath(...) { ... }"}.{
"function_name": "shortestGridPath",
"timeout_ms": 220,
"test_pass_threshold": 1,
"partial_credit_threshold": 0.5,
"tests": "[hidden executable tests]"
}temperature
0
max_tokens
1400
timeout (s)
120
type
scored
file
coding-hard-astar-grid.json