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 state machine schedules Promise.resolve().then(commit) while a synchronous rollback can run first, leaving committed stale state. Identify the race and fix.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"rollback"
]
},
{
"contains": [
"stale state"
]
},
{
"contains": [
"microtask"
]
},
{
"contains": [
"commit"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"version token"
]
},
{
"contains": [
"cancel"
]
},
{
"contains": [
"sequence"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"race"
]
},
{
"contains": [
"state machine"
]
},
{
"contains": [
"Promise.resolve"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-microtask-race-v2.json