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 feature flag treats process.env.FEATURE_ENABLED = "false" as enabled because the code checks the string directly. Identify the bug and fix.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"false"
]
},
{
"contains": [
"string"
]
},
{
"contains": [
"enabled"
]
},
{
"contains": [
"environment"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"parse boolean"
]
},
{
"contains": [
"explicit compare"
]
},
{
"contains": [
"default false"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"truthy"
]
},
{
"contains": [
"feature flag"
]
},
{
"contains": [
"process.env"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-env-flag-string-v2.json