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 function returns before an async save finishes because it calls saveUser(user) without await inside try/catch. Identify the timing bug and fix.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"returns before"
]
},
{
"contains": [
"save"
]
},
{
"contains": [
"without await"
]
},
{
"contains": [
"try"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"await"
]
},
{
"contains": [
"promise rejection"
]
},
{
"contains": [
"async test"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"missing await"
]
},
{
"contains": [
"saveUser"
]
},
{
"contains": [
"try/catch"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-missing-await-v2.json