I'm actually not sure if this is due to XI2 or Xkb, but I'm noticing that key repeats are reporting deviceid = 0 in the event fields. This can be seen with xinput test-xi2.
this is almost certainly a server bug, the library doesn't treat key repeats in a special manner.
commit b584c224a888c9e7f92d7e49021f74232a727c7f Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Fri Oct 30 12:11:41 2009 +1000 Set the source and deviceid for key repeat events (#24785)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.