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 try/catch block catches all errors and returns a hardcoded default value; genuine runtime exceptions that should propagate to the caller are silently swallowed, hiding bugs. Identify the error-swallowing pattern and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"catch"
]
},
{
"contains": [
"swallowed"
]
},
{
"contains": [
"default value"
]
},
{
"contains": [
"exception"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"rethrow"
]
},
{
"contains": [
"throw err"
]
},
{
"contains": [
"propagate"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"silent failure"
]
},
{
"contains": [
"error hidden"
]
},
{
"contains": [
"catch all"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-catch-swallows-error-v2.json