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. Code uses Promise.allSettled expecting that any rejected promise causes the whole batch to fail, but allSettled always fulfills; a downstream failure is silently swallowed and the caller proceeds as if all operations succeeded. Identify the wrong combinator and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"allSettled"
]
},
{
"contains": [
"rejected"
]
},
{
"contains": [
"swallowed"
]
},
{
"contains": [
"failure"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"Promise.all"
]
},
{
"contains": [
"status === 'rejected'"
]
},
{
"contains": [
"throw"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"wrong combinator"
]
},
{
"contains": [
"allSettled never rejects"
]
},
{
"contains": [
"silent failure"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-promise-all-short-circuit-v2.json