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. Cache invalidation is scattered across repositories, event handlers, and HTTP controllers. Refactor toward one invalidation service with explicit keys.
{
"metrics": {
"intent": {
"checks": [
{
"contains": [
"cache invalidation"
]
},
{
"contains": [
"one service"
]
},
{
"contains": [
"explicit keys"
]
}
]
},
"visible": {
"checks": [
{
"contains": [
"repositories"
]
},
{
"contains": [
"event handlers"
]
},
{
"contains": [
"controllers"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"same cache behavior"
]
},
{
"contains": [
"integration tests"
]
},
{
"contains": [
"no stale data"
]
}
]
}
}
}temperature
0
max_tokens
560
timeout (s)
120
type
scored
file
refactor-cache-invalidation-service.json