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 request helper stores one AbortController in module scope, so cancelling one request aborts unrelated in-flight requests. Identify the bug and fix.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"cancel one"
]
},
{
"contains": [
"unrelated"
]
},
{
"contains": [
"in-flight"
]
},
{
"contains": [
"AbortController"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"per request"
]
},
{
"contains": [
"scope"
]
},
{
"contains": [
"finally cleanup"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"shared"
]
},
{
"contains": [
"module scope"
]
},
{
"contains": [
"abort"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-shared-abort-controller-v2.json