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 deepClone helper copies arrays but leaves nested objects shared, so mutating the clone mutates the original. Diagnose and fix.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"nested object"
]
},
{
"contains": [
"shared"
]
},
{
"contains": [
"mutates original"
]
},
{
"contains": [
"clone"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"recursive"
]
},
{
"contains": [
"array"
]
},
{
"contains": [
"object"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"reference"
]
},
{
"contains": [
"deep clone"
]
},
{
"contains": [
"shallow"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-deep-clone-v2.json