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. An async function is called without the await keyword; the variable holds a pending Promise object instead of the resolved value, causing downstream logic to behave incorrectly. Identify the missing await and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"Promise"
]
},
{
"contains": [
"pending"
]
},
{
"contains": [
"resolved value"
]
},
{
"contains": [
"async"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"await"
]
},
{
"contains": [
"async/await"
]
},
{
"contains": [
".then"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"missing await"
]
},
{
"contains": [
"not awaited"
]
},
{
"contains": [
"Promise object"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-promise-not-awaited-v2.json