Test fixture
Grounded answers under adversarial or missing-context prompts.
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 answer, supported_facts, uncertainty. Code uses var i in a loop and async callbacks later log i. Identify the closure bug and avoid claiming let has identical behavior.
{
"metrics": {
"accuracy": {
"checks": [
{
"contains": [
"var i"
]
},
{
"contains": [
"async callbacks"
]
},
{
"contains": [
"closure"
]
}
]
},
"fabricated": {
"checks": [
{
"contains": [
"let"
]
},
{
"contains": [
"not identical"
]
},
{
"contains": [
"loop"
]
}
]
}
}
}temperature
0
max_tokens
460
timeout (s)
120
type
scored
file
halluc-bug-closure-loop.json