{"abstract":"Clear-all removes only the last criterion.","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":"Clearing the active field alone leaves other criteria active.","family":"xi-filter-chips-clear-all","id":"FA-8976","implementations":{"attempt":{"sha256":"8fccb72a7b781384f8cc8b7f92e878864c66e666cad42985a6f37ecd22aaff0a","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 = [(f,v) for f,v in chips if f != field]\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":"baa5cf6dfd532f7d32263e0db6c30f6e78b1f095acfb3389f819b5a6b56d31dc","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 = chips[:-1]\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-all","generated_at":"2026-09-29T14:38:26.054769+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 all operation as `elif event == 'clear-all': chips = []`.","root_cause":"The clear all operation uses `elif event == 'clear-all': chips = chips[:-1]` where the contract requires `elif event == 'clear-all': chips = []`.","sha256":"c0c7cd1c90fc2e57ec893ce782329bfb310fc3c9cc799c53f6766e8004187220","title":"Filter-chip identity and removal: Clear-all removes only the last criterion · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.242,"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":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[["tag","new"]],"check":"clear all","expected":[],"passed":false},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[["tag","new"]],"check":"repeat clear all","expected":[],"passed":false}],"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\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [], \"passed\": false}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.073,"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":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[["color","red"]],"check":"clear all","expected":[],"passed":false},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[["color","red"]],"check":"repeat clear all","expected":[],"passed":false}],"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\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [[\"color\", \"red\"]], \"expected\": [], \"passed\": false}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [[\"color\", \"red\"]], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":35.838,"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"}