{"abstract":"Clearing one field clears every filter.","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":"Keeping only the target field retains exactly what should be removed.","family":"xi-filter-chips-clear-field","id":"FA-8971","implementations":{"attempt":{"sha256":"f961e667d2b6583056382df8bce1c22e64b1f678a6021a3795374fb3dccaba56","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"},"broken":{"sha256":"25c2cc53e1ef1838d279d7a659c3f4a7f6fdb608f946d611ee7820ebe795cc54","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 = []\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-clear-field","generated_at":"2026-09-29T14:38:26.017083+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 clear field operation as `elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]`.","root_cause":"The clear field operation uses `elif event == 'clear-field': chips = []` where the contract requires `elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]`.","sha256":"25d4fc4da210011f80a45522c1daef810d807c8d26ffefdf51c8ab99e921b0ae","title":"Filter-chip identity and removal: Clearing one field clears every filter · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.988,"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"],["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":true},{"actual":[["color","red"]],"check":"clear field","expected":[["tag","new"]],"passed":false},{"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\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"clear field\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": false}, {\"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":36.767,"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"],["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":true},{"actual":[],"check":"clear field","expected":[["tag","new"]],"passed":false},{"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\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"clear field\", \"actual\": [], \"expected\": [[\"tag\", \"new\"]], \"passed\": false}, {\"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":37.394,"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"}