Test fixture
Bug fixes, edge conditions, and minimal patch accuracy.
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 diagnosis, fix, tests. Values read from a form are compared with < and > as if they are numbers, but they arrive as strings; lexicographic ordering causes '10' < '9' to evaluate as true. Identify the type bug and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"string"
]
},
{
"contains": [
"lexicographic"
]
},
{
"contains": [
"'10'"
]
},
{
"contains": [
"comparison"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"parseInt"
]
},
{
"contains": [
"Number("
]
},
{
"contains": [
"parseFloat"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"type coercion"
]
},
{
"contains": [
"string comparison"
]
},
{
"contains": [
"numeric"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-string-number-comparison-v2.json