{"abstract":"Removing one chip removes equal values from other fields.","category":"Filter interfaces","checks":8,"contract":"Chip identity includes field and value; exclusive replacement clears only that field; removal targets one identity; field clear and global clear have distinct scope.","evaluation_group":"xi-filter-chips","failed_approach":"Removing by field clears sibling values too.","family":"xi-filter-chips-remove","id":"FA-8966","implementations":{"attempt":{"sha256":"40b12514463609adc58f238772bb56799ad957fb0bd9cf37b250d425c9a307a8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chips, event, field, value, exclusive):\n    chips = list(chips)\n    if event == 'add':\n        if (field,value) in chips: return chips\n        if exclusive: chips = [(f,v) for f,v in chips if f != field]\n        chips.append((field,value))\n    elif event == 'remove': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-all': chips = []\n    return chips\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cross field', solve([('color','red')], 'add', 'tag', 'red', False), [('color', 'red'), ('tag', 'red')])\ncheck('duplicate', solve([('color','red')], 'add', 'color', 'red', False), [('color', 'red')])\ncheck('exclusive', solve([('color','red'),('tag','new')], 'add', 'color', 'blue', True), [('tag', 'new'), ('color', 'blue')])\ncheck('remove identity', solve([('color','red'),('color','blue'),('tag','red')], 'remove', 'color', 'red', False), [('color', 'blue'), ('tag', 'red')])\ncheck('clear field', solve([('color','red'),('tag','new')], 'clear-field', 'color', None, False), [('tag', 'new')])\ncheck('clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\ncheck('parameterized filter criterion', solve([],'add','field',str(N),False), [('field',str(N))])\nfor repetition in range(N):\n    check('repeat clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\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":"75e7e0eaa37c0e5a4effb4f7df8e5fd813a9d40be81f9b1217858a1bfbdb82da","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chips, event, field, value, exclusive):\n    chips = list(chips)\n    if event == 'add':\n        if (field,value) in chips: return chips\n        if exclusive: chips = [(f,v) for f,v in chips if f != field]\n        chips.append((field,value))\n    elif event == 'remove': chips = [(f,v) for f,v in chips if v != value]\n    elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-all': chips = []\n    return chips\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cross field', solve([('color','red')], 'add', 'tag', 'red', False), [('color', 'red'), ('tag', 'red')])\ncheck('duplicate', solve([('color','red')], 'add', 'color', 'red', False), [('color', 'red')])\ncheck('exclusive', solve([('color','red'),('tag','new')], 'add', 'color', 'blue', True), [('tag', 'new'), ('color', 'blue')])\ncheck('remove identity', solve([('color','red'),('color','blue'),('tag','red')], 'remove', 'color', 'red', False), [('color', 'blue'), ('tag', 'red')])\ncheck('clear field', solve([('color','red'),('tag','new')], 'clear-field', 'color', None, False), [('tag', 'new')])\ncheck('clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\ncheck('parameterized filter criterion', solve([],'add','field',str(N),False), [('field',str(N))])\nfor repetition in range(N):\n    check('repeat clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\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":"2a4c92dc010790ac8cc27e9f5a3402a8495b184d4ec94aba6e46bad057ac5446","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chips, event, field, value, exclusive):\n    chips = list(chips)\n    if event == 'add':\n        if (field,value) in chips: return chips\n        if exclusive: chips = [(f,v) for f,v in chips if f != field]\n        chips.append((field,value))\n    elif event == 'remove': chips = [(f,v) for f,v in chips if (f,v) != (field,value)]\n    elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-all': chips = []\n    return chips\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cross field', solve([('color','red')], 'add', 'tag', 'red', False), [('color', 'red'), ('tag', 'red')])\ncheck('duplicate', solve([('color','red')], 'add', 'color', 'red', False), [('color', 'red')])\ncheck('exclusive', solve([('color','red'),('tag','new')], 'add', 'color', 'blue', True), [('tag', 'new'), ('color', 'blue')])\ncheck('remove identity', solve([('color','red'),('color','blue'),('tag','red')], 'remove', 'color', 'red', False), [('color', 'blue'), ('tag', 'red')])\ncheck('clear field', solve([('color','red'),('tag','new')], 'clear-field', 'color', None, False), [('tag', 'new')])\ncheck('clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\ncheck('parameterized filter criterion', solve([],'add','field',str(N),False), [('field',str(N))])\nfor repetition in range(N):\n    check('repeat clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\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":"xi-filter-chips-remove","generated_at":"2026-09-29T14:38:25.978315+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of filter-chip identity and removal; this isolates one interface invariant without requiring a browser.","repair":"Implement the remove operation as `(f,v) != (field,value)`.","root_cause":"The remove operation uses `v != value` where the contract requires `(f,v) != (field,value)`.","sha256":"c93c3518e010bc64f3d4b7bb0dcd80b08e1621bd89454cfa272610664b38220f","title":"Filter-chip identity and removal: Removing one chip removes equal values from other fields · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.506,"exit_code":1,"observations":[{"actual":[["color","red"],["tag","red"]],"check":"cross field","expected":[["color","red"],["tag","red"]],"passed":true},{"actual":[["color","red"]],"check":"duplicate","expected":[["color","red"]],"passed":true},{"actual":[["tag","new"],["color","blue"]],"check":"exclusive","expected":[["tag","new"],["color","blue"]],"passed":true},{"actual":[["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":false},{"actual":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[],"check":"clear all","expected":[],"passed":true},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[],"check":"repeat clear all","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cross field\", \"actual\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"]], \"passed\": true}, {\"check\": \"exclusive\", \"actual\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"expected\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"passed\": true}, {\"check\": \"remove identity\", \"actual\": [[\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": false}, {\"check\": \"clear field\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.977,"exit_code":1,"observations":[{"actual":[["color","red"],["tag","red"]],"check":"cross field","expected":[["color","red"],["tag","red"]],"passed":true},{"actual":[["color","red"]],"check":"duplicate","expected":[["color","red"]],"passed":true},{"actual":[["tag","new"],["color","blue"]],"check":"exclusive","expected":[["tag","new"],["color","blue"]],"passed":true},{"actual":[["color","blue"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":false},{"actual":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[],"check":"clear all","expected":[],"passed":true},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[],"check":"repeat clear all","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cross field\", \"actual\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"]], \"passed\": true}, {\"check\": \"exclusive\", \"actual\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"expected\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"passed\": true}, {\"check\": \"remove identity\", \"actual\": [[\"color\", \"blue\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": false}, {\"check\": \"clear field\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.808,"exit_code":0,"observations":[{"actual":[["color","red"],["tag","red"]],"check":"cross field","expected":[["color","red"],["tag","red"]],"passed":true},{"actual":[["color","red"]],"check":"duplicate","expected":[["color","red"]],"passed":true},{"actual":[["tag","new"],["color","blue"]],"check":"exclusive","expected":[["tag","new"],["color","blue"]],"passed":true},{"actual":[["color","blue"],["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":true},{"actual":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[],"check":"clear all","expected":[],"passed":true},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[],"check":"repeat clear all","expected":[],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cross field\", \"actual\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"]], \"passed\": true}, {\"check\": \"exclusive\", \"actual\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"expected\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"passed\": true}, {\"check\": \"remove identity\", \"actual\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"clear field\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}