{"abstract":"Disconnected fragment charges are collapsed into a neutral flag.","category":"Molecular graph representation","checks":6,"contract":"Input is an ordered list of molecular fragments, each a list of signed atom formal charges. Return per-fragment signed sums preserving order and empty fragments as zero.","contract_signature":"fragments","evaluation_group":"model-9b54c20ac80050cd","failed_approach":"Taking absolute charge destroys anion signs.","family":"z-chemical_graphs-fragment-charge","id":"FA-12481","implementations":{"attempt":{"sha256":"302cf1e3ad3292addb9fc4db6a4558d4b2fd0f7634788cbc7d3ba6b20ec481aa","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(fragments):\n    return [abs(sum(f)) for f in fragments]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('salt fragments', solve([[N],[-N]]), [N,-N])\ncheck('single anion', solve([[-N]]), [-N])\ncheck('neutral fragment', solve([[1,-1]]), [0])\ncheck('empty collection', solve([]), [])\ncheck('empty fragment', solve([[],[-1]]), [0,-1])\ncheck('multiple charged atoms', solve([[N,1],[-1,-N],[0]]), [N+1,-N-1,0])\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":"de89a8c1761e51621d038be26b4db6efde9911c9d560497a58d7f2b835bdabb6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(fragments):\n    return [sum(sum(f) for f in fragments)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('salt fragments', solve([[N],[-N]]), [N,-N])\ncheck('single anion', solve([[-N]]), [-N])\ncheck('neutral fragment', solve([[1,-1]]), [0])\ncheck('empty collection', solve([]), [])\ncheck('empty fragment', solve([[],[-1]]), [0,-1])\ncheck('multiple charged atoms', solve([[N,1],[-1,-N],[0]]), [N+1,-N-1,0])\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":"Toy representation only; no valence inference, chemical sanitization, synthesis, or real molecular identity determination. 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-chemical_graphs-fragment-charge","generated_at":"2026-09-29T14:38:57.323115+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Controlled molecular graph interchange model; tests isolate atom or bond representation errors without claiming chemical validity or production toolkit equivalence.","root_cause":"Opposite signs cancel before fragment-level metadata is produced.","sha256":"0d41ae20bbdd186e2404780af143311c327853eb20545e13933d21d6f5ddf515","title":"Disconnected fragment charges are collapsed into a neutral flag · 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.097,"exit_code":1,"observations":[{"actual":[1,1],"check":"salt fragments","expected":[1,-1],"passed":false},{"actual":[1],"check":"single anion","expected":[-1],"passed":false},{"actual":[0],"check":"neutral fragment","expected":[0],"passed":true},{"actual":[],"check":"empty collection","expected":[],"passed":true},{"actual":[0,1],"check":"empty fragment","expected":[0,-1],"passed":false},{"actual":[2,2,0],"check":"multiple charged atoms","expected":[2,-2,0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"salt fragments\", \"actual\": [1, 1], \"expected\": [1, -1], \"passed\": false}, {\"check\": \"single anion\", \"actual\": [1], \"expected\": [-1], \"passed\": false}, {\"check\": \"neutral fragment\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"empty collection\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty fragment\", \"actual\": [0, 1], \"expected\": [0, -1], \"passed\": false}, {\"check\": \"multiple charged atoms\", \"actual\": [2, 2, 0], \"expected\": [2, -2, 0], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.875,"exit_code":1,"observations":[{"actual":[0],"check":"salt fragments","expected":[1,-1],"passed":false},{"actual":[-1],"check":"single anion","expected":[-1],"passed":true},{"actual":[0],"check":"neutral fragment","expected":[0],"passed":true},{"actual":[0],"check":"empty collection","expected":[],"passed":false},{"actual":[-1],"check":"empty fragment","expected":[0,-1],"passed":false},{"actual":[0],"check":"multiple charged atoms","expected":[2,-2,0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"salt fragments\", \"actual\": [0], \"expected\": [1, -1], \"passed\": false}, {\"check\": \"single anion\", \"actual\": [-1], \"expected\": [-1], \"passed\": true}, {\"check\": \"neutral fragment\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"empty collection\", \"actual\": [0], \"expected\": [], \"passed\": false}, {\"check\": \"empty fragment\", \"actual\": [-1], \"expected\": [0, -1], \"passed\": false}, {\"check\": \"multiple charged atoms\", \"actual\": [0], \"expected\": [2, -2, 0], \"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."}}