Test fixture
Code transformation while preserving behavior and intent.
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 plan, refactor, tests. Feature flag resolution combines defaults, environment overrides, tenant overrides, and user targeting in nested conditionals. Refactor to make precedence explicit.
{
"metrics": {
"intent": {
"checks": [
{
"contains": [
"feature flag"
]
},
{
"contains": [
"precedence"
]
},
{
"contains": [
"explicit"
]
}
]
},
"visible": {
"checks": [
{
"contains": [
"defaults"
]
},
{
"contains": [
"environment overrides"
]
},
{
"contains": [
"tenant overrides"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"user targeting"
]
},
{
"contains": [
"matrix tests"
]
},
{
"contains": [
"same resolution"
]
}
]
}
}
}temperature
0
max_tokens
560
timeout (s)
120
type
scored
file
refactor-feature-flag-resolver.json