Test fixture
Cost-aware correctness and efficient API spend per successful task.
The model receives the prompt (and optional system message). The run uses scorer rubric_json_metrics 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 keys benchmark, title, refactor, done. Set benchmark to "cost", title to "Extract duplicated logic into a helper", and done to true. Two branches format currency the same way. Show a concise helper extraction.
{
"metrics": {
"strict": {
"checks": [
{
"contains": [
"cost"
]
},
{
"contains": [
"done"
]
},
{
"contains": [
"helper"
]
},
{
"contains": [
"duplicate"
]
},
{
"contains": [
"currency"
]
}
]
}
}
}temperature
0
max_tokens
360
timeout (s)
120
type
scored
file
cost-refactor-extract-helper.json