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. Docs say middleware must call next() to continue; throwing aborts the chain and forwards an error. Assess a claim that all middleware always runs.
{
"metrics": {
"accuracy": {
"checks": [
{
"contains": [
"next()"
]
},
{
"contains": [
"throwing aborts"
]
},
{
"contains": [
"forwards an error"
]
}
]
},
"fabricated": {
"checks": [
{
"contains": [
"all middleware always runs"
]
},
{
"contains": [
"unsupported"
]
},
{
"contains": [
"chain"
]
}
]
}
}
}temperature
0
max_tokens
460
timeout (s)
120
type
scored
file
halluc-doc-middleware-chain.json