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 memoized function is keyed by object reference equality; callers construct a fresh options object on every invocation so the cache always misses, making memoization useless and providing no performance benefit. Identify the reference equality bug and fix it.
{
"metrics": {
"repro": {
"checks": [
{
"contains": [
"cache miss"
]
},
{
"contains": [
"reference equality"
]
},
{
"contains": [
"new object"
]
},
{
"contains": [
"memoize"
]
}
]
},
"hidden": {
"checks": [
{
"contains": [
"JSON.stringify"
]
},
{
"contains": [
"stable key"
]
},
{
"contains": [
"deep equality"
]
}
]
},
"diagnose": {
"checks": [
{
"contains": [
"reference equality"
]
},
{
"contains": [
"always misses"
]
},
{
"contains": [
"new object each call"
]
}
]
}
}
}temperature
0
max_tokens
420
timeout (s)
120
type
scored
file
debug-memoize-reference-equality-v2.json