{"abstract":"The operation returns a result or retained state that violates this contract: The total sums all signed counts, including negative entries rather than counting expanded positive elements.","category":"Multiset accounting","checks":4,"contract":"The total sums all signed counts, including negative entries rather than counting expanded positive elements. Inputs are the finite Python values shown by the executable fixtures; no concurrent execution is assumed.","evaluation_group":"model-a11c4d1db5cbb709","failed_approach":"Counting keys ignores their signed multiplicities.","family":"xr-counter-total-includes-negative-and-zero","id":"FA-4706","implementations":{"attempt":{"sha256":"76f557c03adfc808870924f6946350ea5537cea4dea7123e241b45f8d773aa6e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom collections import Counter, ChainMap, deque\nimport heapq\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return len(x)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative offsets positive', solve({'a': 3, 'b': -2, 'c': 0}), 1)\ncheck('negative total', solve({'a': -3}), -3)\ncheck('one member multiple count', solve({'a': 4}), 4)\ncheck('empty', solve({}), 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":"3017cb9d6e01b34fd54ec705cef40eced219b1f2bc6606f0ef31a3d6dcb690f1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom collections import Counter, ChainMap, deque\nimport heapq\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return len(list(Counter(x).elements()))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative offsets positive', solve({'a': 3, 'b': -2, 'c': 0}), 1)\ncheck('negative total', solve({'a': -3}), -3)\ncheck('one member multiple count', solve({'a': 4}), 4)\ncheck('empty', solve({}), 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"},"fixed":{"sha256":"a7cd83964570e8bed23ca436bdc4f820cb59bb6ff97f0a9133853496689f7fd2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom collections import Counter, ChainMap, deque\nimport heapq\nN = 1\nobservations = []\ndef solve(x, y=None):\n    return sum(Counter(x).values())\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative offsets positive', solve({'a': 3, 'b': -2, 'c': 0}), 1)\ncheck('negative total', solve({'a': -3}), -3)\ncheck('one member multiple count', solve({'a': 4}), 4)\ncheck('empty', solve({}), 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":" 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":"xr-counter-total-includes-negative-and-zero","generated_at":"2026-09-29T14:37:41.978322+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A controlled local-runtime regression for collection APIs, language semantics, or ownership wrappers. Fixtures include boundary and interaction cases.","repair":"The total sums all signed counts, including negative entries rather than counting expanded positive elements.","root_cause":"Counting expanded elements omits negative contributions.","sha256":"fcdef37d9f7b6851b8340b92ac484e38645842a867afd0eebae1b018d8424209","title":"Counter total includes negative and zero · case 01","variant":1,"variant_policy":"Five execution reruns of a fixed adversarial fixture suite; variant number does not alter semantic inputs.","verification":{"attempt":{"elapsed_ms":40.111,"exit_code":1,"observations":[{"actual":3,"check":"negative offsets positive","expected":1,"passed":false},{"actual":1,"check":"negative total","expected":-3,"passed":false},{"actual":1,"check":"one member multiple count","expected":4,"passed":false},{"actual":0,"check":"empty","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative offsets positive\", \"actual\": 3, \"expected\": 1, \"passed\": false}, {\"check\": \"negative total\", \"actual\": 1, \"expected\": -3, \"passed\": false}, {\"check\": \"one member multiple count\", \"actual\": 1, \"expected\": 4, \"passed\": false}, {\"check\": \"empty\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.498,"exit_code":1,"observations":[{"actual":3,"check":"negative offsets positive","expected":1,"passed":false},{"actual":0,"check":"negative total","expected":-3,"passed":false},{"actual":4,"check":"one member multiple count","expected":4,"passed":true},{"actual":0,"check":"empty","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative offsets positive\", \"actual\": 3, \"expected\": 1, \"passed\": false}, {\"check\": \"negative total\", \"actual\": 0, \"expected\": -3, \"passed\": false}, {\"check\": \"one member multiple count\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"empty\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":103.611,"exit_code":0,"observations":[{"actual":1,"check":"negative offsets positive","expected":1,"passed":true},{"actual":-3,"check":"negative total","expected":-3,"passed":true},{"actual":4,"check":"one member multiple count","expected":4,"passed":true},{"actual":0,"check":"empty","expected":0,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative offsets positive\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"negative total\", \"actual\": -3, \"expected\": -3, \"passed\": true}, {\"check\": \"one member multiple count\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"empty\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}