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 batch promise chain resolves before async writes finish because callbacks are not returned from map/then. Diagnose and fix the async timing bug.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"resolves early"
]
},
{
"contains": [
"async writes"
]
},
{
"contains": [
"Promise.all"
]
},
{
"contains": [
"not returned"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"await"
]
},
{
"contains": [
"return promise"
]
},
{
"contains": [
"map"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"promise chain"
]
},
{
"contains": [
"timing"
]
},
{
"contains": [
"then"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-promise-chain-v2.json