{"abstract":"Opposite direction transfers cancel before discharge throughput is counted.","category":"Battery state accounting","checks":6,"contract":"Return discharge throughput units for signed charge deltas; positive means charging, negative discharging. This is the numerator of a discharge-only equivalent-cycle metric.","contract_signature":"deltas","evaluation_group":"model-9e4242ed004be23a","failed_approach":"Counting both directions double counts the stated discharge-only wear metric.","family":"z-battery_models-cycle-throughput","id":"FA-12311","implementations":{"attempt":{"sha256":"6836e80a16f2a8a48a53a824e8bd2c579bbd0b1821207c86408f7c0754d6cd6f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(deltas):\n    return sum(abs(x) for x in deltas)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('round trip', solve([10*N,-10*N]), 10*N)\ncheck('charge only', solve([3*N,2*N]), 0)\ncheck('discharge only', solve([-3*N,-2*N]), 5*N)\ncheck('empty', solve([]), 0)\ncheck('mixed', solve([-3*N,9*N,-4*N]), 7*N)\ncheck('zeros', solve([0,-N,0,N]), N)\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":"52664811e600982dacff2cdc68ebeebf767440b3266dd85b3b224b537e425f8e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(deltas):\n    return max(0,-sum(deltas))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('round trip', solve([10*N,-10*N]), 10*N)\ncheck('charge only', solve([3*N,2*N]), 0)\ncheck('discharge only', solve([-3*N,-2*N]), 5*N)\ncheck('empty', solve([]), 0)\ncheck('mixed', solve([-3*N,9*N,-4*N]), 7*N)\ncheck('zeros', solve([0,-N,0,N]), N)\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":"Integer toy accounting with declared loss rules; no electrochemistry, hardware behavior, or safety claims. 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":"z-battery_models-cycle-throughput","generated_at":"2026-09-29T14:38:55.638015+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An explicit synthetic battery bookkeeping model isolates this state-accounting error; it is not an engineering prediction or safety procedure.","root_cause":"Opposite direction transfers cancel before discharge throughput is counted.","sha256":"b5f65d90ac175864c40279d6d7cdeb4c49528b0d806d269b0c3dfebc82500438","title":"Cycle wear is inferred from net inventory change · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":40.877,"exit_code":1,"observations":[{"actual":20,"check":"round trip","expected":10,"passed":false},{"actual":5,"check":"charge only","expected":0,"passed":false},{"actual":5,"check":"discharge only","expected":5,"passed":true},{"actual":0,"check":"empty","expected":0,"passed":true},{"actual":16,"check":"mixed","expected":7,"passed":false},{"actual":2,"check":"zeros","expected":1,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"round trip\", \"actual\": 20, \"expected\": 10, \"passed\": false}, {\"check\": \"charge only\", \"actual\": 5, \"expected\": 0, \"passed\": false}, {\"check\": \"discharge only\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"empty\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"mixed\", \"actual\": 16, \"expected\": 7, \"passed\": false}, {\"check\": \"zeros\", \"actual\": 2, \"expected\": 1, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.372,"exit_code":1,"observations":[{"actual":0,"check":"round trip","expected":10,"passed":false},{"actual":0,"check":"charge only","expected":0,"passed":true},{"actual":5,"check":"discharge only","expected":5,"passed":true},{"actual":0,"check":"empty","expected":0,"passed":true},{"actual":0,"check":"mixed","expected":7,"passed":false},{"actual":0,"check":"zeros","expected":1,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"round trip\", \"actual\": 0, \"expected\": 10, \"passed\": false}, {\"check\": \"charge only\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"discharge only\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"empty\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"mixed\", \"actual\": 0, \"expected\": 7, \"passed\": false}, {\"check\": \"zeros\", \"actual\": 0, \"expected\": 1, \"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."}}