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. A validation schema lacks strict mode; the library coerces the string 'false' to boolean true, so a feature-flag field passes validation with the wrong value and the feature is enabled for all users. Identify the schema coercion bug and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"coercion"
]
},
{
"contains": [
"'false'"
]
},
{
"contains": [
"boolean"
]
},
{
"contains": [
"strict"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"strict: true"
]
},
{
"contains": [
"z.boolean()"
]
},
{
"contains": [
"strict mode"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"type coercion"
]
},
{
"contains": [
"missing strict"
]
},
{
"contains": [
"string to boolean"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-schema-coercion-v2.json