{"abstract":"Maximize mode still performs minimization.","category":"Optimizer update state","checks":6,"contract":"In maximize mode return p+lr*g.","contract_signature":"p, g, lr","evaluation_group":"optimizer-toy-maximize-gradient","failed_approach":"Taking absolute gradient values cannot represent ascent for both signs.","family":"w3-optimizer-update-state-maximize-gradient","id":"FA-99011","implementations":{"attempt":{"sha256":"b0da2933614d5c63f0ba2f1a0c6a88d0a6dea124d72cee37069b77276281cb62","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(p, g, lr):\n    return p+lr*abs(g)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('positive slope',solve(4,2,N),4+2*N)\ncheck('negative slope',solve(4,-2,N),4-2*N)\ncheck('zero slope',solve(N,0,1),N)\ncheck('zero rate',solve(3,5,0),3)\ncheck('fractional slope',solve(2,1,0.5),2.5)\ncheck('negative parameter',solve(-N,-1,2),-N-2)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"4f3fd2067204f3155bc9fc75554f9d49e66840019d5de794516a9c3d2ae87eaf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(p, g, lr):\n    return p-lr*g\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('positive slope',solve(4,2,N),4+2*N)\ncheck('negative slope',solve(4,-2,N),4-2*N)\ncheck('zero slope',solve(N,0,1),N)\ncheck('zero rate',solve(3,5,0),3)\ncheck('fractional slope',solve(2,1,0.5),2.5)\ncheck('negative parameter',solve(-N,-1,2),-N-2)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"These are deterministic scalar or short-vector toy contracts, not claims about production optimizer APIs or training quality. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w3-optimizer-update-state-maximize-gradient","generated_at":"2026-09-30T16:48:19.455701+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Optimizer implementations must associate each parameter with its own mathematically specified update state.","root_cause":"The gradient sign is unchanged when the objective direction is maximize.","sha256":"f2f105b5f41c0a481eed099549f85e59cce9941326a255ca8c46b22b35d729e2","title":"Maximize mode still performs minimization · case 01","variant":1,"variant_policy":"The fixture code references N, supplied as 1 through 5. Fixed boundary checks may repeat. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":29.222,"exit_code":1,"observations":[{"actual":6,"check":"positive slope","expected":6,"passed":true},{"actual":6,"check":"negative slope","expected":2,"passed":false},{"actual":1,"check":"zero slope","expected":1,"passed":true},{"actual":3,"check":"zero rate","expected":3,"passed":true},{"actual":2.5,"check":"fractional slope","expected":2.5,"passed":true},{"actual":1,"check":"negative parameter","expected":-3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"positive slope\", \"actual\": 6, \"expected\": 6, \"passed\": true}, {\"check\": \"negative slope\", \"actual\": 6, \"expected\": 2, \"passed\": false}, {\"check\": \"zero slope\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"zero rate\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"fractional slope\", \"actual\": 2.5, \"expected\": 2.5, \"passed\": true}, {\"check\": \"negative parameter\", \"actual\": 1, \"expected\": -3, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.421,"exit_code":1,"observations":[{"actual":2,"check":"positive slope","expected":6,"passed":false},{"actual":6,"check":"negative slope","expected":2,"passed":false},{"actual":1,"check":"zero slope","expected":1,"passed":true},{"actual":3,"check":"zero rate","expected":3,"passed":true},{"actual":1.5,"check":"fractional slope","expected":2.5,"passed":false},{"actual":1,"check":"negative parameter","expected":-3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"positive slope\", \"actual\": 2, \"expected\": 6, \"passed\": false}, {\"check\": \"negative slope\", \"actual\": 6, \"expected\": 2, \"passed\": false}, {\"check\": \"zero slope\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"zero rate\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"fractional slope\", \"actual\": 1.5, \"expected\": 2.5, \"passed\": false}, {\"check\": \"negative parameter\", \"actual\": 1, \"expected\": -3, \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}